摘要
以CAN2.0A为基础,通过安装在PC机上的内置SJA1000 CAN(控制器局域网)控制器的CAN总线通信接口卡实现CAN总线与PC机的通信,通过CAN总线通信接口卡函数实现自己制定的应用层协议。该协议根据某通信系统需要及CAN滤波方式,确定了信息ID(标识符)的分配,定义了报文传输格式。文中分析了单双滤波对本系统报文接收的影响,验证了本协议的可行性及合理性,最后给出本协议多帧数据传输的编程实现。
Based on CAN2.0A, this paper realizes communication between CAN bus and a computer through a CAN bus communication card embedded SJA1000, which is installed on PC. With interface functions provided by the CAN bus communication card, this paper presents the implementation of CAN protocol of application layer. Considering the communication system need and CAN filter modes, the protocol defines information identifier and message transmission format. This paper also analyzes the influence of filter modes on the message acceptance and validates the protocol feasibility and rationality. At last, this paper shows the program implementation of multi-frame data transfer.
出处
《电子工程师》
2006年第3期14-17,共4页
Electronic Engineer
关键词
CAN总线
应用层协议
标识符
单滤波
双滤波
多帧
CAN
application layer protocol
ID
single filter mode; dual filter mode
multi-frame