作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (11): 278-280. doi: 10.3969/j.issn.1000-3428.2008.11.100

• 开发研究与设计技术 • 上一篇    下一篇

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

闫成华,周 余,都思丹   

  1. (南京大学电子科学与工程系,南京 210093)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-06-05 发布日期:2008-06-05

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总线通信协议。该协议在网络冲突检测及数据帧结构设计时,利用RS485总线支持点对多点传输的特点,将RS485总线传统的主从通信方式扩展为多主方式,实现在RS485总线上多个设备之间数据的对等传输,具有平台间的可移植性和功能可扩展性。

关键词: RS485总线, 通信协议, CRC校验, 嵌入式Linux

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

中图分类号: