首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于正则表达式与多叉树的DBC网络协议解析方法
引用本文:孙汉,杨亚联,周林,张昕.基于正则表达式与多叉树的DBC网络协议解析方法[J].重庆大学学报(自然科学版),2022,45(8):78-86.
作者姓名:孙汉  杨亚联  周林  张昕
作者单位:重庆大学 机械与运载工程学院, 重庆 400044;重庆大学 机械传动国家重点实验室, 重庆 400044;金康赛力斯新能源汽车 设计院, 重庆 401120;江铃重型汽车有限公司, 太原 030032
基金项目:国家自然科学基金资助项目(51575064)。
摘    要:为解决CAN网络下DBC (database CAN)协议数据解析和结构表征问题,通过正则表达式解析了DBC文件协议信息,利用多叉树结构,对CAN网络协议信息进行结构表征。针对Intel和Motorola不同格式下的协议解析问题,提出了报文数据场的信号色块表示方法以及起始位转换公式。基于C#语言设计和开发了CAN网络数据管理软件,并将CAN网络协议以DBC数据管理文件输出。用实车试验验证了所提出DBC协议解析方法的有效性。

关 键 词:CAN网络  DBC  数据管理  正则表达式  多叉树
收稿时间:2021/1/7 0:00:00

A regular-expression and multi-tree based DBC network protocol analysis method
SUN Han,YANG Yalian,ZHOU Lin,ZHANG Xin.A regular-expression and multi-tree based DBC network protocol analysis method[J].Journal of Chongqing University(Natural Science Edition),2022,45(8):78-86.
Authors:SUN Han  YANG Yalian  ZHOU Lin  ZHANG Xin
Institution: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
Abstract: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.
Keywords:CAN network  DBC  data management  regular expression  multi-tree
点击此处可从《重庆大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《重庆大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号