Digital prototype RAM deployment and operation method and system
Through digital prototype RAM deployment and operation methods, the RAM curing mode and module dynamic loading technology are used to solve the problem of low efficiency of traditional packaging methods and achieve more efficient development, debugging and test verification.
Patent Information
- Application Number
- CN202411328603.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-09-24
AI Technical Summary
Traditional digital prototype packaging methods are inefficient, resulting in recompilation and packaging every time the application is modified, which is time-consuming and inefficient, especially in development environments with rapid iteration and frequent updates.
Through digital prototype RAM deployment and operation methods, random access to the MSL, operating system, and software applications are dynamically loaded by random access to the MSL, operating system, and software applications to reduce the tedious operation of compilation and packaging.
Provides a development and regulatory environment that is separated from hardware, isolation of hardware, improves test efficiency, reduces the time of compilation and packaging, and improves the efficiency of development, commissioning and test verification.
Smart Images

Figure CN118860432B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital twin technology, and in particular to a digital prototype RAM deployment and operation method and system. Background Art
[0002] In the traditional field of digital prototyping, a series of complex steps are usually required to enable an application to run properly on the target platform. First, developers need to write application code, which is the core part of implementing specific functions. Next, the application needs to adapt to the operating system to ensure that the operating system's resources and services can be effectively utilized.
[0003] In order for the application to run correctly on the digital prototype, the developer needs to compile and package the application code, necessary operating system components, and all related files in the MSL project. This process usually involves using specific build tools and scripts to generate an executable application package. Once packaged, the package can be installed on the target system, allowing the application to run in the digital prototype environment.
[0004] However, this traditional packaging method has obvious disadvantages. Every time the application needs to be modified, such as fixing a bug or adding new features, developers must re-execute the entire compilation and packaging process. This means that even the smallest change requires building the entire application package from scratch. Such a process is not only time-consuming, but also inefficient, especially when the project becomes more and more complex, the time required for each packaging will increase accordingly. In addition, frequent packaging may also lead to challenges in version control and testing, because each packaging needs to ensure that the new version can run correctly and without errors.
[0005] Therefore, this traditional packaging method may cause considerable trouble to the development team in actual applications, especially in a development environment with rapid iterations and frequent updates. Summary of the invention
[0006] In view of the defects in the prior art, an object of the present invention is to provide a digital prototype RAM deployment and operation method and system.
[0007] The digital prototype RAM deployment and operation method provided by the present invention includes:
[0008] Step 1: Create the main standard library MSL project and configure the network IP address of the MSL project;
[0009] Step 2: Load the firmware program of the MSL project into the digital prototype development and commissioning project;
[0010] Step 3: Use the random access memory RAM curing mode to run the digital prototype development and commissioning project;
[0011] Step 4: Connect the digital prototype in the operating system integrated development environment and load the operating system image and software application image respectively.
[0012] Preferably, the step 1 comprises:
[0013] Step 1.1: Create an MSL project in the operating system integrated development environment and set relevant parameters;
[0014] Step 1.2: Create an operating system project in the operating system integrated development environment, select the corresponding operating system template and the corresponding real target board hardware type;
[0015] Step 1.3: Configure the corresponding standard application framework according to the application type in the operating system integrated development environment, create the application and select the corresponding target board;
[0016] Step 1.4: Set the network IP address in the MSL project configuration to be consistent with the IP segment and gateway in the digital prototype.
[0017] Preferably, the step 2 comprises:
[0018] Step 2.1: Create a new target machine in the target machine management of the operating system integrated development environment, and set the digital target board project IP configuration of the new target machine to the network IP of the MSL project;
[0019] Step 2.2: Open the digital prototype editing and running tool and create a new digital target board project for the target machine according to the hardware connection or directly load the previous digital target board project;
[0020] Step 2.3: Set the image file address of the MSL project and the starting loading address of the binary executable file and the corresponding image file path in the property list through the graphical property configuration window. When the operating system starts, load the image file according to the set path and jump to the set starting code segment.
[0021] Preferably, the step 3 comprises:
[0022] Step 3.1: Use the digital prototype editing and running tool to run the digital target board project;
[0023] Step 3.2: In the interactive window, set the curing mode to RAM curing through the interactive command line to replace the burning process in the real hardware. During the runtime, the firmware program of the MSL project is loaded from RAM directly according to the interface parameter settings;
[0024] Step 3.3: Get the loading information of the MSL project in the Run Interaction Window, including the version number, the target board and the compilation date, and check the network IP information and port number of the MSL project.
[0025] Preferably, step 4 comprises:
[0026] Step 4.1: Select the new target machine in the operating system integrated development environment and connect;
[0027] Step 4.2: After the connection is successful, select the operating system project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the operating system is loaded and run;
[0028] Step 4.3: After the operating system runs successfully, select the application project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the application is loaded and run.
[0029] The digital prototype RAM deployment and operation system provided by the present invention includes:
[0030] Module M1: Create the main standard library MSL project and configure the network IP address of the MSL project;
[0031] Module M2: Load the firmware program of the MSL project into the digital prototype development and commissioning project;
[0032] Module M3: Uses random access memory RAM solidification mode to run digital prototype development and commissioning projects;
[0033] Module M4: Connect the digital prototype in the operating system integrated development environment and load the operating system image and software application image respectively.
[0034] Preferably, the module M1 comprises:
[0035] Module M1.1: Create an MSL project in the operating system integrated development environment and set relevant parameters;
[0036] Module M1.2: Create an operating system project in the operating system integrated development environment, select the corresponding operating system template and the corresponding real target board hardware type;
[0037] Module M1.3: Configure the corresponding standard application framework according to the application type in the operating system integrated development environment, create the application and select the corresponding target board;
[0038] Module M1.4: Set the network IP address in the MSL project configuration to be consistent with the IP segment and gateway in the digital prototype.
[0039] Preferably, the module M2 comprises:
[0040] Module M2.1: Create a new target machine in the target machine management of the operating system integrated development environment, and set the digital target board project IP configuration of the new target machine to the network IP of the MSL project;
[0041] Module M2.2: Open the digital prototype editing and running tool to create a new digital target board project for the target machine according to the hardware connection or directly load the previous digital target board project;
[0042] Module M2.3: Through the graphical property configuration window, set the image file address of the MSL project and the starting loading address of the binary executable file and the corresponding image file path in the property list. When the operating system starts, load the image file according to the set path and jump to the set starting code segment.
[0043] Preferably, the module M3 comprises:
[0044] Module M3.1: Use the digital prototype editing and running tool to run the digital target board project;
[0045] Module M3.2: In the interactive window, set the curing mode to RAM curing through the interactive command line, replacing the burning process in the real hardware. During the runtime, the firmware program of the MSL project is loaded from RAM directly according to the interface parameter settings;
[0046] Module M3.3: Get the loading information of the MSL project in the run interactive window, including the version number, the target board and the compilation date, and check the network IP information and port number of the MSL project.
[0047] Preferably, the module M4 comprises:
[0048] Module M4.1: Select a new target machine in the operating system integrated development environment and connect to it;
[0049] Module M4.2: After the connection is successful, select the operating system project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the operating system is loaded and run;
[0050] Module M4.3: After the operating system runs successfully, select the application project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the application is loaded and run.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] (1) The present invention can complete MSL, operating system, and software application development and commissioning without hardware through digital prototype configuration, isolate hardware workmanship and environmental influences, provide an ideal deterministic test environment, reduce the time for interacting with hardware to locate problems, focus on improving software function problems, and improve test efficiency;
[0053] (2) The present invention realizes dynamic loading of modules by unbinding MSL, operating system, and software applications, thereby reducing the tedious operations of compilation and packaging and effectively improving the efficiency of development, debugging, and testing and verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0055] Figure 1 This is a schematic diagram of the RAM deployment and operation principle of the digital prototype of the operating system;
[0056] Figure 2 The digital prototype RAM deployment and operation flow chart of the operating system. DETAILED DESCRIPTION
[0057] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0058] Example 1
[0059] like Figure 2 The present invention provides a digital prototype RAM deployment and operation method of an operating system, comprising:
[0060] Step 1: Create a project and configure the network IP address of the MSL project;
[0061] Step 2: Load the MSL firmware program into the development and commissioning project of the digital prototype;
[0062] Step 3: Run the digital prototype development and commissioning project;
[0063] Step 4: Connect the digital prototype in the Tianmai OS development IDE and load the OS image and software application image respectively.
[0064] The step 1 comprises the following steps:
[0065] Step 1.1: Create an MSL project in the Tianmai OS development IDE, set relevant parameters, and select the corresponding ARM, DSP, PowerPC, Feiteng and other specific target board hardware types according to the actual business scenario;
[0066] Step 1.2: Create an OS project in the Tianmai OS development IDE, select the corresponding OS templates such as Tianmai 1, Tianmai 2, Tianmai 3 and the corresponding real target board hardware types such as ARM, DSP, PowerPC, Feiteng, etc.
[0067] Step 1.3: Configure the corresponding standard application framework according to the application type in the Tianmai OS development IDE, create the application and select the corresponding target board;
[0068] Step 1.4: Set the network IP address in the MSL configuration to be consistent with the IP segment and gateway in the digital prototype.
[0069] The step 2 comprises the following steps:
[0070] Step 2.1: Create a new target machine in the target machine management of Tianmai OS development IDE and name it XXX target machine, and set the IP configuration of XXX target machine to the board IP set in MSL in step 1;
[0071] Step 2.2: Open the digital prototype editing and running tool and create a new digital target board project according to the hardware connection or directly load the previous digital target board project;
[0072] Step 2.3: Set the image file address of MSL and the starting loading address of the binary executable file and the corresponding image file path in the property list through the graphical property configuration window. When the system starts, the image file is automatically loaded according to the set path and jumps to the set starting code segment.
[0073] The step 3 comprises the following steps:
[0074] Step 3.1: Use the digital prototype editing and running tool to run the digital target board project in step 2;
[0075] Step 3.2: In the interactive window, set the curing mode to RAM curing through the interactive command line, replacing the burning process in the real hardware. During the runtime, the MSL program is loaded from RAM directly according to the interface parameter settings;
[0076] Step 3.3: In the Run Interaction window, you can see the loading information of MSL including version number, target board, compilation date, etc. Check the MSL network IP information and port number.
[0077] The step 4 comprises the following steps:
[0078] Step 4.1: In the Tianmai OS development IDE, right-click the XXX target machine in step 2 and click Connect;
[0079] Step 4.2: After the connection is successful, click the OS project described in step 1 and select the running mode as ACoreOsMP loading, select the XXX target server configured in step 2, and the OS will be loaded and run after completion;
[0080] Step 4.3: After the OS runs successfully, click the application project described in step 1 and select the running mode as ACoreOsMP loading, select the XXX target server configured in step 2, and the application will be loaded and run after completion.
[0081] like Figure 1 The application adaptation layer in the digital prototype includes: application software, which is managed by the application engineering of Tianmai OS development IDE; Tianmai operating system adaptation, which is managed by the operating system engineering of Tianmai OS development IDE; MSL startup, which is managed by the MSL engineering creation of Tianmai OS development IDE.
[0082] The digital CPU includes a virtual core and a virtual target board;
[0083] The virtual kernel includes: processor instruction set simulation, Timer general timer module, MMU memory management unit, GICv2 interrupt controller;
[0084] The virtual target board includes: UART serial port module, GPIO, I2C, SPI module, PCIE communication bus module, and GMAC network card module.
[0085] The widespread application of digital twin technology in the current aerospace field provides a fully digital feasibility solution for the development, debugging, testing and verification of airborne systems. By digitally simulating each device in the current airborne system, virtual devices identical to the actual target machines can be customized on one or more hosts through digital modeling technology to simulate the operating status of the real airborne system. The Tianmai OS software that was previously running on physical devices does not need to be modified and can be run and debugged on the digital prototype. Through the digital prototype RAM deployment and operation of Tianmai OS, MSL, Tianmai OS, and software applications can be untied to achieve dynamic loading of modules, reducing the tedious operations of compilation and packaging, and effectively improving the efficiency of development, debugging, and testing and verification.
[0086] Example 2
[0087] The present invention also provides a digital prototype RAM deployment and operation system, which can be implemented by executing the process steps of the digital prototype RAM deployment and operation method, that is, those skilled in the art can understand the digital prototype RAM deployment and operation method as a preferred implementation of the digital prototype RAM deployment and operation system.
[0088] The digital prototype RAM deployment and operation system provided by the present invention includes: module M1: creating a main standard library MSL project and configuring the network IP address of the MSL project; module M2: loading the firmware program of the MSL project into the digital prototype development and commissioning project; module M3: using the random access memory RAM solidification mode to run the digital prototype development and commissioning project; module M4: connecting the digital prototype in the operating system integrated development environment, and loading the operating system image and the software application image respectively.
[0089] The module M1 includes: Module M1.1: creating an MSL project in the operating system integrated development environment and setting relevant parameters; Module M1.2: creating an operating system project in the operating system integrated development environment, selecting the corresponding operating system template and the corresponding real target board hardware type; Module M1.3: configuring the corresponding standard application framework according to the application type in the operating system integrated development environment, creating an application and selecting the corresponding target board; Module M1.4: setting the network IP address in the MSL project configuration to be consistent with the IP segment and gateway in the digital prototype.
[0090] The module M2 includes: Module M2.1: creating a new target machine in the target machine management of the operating system integrated development environment, and setting the digital target board project IP configuration of the new target machine to the network IP of the MSL project; Module M2.2: opening the digital prototype editing and running tool to connect the digital target board project of the new target machine according to the hardware or directly load the previous digital target board project; Module M2.3: through the graphical property configuration window, setting the image file address of the MSL project and the starting load address of the binary executable file and the corresponding image file path in the property list, and loading the image file according to the set path when the operating system starts and jumping to the set starting code segment.
[0091] The module M3 includes: module M3.1: using the digital prototype editing and running tool to run the digital target board project; module M3.2: setting the solidification mode to RAM solidification through the interactive command line in the running interactive window, replacing the burning process in the real hardware, and directly completing the loading of the firmware program of the MSL project from RAM according to the interface parameter settings during operation; module M3.3: obtaining the loading information of the MSL project in the running interactive window, including the version number, the adapted target board and the compilation date, and checking the network IP information and port number of the MSL project.
[0092] The module M4 includes: module M4.1: select a new target machine in the operating system integrated development environment and connect it; module M4.2: after successful connection, select the operating system project running mode as ACoreOsMP loading, select the server of the new target machine, and after completion the operating system is loaded and run; module M4.3: after the operating system runs successfully, select the application project running mode as ACoreOsMP loading, select the server of the new target machine, and after completion the application is loaded and run.
[0093] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0094] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A digital prototype RAM deployment and operation method, characterized in that: include: Step 1: Create the main standard library MSL project and configure the network IP address of the MSL project; Step 2: Load the firmware program of the MSL project into the digital prototype development and commissioning project; Step 3: Use the random access memory RAM curing mode to run the digital prototype development and commissioning project; Step 4: Connect the digital prototype in the operating system integrated development environment and load the operating system image and software application image respectively; The step 2 comprises: Step 2.1: Create a new target machine in the target machine management of the operating system integrated development environment, and set the digital target board project IP configuration of the new target machine to the network IP of the MSL project; Step 2.2: Open the digital prototype editing and running tool and create a new digital target board project for the target machine according to the hardware connection or directly load the previous digital target board project; Step 2.3: Set the image file address of the MSL project and the starting loading address of the binary executable file and the corresponding image file path in the property list through the graphical property configuration window. When the operating system starts, load the image file according to the set path and jump to the set starting code segment; The step 3 comprises: Step 3.1: Use the digital prototype editing and running tool to run the digital target board project; Step 3.2: In the interactive window, set the curing mode to RAM curing through the interactive command line to replace the burning process in the real hardware. During the runtime, the firmware program of the MSL project is loaded from RAM directly according to the interface parameter settings; Step 3.3: Get the loading information of the MSL project in the Run Interaction Window, including the version number, the target board and the compilation date, and check the network IP information and port number of the MSL project.
2. The digital prototype RAM deployment and operation method according to claim 1, characterized in that: The step 1 comprises: Step 1.1: Create an MSL project in the operating system integrated development environment and set relevant parameters; Step 1.2: Create an operating system project in the operating system integrated development environment, select the corresponding operating system template and the corresponding real target board hardware type; Step 1.3: Configure the corresponding standard application framework according to the application type in the operating system integrated development environment, create the application and select the corresponding target board; Step 1.4: Set the network IP address in the MSL project configuration to be consistent with the IP segment and gateway in the digital prototype.
3. The digital prototype RAM deployment and operation method according to claim 1, characterized in that: The step 4 comprises: Step 4.1: Select the new target machine in the operating system integrated development environment and connect; Step 4.2: After the connection is successful, select the operating system project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the operating system is loaded and run; Step 4.3: After the operating system runs successfully, select the application project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the application is loaded and run.
4. A digital prototype RAM deployment and operation system, characterized in that: include: Module M1: Create the main standard library MSL project and configure the network IP address of the MSL project; Module M2: Load the firmware program of the MSL project into the digital prototype development and commissioning project; Module M3: Uses random access memory RAM solidification mode to run digital prototype development and commissioning projects; Module M4: Connect the digital prototype in the operating system integrated development environment and load the operating system image and software application image respectively; The module M2 comprises: Module M2.1: Create a new target machine in the target machine management of the operating system integrated development environment, and set the digital target board project IP configuration of the new target machine to the network IP of the MSL project; Module M2.2: Open the digital prototype editing and running tool to create a new digital target board project for the target machine according to the hardware connection or directly load the previous digital target board project; Module M2.3: Through the graphical property configuration window, set the image file address of the MSL project and the starting loading address of the binary executable file and the corresponding image file path in the property list. When the operating system starts, load the image file according to the set path and jump to the set starting code segment; The module M3 comprises: Module M3.1: Use the digital prototype editing and running tool to run the digital target board project; Module M3.2: In the interactive window, set the curing mode to RAM curing through the interactive command line, replacing the burning process in the real hardware. During the runtime, the firmware program of the MSL project is loaded from RAM directly according to the interface parameter settings; Module M3.3: Get the loading information of the MSL project in the run interactive window, including the version number, the target board and the compilation date, and check the network IP information and port number of the MSL project.
5. The digital prototype RAM deployment and operation system according to claim 4, characterized in that: The module M1 comprises: Module M1.1: Create an MSL project in the operating system integrated development environment and set relevant parameters; Module M1.2: Create an operating system project in the operating system integrated development environment, select the corresponding operating system template and the corresponding real target board hardware type; Module M1.3: Configure the corresponding standard application framework according to the application type in the operating system integrated development environment, create the application and select the corresponding target board; Module M1.4: Set the network IP address in the MSL project configuration to be consistent with the IP segment and gateway in the digital prototype.
6. The digital prototype RAM deployment and operation system according to claim 4, characterized in that: The module M4 comprises: Module M4.1: Select a new target machine in the operating system integrated development environment and connect to it; Module M4.2: After the connection is successful, select the operating system project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the operating system is loaded and run; Module M4.3: After the operating system runs successfully, select the application project running mode as ACoreOsMP loading, select the server of the newly created target machine, and after completion, the application is loaded and run.
Citation Information
Patent Citations
Digital target machine-based horizon development environment integration real-time debugging method and system
CN117667714A
Method for an improved firmware deployment and its usage in embedded logic
EP4012566A1