A cloud simulation system, method, electronic device and storage medium
By utilizing the B/S architecture and distributed parallel simulation technology of the cloud simulation system, the limitations of existing cloud simulation platforms are overcome, enabling remote simulation, multi-user simulation, and efficient data storage. This improves the versatility and scalability of simulation equipment and reduces simulation costs.
Patent Information
- Application Number
- CN202111658645.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing cloud simulation platforms are limited to semi-physical simulations at specific times and locations, and cannot achieve remote simulations, multi-person simulations, and efficient data uploading. Furthermore, the versatility and scalability of simulation equipment are insufficient, resulting in high simulation costs and low efficiency.
The cloud simulation system adopts a B/S architecture for the cloud simulation server and client, supports remote simulation by multiple clients, and performs distributed parallel simulation through I/O and simulation target machine to realize simultaneous simulation testing of multiple devices under test. Data is stored in the cloud database.
It enables remote simulation, multi-person simulation, and efficient data uploading and storage, expands the simulation scale, improves the versatility and scalability of simulation equipment, reduces simulation costs, and improves simulation efficiency.
Smart Images

Figure CN114461337B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of simulation, in particular to a cloud simulation system and method, an electronic device and a storage medium. BACKGROUND
[0002] There are mainly three types of simulation: dynamic simulation, full-digital real-time simulation and hardware-in-the-loop simulation (HIL). The hardware-in-the-loop simulation is the most widely used. The hardware-in-the-loop simulation combines the advantages of digital simulation and physical simulation, and can not only perform real-time digital simulation, but also quickly and accurately simulate complex physical devices for simulating the measured hardware.
[0003] Cloud simulation is a new type of simulation technology based on cloud computing. Cloud computing is a service that provides hardware and software as resources. Users can use these services on demand through the network, i.e., without installing and configuring a simulation environment locally, and perform simulation on a remote simulation platform through the network. This simulation scheme can manage designed simulation models through multi-device networking, and simplifies the ease of use of simulation. However, the current cloud simulation platform is mainly applied to process production and is limited to the running of semi-physical simulation at a specific time and a specific place. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a cloud simulation method, system, electronic device and storage medium, which can be applied to the implementation of multi-field simulation and change the limitation of semi-physical simulation of the existing cloud simulation.
[0005] To solve the above technical problems, in a first aspect, the embodiments of the present application provide a cloud simulation system, comprising: a cloud simulation server and at least one cloud simulation client, the cloud simulation server and the cloud simulation client are connected through a network, adopt a browser / server (B / S) architecture, and the B / S architecture supports multiple cloud simulation clients to perform simulation testing remotely at different places; wherein the cloud simulation server comprises a simulation server, a server simulation target machine and a database server, the simulation server and the database server respectively communicate with the server simulation target machine, the server simulation target machine is connected to a measured piece through I / O and bus signals, and distributed parallel simulation testing of multiple measured pieces is performed by adding I / O and the server simulation target machine; the cloud simulation client comprises a client device and a client simulation target machine, the client simulation target machine is connected to a measured piece through I / O and bus signals, and distributed parallel simulation testing of multiple measured pieces is performed by adding I / O and the client simulation target machine.
[0006] In a second aspect, an embodiment of the present application provides a cloud simulation method applied to the cloud simulation system as described above, the method comprising: determining positions of the cloud simulation client and the DUT; according to the determined positions of the cloud simulation client and the DUT, the cloud simulation server acquires a simulation case of a test item of the DUT, and configures a simulation target machine according to the simulation case, the simulation target machine performing simulation testing on the DUT; the cloud simulation server and the cloud simulation client monitor data of the simulation testing, and the cloud simulation server stores simulation data and simulation results after the simulation testing is completed.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein
[0008] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the cloud simulation method according to the first aspect of the present application.
[0009] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the steps of the cloud simulation method according to the first aspect of the present application.
[0010] Compared with the prior art, the embodiment of the present application is based on the architecture of the cloud simulation server and at least one cloud simulation client, and the cloud simulation server and the cloud simulation client adopt the B / S architecture, so that multiple cloud simulation clients can be supported to remotely perform simulation case writing, simulation configuration information writing, and simulation testing on the DUT at a remote place; the cloud simulation server and the cloud simulation client can be expanded by adding I / O and the server simulation target machine, so that distributed parallel simulation testing of multiple DUTs can be implemented, the simulation scale is expanded, and the device-level expansion capability is achieved; through the multiple server simulation target machines and the client simulation target machines, the DUT can simultaneously perform simulation testing of different test items, so that joint simulation testing of multiple systems is achieved.
[0011] In addition, the positions of the cloud simulation client and the measured object are determined, specifically, the cloud simulation client and the measured object are both in the cloud simulation server, or the measured object is in the cloud simulation server and the cloud simulation client is in a remote place, or the cloud simulation client and the measured object are both in a remote place; if the cloud simulation client and the measured object are both in the cloud simulation server, a simulation test case of the measured object is established in a simulation server of the cloud simulation server and a simulation request is input, the simulation request including test items of the measured object; the simulation server downloads a simulation script of the simulation test case to a server simulation target machine, and the server simulation target machine performs simulation test on the measured object according to the test items of the measured object; if the measured object is in the cloud simulation server and the cloud simulation client is in a remote place, a simulation test case of the measured object is written through a client device of the cloud simulation client, a simulation request and the simulation test case are sent to the cloud simulation server through a network, the simulation request including the test items of the measured object; when the simulation server obtains the simulation test case, a simulation script of the simulation test case is downloaded to the server simulation target machine, and the server simulation target machine performs simulation test on the measured object according to the test items of the measured object; if the cloud simulation client and the measured object are both in a remote place, a simulation test case of the measured object is written through a client device of the cloud simulation client, a simulation request and the simulation test case are sent to the cloud simulation server through a network, the simulation request including the test items of the measured object; when the simulation server obtains the simulation test case, a simulation script of the simulation test case is downloaded to the server simulation target machine, and the server simulation target machine performs simulation test on the measured object according to the test items of the measured object; the cloud simulation server and the cloud simulation client monitor data of the simulation test, and after the simulation test is completed, the simulation server generates simulation results and a simulation report according to the data of the simulation test, the data of the simulation test, the simulation results and the simulation report being stored in a database server; the cloud simulation client can send a request to the cloud simulation server to obtain the results of the simulation test and / or the simulation report from the database server. In this way, different simulation test modes are proposed according to the positions of the cloud simulation client and the measured object, thereby solving the long-standing limitations of the semi-physical simulation in the prior art, and realizing the functions of remote simulation, multi-person simulation, data uploading, network storage and data downloading at any time. BRIEF DESCRIPTION OF DRAWINGS
[0012] One or more embodiments are illustrated by way of example in the figures that constitute a part of this patent document, these illustrative examples do not limit the embodiments, elements having the same reference numerals in the figures represent similar elements, unless otherwise specified, the figures in the drawings do not constitute a proportional limit.
[0013] Figure 1 This is a structural block diagram of a cloud simulation system according to a first embodiment of the present invention;
[0014] Figure 2 This is a functional block diagram of a cloud simulation system according to a first embodiment of the present invention;
[0015] Figure 3 This is a flowchart illustrating a cloud simulation method according to a second embodiment of the present invention;
[0016] Figure 4 This is a structural block diagram of a server according to a third embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details are presented in the various embodiments of the present invention to facilitate a better understanding of this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for ease of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with and referenced by each other without contradiction.
[0018] The terms "first" and "second" used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a system, product, or device that includes a series of components or units is not limited to the listed components or units, but may optionally include unlisted components or units, or may optionally include other components or units inherent to such products or devices. In the description of this application, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0019] Regarding the current cloud simulation based on hardware-in-the-loop simulation, the inventors discovered at least the following drawbacks when implementing this invention:
[0020] Most embedded software lacks a dynamic simulation environment and often relies on manual simulation. This makes it impossible to verify the system's dynamic real-time response, performance under various extreme conditions, and fault tolerance. Some performance characteristics can only be verified through field tests. All of these problems greatly affect the development cycle and significantly increase development costs.
[0021] There is no general embedded software simulation platform, usually a certain simulation device is only for a certain software or several software, which cannot meet the needs of most embedded software simulation, and the universality is poor.
[0022] The simulation personnel can only take the measured part to the simulation system site for simulation, and the measured part cannot be simulated in a remote place, the simulation cost is high, and the simulation efficiency is low.
[0023] The simulation system is small in scale, and cannot realize distributed and parallel simulation at the system level.
[0024] Therefore, the cloud simulation technology is adopted, the simulation personnel can write simulation cases on the local client, and the simulation cases are remotely uploaded to the cloud simulation server. The cloud server can remotely configure the client simulation target machine according to the simulation cases, run the simulation code, and carry out real-time, closed-loop and non-intrusive black-box automatic simulation on the measured embedded software. All data in the simulation process and the simulation report can be saved in the database in the cloud. The client can monitor the simulation data, and the client computer can download the simulation results and the simulation report after the simulation is completed.
[0025] The first embodiment of the present application relates to a cloud simulation system, specifically as shown in Figure 1 The cloud simulation system includes a cloud simulation server and a cloud simulation client, wherein the cloud simulation server and the cloud simulation client are connected with the server through the Internet or a local area network, and adopt a B / S (Browser / Server) architecture. Compared with the traditional C / S (Custom / Server) architecture, the B / S architecture has strong distribution, is convenient to maintain, simple to develop, has strong sharing, and is low in overall cost.
[0026] The cloud simulation server includes a simulation server, a server simulation target machine and a database server, wherein the simulation server and the database server communicate with the server simulation target machine through TCP / IP, and the server simulation target machine is connected with the measured part through I / O and bus signals.
[0027] The cloud simulation client includes a client device and a client simulation target machine, wherein the client simulation target machine is connected with the measured part through I / O and bus signals, and the client device can be a computer, a mobile phone or a tablet computer.
[0028] As Figure 2As shown, the cloud simulation system further comprises a cloud service module and an automatic test management module, wherein the cloud service module is specifically used for user management, permission management, cloud communication management, and report uploading and downloading; and the automatic test management module is specifically used for test requirement management, test execution, database management, test development management, a graphical monitoring interface, test model establishment, a communication interface component, test result analysis, real-time simulation, a data dictionary, log management, automatic script generation, and automatic test report generation.
[0029] It is worth mentioning that in the cloud simulation system of the embodiment, multiple cloud simulation clients can simultaneously transmit data and instructions with the cloud simulation server through the network. The cloud simulation client has user and permission management functions. When the cloud simulation client performs simulation, the cloud simulation server assigns a user account and password to the simulation personnel of the cloud simulation client, so that the simulation personnel can log in by inputting the user name and password through a webpage of any computer connected to the Internet, write simulation test cases, and perform simulation. In addition, the simulation personnel can also download a client APP through the client device, and after logging in to the APP, they can write simulation test cases and perform simulation work.
[0030] In addition, the cloud simulation system of the embodiment has the following features:
[0031] High expansibility: multiple cloud simulation servers and cloud simulation clients can be expanded for system-level distributed parallel simulation. More I / O, bus interface channels, and greater computing power can be obtained by adding I / O board cards and simulation target machines, which have device-level expansion capability. Moreover, the measured object can simultaneously perform simulation tests of different test projects through multiple server simulation target machines and client simulation target machines.
[0032] Interconnection: the cloud simulation client and the cloud simulation server are connected through the Internet using the B / S architecture, and multiple cloud simulation clients can be used to remotely perform simulation test case and simulation configuration information writing and other work on the measured object in different places.
[0033] Versatility: different application models and test tasks can be developed to meet the testing of multiple models or multiple systems. For example, in addition to supporting the Matlab / Simulink model tool, the system also supports other model tools such as Demola, ANSYS, GT-Power, AMEsim, CarSim / TruckSim, etc. Multiple cloud simulation servers and cloud simulation clients can be expanded to realize joint simulation testing of multiple systems.
[0034] Real-time performance: the server simulation target machine and the client simulation target machine use Linux / Redhat real-time operating system to ensure real-time testing of the system.
[0035] The second aspect embodiment of the present application provides a cloud simulation method based on the cloud simulation system in the above embodiment, and the method comprises the following steps:
[0036] In step S1, the positions of the cloud simulation client and the measured object are determined.
[0037] In step S2, according to the determined positions of the cloud simulation client and the measured object, the cloud simulation server obtains a simulation case of a test item of the measured object, and configures a simulation target machine according to the simulation case, and the simulation target machine performs simulation testing on the measured object.
[0038] In step S3, the cloud simulation server and the cloud simulation client monitor the data of the simulation testing, and the cloud simulation server stores the results of the simulation testing after the simulation testing is completed.
[0039] In step S1 of the present embodiment, the positions of the cloud simulation client and the measured object are determined, specifically, the cloud simulation client and the measured object are both in the cloud simulation server, or the measured object is in the cloud simulation server and the cloud simulation client is in a remote place (i.e., the measured object is in the cloud simulation server and the cloud simulation client is not in the cloud simulation server), or the cloud simulation client and the measured object are both in a remote place (i.e., the cloud simulation client and the measured object are both not in the cloud simulation server).
[0040] In step S2 of the present embodiment, according to the determined positions of the cloud simulation client and the measured object, the cloud simulation server obtains a simulation case of a test item of the measured object, and configures a simulation target machine according to the simulation case, and the simulation target machine performs simulation testing on the measured object, specifically:
[0041] If the cloud simulation client and the measured object are both in the cloud simulation server, a simulation personnel establishes a simulation case of the measured object on a simulation server of the cloud simulation server and inputs a simulation request, and the simulation request includes a test item of the measured object; the simulation server downloads a simulation script of the simulation case to a server simulation target machine, and the server simulation target machine performs simulation testing on the measured object according to the test item of the measured object.
[0042] If the measured object is in the cloud simulation server and the cloud simulation client is in a remote place, a simulation personnel compiles a simulation case of a test item of the measured object through a client device of the cloud simulation client, sends a simulation request and the simulation case to the cloud simulation server through a network, and the simulation request includes the test item of the measured object; when the simulation server obtains the simulation case, the simulation server downloads a simulation script of the simulation case to a server simulation target machine, and the server simulation target machine performs simulation testing on the measured object according to the test item of the measured object.
[0043] If both the cloud simulation client and the device under test (DUT) are located in different locations, the simulation personnel write simulation test cases for the DUT's test items using the client device of the cloud simulation client, and send the simulation request and the simulation test cases to the cloud simulation server via the network. The simulation request includes the test items of the DUT. When the simulation server obtains the simulation test cases, it downloads the simulation script of the simulation test cases to the client simulation target machine, and the client simulation machine performs simulation testing on the DUT according to the test items of the DUT.
[0044] In step S3 of this embodiment, the cloud simulation server and the cloud simulation client monitor the simulation test data, and the cloud simulation server stores the simulation test results after the simulation test is completed. Specifically:
[0045] During the simulation test, the simulation test data can be monitored on both the cloud simulation server and the cloud simulation client. After the simulation test is completed, the simulation server generates simulation results and simulation reports based on the simulation test data. The simulation test data, simulation results, and simulation reports are stored in the database server. The cloud simulation client can send a request to the cloud simulation server to obtain the simulation test results and / or simulation reports from the database server.
[0046] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.
[0047] The third embodiment of the present invention relates to a server, such as Figure 4 As shown, the system includes a processor 410, a communications interface 420, a memory 430, and a communication bus 440. The processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions stored in the memory 430 to execute the steps of the cloud simulation method as described in the above embodiments.
[0048] The memory and the processor are connected in a communication bus manner, the communication bus can include any number of interconnected buses and bridges, and the communication bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripheral devices, voltage stabilizers, and power management circuits, which are well known in the art, and thus, further description thereof will not be made herein. The bus interface provides an interface between the communication bus and the transceiver. The transceiver can be one element or multiple elements such as multiple receivers and transmitters, which provide a unit for communicating with various other devices on a transmission medium. Data processed by the processor is transmitted on a wireless medium through an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0049] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory can be used to store data used by the processor in performing operations.
[0050] The fourth embodiment of the present application relates to a computer readable storage medium storing a computer program. The computer program is executed by the processor to implement the steps of the cloud simulation method according to the above embodiments.
[0051] That is, those skilled in the art can understand that all or part of the steps of the above-mentioned embodiment method can be completed by a program instructing related hardware, the program is stored in a storage medium, and includes a plurality of instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in the various embodiments of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0052] Those skilled in the art can understand that the above-mentioned embodiments are specific embodiments for implementing the present application, and in actual applications, various changes can be made in form and details without departing from the spirit and scope of the present application.
Claims
1. A cloud simulation method, characterized by, The method comprises: determining the positions of the cloud simulation client and the measured object; according to the determined positions of the cloud simulation client and the measured object, the cloud simulation server obtains a simulation case of the test project of the measured object, and configures a simulation target machine according to the simulation case, wherein the simulation target machine performs simulation testing on the measured object; the cloud simulation server and the cloud simulation client monitor the data of the simulation testing, and the cloud simulation server stores simulation data and simulation results after the simulation testing is completed; wherein the determination of the positions of the cloud simulation client and the measured object is specifically that the cloud simulation client and the measured object are both in the cloud simulation server, or the measured object is in the cloud simulation server while the cloud simulation client is in a remote place, or the cloud simulation client and the measured object are both in a remote place; wherein according to the determined positions of the cloud simulation client and the measured object, the cloud simulation server obtains a simulation case of the test project of the measured object, and configures a simulation target machine according to the simulation case, wherein the simulation target machine performs simulation testing on the measured object, specifically: if the cloud simulation client and the measured object are both in the cloud simulation server, a simulation case of the measured object is established on a simulation server of the cloud simulation server and a simulation request is input, wherein the simulation request comprises the test project of the measured object; a simulation script of the simulation case is downloaded to a server-side simulation target machine, and the server-side simulation target machine performs simulation testing on the measured object according to the test project of the measured object; if the measured object is in the cloud simulation server while the cloud simulation client is in a remote place, a simulation case of the test project of the measured object is written through a client device of the cloud simulation client, a simulation request and the simulation case are sent to the cloud simulation server through a network, wherein the simulation request comprises the test project of the measured object; when a simulation server obtains the simulation case, a simulation script of the simulation case is downloaded to a server-side simulation target machine, and the server-side simulation target machine performs simulation testing on the measured object according to the test project of the measured object; if the cloud simulation client and the measured object are both in a remote place, a simulation case of the test project of the measured object is written through a client device of the cloud simulation client, a simulation request and the simulation case are sent to the cloud simulation server through a network, wherein the simulation request comprises the test project of the measured object; when a simulation server obtains the simulation case, a simulation script of the simulation case is downloaded to a client-side simulation target machine, and the client-side simulation target machine performs simulation testing on the measured object according to the test project of the measured object.
2. The cloud emulation method of claim 1, wherein, the cloud simulation server and the cloud simulation client monitor the data of the simulation testing, and the cloud simulation server stores simulation data and simulation results after the simulation testing is completed, specifically: The cloud simulation server and the cloud simulation client monitor data of the simulation test, and after the simulation test is completed, the simulation server generates a simulation result and a simulation report according to the data of the simulation test, and the data of the simulation test, the simulation result and the simulation report are stored in a database server. The cloud simulation client can send a request to the cloud simulation server to obtain the result of the simulation test and / or the simulation report from the database server.
3. A cloud simulation system, characterized by, The system is used for performing the cloud simulation method according to any one of claims 1-2, and the system comprises: The cloud simulation server and at least one cloud simulation client, the cloud simulation server and the cloud simulation client are connected through a network, adopt a browser / server architecture, the browser / server architecture supports the simulation test of the cloud simulation client in a remote place and supports the mutual transmission of data and the transmission of instructions between the cloud simulation client and the cloud simulation server through the network, and the server simulation target machine and the client simulation target machine adopt a real-time operating system to perform real-time simulation test; wherein, The cloud simulation server comprises a simulation server, a server simulation target machine and a database server, the simulation server and the database server are in communication with the server simulation target machine, the server simulation target machine is connected with a device under test through I / O and bus signals, and distributed parallel simulation test of multiple devices under test is performed by adding I / O and the server simulation target machine. The cloud simulation client comprises a client device and a client simulation target machine, the client simulation target machine is connected with a device under test through I / O and bus signals, and distributed parallel simulation test of multiple devices under test is performed by adding I / O and the client simulation target machine.
4. The cloud emulation system of claim 3, wherein, The cloud simulation system further comprises a cloud service module and an automatic test management module, wherein, The cloud service module is specifically used for user management, permission management, cloud communication management and report uploading and downloading. The automatic test management module is specifically used for test requirement management, test execution, database management, test development management, a graphical monitoring interface, test model establishment, a communication interface component, test result analysis, real-time simulation, a data dictionary, log management, script automatic generation and test report automatic generation.
5. An electronic device, comprising: The system comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the cloud simulation method according to any one of claims 1-2.
6. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the cloud simulation method according to any one of claims 1-2.
Citation Information
Patent Citations
Multi-mode dispatcher training simulation system in cloud environment
CN113270007A
Health data management system based on cloud computing
CN113270194A