Program for converting interface control data into visual XML

文档序号:1215796 发布日期:2020-09-04 浏览:13次 中文

阅读说明:本技术 一种将接口控制数据转换为可视化xml的程序 (Program for converting interface control data into visual XML ) 是由 蔡琳朦 陈升 陈少磊 于 2020-05-14 设计创作,主要内容包括:本发明公开了一种将接口控制数据转换为可视化XML的程序,包含以下步骤:步骤一:对的WORD格式的接口控制数据进行解析,转化成WORD格式的ARINC664总线数据;骤二:按照校验规则对WORD格式的ARINC664总线数据进行校验,校验通过后进行缓存;步骤三:将WORD格式的ARINC664总线数据的转换为可视化XML格式文件;步骤四:将生成的可视化XML格式文件按照.xml文件格式保存,分配给相关开发人员使用。本发明满足接口控制数据自动转换格式的需求。(The invention discloses a program for converting interface control data into visual XML, which comprises the following steps: the method comprises the following steps: analyzing the interface control data in the WORD format, and converting the interface control data into ARINC664 bus data in the WORD format; step two: checking ARINC664 bus data in WORD format according to a check rule, and caching after the checking is passed; step three: converting the ARINC664 bus data in the WORD format into a visual XML format file; step four: and storing the generated visual XML format file according to the XML file format, and distributing the visual XML format file to relevant developers for use. The invention meets the requirement of automatic format conversion of interface control data.)

1. A program for converting interface control data into visual XML, comprising the steps of:

the method comprises the following steps: analyzing the interface control data in the WORD format, and converting the interface control data into ARINC664 bus data in the WORD format; the ARINC664 bus data template in the WORD format defines content filled in by each attribute value and a verification specification, the interface control data template in the WORD format defines names of each field and the content filled in, a mapping relation is arranged between the ARINC664 bus data template and the interface control data template, and imported interface control data in the WORD format needs to be filled in according to the interface control data template in the WORD format;

step two: checking ARINC664 bus data in WORD format according to a check rule, and caching after the checking is passed;

step three: converting the ARINC664 bus data in the WORD format into a visual XML format file;

step four: and exporting the generated visual XML format file according to the XML file format, and distributing the file to relevant developers for use.

Technical Field

The invention belongs to the technical field of comprehensive avionics, and particularly relates to a program for converting interface control data into visual XML.

Background

The comprehensive modular avionics system is an avionics system architecture adopted by the current mainstream aircraft, and interface control data are converted into ARINC664 data through coding and then transmitted. By carrying out resource allocation on ARINC664 data, network resource sharing of the avionic system can be realized, and further, integration, modularization of the avionic system are realized, so that the communication efficiency is effectively improved, and the weight of the airplane is reduced. For the data of the current common bus, the method for converting the data into the ARINC664 bus data is manual handwriting conversion, and has the problems of large workload, low efficiency, more errors, long time consumption and the like. Therefore, a program for automatically converting the commonly used interface control data into ARINC664 bus data and outputting XML (Extensible Markup Language) format is needed.

Disclosure of Invention

The invention aims to provide a program for converting interface control data into visual XML (extensive makeup language), which meets the requirement of automatic format conversion of the interface control data.

The invention aims to be realized by the following technical scheme:

a program for converting interface control data into visual XML, comprising the steps of:

the method comprises the following steps: analyzing the interface control data in the WORD format, and converting the interface control data into ARINC664 bus data in the WORD format; the ARINC664 bus data template in the WORD format defines content filled in by each attribute value and a verification specification, the interface control data template in the WORD format defines names of each field and the content filled in, a mapping relation is arranged between the ARINC664 bus data template and the interface control data template, and imported interface control data in the WORD format needs to be filled in according to the interface control data template in the WORD format;

step two: checking ARINC664 bus data in WORD format according to a check rule, and caching after the checking is passed;

step three: converting the ARINC664 bus data in the WORD format into a visual XML format file;

step four: and exporting the generated visual XML format file according to the XML file format, and distributing the file to relevant developers for use.

The invention has the beneficial effects that: according to the characteristics of the interface control data, the method specifies the WORD template format in advance, fills in the corresponding field of the interface control data, extracts the corresponding field, converts the field into an ARINC664 WORD format file according to the ARINC664 bus characteristics, and converts the field into a target XML format file through the WORD format file. The invention has clear logic, simple realization and strong practical value.

Drawings

Fig. 1 is a flowchart illustrating a procedure of converting interface control data into visual XML according to this embodiment.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples.

In this embodiment, the ARINC429 bus data is used for illustration, the principle of the bus data such as RS422, ARINC429, ARINC825, ARINC717 and the like is the same as that of the ARINC429 bus data, and the interface control data is converted into the WORD format data of the ARINC664 bus data by the program for converting the interface control data into the visual XML shown in this embodiment, and then converted into the XML format of the ARINC664 data, and the specific conversion process is as follows:

the method comprises the following steps: the ARINC429 bus data in WORD format is analyzed and converted into ARINC664 bus data in WORD format.

The rail 664 bus data template in the WORD format is shown in table 1, and defines the content to be filled in each attribute value and a verification rule. The WORD format ARINC429 bus data template is shown in table 2, which defines the names of the fields and the contents to be filled in, establishes a mapping relationship between the ARINC664 bus data template and the ARINC429 bus data template, and can convert the WORD format ARINC429 bus data into the WORD format ARINC664 bus data template. The ARINC429 bus data in WORD format is shown in Table 3, and the ARINC664 bus data in WORD format is shown in Table 4. The ARINC664 bus data is 32 bits, complemented by 32 bits if less than 32 bits, and complemented by a minimum multiple of nearly 32 bits if more than 32 bits.

TABLE 1

Figure BDA0002491318100000031

Figure BDA0002491318100000041

TABLE 2

TABLE 3

Figure BDA0002491318100000051

TABLE 4

Step two: checking the ARINC664 bus data in the WORD format according to a checking rule, and caching after the checking is passed.

As shown in table 1, the remark of the WORD format ARINC664 bus data template records the verification rule of each attribute value, and the WORD format ARINC664 bus data can be verified according to the remark.

Step three: converting the ARINC664 bus data in the WORD format into a visual XML format file, automatically checking and proofreading according to the proofreading constraint, and then storing.

Converting the ARINC664 bus data in the WORD format into a visual XML format file by pre-defining conversion rules between an ARINC664 bus data template in the defined WORD format and the visual XML format file, wherein the format of the converted XML file is as follows:

<RP Name="L203_Absolute_Pressue_Altitude_Data_ADS1_PFD"DataFormatType="BNR"ParameterSize="17"SysLatencyWCLimit="20"/>

<RPName="L203_Absolute_Pressue_Altitude_Data_ADS1_PFD"NameDef="L203_Absolute_Pressue_Altitude_Data_ADS1_PFD">

<Pub_RefSrcName="L203_Absolute_Pressue_Altitude_Data"/>

</RP>

step four: exporting the generated XML format file according to the XML file format, generating a log for comparing with the previous version, automatically checking and correcting according to the correction constraint, storing, and distributing the exported file to relevant developers for use.

It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:EPub文件的移动端呈现方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!