Data simulation method and device and electronic equipment

By interacting with the hardware-in-the-loop simulation equipment and the simulation analysis equipment, the interaction of real-time operating condition data and the control of the simulation process are realized, which solves the problem of unsatisfactory simulation results in the existing technology and improves the accuracy and stability of the simulation results.

CN120848244APending Publication Date: 2025-10-28SHANGHAI RENTONG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510935808.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-07
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Existing simulation analysis equipment cannot be connected to actual hardware, resulting in unsatisfactory simulation results that fail to meet the testing requirements in actual working conditions. Furthermore, hardware-in-the-loop simulation equipment struggles to solve complex virtual models.

Method used

By interacting with the hardware-in-the-loop simulation equipment and the simulation analysis equipment, the interaction of real-time operating condition data and the control of the simulation process are realized. The real-time operating condition data obtained by the hardware-in-the-loop simulation equipment is used for simulation analysis, and data simulation is performed in combination with the simulation model file.

Benefits of technology

It achieves seamless integration of simulation analysis equipment under real-time operating conditions, obtains simulation results that closely resemble real operating conditions, and controls the simulation process through termination commands, thereby improving the accuracy and stability of simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120848244A_ABST
    Figure CN120848244A_ABST
Patent Text Reader

Abstract

The invention discloses a data simulation method and device and electronic equipment. The method comprises the steps that a starting instruction and file information of a preset simulation model file are sent to simulation analysis equipment, so that the simulation analysis equipment starts a simulation process, and the simulation model file is loaded based on the file information; receiving loading completion state information sent by the simulation analysis equipment; sending the real-time working condition data to simulation analysis equipment, so that the simulation analysis equipment inputs the real-time working condition data into the simulation model file and operates the real-time working condition data, and performing data simulation based on the real-time working condition data to obtain output data; receiving output data sent by the simulation analysis equipment, updating the real-time working condition data by using the output data, and sending the updated real-time working condition data to the simulation analysis equipment; and when the preset termination time is reached, sending a termination instruction to the simulation analysis equipment so as to enable the simulation analysis equipment to terminate the simulation process. According to the method, the simulation analysis equipment can utilize the real-time working condition data to carry out data simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of simulation testing, and in particular relates to a method, apparatus and electronic device for data simulation. Background Technology

[0002] In related simulation technologies, although current simulation analysis equipment can solve virtual models, it is often used for offline simulation because it is not connected to actual hardware.

[0003] In other words, current simulation analysis equipment often uses historical data or summarized data as operating condition data and uses this operating condition data for simulation. However, during simulation, it is difficult to connect to actual hardware and form real-time interaction in parallel. As a result, it is difficult to use the real-time operating condition data of actual hardware in the simulation environment or real operating conditions for simulation. Consequently, the simulation results of the simulation analysis equipment are often not ideal and cannot meet the testing requirements of actual hardware in actual operating conditions. Summary of the Invention

[0004] This application provides a method, apparatus, and electronic device for data simulation, which can solve the problem that simulation analysis equipment cannot access real-time operating condition data for data simulation.

[0005] In a first aspect, embodiments of this application provide a data simulation method applied to a hardware-in-the-loop simulation device, the method comprising:

[0006] Send a start command and file information of a preset simulation model file to the simulation analysis device, so that the simulation analysis device can start the simulation process based on the start command and load the simulation model file based on the file information;

[0007] Receive the completion loading status information sent by the simulation analysis device;

[0008] Real-time operating condition data is sent to the simulation analysis device so that the simulation analysis device can input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data and obtain output data.

[0009] Receive the output data sent by the simulation analysis device, update the real-time operating condition data using the output data, and send the updated real-time operating condition data back to the simulation analysis device;

[0010] When a preset termination time is detected, a termination command is sent to the simulation analysis device so that the simulation analysis device can end the simulation process.

[0011] The hardware-in-the-loop simulation device includes a co-simulation interface, which encapsulates the file information, including the address of the simulation analysis device, the simulation model file, the processor's configuration parameters, and the simulation model file's running parameters.

[0012] Furthermore, the system sends a start command and file information of a preset simulation model file to the simulation analysis equipment, including:

[0013] The startup command, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file are sent to the simulation analysis device corresponding to the address of the simulation analysis device using the co-simulation interface.

[0014] Secondly, embodiments of this application provide another data simulation method, applied to a simulation analysis device, the method comprising:

[0015] Receive the start command and simulation model file information sent by the hardware-in-the-loop simulation device;

[0016] The simulation process is started based on the startup command, and the simulation model file is loaded based on the file information.

[0017] After loading is completed, a status message indicating that loading is complete is sent to the hardware-in-the-loop simulation device.

[0018] Receive real-time operating condition data sent by the hardware-in-the-loop simulation device, input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data to obtain output data;

[0019] The output data is sent to the hardware-in-the-loop simulation device, and the output data is used by the hardware-in-the-loop simulation device to update real-time operating data.

[0020] The system receives and executes a termination command sent by the hardware-in-the-loop simulation device to end the simulation process.

[0021] The simulation analysis equipment includes a backend service unit; the file information includes simulation model files, processor configuration parameters, and simulation model file running parameters.

[0022] Furthermore, it receives the start command and simulation model file information sent by the hardware-in-the-loop simulation device, including:

[0023] The background service unit receives the start command, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file sent by the co-simulation interface of the hardware-in-the-loop simulation device.

[0024] The simulation analysis equipment also includes a real-time analysis unit, which includes a processor.

[0025] Further, loading the simulation model file based on the file information includes:

[0026] The background service unit sends the simulation model file, the processor's configuration parameters, and the simulation model file's runtime parameters to the real-time analysis unit.

[0027] The real-time analysis unit configures the processor according to its configuration parameters and uses the configured processor to load the running parameters into the simulation model file.

[0028] Further, the system receives real-time operating condition data sent by the hardware-in-the-loop simulation device, inputs the real-time operating condition data into the simulation model file and runs it to perform data simulation based on the real-time operating condition data to obtain output data, including:

[0029] The real-time analysis unit receives the real-time operating condition data.

[0030] The real-time analysis unit inputs the real-time operating condition data into the simulation model file, and the processor configured with the configuration parameters runs the simulation model file according to the running parameters to perform data simulation based on the real-time operating condition data to obtain output data.

[0031] Further, receiving and executing a termination command sent by the hardware-in-the-loop simulation device to end the simulation process includes:

[0032] The background service unit receives the termination instruction and terminates the simulation model file running in the real-time analysis unit according to the termination instruction.

[0033] Thirdly, embodiments of this application provide a data simulation apparatus, the apparatus comprising:

[0034] The instruction and information sending module is used to send a start instruction and file information of a preset simulation model file to the simulation analysis device, so that the simulation analysis device can start the simulation process based on the start instruction and load the simulation model file based on the file information;

[0035] The receiving module is used to receive the completion loading status information sent by the simulation analysis device;

[0036] The data sending module is used to send real-time operating condition data to the simulation analysis device, so that the simulation analysis device can input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data and obtain output data.

[0037] The update module is used to receive the output data sent by the simulation analysis device, update the real-time operating data using the output data, and send the updated real-time operating data back to the simulation analysis device.

[0038] The termination module is used to send a termination command to the simulation analysis device when a preset termination time is reached, so that the simulation analysis device can end the simulation process.

[0039] Fourthly, embodiments of this application provide another data simulation apparatus, the apparatus comprising:

[0040] The receiving module is used to receive the start command and simulation model file information sent by the hardware-in-the-loop simulation device;

[0041] The loading module is used to start the simulation process based on the startup command and load the simulation model file based on the file information;

[0042] The status sending module is used to send status information indicating that loading is complete to the hardware-in-the-loop simulation device after loading is completed.

[0043] The running module is used to receive real-time operating condition data sent by the hardware-in-the-loop simulation device, input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data to obtain output data.

[0044] The data sending module is used to send the output data to the hardware-in-the-loop simulation device, and the output data is used by the hardware-in-the-loop simulation device to update real-time operating data.

[0045] The termination module is used to receive and execute the termination command sent by the hardware-in-the-loop simulation device to end the simulation process.

[0046] Fifthly, embodiments of this application provide an electronic device, the device comprising:

[0047] Processor and memory storing computer program instructions;

[0048] A method for simulating data as described above when a processor executes computer program instructions.

[0049] Sixthly, embodiments of this application provide a computer storage medium on which computer program instructions are stored, wherein when the computer program instructions are executed by a processor, a data simulation method as described above is implemented.

[0050] In a seventh aspect, embodiments of this application provide a method for simulating data as described above when instructions in a computer program product are executed by a processor of an electronic device.

[0051] The data simulation method, apparatus, and electronic device of this application embodiment are based on the start command and simulation model file information sent by the hardware-in-the-loop simulation device to the simulation analysis device. After receiving the start command and file information, the simulation analysis device can load the simulation model file according to the content in the file information, thereby realizing the interaction between the hardware-in-the-loop simulation device and the simulation analysis device to establish a simulation process. In other words, it realizes the simulation process of the simulation analysis device by controlling the simulation process through the hardware-in-the-loop simulation device.

[0052] Furthermore, based on the real-time operating condition data sent from the hardware-in-the-loop simulation device to the simulation analysis device, the simulation analysis device can obtain the real-time operating condition data. This allows the simulation analysis device to use the real-time operating condition data to run the simulation model file, thereby realizing the interaction of real-time operating condition data during the simulation process. This enables seamless connection between the hardware-in-the-loop simulation device and the simulation analysis device. After the simulation is performed using the real-time operating condition data, the simulation analysis device can obtain simulation results that are close to the actual operating conditions. After the data simulation is completed, the hardware-in-the-loop simulation device can issue a termination command to the simulation analysis device, allowing the simulation analysis device to terminate the simulation according to the termination command of the hardware-in-the-loop simulation device. This achieves full interaction and docking of the data simulation process. Attached Figure Description

[0053] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0054] Figure 1 This is a schematic diagram illustrating an application scenario of a data simulation method provided in an embodiment of this application;

[0055] Figure 2 This is a schematic diagram of the interaction scenario between a hardware-in-the-loop simulation device and a simulation analysis device provided in an embodiment of this application;

[0056] Figure 3 This is a flowchart illustrating a data simulation method provided in an embodiment of this application;

[0057] Figure 4 This is a schematic diagram of an encapsulation interface provided in an embodiment of this application;

[0058] Figure 5 This is a first structural schematic diagram of a data simulation device provided in an embodiment of this application;

[0059] Figure 6 This is a second structural schematic diagram of a data simulation device provided in an embodiment of this application;

[0060] Figure 7 This is a structural diagram of an electronic device provided in an embodiment of the present application. Detailed Implementation

[0061] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0062] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0063] As described in the background section, the relevant data simulation technology is still insufficient to meet the needs of practical work.

[0064] In the process of developing this application, the applicant discovered that, in related simulation technologies, although current simulation analysis equipment can solve virtual models, it is often used for offline simulation because it is not connected to actual hardware.

[0065] In other words, current simulation analysis equipment often uses historical data or summarized data as operating condition data and uses this operating condition data for simulation. However, since it cannot connect to actual hardware during simulation, it cannot form real-time data interaction with the actual hardware. As a result, it is difficult to use real-time data from the actual hardware in the simulation environment or real operating conditions for simulation. Consequently, the simulation results of the simulation analysis equipment are often not ideal and cannot meet the testing requirements of the actual hardware in actual operating conditions.

[0066] In addition, hardware-in-the-loop (HIL) simulation technology is also used in data simulation work. HIL is a simulation testing method that combines actual hardware with virtual models. However, in HIL, it is still difficult to solve complex virtual models because there is currently no HIL device developed for complex virtual models.

[0067] To address the problems in the prior art, embodiments of this application provide a method, apparatus, and electronic device for data simulation. By combining a hardware-in-the-loop (HIL) simulation device with a simulation analysis device, and through their interaction, the HIL simulation device sends real-time operating condition data of the actual hardware to the simulation analysis device. This enables the simulation analysis device to acquire the real-time operating condition data and perform data simulation, thereby obtaining simulation results that match the actual operating conditions.

[0068] The data simulation method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0069] Figure 1 This illustration shows an application scenario of the data simulation method provided in one embodiment of this application.

[0070] exist Figure 1 The scenarios shown include: simulation analysis equipment, hardware-in-the-loop simulation equipment, and actual hardware.

[0071] The simulation analysis equipment includes a background service unit and a real-time analysis unit, with the real-time analysis unit including a processor.

[0072] Furthermore, the hardware-in-the-loop simulation device includes a hardware-in-the-loop simulation model, and the hardware-in-the-loop simulation model includes a co-simulation interface.

[0073] Furthermore, the actual hardware is the hardware to be tested.

[0074] Among them, the hardware-in-the-loop simulation model is a model that matches the actual hardware and is used to control the actual hardware or be controlled by the actual hardware.

[0075] In some specific examples, the actual hardware can be, for example, the suspension system of a vehicle, and the hardware-in-the-loop model can be, for example, a virtual model of simulated electronic components. The actual hardware of these electronic components can be electrically connected to the suspension system to enable the interaction of operating condition data with the suspension system, so as to control the suspension system or be controlled by the suspension system.

[0076] In this embodiment, the simulation analysis device may be, for example, an electronic device for running simulation analysis programs, which has an information interaction port to enable information interaction with other electronic devices.

[0077] The simulation analysis program can be, for example, a simulation analysis program used to perform kinematic and / or dynamic simulation analysis on mechanical and / or electromechanical systems. Through the simulation analysis program, complex virtual models can be built, and the complex virtual models can be solved using local data from the simulation analysis equipment.

[0078] Furthermore, the hardware-in-the-loop simulation device can be, for example, an electronic device used to run a hardware-in-the-loop simulation program. This electronic device also has an information interaction port to enable information interaction with other electronic devices and can establish an electrical connection with actual hardware, thereby enabling the interaction of operating condition data with the actual hardware.

[0079] Based on this, Figure 1 As shown, the co-simulation interface of the hardware-in-the-loop simulation device can interact with the actual hardware, and the co-simulation interface can also establish electrical and / or communication connections with the background service unit and real-time analysis unit of the simulation analysis device, thereby enabling the background service unit and real-time analysis unit of the simulation analysis device to interact with the co-simulation interface respectively.

[0080] Furthermore, Figure 2 The interactive scenario between the hardware-in-the-loop simulation device and the simulation analysis device is shown.

[0081] like Figure 2 As shown, a host computer and a switch are also set up between the hardware-in-the-loop simulation equipment and the simulation analysis equipment.

[0082] The host computer can be, for example, a monitoring device, used to monitor hardware-in-the-loop simulation equipment and simulation analysis equipment.

[0083] Furthermore, switches are used to transmit information and operating condition data between hardware-in-the-loop simulation equipment and simulation analysis equipment.

[0084] Specifically, when hardware-in-the-loop simulation equipment communicates and interacts with simulation analysis equipment, a communication network can be established through a switch to complete the interaction of information and data. For example, a communication network using the UDP protocol (User Datagram Protocol) can be established, and the interaction of information and data can be completed through the UDP protocol network. Specifically, the information and data exchanged between the hardware-in-the-loop simulation equipment and the simulation analysis equipment can be transmitted in the form of UDP packets.

[0085] It can be seen that, based on the above Figure 1 Application scenarios and Figure 2 The interactive scenario enables the exchange of information and operating condition data between the hardware-in-the-loop simulation equipment and the simulation analysis equipment.

[0086] In another embodiment of this application, based on Figure 1 and Figure 2 The application scenarios and interaction scenarios shown are as follows: Figure 3 The specific execution steps of the data simulation method are shown.

[0087] like Figure 3 As shown, when performing data simulation on actual hardware, based on the communication interaction established in the aforementioned embodiment, the hardware-in-the-loop simulation device executes S301: sending the start command and the file information of the simulation model file of the threshold to the simulation analysis device.

[0088] Specifically, when the hardware-in-the-loop simulation device begins simulating the actual hardware, as in the aforementioned embodiments... Figure 2 As shown, based on the configured co-simulation interface, the hardware-in-the-loop simulation device can use the co-simulation interface to send start commands and simulation model file information to the simulation analysis device.

[0089] In some specific examples, file information may include, for example, the address of the simulation analysis device, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file.

[0090] The simulation model file is a specific virtual model for the simulation analysis program running in the simulation analysis device. Different simulation model files are set for different actual hardware. Each simulation model file can be stored in the hardware-in-the-loop simulation device in advance. When the hardware-in-the-loop simulation device performs data simulation on the actual hardware, the hardware-in-the-loop simulation device retrieves the corresponding simulation model file and sends the simulation model file to the simulation analysis device.

[0091] Furthermore, the running parameters of the simulation model file are used by the simulation analysis equipment to control the simulation analysis program to run the simulation model file. For example, the running parameters can be parameters such as the operation step size of the simulation operation, and are used to control the simulation model file to run with the set operation step size and other parameters when running data simulation. The running parameters can also be, for example, whether to enable simulation animation.

[0092] Furthermore, the processor configuration parameters are used by the simulation analysis device to configure the processor in the real-time analysis unit. For example, when the simulation analysis program runs the simulation model file, the simulation analysis device configures the processor running the simulation analysis program according to the configuration parameters, thereby seizing more computing resources for data simulation.

[0093] Specifically, the simulation analysis device can preempt real-time processor cores, for example, preempting 4 cores in a 7-core processor to run the simulation analysis program. The simulation analysis device can also configure the simulation analysis program process as a real-time scheduling process. The simulation analysis device can also configure the simulation analysis program process as a high priority, thereby enabling the simulation analysis program process to respond faster and preempt low-priority computing resources, thus ensuring the real-time performance of the data simulation process during runtime, reducing latency during real-time data simulation and improving stability.

[0094] Furthermore, the simulation analysis device can also improve the performance of the simulation analysis program during data simulation by configuring the process of the simulation analysis program to run on a specific processor and isolating other program processes unrelated to data simulation from that specific processor.

[0095] In this embodiment, the hardware-in-the-loop simulation device can use a co-simulation interface to encapsulate the simulation model file, processor configuration parameters, address of the simulation analysis device, and running parameters of the simulation model file.

[0096] Specifically, the co-simulation interface can encapsulate simulation model files, processor configuration parameters, the address of simulation analysis devices, and the runtime parameters of simulation model files into a package such as... Figure 4 In the module shown.

[0097] in, Figure 4 A module interface for encapsulating file information in a hardware-in-the-loop simulation device is shown, in which the information of each file can be set.

[0098] As can be seen in the example of this module interface, the hardware-in-the-loop simulation device can set the address of the simulation analysis device, for example, setting it to 1.3.5.6; the hardware-in-the-loop simulation device can also set the simulation model file to be retrieved, for example, by selecting a button to retrieve the required vehicle suspension model; the hardware-in-the-loop simulation device can also set the running parameters of the simulation model file, for example, setting the calculation step size of the vehicle suspension model to 0.001; the hardware-in-the-loop simulation device can also set whether to enable simulation animation, for example, by checking the box to enable simulation animation; the hardware-in-the-loop simulation device can also set the processor configuration parameters, for example, setting to preempt 4 of the multiple processor cores.

[0099] Based on this, after the hardware-in-the-loop simulation device completes the setting of the aforementioned file information, that is, after the file information is encapsulated, the hardware-in-the-loop simulation device can... Figure 4 Use the settings button in the module interface to save the above file information, and use the apply button to apply the above file information.

[0100] When the application button is clicked, it is assumed that the hardware-in-the-loop simulation device can apply the above file information to the simulation analysis device. Accordingly, the co-simulation interface in the hardware-in-the-loop simulation device will send the processor configuration parameters, the address of the simulation analysis device, and the running parameters of the simulation model file, etc., from the module interface to the simulation analysis device according to the address of the simulation analysis device in the file information, thereby causing the simulation analysis device to start the simulation process.

[0101] In this embodiment, the hardware-in-the-loop simulation device can send both the startup command and file information to the simulation analysis device simultaneously; the hardware-in-the-loop simulation device can also send the startup command first and then the file information; or the hardware-in-the-loop simulation device can send the file information first and then the startup command. The order in which the hardware-in-the-loop simulation device sends the startup command and the file information is not limited here.

[0102] Furthermore, after the hardware-in-the-loop simulation device sends the start command and file information to the simulation analysis device, the simulation analysis device can receive the start command and file information.

[0103] Specifically, based on the background service unit in the aforementioned embodiments, such as Figure 1 As shown, the simulation analysis device uses the background service unit to receive the start command sent by the co-simulation interface, and receives the simulation model file, processor configuration parameters, simulation analysis device address, and simulation model file running parameters from the file information.

[0104] Furthermore, based on the received start command, the simulation analysis equipment can load the simulation model file according to the file information, that is, execute... Figure 3 S302 in the context: Starts the simulation process based on the startup command and loads the simulation model file based on the file information.

[0105] Specifically, based on the background service unit in the aforementioned embodiments, such as Figure 1 As shown, the simulation analysis device can start the simulation process based on the start command received from the background service unit.

[0106] Furthermore, after the simulation analysis device starts the simulation process, it uses the background service unit to send the simulation model file, processor configuration parameters, simulation analysis device address, and simulation model file running parameters from the file information to the real-time analysis unit.

[0107] Furthermore, the real-time analysis unit loads the simulation model file after receiving the file information.

[0108] Specifically, the real-time analysis unit analyzes the processor according to the processor configuration parameters in the file information. Figure 1Configure the processor in it.

[0109] Furthermore, the real-time analysis unit inputs the running parameters of the simulation model file into the simulation model file.

[0110] Furthermore, the real-time analysis unit uses the configured processor to load the simulation model file with the aforementioned operating parameters.

[0111] Accordingly, the simulation analysis equipment can further perform Figure 3 S303 in the code: After loading is completed, send the status information of loading completion to the hardware-in-the-loop simulation device.

[0112] Specifically, after the real-time analysis unit completes the loading of the simulation model file, the real-time analysis unit generates corresponding status information based on the loading completion status, such as... Figure 1 As shown, the real-time analysis unit sends the status information to the background processing unit.

[0113] Furthermore, such as Figure 1 As shown, the background processing unit sends this status information to the co-simulation interface in the hardware-in-the-loop simulation device.

[0114] Furthermore, upon receiving this status information, the co-simulation interface in the hardware-in-the-loop simulation device considers that the simulation analysis device is ready to perform data simulation.

[0115] In this embodiment, the hardware-in-the-loop simulation device and the simulation analysis device can perform data simulations over multiple simulation cycles to simulate the actual hardware, thereby obtaining more accurate and reliable simulation results.

[0116] Accordingly, after receiving the status information sent by the simulation analysis device, the hardware-in-the-loop simulation device can start the simulation cycle and further execute... Figure 3 S304 in the middle sends real-time operating condition data to the simulation analysis equipment.

[0117] Specifically, in each simulation cycle, according to the aforementioned embodiments, the hardware-in-the-loop simulation device can perform real-time hardware-in-the-loop simulation of the actual hardware through the hardware-in-the-loop simulation model, thereby obtaining real-time operating condition data from the hardware-in-the-loop simulation model.

[0118] Based on this, the hardware-in-the-loop simulation model in the hardware-in-the-loop simulation equipment can use the co-simulation interface to send the obtained real-time operating condition data to the simulation analysis equipment, and specifically, it can directly send the real-time operating condition data of the current simulation cycle to the real-time analysis unit in the simulation sub-equipment.

[0119] Accordingly, the simulation analysis equipment can further perform Figure 3S305 in the model: Input real-time operating condition data into the simulation model file and run it to obtain output data through data simulation based on real-time operating condition data.

[0120] Specifically, in each simulation cycle, the real-time analysis unit in the simulation analysis device can directly receive real-time operating condition data sent by the co-simulation interface. Based on the aforementioned loaded simulation model file, the real-time analysis unit can input the real-time operating condition data into the simulation model file.

[0121] Accordingly, the real-time analysis unit can use the processor configured according to the aforementioned configuration parameters to run the simulation model file based on real-time operating data and set according to the aforementioned operating parameters, in order to perform data simulation for the current simulation cycle.

[0122] Furthermore, after the real-time analysis unit completes the data simulation for the current simulation cycle, the output data for the current simulation cycle can be obtained.

[0123] Accordingly, the simulation analysis equipment can further perform Figure 3 S306 in the code: Send output data to the hardware-in-the-loop simulation device.

[0124] Specifically, after the real-time analysis unit obtains the output data for the current simulation cycle, it can directly send the output data to the co-simulation interface in the hardware-in-the-loop simulation device.

[0125] Accordingly, after receiving the output data sent by the real-time analysis unit, the hardware-in-the-loop simulation device can further execute... Figure 3 S307 in the example: Update real-time operating condition data using output data.

[0126] Specifically, after receiving the output data of the current simulation cycle sent by the real-time analysis unit, the co-simulation interface in the hardware-in-the-loop simulation equipment updates the real-time operating data of the current simulation cycle using the output data of the current simulation cycle, and obtains the real-time operating data of the next simulation cycle.

[0127] In some embodiments, the hardware-in-the-loop simulation model can use the output data of the current cycle to calculate the real-time operating data of the next simulation cycle; the hardware-in-the-loop simulation model can also use the output data to interact with the connected actual hardware to obtain the real-time operating data of the next simulation cycle.

[0128] Therefore, the hardware-in-the-loop simulation equipment can further perform... Figure 3 S308 in the figure: sends updated real-time operating condition data to the simulation analysis equipment, thereby enabling the hardware-in-the-loop simulation equipment to complete the data simulation of the current simulation cycle.

[0129] Furthermore, after receiving the updated real-time operating conditions sent by the hardware-in-the-loop simulation device, the real-time analysis unit in the simulation analysis device can perform data simulation for the next simulation cycle.

[0130] In this embodiment, the hardware-in-the-loop simulation device will detect in real time whether a preset termination time has been reached. The termination time can be, for example, a preset duration, a preset moment, or a preset number of simulation cycles.

[0131] Therefore, when the hardware-in-the-loop simulation device detects that the termination time has been reached, that is, when the hardware-in-the-loop simulation device executes... Figure 3 S309 in the code: If the preset termination time is detected, the hardware-in-the-loop simulation device can proceed to further execution. Figure 3 S310 in the middle: Sends a termination command to the simulation analysis device.

[0132] Specifically, when the hardware-in-the-loop simulation device sends a termination command, the co-simulation interface can be used to send the termination command to the simulation analysis device.

[0133] Furthermore, after receiving the termination command sent by the co-simulation interface, the background service unit in the simulation analysis equipment can execute... Figure 3 S311 in the code: End the simulation process.

[0134] Specifically, when the background service unit executes the termination command, it can directly shut down the simulation process of the data simulation currently running in the real-time analysis unit.

[0135] Furthermore, the background service unit releases the resources used when running the simulation model file.

[0136] Accordingly, the hardware-in-the-loop simulation equipment and the simulation analysis equipment complete the joint simulation process of the actual hardware. The hardware-in-the-loop simulation equipment outputs the real-time operating condition data obtained in the last simulation cycle, and the simulation analysis equipment outputs the output data obtained in the last simulation cycle.

[0137] Based on the same inventive concept, and corresponding to the methods of any of the above embodiments, the embodiments of this application also provide a data simulation apparatus.

[0138] refer to Figure 5 The device for simulating this data includes:

[0139] The instruction and information sending module 501 is used to send a start instruction and file information of a preset simulation model file to the simulation analysis device, so that the simulation analysis device can start the simulation process based on the start instruction and load the simulation model file based on the file information;

[0140] The receiving module 502 is used to receive the completion loading status information sent by the simulation analysis device;

[0141] The data sending module 503 is used to send real-time operating condition data to the simulation analysis device, so that the simulation analysis device can input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data and obtain output data.

[0142] The update module 504 is used to receive the output data sent by the simulation analysis device, update the real-time operating data using the output data, and send the updated real-time operating data back to the simulation analysis device.

[0143] The termination module 505 is used to send a termination command to the simulation analysis device when a preset termination time is reached, so that the simulation analysis device can end the simulation process.

[0144] In one embodiment, the hardware-in-the-loop simulation device includes a co-simulation interface, which encapsulates the file information, including the address of the simulation analysis device, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file.

[0145] Furthermore, the instruction and information sending module 501 is specifically used for:

[0146] The startup command, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file are sent to the simulation analysis device corresponding to the address of the simulation analysis device using the co-simulation interface.

[0147] Based on the same inventive concept, corresponding to any of the above embodiments, the embodiments of this application also provide another data simulation apparatus.

[0148] refer to Figure 6 The device for simulating this data includes:

[0149] The receiving module 601 is used to receive the start command and simulation model file information sent by the hardware-in-the-loop simulation device;

[0150] The loading module 602 is used to start the simulation process based on the startup command and load the simulation model file based on the file information;

[0151] The status sending module 603 is used to send status information indicating that loading is complete to the hardware-in-the-loop simulation device after loading is completed.

[0152] The running module 604 is used to receive real-time operating condition data sent by the hardware-in-the-loop simulation device, input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data to obtain output data.

[0153] Data sending module 605 is used to send the output data to the hardware-in-the-loop simulation device, and the output data is used by the hardware-in-the-loop simulation device to update real-time operating data.

[0154] The termination module 606 is used to receive and execute the termination command sent by the hardware-in-the-loop simulation device to end the simulation process.

[0155] In one embodiment, the simulation analysis device includes a background service unit; the file information includes simulation model files, processor configuration parameters, and simulation model file running parameters.

[0156] Furthermore, the receiving module 601 is specifically used for:

[0157] The background service unit receives the start command, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file sent by the co-simulation interface of the hardware-in-the-loop simulation device.

[0158] In one embodiment, the simulation analysis device further includes a real-time analysis unit, which includes a processor.

[0159] Furthermore, the loading module 602 is specifically used for:

[0160] The background service unit sends the simulation model file, the processor's configuration parameters, and the simulation model file's runtime parameters to the real-time analysis unit.

[0161] The real-time analysis unit configures the processor according to its configuration parameters and uses the configured processor to load the running parameters into the simulation model file.

[0162] Module 604 is specifically used for:

[0163] The real-time analysis unit receives the real-time operating condition data.

[0164] The real-time analysis unit inputs the real-time operating condition data into the simulation model file, and the processor configured with the configuration parameters runs the simulation model file according to the running parameters to perform data simulation based on the real-time operating condition data to obtain output data.

[0165] Termination module 606 is specifically used for:

[0166] The background service unit receives the termination instruction and terminates the simulation model file running in the real-time analysis unit according to the termination instruction.

[0167] For ease of description, the above apparatus is described in terms of its functions, divided into various modules. Of course, in implementing the embodiments of this application, the functions of each module can be implemented in one or more software and / or hardware.

[0168] The apparatus of the above embodiments is used to implement the corresponding data simulation method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0169] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, embodiments of this application also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the data simulation method as described in any of the above embodiments.

[0170] Figure 7 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.

[0171] An electronic device may include a processor 701 and a memory 702 storing computer program instructions.

[0172] Specifically, the processor 701 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0173] Memory 702 may include mass storage for data or instructions. For example, and not limitingly, memory 702 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 702 may include removable or non-removable (or fixed) media. Where appropriate, memory 702 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 702 is non-volatile solid-state memory.

[0174] Memory 702 may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.

[0175] The processor 701 implements any of the data simulation methods described in the above embodiments by reading and executing computer program instructions stored in the memory 702.

[0176] In one example, the electronic device may also include a communication interface 703 and a bus 710. For example, Figure 3 As shown, the processor 701, memory 702, and communication interface 703 are connected through bus 710 and complete communication with each other.

[0177] The communication interface 703 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0178] Bus 710 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 710 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0179] This electronic device can execute the data simulation method described in this application based on information and data interaction between the hardware-in-the-loop simulation device and the simulation analysis device, thereby achieving a combination of... Figure 3 The method described is for data simulation.

[0180] Furthermore, in conjunction with the data simulation methods described in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the data simulation methods described in the above embodiments.

[0181] This application also provides a computer program product, including a computer program, which, when executed, implements any of the data simulation methods described in the above embodiments.

[0182] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0183] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0184] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0185] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0186] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A method for data simulation, characterized in that, The method, applied to hardware-in-the-loop simulation equipment, includes: Send a start command and file information of a preset simulation model file to the simulation analysis device, so that the simulation analysis device can start the simulation process based on the start command and load the simulation model file based on the file information; Receive the completion loading status information sent by the simulation analysis device; Real-time operating condition data is sent to the simulation analysis device so that the simulation analysis device can input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data and obtain output data. Receive the output data sent by the simulation analysis device, update the real-time operating condition data using the output data, and send the updated real-time operating condition data back to the simulation analysis device; When a preset termination time is detected, a termination command is sent to the simulation analysis device so that the simulation analysis device can end the simulation process.

2. The data simulation method according to claim 1, characterized in that, The hardware-in-the-loop simulation device includes a co-simulation interface, which encapsulates the file information, including the address of the simulation analysis device, the simulation model file, the processor's configuration parameters, and the simulation model file's running parameters. The file information for sending the start command and the preset simulation model file to the simulation analysis device includes: The startup command, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file are sent to the simulation analysis device corresponding to the address of the simulation analysis device using the co-simulation interface.

3. A method for data simulation, characterized in that, Applied to simulation analysis equipment; the method includes: Receive the start command and simulation model file information sent by the hardware-in-the-loop simulation device; The simulation process is started based on the startup command, and the simulation model file is loaded based on the file information. After loading is completed, a status message indicating that loading is complete is sent to the hardware-in-the-loop simulation device. Receive real-time operating condition data sent by the hardware-in-the-loop simulation device, input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data to obtain output data; The output data is sent to the hardware-in-the-loop simulation device, and the output data is used by the hardware-in-the-loop simulation device to update real-time operating data. The system receives and executes a termination command sent by the hardware-in-the-loop simulation device to end the simulation process.

4. The data simulation method according to claim 3, characterized in that, The simulation analysis device includes a background service unit; the file information includes simulation model files, processor configuration parameters, and simulation model file running parameters. The file information of the startup command and simulation model file sent by the hardware-in-the-loop simulation device includes: The background service unit receives the start command, the simulation model file, the processor configuration parameters, and the running parameters of the simulation model file sent by the co-simulation interface of the hardware-in-the-loop simulation device.

5. The data simulation method according to claim 4, characterized in that, The simulation analysis device further includes a real-time analysis unit, which includes a processor; The loading of the simulation model file based on the file information includes: The background service unit sends the simulation model file, the processor's configuration parameters, and the simulation model file's runtime parameters to the real-time analysis unit. The real-time analysis unit configures the processor according to its configuration parameters and uses the configured processor to load the running parameters into the simulation model file.

6. The data simulation method according to claim 5, characterized in that, The process of receiving real-time operating condition data sent by the hardware-in-the-loop simulation device, inputting the real-time operating condition data into the simulation model file and running it to perform data simulation based on the real-time operating condition data to obtain output data includes: The real-time analysis unit receives the real-time operating condition data. The real-time analysis unit inputs the real-time operating condition data into the simulation model file, and the processor configured with the configuration parameters runs the simulation model file according to the running parameters to perform data simulation based on the real-time operating condition data to obtain output data.

7. The data simulation method according to claim 5, characterized in that, The step of receiving and executing the termination command sent by the hardware-in-the-loop simulation device to end the simulation process includes: The background service unit receives the termination instruction and terminates the simulation model file running in the real-time analysis unit according to the termination instruction.

8. A data simulation apparatus, characterized in that, The device comprises: The instruction and information sending module is used to send a start instruction and file information of a preset simulation model file to the simulation analysis device, so that the simulation analysis device can start the simulation process based on the start instruction and load the simulation model file based on the file information; The receiving module is used to receive the completion loading status information sent by the simulation analysis device; The data sending module is used to send real-time operating condition data to the simulation analysis device, so that the simulation analysis device can input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data and obtain output data. The update module is used to receive the output data sent by the simulation analysis device, update the real-time operating data using the output data, and send the updated real-time operating data back to the simulation analysis device. The termination module is used to send a termination command to the simulation analysis device when a preset termination time is reached, so that the simulation analysis device can end the simulation process.

9. A data simulation apparatus, characterized in that, The device comprises: The receiving module is used to receive the start command and simulation model file information sent by the hardware-in-the-loop simulation device; The loading module is used to start the simulation process based on the startup command and load the simulation model file based on the file information; The status sending module is used to send status information indicating that loading is complete to the hardware-in-the-loop simulation device after loading is completed. The running module is used to receive real-time operating condition data sent by the hardware-in-the-loop simulation device, input the real-time operating condition data into the simulation model file and run it to perform data simulation based on the real-time operating condition data to obtain output data. The data sending module is used to send the output data to the hardware-in-the-loop simulation device, and the output data is used by the hardware-in-the-loop simulation device to update real-time operating data. The termination module is used to receive and execute the termination command sent by the hardware-in-the-loop simulation device to end the simulation process.

10. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the data simulation method as described in any one of claims 1-7.