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

基于多叉树和正则表达式的标定系统 A2L 文件的解析管理方法
引用本文:谢 钊,杨亚联,刘昌东. 基于多叉树和正则表达式的标定系统 A2L 文件的解析管理方法[J]. 汽车工程学报, 2024, 0(1): 135-143
作者姓名:谢 钊  杨亚联  刘昌东
作者单位:1. 重庆大学机械与运载工程学院;2. 重庆大学机械传动国家重点实验室;3. 东风小康汽车有限公司
基金项目:国家重点研发计划“政府间国际科技创新合作”项目(中韩)(2021YFE0193800);
摘    要:根据汽车标定系统A2L文件的定义规律,设计了正则表达式匹配A2L文件关键信息,利用类结构体和多叉树模型对A2L文件信息进行表示,并对文件中不同的数据模块提出了对应的通用化解析流程。针对测量值可视化和标定值下载问题,依据各种预定义类型和转换方法,设计原始量-物理量的转换公式,可为上位机软件提供转换工具。利用C#和窗体应用开发了A2L数据解析管理软件,实现对解析结果的可视化管理和修改。采用了“高内聚低耦合”的软件设计模式和动态链接库(dll),可进一步开发出测量标定软件。通过试验验证了所提出的A2L文件解析管理方法的有效性。

关 键 词:A2L  正则表达式  数据解析  数据管理

Analysis and Management Method of A2L File of Calibration System Based on Multi-Tree and Regular Expression
XIE Zhao,YANG Yalian,LIU Changdong. Analysis and Management Method of A2L File of Calibration System Based on Multi-Tree and Regular Expression[J]. , 2024, 0(1): 135-143
Authors:XIE Zhao  YANG Yalian  LIU Changdong
Abstract:According to the definition rule of A2L file in automobile calibration system, the regular expression is designed to match the internal key information of A2L file, and the information of A2L file is represented by class structure and multi-tree model. In addition, the corresponding general analysis flow is proposed for different data modules in the file. Aiming at the problems of measurement value visualization and calibration value download, the conversion formula of raw quantity to physical quantity is designed according to various predefined types and conversion methods, which can provide conversion tools for upper computer software. The A2L data analysis management software is developed by using C# and window applications to realize the visual management and modification of the analysis results. The software design pattern of “high cohesion and low coupling” and dynamic link library are used to further develop the measurement calibration software. Finally, the effectiveness of the proposed A2L file parsing method is verified by experiments.
Keywords:A2L   regular expression   data analysis   data management
点击此处可从《汽车工程学报》浏览原始摘要信息
点击此处可从《汽车工程学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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