Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2008, Vol. 34 ›› Issue (11): 278-280.

• Developmental Research • Previous Articles     Next Articles

RS485 Communication Protocol Based on Embedded Linux

YAN Cheng-hua, ZHOU Yu, DU Si-dan   

  1. (Department of Electronic Science and Engineering, Nanjing Unisversity, Nanjing 210093)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-06-05 Published:2008-06-05

基于嵌入式Linux的RS485通信协议

闫成华,周 余,都思丹   

  1. (南京大学电子科学与工程系,南京 210093)

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: