设为首页加入收藏

基于CAN总线的报文数据处理优化分析

作者:刘绪洪  发布时间:2026-01-11   编辑:赵玉真   审核人:郎伟锋    浏览次数:

基于CAN总线的报文数据处理优化分析

刘绪洪12

1.潍柴动力股份有限公司,山东 潍坊  261061; 2.内燃机与动力系统全国重点实验室,山东 潍坊  261061

摘要:针对基于控制器局域网络(controller area network,CAN)总线J1939协议的请求响应类报文传统开发方式配置参数复杂、软件升级适应性差的问题,结合请求响应类报文不同协议数据单元(protocal data unit,PDU)格式、参数组编号(parameter group number,PGN)请求报文传输方式对应的数据响应及传输协议连接管理下广播公告消息(broadcast announce message,BAM)、请求发送(request to send,RTS)报文、准备发送(clear to send,CTS)报文、消息结束应答(end of message acknowledgment,EMA)报文与放弃连接(connection abort,CA)报文5种报文格式的组成与属性,优化报文数据处理流程,采用PDU1格式下特定请求报文特定单包响应、PDU2格式下特定请求报文全局单包响应、PDU1格式下特定请求连接模式下的请求发送报文多包响应、PDU2格式下全局请求广播公告消息报文多包响应4种数据传输类型进行验证。结果表明:请求响应类报文开发采用优化后的数据传输流程,报文数据配置更灵活,标定参数减少,升级流程简化,PGN请求报文识别灵活,自适应响应能力提高。

关键词:CAN总线;J1939;传输协议;自适应能力;请求响应类报文

Optimization analysis of message data processing based on CAN bus

LIU Xuhong1,2

1.Weichai Power Co., Ltd., Weifang 261061,China;

2.State Key Laboratory of Internal Combustion Engine and Powertrain System, Weifang 261061, China

Abstract: In view of the problems of complex parameter configuration and poor software upgrade adaptability in the traditional development mode of request-response type messages based on controller area network(CAN)bus J1939 protocol, the composition and attributes of five types of message formats are combined with different protocol data unit (PDU) formats, parameter group number (PGN) request message transmission modes corresponding data response and transmission protocol connection management of broadcast announcement message (BAM), request to send (RTS) messages, clear to send (CTS) messages, end of message acknowledgment (EMA) messages and connection abort (CA) messages. The message data processing procedure is optimized, and four data transmission types, namely single packet response to a specific request message in PDU1 format, global single packet response to a specific request message in PDU2 format, multi-packet to a request message in a specific request connection mode in PDU1 format, multi-packet response to a global request broadcast announcement message in PDU2 format, are used for verification. The results show that the processing procedure of the request-response type message after optimizing the data transmission is more flexible in message data configuration, with less calibration parameters, simplified upgrade process, flexible PGN request message recognition and improved adaptive response capability.

Keywords: CAN bus; J1939; transport protocol; adaptive capability; request and response message

         

通信地址:济南市长清大学科技园海棠路5001号 邮编:250357
《山东交通学院学报》编辑部电话:0531-80687340
《内燃机与动力装置》编辑部电话:0531-80687025
山东交通学院学报编辑部版权所有 网站浏览次数: