Abstract:
This paper describes the design and implementation of a RS485 bus communication protocol that based on embedded Linux platform. From the aspects of network collision detection and the structure of data frame, and utilizing the point to multiple point characteristic of RS485, this protocol extends the traditional principal and subordinate communication method to multiple principal method, and realizes peer to peer transfer among multiple equipments on the RS485 bus. This protocol is portable and extendable.
Key words:
RS485 bus,
communication protocol,
CRC checking,
embedded Linux
摘要: 在嵌入式Linux平台上设计并实现一个RS485总线通信协议。该协议在网络冲突检测及数据帧结构设计时,利用RS485总线支持点对多点传输的特点,将RS485总线传统的主从通信方式扩展为多主方式,实现在RS485总线上多个设备之间数据的对等传输,具有平台间的可移植性和功能可扩展性。
关键词:
RS485总线,
通信协议,
CRC校验,
嵌入式Linux
CLC Number:
YAN Cheng-hua; ZHOU Yu; DU Si-dan. RS485 Communication Protocol Based on Embedded Linux[J]. Computer Engineering, 2008, 34(11): 278-280.
闫成华;周 余;都思丹. 基于嵌入式Linux的RS485通信协议[J]. 计算机工程, 2008, 34(11): 278-280.