CserialPort类的RS-485多机通信设计与实现  被引量:2

Design and implement of RS-485 muti-computer communication based on CserialPort class

在线阅读下载全文

作  者:王雷阳[1] 李正生[1] 

机构地区:[1]第二炮兵工程学院101室,陕西西安710025

出  处:《电子设计工程》2011年第19期172-175,共4页Electronic Design Engineering

摘  要:为解决现场工业数据采集系统中远距离多机通信的难题,设计了基于RS-485总线半双工、主从式多机通信网络。采用了以PC机为主机,Visual C++6.0为平台,使用CserialPort类编写了串口通信程序,文中并给出了关键程序;以Atmega16 AVR单片机为从机,使用SN75176芯片实现了RS-485信号电平到TTL电平的转换。最后为了验证设计的可行性,在线阵CCD缝隙测量系统中进行测试,结果表明能够可靠实现采集系统的远距离多机通信,并通过调试提出了信号接地的重要性。In order to resolve the difficult problem of data acquisition system under the long distance and multi-computer communication, this paper designs a type of half-duplex and master-slave multi-computer communication based on RS-485 bus network. PC with Visual C++6.0 as master and using CserialPort class writes serial communication program, and this paper gives the key program. AVR microcontroller of Atmegal6 as slave and using SN75176 chip realizes the conversion from RS- 485 signal level to TFL level. At last, in order to test the feasibility of designed, application in linear CCD clearance measuring system, the result shows that can realize acquisition system by long-distance and multi-computer communication, and according to debugging, approve the importance of the signal to ground.

关 键 词:RS-485 多机通信 AVR单片机 CSERIALPORT类 

分 类 号:TP273.5[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象