基于用户接口协议的数据包编解码软件开发
发布时间:2018-07-02 10:52
本文选题:用户接口协议 + 通用协议格式 ; 参考:《哈尔滨工业大学》2017年硕士论文
【摘要】:在基于联合试验架构(JTA)构建试验系统时,需将现有大量试验设备接入联合试验平台(H-JTP)中,其中大部分试验设备具有信息化接口,通过用户接口协议与外部系统进行数据传输。由于用户接口协议和JTA采用的标准对象模型不匹配,导致这些试验设备不能与H-JTP直接通信。针对以上问题,本文开发包括用户接口协议模板编辑、编码、解码的一套通用用户接口协议编解码工具,支持将具有信息化接口的试验设备免改造或少改造接入H-JTP系统中,对提高我国大型联合试验快速构建能力,具有重要意义。本课题首先根据多个试验设备的接口控制文档(ICD),分析出多种用户接口协议的特征,包括:含有基本数据类型、字符串类型、数组类型、bit类型的,支持多种元素处理函数的,多重嵌套,多分支,存在重复出现数据元素等。在此基础上设计覆盖所有上述协议特征的通用用户接口协议格式。在通用用户接口协议格式的基础上,开发了通用协议模板编辑软件,支持对具有上述特征的协议模板的编辑,能够生成软件可识别的用户接口协议模板(xml文件格式),供协议编码和解码软件加载使用。研究JTA对象模型实体和用户接口协议数据包的相互转换技术,实现了二者之间的自动转换,在其基础上,开发了协议编码和解码软件。协议编码软件能够将订购对象模型实例数据转换为对应的协议数据,同时为用户提供可视化的协议数据编辑界面,能够将对象模型转换后的协议数据或用户编辑的协议数据自动编码成协议数据包,按照用户设定的定时或触发方式,通过相应硬件接口发送给外部设备。用户还可以利用协议编码软件快速生成设备模拟器,支持构建联合试验系统。协议解码软件能够接收数据包并按照协议模板进行解析。利用协议分级管理方法,提高协议匹配效率;利用多线程技术,提高协议解析效率;采用循环队列存储协议数据包,避免在接收数据流量不均情况下产生数据包丢失。支持解析后的数据以对象模型或数据流方式在H-JTP平台上发布。最终测试结果表明,通用协议模板编辑软件、协议编码软件和协议解码软件的功能和性能指标满足要求,且具有良好的通用性。
[Abstract]:When constructing the test system based on JTA, it is necessary to connect a large number of existing test equipment into the joint test platform (H-JTP), most of which have information interface and transmit data to the external system through user interface protocol. Due to the mismatch between the user interface protocol and the standard object model adopted by JTA, these experimental devices cannot communicate directly with H-JTP. In view of the above problems, this paper develops a set of universal user interface protocol codec tools including user interface protocol template editing, encoding and decoding, which supports that the experimental equipment with information interface can be integrated into H-JTP system without or without modification. It is of great significance to improve the rapid construction ability of large scale joint test in China. Firstly, according to the interface control document (ICD) of many experimental devices, the characteristics of various user interface protocols are analyzed, including: basic data type, string type, array type / bit type, and support for multiple element processing functions. Multiple nested, multiple branches, there are repeated data elements and so on. On this basis, a universal user interface protocol format covering all the above protocol features is designed. Based on the common user interface protocol format, a general protocol template editing software is developed to support the editing of the protocol template with the above characteristics. Can generate software recognizable user interface protocol template (xml file format) for protocol encoding and decoding software loading and use. In this paper, the technology of JTA object model entity and user interface protocol data packet conversion is studied, and the automatic conversion between them is realized. On the basis of this technology, a protocol encoding and decoding software is developed. The protocol coding software can transform the order object model instance data into the corresponding protocol data, and at the same time provide the visual protocol data editing interface for the user. The protocol data transformed by the object model or the protocol data edited by the user can be automatically encoded into the protocol data packet and sent to the external device through the corresponding hardware interface according to the timing or trigger mode set by the user. Users can also use protocol coding software to quickly generate device simulators to support the construction of joint test systems. Protocol decoding software can receive packets and parse them according to protocol templates. Protocol hierarchical management method is used to improve the efficiency of protocol matching; multi-thread technology is used to improve the efficiency of protocol parsing; cyclic queue is used to store protocol packets to avoid packet loss in the case of uneven data flow. The parsed data is published on the H-JTP platform in the form of object model or data stream. The final test results show that the function and performance of general protocol template editing software, protocol encoding software and protocol decoding software meet the requirements and have good versatility.
【学位授予单位】:哈尔滨工业大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP311.52
【参考文献】
相关期刊论文 前10条
1 张志祥;商雄伟;;通用变长协议数据描述及解析方法研究[J];舰船电子工程;2015年05期
2 钟志贤;韩杰;;基于RS422总线与自定义协议的网络测距模块[J];仪表技术与传感器;2014年05期
3 张新丰;刘新友;苗高洁;;基于靶场的联合试验训练系统[J];国防科技;2013年03期
4 李海刚;高欣;;基于元数据驱动的通用电文解析技术[J];控制工程;2013年S1期
5 陈亮;刘丽霞;刘经宇;;基于1553B协议的导弹控制系统信息流设计探讨[J];计算机测量与控制;2012年08期
6 毕博;朱元昌;邸彦强;;TENA网关及其应用研究[J];计算机测量与控制;2012年08期
7 王胜涛;杨志飞;杜红兵;;逻辑靶场网关设计方法研究[J];舰船电子工程;2012年02期
8 张贤莉;翟正军;冯萍;;靶场仿真中分布式异构网关技术研究[J];计算机测量与控制;2011年09期
9 刘U,
本文编号:2089884
本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/2089884.html