基于正则表达式与多叉树的DBC网络协议解析方法
作者:
中图分类号:

TP391.1

基金项目:

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


A regular-expression and multi-tree based DBC network protocol analysis method
Author:
  • 摘要
  • | |
  • 访问统计
  • |
  • 参考文献 [15]
  • |
  • 相似文献 [4]
  • |
  • 引证文献
  • | |
  • 文章评论
    摘要:

    为解决CAN网络下DBC (database CAN)协议数据解析和结构表征问题,通过正则表达式解析了DBC文件协议信息,利用多叉树结构,对CAN网络协议信息进行结构表征。针对Intel和Motorola不同格式下的协议解析问题,提出了报文数据场的信号色块表示方法以及起始位转换公式。基于C#语言设计和开发了CAN网络数据管理软件,并将CAN网络协议以DBC数据管理文件输出。用实车试验验证了所提出DBC协议解析方法的有效性。

    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.

    参考文献
    [1] 孔峰, 张衡, 宋雪桦, 等. 基于CANopen协议的汽车控制网络初探[J]. 汽车工程, 2007, 29(7):594-596,605. Kong F, Zhang H, Song X H, et al. A preliminary investigation into vehicle control network based on CANopen protocol[J]. Automotive Engineering, 2007, 29(7):594-596,605. (in Chinese)
    [2] 黄赛杰, 徐敏, 郑小鹿, 等. 动力电池充放电检测系统的设计与实现[J]. 储能科学与技术, 2019, 8(1):146-154. Huang S J, Xu M, Zheng X L, et al. Design and implementation of power battery charging and discharging detection system[J]. Energy Storage Science and Technology, 2019, 8(1):146-154. (in Chinese)
    [3] Cai Q J, Xu Y, Fu J K, et al. Study on development and testing of vehicle CAN network platform based on CANoe[J]. Applied Mechanics and Materials, 2014, 687/688/689/690/691:56-59.
    [4] 杨璐激, 陈立涛, 吕妮娜. 基于CAN总线的整车电子电气架构的研究[C]//2015中国汽车工程学会年会论文集. 上海:中国汽车工程学会,2015:280-283. Yang L J, Chen L T, Lv N N. Research on vehicle electronic and electrical architecture based on CAN bus[C]//Proceedings of 2015 annual meeting of China Society of Automotive Engineering. Shanghai:China Society of Automotive Engineering, 2015:280-283. (in Chinese)
    [5] 张新波, 孙泽昌, 罗峰. 使用CANoe对车身控制器局域网络仿真的研究[J]. 江苏大学学报(自然科学版), 2003, 24(5):36-39. Zhang X B, Sun Z C, Luo F. Study on CAN body network simulation with CANoe[J]. Journal of Jiangsu University (National Science Edition), 2003, 24(5):36-39. (in Chinese)
    [6] 丁志华, 罗峰, 孙泽昌. 基于CANoe的汽车故障诊断系统研制[J]. 汽车工程, 2007, 29(5):449-452. Ding Z H, Luo F, Sun Z C. Development of vehicle fault diagnostic system based on CANoe[J]. Automotive Engineering, 2007, 29(5):449-452. (in Chinese)
    [7] Li L J, Ye H J, Gao S. Development of instrument cluster simulation system based on canoe[J]. Advanced Materials Research, 2012, 490/491/492/493/494/495:1198-1201.
    [8] 陈燕平, 殷承良, 张勇. 混合动力大客车动力总成试验台架的构建及试验研究[J]. 汽车工程, 2011, 33(6):468-471. Chen Y P, Yin C L, Zhang Y. Construction and experimental study of test bench for the powertrain assembly of a hybrid electric bus[J]. Automotive Engineering, 2011, 33(6):468-471. (in Chinese)
    [9] Zhang X B, Xu L F, Li J Q, et al. Real-time estimation of vehicle mass and road grade based on multi-sensor data fusion[C]//2013 IEEE Vehicle Power and Propulsion Conference (VPPC), October 15-18, 2013, Beijing, China. IEEE, 2013:1-7.
    [10] Han J, Liu Z, Cui S, et al. A study on the application of the controller area network communication protocol to hybrid electric vehicle[J]. Automotive Engineering, 2011, 33(12):1062-982.
    [11] Sharma D, Gupta M. Controller area network for automobile application using ASIC based on PsoC and analysing through vector CANoe[J]. International Journal of Innovative Technology and Exploring Engineering (IJITEE), 2013, 2(5):287-292.
    [12] Peng J K, Fan H, He H W, et al. A rule-based energy management strategy for a plug-in hybrid school bus based on a controller area network bus[J]. Energies, 2015, 8(6):5122-5142.
    [13] Yi L, He H W, Peng J K. Hardware-in-loop simulation for the energy management system development of a plug-in hybrid electric bus[J]. Energy Procedia, 2016, 88:950-956.
    [14] 魏学哲, 戴海峰, 孙泽昌. 汽车嵌入式系统开发方法、体系架构和流程[J]. 同济大学学报(自然科学版), 2012, 40(7):1064-1070. Wei X Z, Dai H F, Sun Z C. Methodology, architecture and development flow of automotive embedded systems[J]. Journal of Tongji University (Natural Science), 2012, 40(7):1064-1070. (in Chinese)
    [15] Zhang L M, Yang F, Lei Y. Tree-based intermittent connection fault diagnosis for controller area network[J]. IEEE Transactions on Vehicular Technology, 2019, 68(9):9151-9161.
    引证文献
引用本文

孙汉,杨亚联,周林,张昕.基于正则表达式与多叉树的DBC网络协议解析方法[J].重庆大学学报,2022,45(8):78-86.

复制
相关视频

分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-01-07
  • 在线发布日期: 2022-08-19
文章二维码