Radar embedded software code integration method based on model driving
Through the model-driven radar embedded software integration method, the consistency and quality issues in the modular integration of radar software are solved, and efficient and standardized code generation is achieved to meet the real-time requirements of the radar embedded system.
Patent Information
- Application Number
- CN202510600324.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-09-12
AI Technical Summary
The existing radar software modular integration has problems such as low code consistency, uneven quality, and long debugging and fault location cycle. In addition, the existing model-driven method lacks real-time performance in radar embedded systems.
A model-driven radar embedded software integration method is adopted to achieve automatic conversion from model to code through model parsing, mapping and code assembly, and generate high-quality code in strict accordance with specifications.
It achieves efficient and high-quality integration of radar embedded software, shortens coding time, improves development efficiency and code quality, and meets real-time requirements.
Smart Images

Figure CN120631345A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of radar technology, and in particular relates to a radar embedded software integration method based on model driving. Background Art
[0002] With the development of radar software technology, radar software has become increasingly modular. Radar system software can be broken down into a series of independent software sub-modules, each with clear functions and interfaces. Through integration methods, these modules are combined to form a radar software system. Radar software is characterized by complex processing, large code size, and high real-time requirements. Manual coding for module integration can lead to problems such as low code consistency with design, non-standard coding, uneven coding quality, and long debugging and troubleshooting cycles. Given the high quality requirements of military code and the tight developer workload, it is necessary to explore new integration models to improve integration efficiency and quality.
[0003] Model-Based Software Development (MBSD) is a key development direction in software engineering. Its core concept is to use models as the core elements of the software development process, using them to describe, design, and implement software systems. Companies such as Lockheed Martin and Thales have implemented graphical integration and automatic code generation for radar application functions using application-oriented graphical development environments (GEDAE and SCADE). However, the generated code lacks real-time performance, making it difficult to apply to high-real-time processing systems for radar embedded software.
[0004] In summary, it is necessary to design a model-driven radar embedded software code integration method to realize the mapping conversion from model to integrated code and improve the efficiency and quality of radar embedded software code integration. Summary of the Invention
[0005] To this end, the present invention addresses the need for rapid and high-quality integration of large-scale and complex radar embedded software, overcomes the existing software integration method based on manual coding, and proposes a model-driven radar embedded software integration method. With the model as the core element, the model is used to describe the software integration design concept. Through the model and code conversion rules, the mapping conversion from the model to the integration code is realized, thereby achieving high-efficiency radar embedded software integration and high-quality specification integration.
[0006] The present invention provides a radar embedded software integration method based on model driving, which specifically includes the following steps:
[0007] Step 1: Model the radar embedded software system and save the built software system model as an XML file.
[0008] Step 2: Model parsing, reading the software system model file, analyzing the software system model data, extracting and saving the information of each level of the software system layer by layer.
[0009] Step 3: Model mapping. According to the different project requirements of radar embedded software integration, select a predefined integration template and use the corresponding mapping rules to map the software system information generated by model analysis to the corresponding format of the integration template to form a model mapping relationship table.
[0010] Step 4: Code assembly: According to project requirements and based on the model mapping relationship table, select the corresponding coding language and coding format, follow the code specifications, and automatically generate code.
[0011] Step 5: Debug the code generated by code assembly. If debugging is successful, obtain the integrated code. If debugging is unsuccessful, return to step 1, adjust the model design, and repeat steps 1 to 4 until the code is debugged successfully.
[0012] Furthermore, the model information of each level includes: model input interface, model output interface, lower-level model composition, and logical relationships between lower-level models.
[0013] Furthermore, the mapping relationships include equality, greater than, less than, and combinations thereof; for equality and less than relationships, the corresponding instances in the source model can be directly mapped to the target model, while for greater than, the instances in the source model need to be screened and filtered before the mapping is implemented.
[0014] The beneficial effects of the present invention are
[0015] 1) The present invention automatically converts software design models into software code through model analysis, model mapping, code assembly and other technologies, achieving efficient and high-quality integration of software code, significantly shortening software coding time, and effectively saving manpower and time costs.
[0016] 2) The model mapping method of the present invention opens up the mapping between two different languages, model and code, automatically completes the high-precision conversion between the design language XML and the code language (C, C++, MATLAB), realizes the automatic coding of model-driven software, and greatly improves the efficiency of software development.
[0017] 3) The code assembly method proposed in the present invention strictly follows the software coding specifications and coding formats to automatically generate high-quality code, greatly improving the quality of software code and solving the problem that the quality of software code varies from person to person.
[0018] 4) The code assembly method proposed in this invention fully considers the space resource allocation problem in the implementation of radar embedded code engineering and meets the real-time requirements of radar embedded software operation.
[0019] 5) Compared with the existing MATLAB, GEDAE, and SCADE modeling and code generation methods, the present invention is closer to radar engineering applications and has higher real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of the radar embedded software code integration based on model-driven design of the present invention.
[0021] Figure 2 This is a processing flow chart of the model parsing module of the present invention.
[0022] Figure 3 This is a processing flow chart of the model mapping module of the present invention.
[0023] Figure 4 This is a flowchart of the code assembly module processing of the present invention. DETAILED DESCRIPTION
[0024] The following is a clear and complete description of the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present invention.
[0025] like Figures 1-4 As shown, the present invention proposes a radar embedded software integration method based on model driving, which mainly includes:
[0026] Model parsing: Reads software system design model files, analyzes the model data, and extracts and saves information at each level of the software system design, including information about the current level model, sub-level models, and sub-sub-level models. Model information at each level includes model input interfaces, model output interfaces, sub-level model composition, and logical relationships between sub-level models.
[0027] Model mapping: According to the different project requirements of radar embedded software integration, select the corresponding predefined integration template and use the corresponding mapping rules to map the information in the software system design to the function points, data interaction, execution process and other formats of the integration template.
[0028] Code assembly: According to project requirements and based on model mapping relationships, select the corresponding coding language and coding format, follow the code specifications, and automatically generate code.
[0029] To further illustrate the specific implementation of the present invention, an example of a radar embedded software integration method based on model-driven is given:
[0030] Prepare a PC and pre-install the software modeling environment. Model parsing, model mapping, and code assembly functions are deployed on this computer.
[0031] 1. Use modeling tools to model the radar embedded software system. The built software system model is saved in the form of an XML file. The modeling tool can be MagicDraw, SCADE or other modeling environments.
[0032] 2. Through model parsing, the software system model file is read, the software system design model data is analyzed, and information about each level of the software system design is extracted and saved layer by layer, including information about the current level model, sub-level models, and sub-sub-level models. Information about each level of the model includes: model input interface, model output interface, sub-level model composition, and logical relationships between sub-level models.
[0033] 3. Through model mapping, based on the specific project requirements of radar embedded software integration, a predefined integration template is selected and, using the corresponding mapping rules, the software system design information generated by model parsing is mapped to the integration template's functional points, data interactions, execution flow, and other formats, forming a model mapping relationship table. This mapping relationship includes multiple relationships such as equality, greater than, less than, and combinations thereof. For equality and less than relationships, the corresponding instances in the source model can be directly mapped to the target model when defining the transformation rules. For less than relationships, however, instances in the source model must be screened and filtered before mapping is implemented.
[0034] 4. Through code assembly, according to project requirements, based on the model mapping relationship table generated by model mapping, select the corresponding coding language and coding format, follow the code specifications, and automatically generate code.
[0035] 5. Debug the code generated by code assembly. If debugging is successful, obtain the integrated code. If debugging is unsuccessful, jump to step 1, adjust the model design, and repeat steps 1 to 4 until the code is debugged successfully.
[0036] The present invention is not limited to the above specific embodiments, and various modifications and variations are possible. Any modification, equivalent replacement, improvement, etc. made to the above embodiments based on the technical essence of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A radar embedded software integration method based on model-driven, characterized by: The specific steps include: Step 1: Model the radar embedded software system and save the built software system model in the form of an XML file; Step 2: Model parsing: reading the software system model file, analyzing the software system model data, and extracting and saving the information of each level of the software system layer by layer; Step 3: Model mapping. According to the different project requirements of radar embedded software integration, select a predefined integration template and use the corresponding mapping rules to map the software system information generated by model analysis to the corresponding format of the integration template to form a model mapping relationship table. Step 4: Code assembly: According to project requirements and based on the model mapping table, select the corresponding coding language and coding format, follow the coding standards, and automatically generate code; Step 5: Debug the code generated by code assembly. If debugging is successful, obtain the integrated code. If debugging is unsuccessful, return to step 1, adjust the model design, and repeat steps 1 to 4 until the code is debugged successfully.
2. The radar embedded software integration method based on model drive according to claim 1, characterized in that: The model information of each level includes: model input interface, model output interface, lower-level model composition, and logical relationship between lower-level models.
3. The radar embedded software integration method based on model drive according to claim 1, characterized in that: Mapping relationships include equality, greater than, less than, and combinations thereof. For equality and less than relationships, the corresponding instances in the source model can be directly mapped to the target model. For greater than, the instances in the source model need to be screened and filtered before mapping.