基于正则表达式与多叉树的DBC网络协议解析方法  被引量:4

A regular-expression and multi-tree based DBC network protocol analysis method

在线阅读下载全文

作  者:孙汉 杨亚联[1,2] 周林 张昕 SUN Han;YANG Yalian;ZHOU Lin;ZHANG Xin(College of Mechanical and Vehicle Engineering,Chongqing University,Chongqing 400044,P.R.China;State Key Laboratory of Mechanical Transmissions,Chongqing University,Chongqing 400044,P.R.China;Jinkang Seres New Energy Automobile Design Institute,Chongqing 401120,P.R.China;JMC Heavy Duty Vehicle Co.,Ltd.,Taiyuan 030032,P.R.China)

机构地区:[1]重庆大学机械与运载工程学院,重庆400044 [2]重庆大学机械传动国家重点实验室,重庆400044 [3]金康赛力斯新能源汽车设计院,重庆401120 [4]江铃重型汽车有限公司,太原030032

出  处:《重庆大学学报》2022年第8期78-86,共9页Journal of Chongqing University

基  金:国家自然科学基金资助项目(51575064)。

摘  要:为解决CAN网络下DBC(database CAN)协议数据解析和结构表征问题,通过正则表达式解析了DBC文件协议信息,利用多叉树结构,对CAN网络协议信息进行结构表征。针对Intel和Motorola不同格式下的协议解析问题,提出了报文数据场的信号色块表示方法以及起始位转换公式。基于C#语言设计和开发了CAN网络数据管理软件,并将CAN网络协议以DBC数据管理文件输出。用实车试验验证了所提出DBC协议解析方法的有效性。To solve the problem of DBC(Database CAN) protocol data analysis and structure characterization in the CAN network, in this paper, the DBC file protocol is analyzed through regular expressions, and the CAN network protocol is characterized by using the multi-tree structure. To solve the protocol analysis problem in different formats of Intel and Motorola, an expression method of signal color blocks in the data field of messages and a start bit conversion formula are proposed. The CAN network data management software is designed and developed based on the C# language, and the CAN network protocol is output as a DBC data management file. An actual vehicle test is conducted, which verifies the validity of the DBC protocol analysis method proposed in this paper.

关 键 词:CAN网络 DBC 数据管理 正则表达式 多叉树 

分 类 号:TP391.1[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象