中国科技核心期刊

中文核心期刊

CSCD来源期刊

空间控制技术与应用 ›› 2015, Vol. 41 ›› Issue (2): 51-56.

• 技术交流 • 上一篇    下一篇

CAN总线并发通信时下位机应用软件设计

  

  • 出版日期:2015-04-21 发布日期:2015-04-27

Design for Communication of CAN Bus of Lower Application Software in Concurrent Communication

  • Online:2015-04-21 Published:2015-04-27

摘要: 为满足系统通信中的时间性能要求,设计一种利用中断接收和发送CAN总线数据的通信方法,给出了算法的C语言流程图实现.当增加GPS作为总线主节点发送广播引起CAN并发通信导致硬件中断冲突时,针对并发通信的硬件中断冲突原理作了分析,重新设计了下位机CAN总线通信软件,解决CAN总线并发通信冲突.

关键词: CAN总线, 并发通信, 软件设计

Abstract: In order to meet the requirement for time performance of system communication, a new design method of lower machine communication software is proposed by using transmitting interrupt and receiving interrupt. When GPS added as another host causes a concurrent communication of CAN bus,the reason of interrupt conflict is analyzed and the algorithm is updated to solve the bus collision.

Key words: CAN bus, concurrent communication, software design