An airborne embedded software visualized integration method
By employing visual selection and automated integration methods, the problems of time-consuming and error-prone manual modifications in airborne embedded software development have been solved, enabling rapid software prototyping and improved reusability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-09
- Publication Date
- 2026-03-27
AI Technical Summary
In airborne embedded software development, existing technologies require manual modification and coding, which is time-consuming, error-prone, and affects software reuse efficiency.
By visually selecting standard modules and configuring parameters, the system automatically generates software assembly models, downloads code, and integrates modules with the framework, simplifying the module integration process.
It enables rapid software prototyping, improves the reuse efficiency of standard airborne embedded software modules, and reduces the integration difficulty requiring manual intervention.
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the field of computer software development, and particularly relates to a method for visualizing and integrating airborne embedded software. BACKGROUND
[0002] In the development of airborne embedded software, in order to improve software reuse rate and reduce the problem of repeated development of the same function, existing modules need to be reused, and developers usually need to copy module codes, manually make adaptive changes to the module codes, assign parameters, and write interface conversion codes for each module, and finally manually insert the codes into framework codes. This not only takes a long time, but also is prone to errors in manual modification and code writing, which results in the inability to quickly form a software prototype and affects software reuse efficiency. SUMMARY
[0003] In order to overcome the shortcomings of the prior art, the present application provides a method for visualizing and integrating airborne embedded software. Standard modules that need to be reused are selected in a visual manner, and module parameter information and general software framework parameters are configured. A software assembly model is automatically generated, software framework codes and selected standard module codes are automatically downloaded from a product line warehouse based on the assembly model, module parameter injection is automatically completed, and modules are assembled into a general software framework, so as to automatically integrate standard modules and the general software framework and quickly form a software prototype. The present application reduces the difficulty of module integration and improves the reuse efficiency of airborne embedded software standard modules.
[0004] A method for visualizing and integrating airborne embedded software, characterized in that the steps are as follows:
[0005] Step 1: search and browse software frameworks and standard modules contained in a data warehouse, drag and drop the required frameworks and standard modules into an assembly diagram, display the selected standard modules in different graphical elements, and display the parameters that need to be configured for the software frameworks and standard modules in the form of attribute boxes;
[0006] Step 2: fill in the configuration parameters of the software frameworks and standard modules according to actual project requirements, and save the parameter values;
[0007] Step 3: analyze the dependencies of the selected standard modules, and if there are dependent standard modules that have not been selected, prompt and pull the related dependent standard modules from the warehouse;
[0008] Step 4: Load the common structure used between the external ICD and the standard module into two tables respectively, and fill in the information required for interface conversion, including variable type, variable unit, variable range, scale attribute, input / output attribute, establish the mapping between the variables in the external ICD and the variables in the common structure through association, and save the mapping information between the established variables as a mapping relationship table;
[0009] Step 5: Traverse the mapping relationship information between the variables in the mapping relationship table in step 4, generate interface conversion code, the specific method is: first, determine the data flow direction of conversion according to the input / output attribute of the variable, if the input / output attribute of the variable is inconsistent, prompt the mapping information error, do not convert, for input type, the data flow direction is to convert the external ICD variable to the common structure variable, for output type, the data flow direction is to convert the common structure variable to the external ICD variable; determine whether to perform scale conversion according to the variable type and scale attribute, if the variable types are consistent, no scale conversion is performed, if the variable types are inconsistent, and the scale attribute MSB or LSB is not 0, the common scale conversion function is called, and the MSB, LSB values are passed to the scale conversion function as parameters; determine whether to perform unit conversion according to the variable unit attribute, if the variable units are consistent, no unit conversion is performed, if the variable units are inconsistent, the common unit conversion function is called, and the unit attribute value is passed to the unit conversion function as a parameter; determine whether to perform clipping operation according to the variable range and input / output attribute, for input type, if the range attribute of the common structure variable is not empty, the common clipping function is called, and the range value of the common structure variable is passed to the clipping function to clip the external ICD variable, for output type, if the range attribute of the external ICD variable is not empty, the common clipping function is called, and the range value of the external ICD variable is passed to the clipping function to clip the common structure variable;
[0010] Step 6: Create a software assembly model, including framework name, framework configuration parameter, standard module list, module configuration parameter list; get the software framework name selected in step 1, and assign it to the framework name attribute of the software assembly model; get the unique identification number and unique entry function of all standard modules selected in steps 1 and 3, and add the standard modules to the standard module list of the software assembly model in order according to the arrangement order of the standard modules in the framework; get the software framework parameters saved in step 2, and assign them to the framework configuration parameter attribute of the software assembly model; get the standard module configuration parameters saved in step 2, and assign them to the corresponding module configuration parameter list in the software assembly model;
[0011] Step 7: a new project directory is created, based on the software assembly model information, the software framework code and the selected standard module code are downloaded to the project directory, according to the framework parameter attribute of the software assembly model, the parameter macro defined in all the codes in the project directory is searched, and the macro definition value is replaced with the framework parameter value; according to the module configuration parameter list of the software assembly model, the parameter macro defined in all the codes in the project directory is searched, and the macro definition value is replaced with the module configuration parameter value, and the parameter injection is completed; according to the arrangement order of the standard module in the standard module list of the software assembly model, the unique entry function of the standard module is inserted into the main task in the general software framework in sequence, and the interface conversion code generated in step 5 is inserted into the project code, and the automatic integration of the software code is completed.
[0012] The beneficial effects of the present application are: a visual configuration method is provided, and the integration of the code is automatically completed, and the reuse process of the standard module is simplified. DETAILED DESCRIPTION
[0013] The present application is further described below in conjunction with embodiments, and the present application includes but is not limited to the following embodiments.
[0014] The present application provides a kind of airborne embedded software visual integration method, and its specific implementation process is as follows:
[0015] 1, visual selection of general software framework and standard module
[0016] Search the software framework and standard module contained in the data warehouse, and drag the required framework and standard module into the assembly diagram by dragging, to display the selected standard module in different graphical elements, and display the parameters required to be configured by the software framework and standard module in the form of attribute box.
[0017] 2, parameter configuration of general software framework and standard module
[0018] According to the actual demand of project, the configuration parameters of software framework and standard module are filled in, and the parameter value is saved.
[0019] 3, automatic analysis of standard module dependency relationship
[0020] The selected standard module is analyzed, if there is a dependent standard module that is not selected, prompt is given, and the related dependent standard module is pulled from the warehouse.
[0021] 4, mapping relationship table is established
[0022] The general structure used between the external ICD and the standard module is loaded into two tables respectively, and the information required for interface conversion is filled in, including variable type, variable unit, variable range, scale attribute (MSB, LSB), input / output attribute, the mapping between the variables in the external ICD and the variables in the general structure is established through association, and the mapping information between the established variables is saved as a mapping relationship table;
[0023] 5. Interface adaptation based on the mapping relationship table
[0024] The mapping relationship information between the variables in the mapping relationship table in step 4 is traversed to generate interface conversion code, and the specific method is as follows: first, the data flow direction of conversion is determined according to the input / output attribute of the variable, if the input / output attribute of the variable is inconsistent, the mapping information is prompted to be incorrect, and no conversion is performed, for the input type, the data flow direction is to convert the external ICD variable into the general structure variable, for the output type, the data flow direction is to convert the general structure variable into the external ICD variable; whether scale conversion is performed is determined according to the variable type and the scale attribute, if the variable types are consistent, no scale conversion is performed, if the variable types are inconsistent and the scale attribute MSB or LSB is not 0, a general scale conversion function is called, and the MSB and LSB values are passed to the scale conversion function as parameters; whether unit conversion is performed is determined according to the variable unit attribute, if the variable units are consistent, no unit conversion is performed, if the variable units are inconsistent, a general unit conversion function is called, and the unit attribute value is passed to the unit conversion function as a parameter; whether a limiting operation is performed is determined according to the variable range and the input / output attribute, for the input type, if the range attribute of the general structure variable is not empty, a general limiting function is called, and the range value of the general structure variable is passed to the limiting function to perform a limiting operation on the external ICD variable, for the output type, if the range attribute of the external ICD variable is not empty, a general limiting function is called, and the range value of the external ICD variable is passed to the limiting function to perform a limiting operation on the general structure variable.
[0025] 6. Creating a software assembly model
[0026] The framework name, framework configuration parameters, standard module list, and module configuration parameter list are included; the software framework name selected in step 1 is obtained and assigned to the framework name attribute of the software assembly model; the unique identification numbers and unique entry functions of all the standard modules selected in steps 1 and 3 are obtained, and the standard modules are sequentially added to the standard module list of the software assembly model according to the arrangement order of the standard modules in the framework; the software framework parameters saved in step 2 are obtained and assigned to the framework configuration parameter attribute of the software assembly model; and the standard module configuration parameters saved in step 2 are obtained and assigned to the corresponding module configuration parameter list in the software assembly model.
[0027] 7. Automatic integration of code based on assembly model
[0028] New project directory, based on software assembly model information, software framework code and selected standard module code downloaded to the project directory, according to the framework parameter attribute of software assembly model, search the parameter macro defined in all code under the project directory, replace the value defined by the macro with the framework parameter value; according to the module configuration parameter list of software assembly model, search the parameter macro defined in all code under the project directory, replace the value defined by the macro with the module configuration parameter value, complete parameter injection; according to the arrangement order of standard module in the standard module list of software assembly model, insert the unique entry function of standard module into the main task in the general software framework in order, at the same time, insert the interface conversion code generated in step 5 into the project code, realize the automatic integration of software code.
Claims
1. An airborne embedded software visualized integration method, characterized in that The steps are as follows: Step 1: search the software framework and standard module contained in the data warehouse, drag the required framework and standard module into the assembly drawing by dragging, display the selected standard module in different graphical elements, and display the parameters required for configuration of the software framework and standard module in the form of attribute box; Step 2: according to the actual demand of the project, fill in the configuration parameters of the software framework and standard module, and save the parameter values; Step 3: analyze the dependency of the selected standard module, if there is a dependent standard module that has not been selected, prompt and pull the related dependent standard module from the warehouse; Step 4: load the general structure used between the external ICD and the standard module into two tables respectively, and fill in the information required for interface conversion, including variable type, variable unit, variable range, scale attribute, input / output attribute, establish the mapping between the variables in the external ICD and the variables in the general structure by association, and save the mapping information between the variables as a mapping relationship table; Step 5: traverse the mapping relationship information between the variables in step 4 mapping relationship table, generate interface conversion code, the specific method is: first, according to the input / output attribute of the variable, determine the data flow direction of the conversion, if the input / output attribute of the variable is inconsistent, prompt the mapping information error, do not do conversion, for input type, the data flow direction is to convert the external ICD variable into the general structure variable, for output type, the data flow direction is to convert the general structure variable into the external ICD variable; according to the variable type and scale attribute, determine whether to perform scale conversion, if the variable type is consistent, do not perform scale conversion, if the variable type is inconsistent, and the scale attribute MSB or LSB is not 0, call the general scale conversion function, and pass the MSB, LSB value as a parameter to the scale conversion function; according to the variable unit attribute, determine whether to perform unit conversion, if the variable unit is consistent, do not perform unit conversion, if the variable unit is inconsistent, call the general unit conversion function, and pass the unit attribute value as a parameter to the unit conversion function; according to the variable range and input / output attribute, determine whether to perform limiting operation, for input type, if the range attribute of the general structure variable is not empty, call the general limiting function, and pass the range value of the general structure variable to the limiting function to limit the amplitude of the external ICD variable, for output type, if the range attribute of the external ICD variable is not empty, call the general limiting function, and pass the range value of the external ICD variable to the limiting function to limit the amplitude of the general structure variable; Step 6: Create a software assembly model, including framework name, framework configuration parameters, standard module list, module configuration parameter list; get the software framework name selected in step 1, and assign it to the framework name attribute of the software assembly model; get the unique identification number and unique entry function of all standard modules selected in steps 1 and 3, and add the standard modules to the standard module list of the software assembly model in the order of their arrangement in the framework; get the software framework parameters saved in step 2, and assign them to the framework configuration parameter attribute of the software assembly model; get the standard module configuration parameters saved in step 2, and assign them to the corresponding module configuration parameter list in the software assembly model; Step 7: Create a project directory, download the software framework code and the selected standard module code to the project directory based on the software assembly model information, search for the parameter macros defined in all the code in the project directory according to the framework parameter attribute of the software assembly model, and replace the macro definition values with the framework parameter values; According to the module configuration parameter list of the software assembly model, search for the parameter macros defined in all the code in the project directory, replace the macro definition values with the module configuration parameter values, and complete the parameter injection; according to the arrangement order of the standard modules in the software assembly model standard module list, insert the unique entry function of the standard module into the main task of the general software framework in order, and insert the interface conversion code generated in step 5 into the project code, to complete the automatic integration of the software code.
Citation Information
Patent Citations
Embedded software modular design method
CN112346715A
Satellite-borne protocol packaging code automatic generation method and system
CN115061676A