通用串口数据协议解析与显控系统的设计与实现  被引量:2

Design and Implementation of Universal Serial Data Protocol Parsing and Display Control System

在线阅读下载全文

作  者:刘彪 张进智 张巧 王睿乔 李明乐 乔邦江 LIU Biao;ZHANG Jin-zhi;ZHANG Qiao;WANG Rui-qiao;LI Ming-le;QIAO Bang-jiang(State-owned Changhong Machinery Factory,Guilin 541000,China;Guided Airbomb Munition R&D Center,China South Industries Group Corporation,Changsha 410100,China)

机构地区:[1]国营长虹机械厂电子车间,广西桂林541000 [2]中国兵器装备集团制导航空弹药研究开发中心导航室,湖南长沙410100

出  处:《计算机技术与发展》2023年第7期80-84,共5页Computer Technology and Development

基  金:“十二五”装备预先研究项目(402030203)。

摘  要:针对目前设备(惯性测量单元、惯性导航系统、卫星接收机等)在输出测量数据时,由于数据通讯协议不同,数据输出格式不统一。对不同设备进行测试或验收时,必须编写不同的采集测试软件,或在原有软件上进行大量的修改,造成不必要的人力成本和时间成本。基于上述问题,研究并设计一种通用串口数据协议解析与显控系统,提出采用XML(可扩展性标记语言)作为串口通讯协议解析器的协议描述文件,利用XML文件的可扩展性、异构性和标签之间的父子层级关系,实现串口协议解析器的通用性,达到更新或更换通讯协议时,无须重新编写代码,只需重新配置并加载XML文件即可;支持对不同设备输出数据的自动解析,满足多设备协议的数据要求。主要介绍该系统的工作原理以及实现方法,设计一款通用串口数据协议与显控系统软件,并根据已有设备进行测试,证明该系统能够正确解析设备数据,系统运行稳定、可靠,满足了研发需求。At present,when the equipment(IMU,inertial navigation system,satellite receiver,etc.)outputs the measurement data,the format of the output data of the equipment is not unified due to the different data communication protocols.When testing or accepting different equipment,it is necessary to write different acquisition and test software,or make a large number of modifications on the original software,resulting in unnecessary labor costs and time costs.Based on the above problems,a universal serial data protocol parsing and display control system is researched and designed.XML(Extensible Markup Language)is proposed as the protocol description file of serial communication protocol parser.The scalability and heterogeneity of XML files and the parent-child hierarchical relationship between tags are utilized to realize universality of serial port protocol parser.When the communication protocol is updated or replaced,no need to rewrite the code,just reconfigure and load the XML file.It supports the automatic analysis of the output data of different devices to meet the data requirements of multi-device protocols.We mainly introduce the working principle and implementation method of the system,design a general serial port data protocol and display control system software,and make a test according to the existing equipment.It is proved that such system can correctly parse the equipment data,run stably and reliably,and meet the research and development needs.

关 键 词:通用串口 数据协议 数据解析 数据采集 显控系统 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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