基于用戶接口協(xié)議的數(shù)據(jù)包編解碼軟件開發(fā)
發(fā)布時間:2018-07-02 10:52
本文選題:用戶接口協(xié)議 + 通用協(xié)議格式; 參考:《哈爾濱工業(yè)大學》2017年碩士論文
【摘要】:在基于聯(lián)合試驗架構(JTA)構建試驗系統(tǒng)時,需將現(xiàn)有大量試驗設備接入聯(lián)合試驗平臺(H-JTP)中,其中大部分試驗設備具有信息化接口,通過用戶接口協(xié)議與外部系統(tǒng)進行數(shù)據(jù)傳輸。由于用戶接口協(xié)議和JTA采用的標準對象模型不匹配,導致這些試驗設備不能與H-JTP直接通信。針對以上問題,本文開發(fā)包括用戶接口協(xié)議模板編輯、編碼、解碼的一套通用用戶接口協(xié)議編解碼工具,支持將具有信息化接口的試驗設備免改造或少改造接入H-JTP系統(tǒng)中,對提高我國大型聯(lián)合試驗快速構建能力,具有重要意義。本課題首先根據(jù)多個試驗設備的接口控制文檔(ICD),分析出多種用戶接口協(xié)議的特征,包括:含有基本數(shù)據(jù)類型、字符串類型、數(shù)組類型、bit類型的,支持多種元素處理函數(shù)的,多重嵌套,多分支,存在重復出現(xiàn)數(shù)據(jù)元素等。在此基礎上設計覆蓋所有上述協(xié)議特征的通用用戶接口協(xié)議格式。在通用用戶接口協(xié)議格式的基礎上,開發(fā)了通用協(xié)議模板編輯軟件,支持對具有上述特征的協(xié)議模板的編輯,能夠生成軟件可識別的用戶接口協(xié)議模板(xml文件格式),供協(xié)議編碼和解碼軟件加載使用。研究JTA對象模型實體和用戶接口協(xié)議數(shù)據(jù)包的相互轉(zhuǎn)換技術,實現(xiàn)了二者之間的自動轉(zhuǎn)換,在其基礎上,開發(fā)了協(xié)議編碼和解碼軟件。協(xié)議編碼軟件能夠?qū)⒂嗁弻ο竽P蛯嵗龜?shù)據(jù)轉(zhuǎn)換為對應的協(xié)議數(shù)據(jù),同時為用戶提供可視化的協(xié)議數(shù)據(jù)編輯界面,能夠?qū)ο竽P娃D(zhuǎn)換后的協(xié)議數(shù)據(jù)或用戶編輯的協(xié)議數(shù)據(jù)自動編碼成協(xié)議數(shù)據(jù)包,按照用戶設定的定時或觸發(fā)方式,通過相應硬件接口發(fā)送給外部設備。用戶還可以利用協(xié)議編碼軟件快速生成設備模擬器,支持構建聯(lián)合試驗系統(tǒng)。協(xié)議解碼軟件能夠接收數(shù)據(jù)包并按照協(xié)議模板進行解析。利用協(xié)議分級管理方法,提高協(xié)議匹配效率;利用多線程技術,提高協(xié)議解析效率;采用循環(huán)隊列存儲協(xié)議數(shù)據(jù)包,避免在接收數(shù)據(jù)流量不均情況下產(chǎn)生數(shù)據(jù)包丟失。支持解析后的數(shù)據(jù)以對象模型或數(shù)據(jù)流方式在H-JTP平臺上發(fā)布。最終測試結果表明,通用協(xié)議模板編輯軟件、協(xié)議編碼軟件和協(xié)議解碼軟件的功能和性能指標滿足要求,且具有良好的通用性。
[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.
【學位授予單位】:哈爾濱工業(yè)大學
【學位級別】:碩士
【學位授予年份】:2017
【分類號】:TP311.52
【參考文獻】
相關期刊論文 前10條
1 張志祥;商雄偉;;通用變長協(xié)議數(shù)據(jù)描述及解析方法研究[J];艦船電子工程;2015年05期
2 鐘志賢;韓杰;;基于RS422總線與自定義協(xié)議的網(wǎng)絡測距模塊[J];儀表技術與傳感器;2014年05期
3 張新豐;劉新友;苗高潔;;基于靶場的聯(lián)合試驗訓練系統(tǒng)[J];國防科技;2013年03期
4 李海剛;高欣;;基于元數(shù)據(jù)驅(qū)動的通用電文解析技術[J];控制工程;2013年S1期
5 陳亮;劉麗霞;劉經(jīng)宇;;基于1553B協(xié)議的導彈控制系統(tǒng)信息流設計探討[J];計算機測量與控制;2012年08期
6 畢博;朱元昌;邸彥強;;TENA網(wǎng)關及其應用研究[J];計算機測量與控制;2012年08期
7 王勝濤;楊志飛;杜紅兵;;邏輯靶場網(wǎng)關設計方法研究[J];艦船電子工程;2012年02期
8 張賢莉;翟正軍;馮萍;;靶場仿真中分布式異構網(wǎng)關技術研究[J];計算機測量與控制;2011年09期
9 劉U,
本文編號:2089884
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/2089884.html
最近更新
教材專著