Automatic integration method of IO signals based on FADEC operating system

By using automated methods to parse and generate IO signal integration for the FADEC operating system, the problem of low efficiency of traditional manual integration is solved, efficient and accurate IO signal integration is achieved, and software debugging and maintenance efficiency is improved.

CN114860596BActive Publication Date: 2025-09-05CHINA AERONAUTICAL CONTROL SYST RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210491583.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-09-05
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

The traditional manual integration of IO signals in existing FADEC software results in low work efficiency and is prone to low-level errors, affecting software debugging efficiency and maintainability.

Method used

Eclipse CDT is used to parse the As_interface.h file to generate a linked list, which is then converted into a syntax tree using a recursive algorithm. IO signal integration records are automatically generated through depth-first search, and IO signals are automatically integrated using Excel templates.

Benefits of technology

It improves the work efficiency of IO signal integration, reduces low-level errors, and improves the accuracy and maintainability of software debugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860596B_ABST
    Figure CN114860596B_ABST
Patent Text Reader

Abstract

The present invention discloses an automated integration method for IO signals based on a FADEC operating system. The method comprises the following steps: using Eclipse CDT to parse all structure variables in the As_interface.h file and store them in a linked list A; extracting valid information from each element in the linked list and storing the information in a new linked list B; using a recursive algorithm to convert linked list B into n syntax trees based on pre-defined structure variable names A0 to An-1 for signal interaction between the AS and the OS, with the root nodes of the syntax trees being A0 to An-1, respectively; performing a depth-first search on the generated n syntax trees to automatically generate all signal names; and generating an IO signal integration record file based on a pre-defined IO signal integration template. The method automatically converts nested structures into syntax trees, saving manual time. The method also performs a depth-first search on the syntax trees to automatically generate all IO signals, resulting in a concise and accurate method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an automated integration technology for IO signals of a FADEC operating system, in particular to an automated integration method for IO signals based on a FADEC operating system. Background Art

[0002] Aircraft engine control software (FADEC) is typically coded in C. Currently, most FADEC software consists of operating system software (OS) and application layer software (AS). The OS and AS software each perform their respective functions and share and interact with each other through the As_interface.h interface file to ensure the normal and stable operation of the FADEC software. The As_interface.h interface file contains power-on self-test signals (CPU math and logic operation self-test, RAM self-test, FLASH self-test, watchdog self-test, CPU timer self-test), analog input signals, digital input signals, analog output signals, digital output signals, and communication signals. Due to the large number of signal types and signals, traditional manual integration of IO signals results in low efficiency and the potential for various low-level errors, which can put pressure on software debugging. Therefore, the tooling and automation of IO signal integration technology can significantly improve software debugging efficiency and enhance maintainability. Summary of the Invention

[0003] Purpose of the invention: The purpose of the present invention is to provide an automated integration method for IO signals based on a FADEC operating system, thereby improving the efficiency of software debugging.

[0004] Technical solution: The present invention provides an automated integration method for IO signals based on a FADEC operating system, comprising the following steps:

[0005] (1) Use Eclipse CDT to parse all the structure variables in the As_interface.h file and store them in a linked list A. Each element in the linked list contains all the information of the corresponding structure variable.

[0006] (2) Extract the valid information of each element in the linked list, including the variable name, variable type, and sub-element linked list of the structure variable, and store this information in the new linked list B;

[0007] (3) Based on the structure variable names A0 to An-1 that are pre-defined for signal interaction between AS and OS, a recursive algorithm is used to convert the linked list B into n syntax trees, with the root nodes of the syntax trees being A0 to An-1 in order;

[0008] (4) Perform depth-first search on the generated n syntax trees to automatically generate all signal names;

[0009] (5) Generate an IO signal integration record file based on the pre-defined IO signal integration template.

[0010] The step (1) is specifically as follows:

[0011] (1.1) Use CDT to parse all variables (integer, floating-point, enumeration, etc.) defined in the As_interface.h interface file, including variables of basic data types, macro definitions, and user-defined structure variables;

[0012] (1.2) Extract the structure variables defined by the user and store the structure variable information to form a linked list A.

[0013] The step (2) is specifically as follows:

[0014] (2.1) Extract the valid information of each element in the linked list. The valid information includes the variable name, variable type, and sub-element linked list of the structure variable. The sub-element linked list consists of all sub-variables in the structure. The information of each sub-variable includes the sub-variable name, sub-variable type, and sub-variable size (if the sub-variable is an array, it indicates the array size; otherwise, the value is 0);

[0015] (2.2) The valid information of the extracted structure variables is stored to form a linked list B.

[0016] The step (5) is specifically as follows:

[0017] (5.1) The pre-established IO signal integration template is a standard IO signal integration record template, which is an Excel file;

[0018] (5.2) Automatically generate IO signal integration records based on the IO signal in step (4) according to the template.

[0019] A computer storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned automated integration method of IO signals based on a FADEC operating system.

[0020] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned automated integration method for IO signals based on a FADEC operating system is implemented.

[0021] Beneficial effects: Compared with the existing technology, the present invention has the following advantages: 1. It automatically converts nested structures into syntax trees, thereby saving a lot of manual time; 2. It automatically generates all IO signals through depth-first search of the syntax tree, which is concise and accurate, and avoids low-level errors caused by manually generated IO signals; 3. It automatically generates IO signal integration record files according to the established integration record template, greatly improving the work efficiency of manual integration and saving manual time. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of the steps of the present invention;

[0023] Figure 2 It is the structural diagram of IO signal; Figure 2 a is the data structure diagram of IO signal, Figure 2 b is the tree structure diagram of IO signal;

[0024] Figure 3 It is the IO signal integrated record file diagram; Figure 3 a is the IO signal integration activity diagram, Figure 3 b is the IO signal integration result diagram. DETAILED DESCRIPTION

[0025] The technical solution of the present invention will be further described below with reference to the accompanying drawings.

[0026] like Figure 1 As shown, an automated integration method of IO signals based on a FADEC operating system includes the following steps:

[0027] (1) Use Eclipse CDT to parse all the structure variables in the As_interface.h file and store them in a linked list A. Each element in the linked list contains all the information of the corresponding structure variable.

[0028] (1.1) Use CDT to parse all defined variables (integer, floating point, enumeration, etc.) in the As_interface.h interface file, including variables of basic data types, macro definitions, and user-defined structure variables, such as Figure 2 As shown in a;

[0029] (1.2) Extract the structure variables defined by the user and store the structure variable information to form a linked list A.

[0030] (2) Extract the valid information of each element in the linked list, including the variable name, variable type, and sub-element linked list of the structure variable, and store this information in the new linked list B;

[0031] (2.1) Extract the valid information of each element in the linked list. The valid information includes the variable name, variable type, and sub-element linked list of the structure variable. The sub-element linked list consists of all sub-variables in the structure. The information of each sub-variable includes the sub-variable name, sub-variable type, and sub-variable size (if the sub-variable is an array, it indicates the array size; otherwise, the value is 0);

[0032] (2.2) The valid information of the extracted structure variables is stored to form a linked list B.

[0033] (3) The number of structure variables used for signal interaction between AS and OS is fixed at 4, and their variable names are: AS_IEI_RUN, AS_IEI_POW, AS_IEO_RUN, AS_IEO_POW. The structure member types in these 4 structure variables are basic data types and user-defined structure types. Therefore, there is a nested structure in the structure variables. Based on these four structure variable names, a recursive algorithm is used to convert the linked list B into 4 syntax trees. The root node of each syntax tree is these 4 structure variables, such as Figure 2 As shown in b.

[0034] (4) Use the depth-first search algorithm to search the four syntax trees to obtain all signals. The definition of the signal name is the superposition of the parent node variable name of the signal and the signal variable name.

[0035] (5) Generate an IO signal integration record file based on the pre-defined IO signal integration template.

[0036] (5.1) The pre-established IO signal integration template is a standard IO signal integration record template, which is an Excel file;

[0037] (5.2) The IO signal in step (4) is automatically generated into an IO signal integration record according to the template, such as Figure 3 shown.

[0038] A computer storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned automated integration method of IO signals based on a FADEC operating system.

[0039] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned automated integration method for IO signals based on a FADEC operating system is implemented.

Claims

1. An automated integration method for IO signals based on the aircraft engine control software FADEC operating system, characterized in that: The following steps are involved: (1) Use Eclipse CDT to parse all variables defined in the As_interface.h file, including variables of basic data types, macro definitions, and user-defined structure variables. Extract the user-defined structure variables and store the structure variable information to form a linked list A. Each element in the linked list A contains all the information of the corresponding structure variable. (2) extracting the valid information of each element in the linked list, which includes the variable name, variable type, and sub-element linked list of the structure variable. The sub-element linked list consists of all sub-variables in the structure, and each sub-variable information includes the sub-variable name, sub-variable type, and sub-variable size; storing the extracted valid information of the structure variable to form linked list B; (3) Based on the structure variable names A0 to An-1 that are pre-defined for signal interaction between the application layer software AS and the operating system software OS, a recursive algorithm is used to convert the linked list B into n syntax trees, with the root nodes of the syntax trees being A0 to An-1 in order; (4) Perform depth-first search on the generated n syntax trees to automatically generate all signal names; (5) Generate an IO signal integration record file based on the pre-defined IO signal integration template.

2. The automated integration method for IO signals based on the aircraft engine control software FADEC operating system according to claim 1, characterized in that: The step (5) is specifically as follows: (5.1) The pre-established IO signal integration template is a standard IO signal integration record template, which is an Excel file; (5.2) Automatically generate IO signal integration records based on the IO signal in step (4) according to the template.

3. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program realizes an automated integration method of IO signals based on an aircraft engine control software FADEC operating system according to any one of claims 1 to 2.

4. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for automatically integrating IO signals based on the aircraft engine control software FADEC operating system according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • IO and control logic configuration integration method based on JSON

    CN111124384A

  • Developing method of portable avionics system test equipment

    KR1020130116081A