System-level virtual simulation platform based on spaceflight embedded software

By designing a system-level virtual simulation platform based on aerospace embedded software, the problem of existing tools lacking real-time simulation and multi-physics support in aerospace embedded software system testing is solved, and the whole system simulation and efficient data visualization are realized, and the testing efficiency and quality are improved.

CN119962012APending Publication Date: 2025-05-09BEIJING XUANYU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510079407.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-18
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

Existing virtual simulation testing tools lack real-time simulation capabilities and multi-physics simulation support in aerospace embedded software system testing, and are highly licensed, and take a long time to learn and master advanced functions.

Method used

A system-level virtual simulation platform based on aerospace embedded software was designed, including the full system virtual simulation layer, the simulation environment construction and deployment layer, debugging and testing layer, to realize the graphical rapid construction and deployment of the embedded system full system simulation and virtual simulation environment.

Benefits of technology

It realizes full-system simulation of embedded systems, supports multi-physics coupled simulation, improves testing efficiency and quality, reduces costs, and provides intuitive data visualization tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119962012A_ABST
    Figure CN119962012A_ABST
Patent Text Reader

Abstract

The invention discloses a system-level virtual simulation platform based on spaceflight embedded software, which comprises a platform, the platform comprises a full-system virtual simulation layer, a simulation environment construction and deployment layer and a debugging and testing layer, each layer is focused in function, relatively independent and fully decoupled, and interacts with each other only through a multi-form service interface to realize physical isolation among the layers; according to the system-level virtual simulation platform based on the spaceflight embedded software, the whole system simulation of an embedded system is realized by utilizing the virtual simulation platform, the graphical rapid construction and deployment of a virtual simulation environment are realized, the function simulation of software peripheral equipment is completed, and the system-level virtual simulation platform based on the spaceflight embedded software has the advantages of being simple in structure, convenient to operate and high in practicability. According to the system-level virtual simulation platform test system, test cases are operated in a system-level virtual simulation platform test environment, test and analysis are carried out, a visual interface is realized, and the state of the whole simulation system is monitored and controlled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of digital simulation testing, and in particular to a system-level virtual simulation platform based on aerospace embedded software. Background Art

[0002] The purpose of system testing is to test in a real system working environment or in a simulated environment that has been verified and approved. It mainly examines whether the complete software configuration items can be correctly connected to the system and whether the various software configuration items can work correctly in coordination, so as to verify whether the software meets the requirements specified in the system / subsystem design documents and the software development task book. System testing based on a virtual simulation test platform is an indispensable part of modern software engineering and system integration. With the development of technology, especially the increase in complex systems, such as applications in self-driving cars, aerospace, medical equipment, and industrial automation, the requirements for system testing are getting higher and higher. The virtual simulation test environment provides a method for testing these complex systems under safe and controllable conditions. In the testing of embedded aerospace systems, the application of technology based on the virtual simulation test environment is particularly important. Due to its high complexity, high reliability and high cost, aerospace systems have extremely high requirements for testing. The virtual simulation test environment can not only provide a safe and controllable test platform, but also significantly improve the test efficiency and quality. The construction of a system-level virtual simulation platform is a complex but crucial process. The platform needs to be able to fully and accurately simulate the operating environment of the aerospace system in order to fully test and verify the software. The virtual simulation platform can handle the problems of multi-physics coupling, such as fluid dynamics, heat conduction, structural mechanics, etc. By establishing a multi-physics model of the system, the actual operating environment of the system can be simulated more comprehensively; real-time simulation technology enables the simulation results to be fed back to users in real time, supporting rapid design iterations and decision-making; embedded aerospace system testing technology based on simulation test environment plays an important role in ensuring system reliability, improving test efficiency and reducing costs. By comprehensively using a variety of simulation technologies, the performance of aerospace systems can be fully verified and optimized, providing a solid guarantee for the successful implementation of aerospace missions.

[0003] There are many tools based on the aerospace embedded software system test simulation environment. MATLAB / Simulink is characterized by multifunctional modeling and simulation tools, supporting modeling and simulation in multiple fields such as control systems, signal processing, and communication systems. It provides a wealth of toolboxes and library functions, supports real-time simulation and hardware-in-the-loop (HIL) testing, but lacks real-time simulation capabilities and multi-physics simulation support, and lacks more advanced analysis; ANSYS is characterized by multi-physics simulation tools, supporting simulation of multiple physical fields such as fluid dynamics, heat conduction, and structural mechanics, providing advanced analysis tools and powerful post-processing capabilities, but lacks multi-physics coupling simulation capabilities and more efficient computing resource management; LabVIEW, dSPACE, and OPAL-RT and other tools can support a variety of hardware devices, facilitating hardware-in-the-loop testing, but are not comprehensive enough for the specific needs of the aerospace field. Moreover, the license fees for these tools are high, and it takes a long time to learn and master advanced functions. Summary of the invention

[0004] The purpose of the present invention is to provide a system-level virtual simulation platform based on aerospace embedded software to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions: a system-level virtual simulation platform based on aerospace embedded software, comprising a platform, wherein the platform includes a full-system virtual simulation layer, a simulation environment construction and deployment layer, and a debugging and testing layer;

[0006] The whole system virtual simulation layer is the core layer of the whole system, which realizes the whole system simulation of the embedded system. The whole system virtual simulation layer includes a virtual microkernel, a CPU simulator library, a peripheral model library, a VTBus distributed simulation bus and a simulation control center;

[0007] The simulation environment construction and deployment layer realizes the graphical rapid construction and deployment of the virtual simulation environment. The simulation environment construction and deployment layer mainly consists of a simulation design center, multi-language development templates, a development wizard, simulation reuse components, a CPU development API, and a peripheral API.

[0008] The debugging and testing layer provides debugging and testing services for software developers and testers. The debugging and testing layer is mainly composed of a virtual debugger, UCA coverage statistics tool, DTP, and a data display center.

[0009] Preferably, the virtual microkernel in the full-system virtual simulation layer dynamically loads a CPU simulator and peripheral chips to form a virtual target machine instance during runtime, simulates the target machine, and runs a target operating system and application software thereon.

[0010] Preferably, when it is necessary to jointly simulate multiple systems connected by buses and network physical links in the full-system virtual simulation layer, the VTBus distributed simulation bus simulates the physical links, connects multiple virtual target systems, implements data interaction between virtual target systems, and maintains simulation synchronization of the entire virtual system.

[0011] Preferably, the simulation control center in the whole system virtual simulation layer provides a visual interface to monitor and control the status of the whole simulation system.

[0012] Preferably, the simulation environment construction and deployment layer provides a graphical configuration method, loads the CPU simulator and peripheral chips to build a specific virtual target environment, and provides multi-language development templates, development wizards, and reusable simulation components, and uses the CPU simulator development API and peripheral development API for users to develop various types of CPU simulators and peripheral models by themselves.

[0013] Preferably, the virtual debugger in the debugging and testing layer provides debugging at the target code and source code levels.

[0014] Preferably, the UCA universal coverage statistics tool in the debugging and testing layer provides coverage statistics analysis functions at the target code and source code levels, and loads disassembly libraries of various processor architectures and parsing libraries of various target code formats to achieve extended support for different processors and target code types.

[0015] Preferably, the data display center in the debugging and testing layer realizes the configuration collection and multi-mode graphical display of the simulation system status and test process data.

[0016] Preferably, the DTP in the debugging and testing layer is a general dynamic testing platform, which provides a keyword-driven test script execution framework. Testers use keywords in the keyword library to generate test case scripts in a drag-and-drop manner to drive test execution. DTP automatically controls test execution and automatically compares test results.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] 1. Realize the full system simulation of the embedded system, build a digital simulation environment for each subsystem based on VTest, use VTBus to interconnect multiple subsystem simulations, unify control, configure the mutual communication mechanism and operation synchronization control of each platform, so that data transmission and time operation synchronization can be carried out between platforms;

[0019] 2. Customize the virtual simulation platform for specific needs, load the software onto VTest, implement peripheral device function simulation, realize normal communication, input and output data of each single machine in the system, and perform data analysis;

[0020] 3. Analyze data for data visualization, and visualize simulation results through charts and animations to help testers understand the operation of the system more intuitively. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a detailed diagram of the functional hierarchy of the platform of the present invention;

[0022] Figure 2 It is a composition diagram of a subsystem operation platform in an embodiment of the present invention;

[0023] Figure 3 This is a data flow diagram of the power control function in an embodiment of the present invention;

[0024] Figure 4 This is a three-dimensional visualization result analysis diagram in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] See also Figure 1-4 ,The present invention provides a system-level virtual simulation platform based on aerospace embedded software, including a platform, the platform including a full-system virtual simulation layer, a simulation environment construction and deployment layer, and a debugging and testing layer;

[0027] The whole system virtual simulation layer is the core layer of the whole system, which realizes the whole system simulation of the embedded system. The whole system virtual simulation layer includes virtual microkernel, CPU simulator library, peripheral model library, VTBus distributed simulation bus and simulation control center.

[0028] The simulation environment construction and deployment layer realizes the rapid graphical construction and deployment of the virtual simulation environment. The simulation environment construction and deployment layer mainly consists of the simulation design center, multi-language development templates, development wizards, simulation reuse components, CPU development API, and peripheral API.

[0029] Debugging and testing layer: The debugging and testing layer provides debugging and testing services for software developers and testers. The debugging and testing layer is mainly composed of virtual debugger, UCA coverage statistics tool, DTP, and data display center.

[0030] The virtual microkernel in the full-system virtual simulation layer dynamically loads the CPU simulator and peripheral chips to form a virtual target machine instance at runtime, simulates the target machine, and runs the target operating system and application software on it. When it is necessary to jointly simulate multiple systems connected by buses and network physical links in the full-system virtual simulation layer, the VTBus distributed simulation bus simulates the physical links, connects multiple virtual target systems, implements data interaction between virtual target systems, and maintains the simulation synchronization of the entire virtual system. The simulation control center in the full-system virtual simulation layer provides a visual interface to monitor and control the status of the entire simulation system.

[0031] The simulation environment construction and deployment layer provides a graphical configuration method, loads the CPU simulator and peripheral chips to build a specific virtual target environment, and provides multi-language development templates, development wizards, and reusable simulation components. It uses the CPU simulator development API and peripheral development API to allow users to develop various CPU simulators and peripheral models by themselves.

[0032] The virtual debugger in the debugging and testing layer provides debugging at the target code and source code levels. The UCA universal coverage statistics tool in the debugging and testing layer provides coverage statistics and analysis functions at the target code and source code levels, and loads disassembly libraries of various processor architectures and parsing libraries of various target code formats to achieve extended support for different processors and target code types. The data display center in the debugging and testing layer realizes the configuration collection and multi-mode graphical display of simulation system status and test process data. The DTP in the debugging and testing layer is a universal dynamic testing platform that provides a keyword-driven test script execution framework. Testers use keywords in the keyword library to drag and drop to generate test case scripts to drive test execution. DTP automatically controls test execution and automatic test result comparison.

[0033] The main purpose of the simulation platform is to load the stand-alone software onto VTEST for operation, and to complete the functional simulation of the software peripherals, so that the software can communicate normally and transmit input and output data, and to display the operation results in three dimensions on the visualization platform so as to observe the result data intuitively.

[0034] (1) Functional description:

[0035] The system structure adopts a two-level distributed topology, and its main components include BC1553 bus, remote control communication, telemetry communication, autonomous management and other subsystem communication functions. The structure and interface diagram are shown in Figure 2 ;

[0036] (2) Functional simulation:

[0037] a) BC1553 bus

[0038] The platform mainly simulates the RT end that communicates with the BC1553 bus master end. It simulates the register and memory business logic characteristics of the BU61580 chip in the BC working mode, and realizes the corresponding functions of the 1553B bus BC end. The simulation functions include bus registers, bus memory, data transmission characteristics, data transmission valid bits, bus usage mode, bus internal operation logic, timing control and interrupt triggering functions. It also supports data sending and receiving control, fault setting and real-time recording of communication data, and supports 32 RT ends to run online at the same time.

[0039] b) Telemetry communication

[0040] The platform mainly simulates the telemetry communication port that communicates with the system. The simulation functions include interrupt triggering, data transmission control, timing control, and data code rate control. The simulation registers include interrupt registers, data transmission registers, status registers, and enable registers. The register simulation accuracy is up to the single-bit processing process. It also supports telemetry data transmission and reception control, fault setting, and real-time data recording functions.

[0041] c) Remote control communication

[0042] The platform mainly simulates the remote control communication port that communicates with the system. The simulation functions include interrupt triggering, data transmission control, timing control, and data code rate control. The simulation registers include interrupt registers, data registers, FIFO reset registers, and bit count registers. The register simulation accuracy is up to the single-bit processing process. It also supports telemetry data transmission and reception control, fault setting, and real-time data recording functions.

[0043] d)8254 counting timer

[0044] The platform mainly simulates the functions of 8254 counter timer. The counter timer uses addresses including address counter 0, address counter 1, address counter 2, clear interrupt address, and control register address function simulation. It also supports the control of triggering interrupt after the counter counts full.

[0045] e) Other functions

[0046] The platform mainly simulates the external hardware dog function and other address read and write operation functions;

[0047] 3) Debugging and testing

[0048] Take the power control function as an example to illustrate the steps of use case design: DTP → send power remote control command → CTU → power command → power controller software → send telemetry data → CTU → telemetry packet data → 3D display software, as follows:

[0049] ①Send remote control instructions to CTU via DTP to start controlling the power controller software;

[0050] ② The CTU application software sends bus remote control commands to the power controller software: Group A charging array connection command, Group B charging array connection command, battery overcharge protection enable command, Group A fuel gauge control connection command, Group B fuel gauge control connection command, balancing control enable command, source packet multi-channel cycle setting command;

[0051] ③ Set the initial values ​​of power-related parameters through the power control software and initialize the power data model;

[0052] ④ Real-time collection of power model data and power control: charging current, discharging current, charging power, discharging power, current power, voltage value of group A battery group, voltage value of group B battery group, solar cell array voltage, bus voltage;

[0053] ⑤The power controller software organizes the power status data into slow transmission telemetry packets, fast transmission telemetry packets, and filtering parameter packets;

[0054] ⑥CTU software periodically obtains telemetry data from the power controller software and forms a PK telemetry package;

[0055] ⑦ The three-dimensional analysis and display software analyzes the PK telemetry package, displays the charging and discharging process according to the charging power, discharging power and current power, and controls the status indicator light through the power status bit;

[0056] 4) 3D result display

[0057] The 3D display software obtains telemetry PK package data from CTU, analyzes the data and displays it dynamically, and monitors and controls the status of the entire simulation system, such as Figure 4 shown.

[0058] The present invention discloses a system-level virtual simulation platform based on aerospace embedded software. The whole simulation system is divided into three functional layers: a full-system virtual simulation layer, a simulation environment construction and deployment layer, and a debugging and testing layer. Each layer is functionally focused, relatively independent, and fully decoupled. The layers interact with each other only through multi-form service interfaces, thereby realizing physical isolation between the layers, logical communication, and facilitating function expansion and system integration. Each layer operates independently and is also interconnected in real time through a service interface. According to the different needs of different types of users, multiple operation modes are realized. The virtual simulation platform is used to realize full-system simulation of the embedded system, realize graphical rapid construction and deployment of the virtual simulation environment, complete functional simulation of software peripherals, realize running test cases in the test environment of the system-level virtual simulation platform, perform testing and analysis, realize a visual interface, and monitor and control the status of the whole simulation system.

[0059] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A system-level virtual simulation platform based on aerospace embedded software, comprising a platform, characterized in that: The platform includes a full-system virtual simulation layer, a simulation environment construction and deployment layer, and a debugging and testing layer; The whole system virtual simulation layer is the core layer of the whole system, which realizes the whole system simulation of the embedded system. The whole system virtual simulation layer includes a virtual microkernel, a CPU simulator library, a peripheral model library, a VTBus distributed simulation bus and a simulation control center; The simulation environment construction and deployment layer realizes the graphical rapid construction and deployment of the virtual simulation environment. The simulation environment construction and deployment layer mainly consists of a simulation design center, multi-language development templates, a development wizard, simulation reuse components, a CPU development API, and a peripheral API. The debugging and testing layer provides debugging and testing services for software developers and testers. The debugging and testing layer is mainly composed of a virtual debugger, UCA coverage statistics tool, DTP, and a data display center.

2. A system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The virtual microkernel in the full-system virtual simulation layer dynamically loads a CPU simulator and peripheral chips to form a virtual target machine instance during runtime, simulates the target machine, and runs a target operating system and application software on it.

3. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: When it is necessary to jointly simulate multiple systems connected by buses and network physical links in the full-system virtual simulation layer, the VTBus distributed simulation bus simulates the physical links, connects multiple virtual target systems, implements data interaction between virtual target systems, and maintains simulation synchronization of the entire virtual system.

4. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The simulation control center in the whole system virtual simulation layer provides a visual interface to monitor and control the status of the whole simulation system.

5. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The simulation environment construction and deployment layer provides a graphical configuration method, loads the CPU simulator and peripheral chips to build a specific virtual target environment, and provides multi-language development templates, development wizards, and reusable simulation components. It uses the CPU simulator development API and peripheral development API for users to develop various types of CPU simulators and peripheral models by themselves.

6. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The virtual debugger in the debugging and testing layer provides debugging at the target code and source code levels.

7. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The UCA universal coverage statistics tool in the debugging and testing layer provides coverage statistics analysis functions at the target code and source code levels, and loads disassembly libraries of various processor architectures and parsing libraries of various target code formats to achieve extended support for different processors and target code types.

8. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The data display center in the debugging and testing layer realizes the configuration collection and multi-mode graphical display of the simulation system status and test process data.

9. The system-level virtual simulation platform based on aerospace embedded software according to claim 1, characterized in that: The DTP in the debugging and testing layer is a general dynamic testing platform that provides a keyword-driven test script execution framework. Testers use keywords in the keyword library to generate test case scripts in a drag-and-drop manner to drive test execution. DTP automatically controls test execution and automatically compares test results.