A general processing module configuration file parsing generation method

By designing Excel tables and hash table structures to automatically generate CPM module configuration files in the IMA platform, the problems of complexity and high error rate in configuration file generation are solved, and efficient and accurate configuration file generation is achieved.

CN119883414BActive Publication Date: 2025-10-21XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411957028.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-29
Publication Date
2025-10-21
Estimated Expiration
2044-12-29

AI Technical Summary

Technical Problem

In the IMA platform, the configuration file generation process of the CPM module is complex, involving multiple configuration files, various parameters, and complex logical mapping, resulting in a high probability of manual writing errors and consuming a lot of human resources.

Method used

A parsing and generation method for a general processing module configuration file is adopted. By designing an Excel spreadsheet to fill in user requirements and interface control document information, the attribute information is extracted using a hash table structure, and configuration sub-files such as application programs, scheduling tables, and operating systems are automatically generated to finally synthesize the general processing module configuration file.

Benefits of technology

The automatic generation of CPM configuration files is realized, which reduces manual errors, saves human resources, improves generation efficiency, and ensures the correctness and consistency of configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883414B_ABST
    Figure CN119883414B_ABST
Patent Text Reader

Abstract

The application provides a general processing module configuration file analysis generation method, relates to the technical field of airborne product ground tool, and first generates a resident application configuration subfile and a scheduling table configuration subfile by analyzing an interface control document; secondly, generates an operating system configuration subfile and an application program other configuration subfile from user requirements; and finally, generates a general processing module configuration file in combination with the generated subfiles, the interface control document and user health monitoring requirements. The general processing module configuration file analysis generation method provided by the application can simultaneously create all CPM configuration files, is convenient to input, guarantees the correctness of the configuration file, reduces manual configuration, saves a large amount of human resources, reduces errors and greatly improves the efficiency of CPM configuration file generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of airborne product ground tools, and in particular provides a method for parsing and generating a configuration file of a universal processing module. Background Art

[0002] With technological advancements, the Integrated Modular Avionics (IMA) platform has evolved from traditional standalone avionics systems to integrated avionics systems, achieving a highly modular and integrated approach. The majority of equipment consists of field-replaceable modules, enabling configurable, scalable, and reconfigurable control. This also improves system health diagnostics and fault tolerance.

[0003] According to the overall design requirements of the IMA platform, the CPM module is the main data calculation device of IMA. A single aircraft is equipped with 12-20 field-replaceable Common Processing Modules (CPMs). CPM modules communicate with each other through the ARINC664 network based on configuration files. Each CPM runs the corresponding software according to the resident application configuration.

[0004] In the IMA platform, each CPM module hosts approximately ten different applications. Each resident application has its own unique configuration file, which contains port information, message information, refresh rate, and other information related to the resident application. Because resident applications run on an operating system, the operating system also has its own independent configuration. Furthermore, each CPM module generates a module configuration file based on the configuration of the resident application and the connections between CPMs. Consequently, the IMA platform can contain as many as 150-200 CPM-related configuration files.

[0005] Part of the input of the CPM configuration file comes from the interface control document released by the host, and part of the input comes from customer needs. Generating multiple CPM configuration files has become a relatively complex technical point, which involves a large number of input and output files, complex input sources, many parameter attributes, close relationships between configuration files, and a complex logical mapping and conversion process.

[0006] Therefore, it is necessary to provide a tool for systematically generating CPM configurations to solve the above problems. Summary of the Invention

[0007] The purpose of this application is to provide a method for generating and parsing CPM configuration files from interface control documents and user requirements in order to meet user configuration requirements for CPM and reduce the probability of errors in manually written configuration files.

[0008] To achieve the above object, the present invention adopts the following technical solution: a method for parsing and generating a configuration file of a general processing module, the method comprising:

[0009] S1: Generate application configuration sub-files for all applications residing on the CPM according to the interface control document;

[0010] S2: Generate a schedule configuration sub-file for each application resident on the CPM according to the interface control document;

[0011] S3: Design operating system requirements and fill in an Excel sheet. Fill in the operating system requirements in the Excel sheet and generate an operating system configuration sub-file.

[0012] S4: Design and fill in the Excel sheet with other configuration information requirements for the application, fill in the Excel sheet with other configuration information requirements for the application and generate a configuration sub-file for other configuration information of the application;

[0013] S5: Design health monitoring requirements and fill in the Excel sheet. Fill in the user requirements in the Excel sheet.

[0014] S6: Generate a general processing module configuration file by filling out an Excel sheet based on the application configuration subfile generated by S1, the schedule configuration subfile generated by S2, the operating system configuration subfile generated by S3, the application other configuration information configuration subfile generated by S4, the interface control document, and the health monitoring requirements filled out in S5.

[0015] The method for parsing and generating a general processing module configuration file provided by the present invention also has the following technical features: S1 includes:

[0016] S1.1: Analyze the attribute information contained in the application configuration sub-file, wherein the attribute information includes application memory size attribute information and application port attribute information;

[0017] S1.2: Traverse the interface control document and obtain the attribute information required by S1.1 using a hash table-based data structure in the control document;

[0018] S1.3: Generate application configuration sub-file.

[0019] The method for parsing and generating a general processing module configuration file provided by the present invention also has the following technical features: S2 includes:

[0020] S2.1: Analyze the schedule attribute information contained in the schedule configuration subfile;

[0021] S2.2: traverse the interface control document and obtain the schedule attribute information required by S2.1 using a hash table-based data structure in the control document;

[0022] S2.3: Generate application configuration sub-file.

[0023] The method for parsing and generating a general processing module configuration file provided by the present invention also has the following technical features: S3 includes:

[0024] S3.1: Analyze core operating system configuration attribute information and partition operating system configuration attribute information;

[0025] S3.2: Design an Excel spreadsheet based on the attribute information obtained in S3.1. The Excel spreadsheet includes the attribute information name, attribute information description, and attribute information constraints.

[0026] S3.3: Design an Excel spreadsheet based on the attribute information obtained in S3.2 to generate an operating system configuration subfile.

[0027] The method for parsing and generating a general processing module configuration file provided by the present invention also has the following technical features: the core operating system configuration attribute information includes core configuration information, core operating system memory size configuration information and hardware configuration information; the partition operating system configuration attribute information includes shared library configuration information.

[0028] The method for parsing and generating a general processing module configuration file provided by the present invention also has the following technical features: S4 includes:

[0029] S4.1: Analyze the attribute information required by the application's other configuration information configuration subfile, which includes application initialization attribute information, application process attribute information, and schedule table switching attribute information.

[0030] S4.2: Design an Excel spreadsheet based on the attribute information required to configure the sub-file based on the other configuration information of the application obtained in S4.1. The Excel spreadsheet includes the attribute information name, attribute information description, and attribute information constraint conditions;

[0031] S4.3: Design an Excel spreadsheet based on the attribute information obtained in 4.2 to generate other configuration sub-files of the application.

[0032] The method for parsing and generating a general processing module configuration file provided by the present invention further has the following technical features: S6 includes:

[0033] S6.1: Create a general processing module configuration file root node and generate a core operating system subnode based on the core operating system configuration subfile;

[0034] S6.2: Generate application subnodes based on application configuration subfiles;

[0035] S6.3: Generate a partition operating system subnode according to the partition operating system configuration subfile;

[0036] S6.4: Generate partition application sub-nodes based on other configuration sub-files of the application;

[0037] S6.5: Generate a virtual port subnode based on the port name in the application configuration subfile and the interface control document;

[0038] S6.6: Generate a connection relationship subnode based on the application configuration subfile and the virtual port subnode information generated in S6.5;

[0039] S6.7: Generate a schedule table subnode according to the schedule table configuration subfile information;

[0040] S6.8: Fill in the Excel table according to the health monitoring requirements to generate health monitoring sub-nodes.

[0041] Beneficial effects

[0042] The method for parsing and generating a universal processing module configuration file provided by the present invention can simultaneously create all CPM configuration files, and is easy to input, thereby ensuring the correctness of the configuration files, reducing manual configuration, saving a large amount of human resources, reducing errors, and greatly improving the efficiency of CPM configuration file generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 A flowchart of a method for parsing and generating a configuration file for a general processing module provided in an embodiment of the present invention;

[0045] Figure 2 This is an architectural diagram of a method for parsing and generating a general processing module configuration file provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present application is further described in detail below with reference to the accompanying drawings and examples. However, it should be noted that these embodiments are not limitations of the present application, and any equivalent transformations or substitutions in functions, methods, or structures made by ordinary technicians in this field based on these embodiments are within the scope of protection of the present application.

[0047] In the description of the embodiments of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the creation of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the creation of the present application.

[0048] Furthermore, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified with "first," "second," etc., may explicitly or implicitly include one or more of the features. In the description of the inventions of this application, unless otherwise specified, "plurality" means two or more.

[0049] The terms "mounted," "connected," and "connected" should be understood broadly. For example, they can refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediary; and internal communication between two components. A person of ordinary skill in the art will understand the specific meanings of these terms in the context of this application based on specific circumstances.

[0050] The interface control document is a collection of XML files. The interface control document usually contains information about each subsystem's hardware, resident applications, resident functions, logical buses, and network resource configurations. Figure 1-2 As shown, a method for parsing and generating a general processing module configuration file is provided, the method comprising:

[0051] S1: Generate application configuration subfiles for all applications residing on the CPM based on the interface control document. Each application's corresponding configuration file is configured with the required memory, including the code segment, data segment, and BSS segment (uninitialized global data segment), as well as the application's transceiver port information, message information, port refresh rate, and other information.

[0052] S2: Generates a schedule configuration subfile for each resident application on a CPM based on the interface control document. This subfile configures the order and runtime of the resident applications. Different applications run in each aircraft state, with a different number of resident applications on each CPM and different runtimes for each application. Each CPM module runs a partitioned application at the same time, so each CPM module has its own schedule. The schedule configuration file includes information such as the schedule ID, resident application name, and resident application runtime.

[0053] S3: Design operating system requirements and fill in an Excel sheet. Fill in the operating system requirements in the Excel sheet and generate an operating system configuration sub-file.

[0054] S4: Design and fill in the Excel sheet with other configuration information requirements for the application, fill in the Excel sheet with other configuration information requirements for the application and generate a configuration sub-file for other configuration information of the application;

[0055] S5: Design health monitoring requirements and fill in the Excel sheet. Fill in the user requirements in the Excel sheet.

[0056] S6: Generate a general processing module configuration file by filling out an Excel sheet based on the application configuration subfile generated by S1, the schedule configuration subfile generated by S2, the operating system configuration subfile generated by S3, the application other configuration information configuration subfile generated by S4, the interface control document, and the health monitoring requirements filled out in S5.

[0057] In some embodiments, the S1 includes:

[0058] S1.1: Analyze the configuration requirements of the general processing module. The application configuration sub-file should have an application memory size sub-node and an application port sub-node. The application memory size sub-node contains the memory requirements of the resident application for the CPM. The application port sub-node contains the configuration of the port information in the resident application. The application port is divided into QueuingPort and SamplingPort.

[0059] The application memory size node configuration information table is shown in Table 1:

[0060] Table 1 Application memory size node configuration information table

[0061]

[0062] The configuration information of the application port subnode is shown in Table 2:

[0063] Table 2 Application port node configuration information table

[0064]

[0065] S1.2: Traverse the interface control document and, using a hash table-based data structure, retrieve the application memory size node configuration information from S1.1 in the various XML files in the ATA 42 IMA\Hosted Applications\Classes folder within the interface control document. This method significantly improves the efficiency of searching for attributes in XML files.

[0066] S1.3: Traverse the interface control document and obtain the application port node configuration information in S1.1 in the XML file in different XML files under the ATA 42 IMA\Hosted Applications\Instance folder in the interface control document using a hash table-based data structure to generate an application configuration sub-file.

[0067] In some embodiments, the S2 includes:

[0068] S2.1: Analyze the schedule table attribute information contained in the schedule table configuration sub-file. The schedule table configuration sub-file configuration information is shown in Table 3 below:

[0069] Table 3 Schedule table configuration sub-file configuration information table

[0070] property definition Name Schedule name. Different aircraft states have different schedules. PartitionName Resident application partition name Duration Application runtime ;

[0071] S2.2: Traverse the interface control document and obtain the attribute information in S2.1 in the XML files APR_LEFT.xml and APR_LEFT.xml in the ATA 42IMA\Hardware\Instances folder of the interface control document using a hash table-based data structure.

[0072] S2.3: Generate application configuration sub-file.

[0073] In some embodiments, the S3 includes:

[0074] S3.1: Analyze core operating system configuration attribute information and partition operating system configuration attribute information;

[0075] S3.2: Design an Excel spreadsheet based on the attribute information obtained in S3.1. The Excel spreadsheet includes the attribute information name, attribute information description, and attribute information constraints.

[0076] S3.3: Design an Excel spreadsheet based on the attribute information obtained in S3.2 to generate an operating system configuration subfile.

[0077] In the above embodiment, since resident applications run on an operating system, each resident application has different requirements for operating system resources. However, the interface control document does not include the resident application's configuration of the operating system. Therefore, an Excel document is created to allow users to customize these requirements. Operating systems are divided into core operating systems and partitioned operating systems, so different requirements forms need to be constructed and filled in.

[0078] In some embodiments, the core operating system configuration attribute information includes core configuration information, core operating system memory size configuration information, and hardware configuration information; and the partition operating system configuration attribute information includes shared library configuration information.

[0079] In some embodiments, fill in the configuration under the core configuration sub-node to define the parameters of the core operating system, including system clock frequency, non-safe system call waiting time, whether to prohibit the core operating system dynamic partition space, partition logical address start address, operating system logical address start address, etc. The core configuration node configuration information is as shown in Table 4 below:

[0080] Table 4 Core configuration node configuration information table

[0081] property definition sysClkRateHz System clock frequency memoryAllocationDisabled Disable dynamic space allocation, true(1) or false(0) partitionVirtualAddress Partition logical address starting address. kernelVirtualAddress Operating system logical address starting address addressSpaceSize Logical space size. addressSpaceRegionAllocationUnit The smallest logical space allocation unit.

[0082] Fill in the configuration under the Core OS Memory Size subnode to describe the size of each segment of the core OS, including the code segment, data segment, read-only data segment, and BSS segment. The Core OS Memory Size node configuration information is shown in Table 5 below:

[0083] Table 5 Core operating system memory size node configuration information table

[0084] property meaning MemorySizeBss BSS segment size MemorySizeData Data segment size MemorySizeRoData Read-only data segment size MemorySizeText Code segment size

[0085] As part of the core operating system configuration, physical memory configuration requires the design of configuration information under the hardware configuration sub-node. The configuration information of the hardware configuration node is shown in Table 6 below:

[0086] Table 6 Hardware configuration node configuration information table

[0087]

[0088] The root node of the partition operating system configuration subfile is the shared library configuration, which defines the properties of the shared library. Shared libraries are a way to implement code sharing between multiple applications. Shared libraries are not dynamically loaded. At system startup, all software must be loaded into a fixed and non-overlapping memory space; at module startup, all libraries must be loaded into the memory space. Code that multiple applications need to access can be designed as a shared library. In most cases, the shared libraries required by all partitions in a module are included in the partition operating system. The configuration information of the shared library configuration node is as follows:

[0089] Table 7 Shared library configuration node configuration information table

[0090] property meaning SystemSharedLibrary Whether to configure system shared libraries. VirtualAddress Logical start address of the shared library MemorySizeText Shared library code segment size MemorySizeRoData Shared library read-only data segment size MemorySizeData Shared library data segment size MemorySizeBss Shared library BSS segment size

[0091] In some embodiments, the S4 includes:

[0092] S4.1: Analyze the attribute information required by the application's other configuration information configuration sub-file. The attribute information required by the application's other configuration information configuration sub-file includes application initialization attribute information, application process attribute information, and schedule table switching attribute information. The configuration information tables for each information are shown in Tables 8, 9, and 10 below:

[0093] Table 8 Application initialization attribute information configuration table

[0094]

[0095]

[0096] Table 9 Application process attribute information configuration table

[0097] Attribute Name Attribute Explanation nProc Number of processes in a partition; value range [0,1024] nBlackBoard Number of blackboards in a partition; value range [0,512] nEvent Number of events in a partition; value range [0,512] nBuffer Number of buffers in a partition; value range [0,512] nSemaphore Number of semaphores in a partition; value range [0,512]

[0098] Table 10 Scheduling table switching attribute information configuration table

[0099]

[0100] S4.2: Design an Excel spreadsheet based on the attribute information required to configure the sub-file based on the other configuration information of the application obtained in S4.1. The Excel spreadsheet includes the attribute information name, attribute information description, and attribute information constraint conditions;

[0101] S4.3: Design an Excel spreadsheet based on the attribute information obtained in 4.2 to generate other configuration sub-files of the application.

[0102] In some embodiments, the S6 includes:

[0103] S6.1: Create a general processing module configuration file root node and generate a core operating system subnode based on the core operating system configuration subfile;

[0104] S6.2: Generate application subnodes based on application configuration subfiles;

[0105] S6.3: Generate a partition operating system subnode according to the partition operating system configuration subfile;

[0106] S6.4: Generate a partition application subnode based on the other configuration subfiles of the application. Based on the port name in each application configuration subfile, search for the corresponding virtual port ID in VirtualLinks.xml in the interface control document. Fill in the corresponding virtual port attributes based on the MessageSize, Direction, Protocol, and QueueLength attributes of the port in the application configuration subfile.

[0107] S6.5: Generate a virtual port subnode based on the port name in the application configuration subfile and the interface control document;

[0108] S6.6: Generate a connection relationship subnode based on the application configuration subfile and the virtual port subnode information generated in S6.5;

[0109] S6.7: Generate a schedule table subnode according to the schedule table configuration subfile information;

[0110] S6.8: Fill in the Excel table according to the health monitoring requirements to generate health monitoring sub-nodes. The health monitoring configuration information table is shown in Table 11: Health Monitoring Configuration Information Table:

[0111] Table 11 Health monitoring configuration information

[0112]

[0113] In the method provided in the above embodiment, the CPM module configuration file can automatically create all CPM configuration files by importing the interface control document and user requirements (Excel spreadsheet), including the application software configuration file, operating system configuration file, and CPM module configuration file resident on the CPM, thereby ensuring the consistency of the parsed configuration files and the interface control document. At the same time, for user-defined requirements, a concise and intuitive Excel spreadsheet is provided to the user for easy filling. As the main device for data calculation on the IMA platform, the CPM module can quickly and flexibly modify the CPM module properties through the configuration file. At the same time, the use of the configuration file reduces a large amount of code development work for developers. When the requirements change, the settings of the CPM module can be quickly iterated by changing the relevant properties of the configuration file.

[0114] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application. The above description is merely a preferred embodiment of the present application. It should be noted that those skilled in the art can make various improvements and variations without departing from the technical principles of the present application, and such improvements and variations shall also be considered within the scope of protection of the present application.

Claims

1. A method for parsing and generating a configuration file of a general processing module, characterized in that: The method comprises: S1: Generate application configuration sub-files for all applications residing on the CPM according to the interface control document; S2: Generate a schedule configuration sub-file for each application resident on the CPM according to the interface control document; S3: Design operating system requirements and fill in an Excel sheet. Fill in the operating system requirements in the Excel sheet and generate an operating system configuration sub-file. S4: Design and fill in the Excel sheet with other configuration information requirements for the application, fill in the Excel sheet with other configuration information requirements for the application and generate a configuration sub-file for other configuration information of the application; S5: Design health monitoring requirements and fill in the Excel sheet. Fill in the user requirements in the Excel sheet. S6: Generate a general processing module configuration file by filling in an Excel sheet based on the application configuration sub-file generated by S1, the schedule configuration sub-file generated by S2, the operating system configuration sub-file generated by S3, the application other configuration information configuration sub-file generated by S4, the interface control document, and the health monitoring requirements filled in by S5. The S6 includes: S6.1: Create a general processing module configuration file root node and generate a core operating system subnode based on the core operating system configuration subfile; S6.2: Generate application subnodes based on application configuration subfiles; S6.3: Generate a partition operating system subnode according to the partition operating system configuration subfile; S6.4: Generate partition application sub-nodes based on other configuration sub-files of the application; S6.5: Generate a virtual port subnode based on the port name in the application configuration subfile and the interface control document; S6.6: Generate a connection relationship subnode based on the application configuration subfile and the virtual port subnode information generated in S6.5; S6.7: Generate a schedule table subnode according to the schedule table configuration subfile information; S6.8: Fill in the Excel table according to the health monitoring requirements to generate health monitoring sub-nodes.

2. The method for parsing and generating a configuration file of a general processing module according to claim 1, characterized in that: Said S1 comprises: S1.1: Analyze the attribute information contained in the application configuration sub-file, wherein the attribute information includes application memory size attribute information and application port attribute information; S1.2: Traverse the interface control document and obtain the attribute information required by S1.1 using a hash table-based data structure in the control document; S1.3: Generate application configuration sub-file.

3. The method for parsing and generating a configuration file of a general processing module according to claim 1, characterized in that: The S2 includes: S2.1: Analyze the schedule attribute information contained in the schedule configuration subfile; S2.2: traverse the interface control document and obtain the schedule attribute information required by S2.1 using a hash table-based data structure in the control document; S2.3: Generate application configuration sub-file.

4. The method for parsing and generating a configuration file of a general processing module according to claim 1, characterized in that: The S3 includes: S3.1: Analyze core operating system configuration attribute information and partition operating system configuration attribute information; S3.2: Design an Excel spreadsheet based on the attribute information obtained in S3.

1. The Excel spreadsheet includes the attribute information name, attribute information description, and attribute information constraints. S3.3: Design an Excel spreadsheet based on the attribute information obtained in S3.2 to generate an operating system configuration subfile.

5. The method for parsing and generating a configuration file of a general processing module according to claim 4, characterized in that: The core operating system configuration attribute information includes core configuration information, core operating system memory size configuration information, and hardware configuration information; the partition operating system configuration attribute information includes shared library configuration information.

6. The method for parsing and generating a configuration file of a general processing module according to claim 1, characterized in that: The S4 includes: S4.1: Analyze the attribute information required by the application's other configuration information configuration subfile, which includes application initialization attribute information, application process attribute information, and schedule table switching attribute information. S4.2: Design an Excel spreadsheet based on the attribute information required to configure the sub-file based on the other configuration information of the application obtained in S4.

1. The Excel spreadsheet includes the attribute information name, attribute information description, and attribute information constraint conditions; S4.3: Design an Excel spreadsheet based on the attribute information obtained in 4.2 to generate other configuration sub-files of the application.

Citation Information

Patent Citations

  • Table format customizable Excel table analysis method

    CN103150380A

  • Configuration file generation method and device, electronic equipment and storage medium

    CN116541093A