Simulation test method and device, electronic equipment and storage medium
By setting up multiple models to be simulated in the model library and integrating functional software according to requirements, the problem that the simulation model integration method in the existing technology cannot meet the multi-scene simulation requirements is solved, and the effect of quickly integrating new component simulation models is achieved to adapt to the development and testing needs.
Patent Information
- Application Number
- CN202411898436.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-18
AI Technical Summary
The simulation model integration method in the prior art cannot meet the multi-scenario simulation needs, and cannot support the integration of new component simulation models when integrating more vehicle simulation models or replacing vehicle components.
By setting up multiple models to be simulated in the model library, each model has different simulation goals, such as monitoring the simulation running status, high simulation accuracy or high simulation speed. Obtain the model to be simulated from the model library according to the model requirements, and integrate the functional software with the model to be simulated according to the functional requirements to obtain the target simulation model, and finally conduct simulation tests.
It has achieved the satisfaction of multi-scenario simulation requirements, and can quickly integrate more vehicle simulation models or replace vehicle components to adapt to development and testing needs, improving the efficiency and flexibility of simulation testing.
Smart Images

Figure CN119849138A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of simulation testing technology, and specifically to a simulation testing method, device, electronic equipment and storage medium. Background Art
[0002] With the rapid development of the automotive industry, users have higher and higher requirements for automobile manufacturing. In order to meet user needs, automobile manufacturers need to increase the number of models and shorten the development cycle to quickly meet market demand. However, the calibration test and verification cycle in the traditional model development process is long, and there are problems such as difficulty in testing extreme working conditions, high experimental costs, and high requirements for tester experience.
[0003] In the related art, the control model and the controlled object model are modeled separately, integrated in a virtual environment, and then simulated and tested.
[0004] However, the simulation model integration method in the prior art cannot meet the needs of multi-scenario simulation well. In addition, when it is necessary to integrate more vehicle simulation models or replace the current simulated vehicle components, the simulation model integration method cannot support the integration of new component simulation models and cannot adapt well to development and testing needs.
[0005] It should be pointed out that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention
[0006] In view of this, the present application provides a simulation testing method, device, electronic device and storage medium to help solve the problem that the simulation model integration method in the prior art cannot well meet the multi-scenario simulation requirements. In addition, when it is necessary to integrate more whole vehicle simulation models or replace the current simulated whole vehicle components, the simulation model integration method cannot support the integration of new component simulation models and cannot adapt well to development and testing requirements.
[0007] In a first aspect, an embodiment of the present application provides a simulation test method, comprising: Acquiring simulation requirements, wherein the simulation requirements include model requirements and function requirements; Acquire a model to be simulated from a model library according to the model requirement, wherein the model library includes a plurality of models to be simulated; Integrating corresponding functional software with the model to be simulated according to the functional requirements to obtain a target simulation model, wherein each functional requirement corresponds to one functional software; A simulation test is performed on the target simulation model.
[0008] In an embodiment of the present application, the simulation requirements are first obtained, and then the model to be simulated is obtained from the model library according to the model requirements in the simulation requirements, and the functional software is integrated with the model to be simulated according to the functional requirements in the simulation requirements, so as to obtain the target simulation model, and finally the target simulation model is simulated and tested. It can be understood that the model library in the present application includes a variety of models to be simulated, and the model library includes a variety of models to be simulated, and the simulation targets of each model to be simulated are different. For example, some models need to monitor the state during simulation operation, some models require high simulation accuracy, and some models require high simulation speed. In this way, the simulation requirements of multiple scenarios can be well met. In addition, when it is necessary to integrate more whole vehicle simulation models, or replace the whole vehicle components currently simulated, the simulation test method can quickly realize the integration of new component simulation models, which can well adapt to the development and testing requirements.
[0009] In a possible implementation, the model to be simulated includes a controller model and a controlled object model. Before acquiring the model to be simulated from a model library according to the model requirements, the method further includes: Acquire multiple controlled object models, and store the multiple controlled object models in a controlled object model library in a model library; A plurality of controller models are obtained, and the plurality of controller models are stored in a controller model library in a model library.
[0010] In the embodiment of the present application, the model library includes a controlled object model library and a controller model library, and the controlled object and the controller are simulated respectively to obtain multiple controlled object models and controller models, and are stored in the model library respectively. It can be understood that the user may have different test requirements for the controlled object and the controller. Establishing a controlled object model library and a controller model library separately can quickly meet multiple test requirements, thereby improving the user experience.
[0011] In a possible implementation manner, the acquiring multiple controlled object models includes: Decouple the entire vehicle to obtain multiple controlled objects; Modeling each of the controlled objects to obtain a plurality of controlled object models corresponding to the plurality of controlled objects, wherein each of the controlled objects corresponds to one controlled object model; The plurality of simulation models are stored in a model library.
[0012] In an embodiment of the present application, multiple controlled objects are obtained after decoupling the vehicle, and each controlled object is modeled separately, thereby obtaining multiple controlled object models. It can be understood that modeling each component separately can meet the needs of any combination of components, such as modeling the engine, motor, air conditioner, battery, etc. separately. Furthermore, single components are classified and modeled according to accuracy requirements and functional requirements, such as a high-precision engine model, a low-precision low-voltage load model, a white box control model that can monitor the simulation process, and a black box control model that can only provide feedback on the input, etc., so as to meet the different needs of users for models in different simulation scenarios.
[0013] In a possible implementation, the acquiring multiple controller models includes: Build multiple controller models, Interface expansion is performed on the plurality of controller models to obtain a plurality of modified controller models, so that each of the modified controller models can receive a preset type of signal, wherein each of the controller models corresponds to one modified controller model.
[0014] Because the controller model uses bus signals to communicate with the joint simulation platform, but in addition to the bus signals, the controller model also needs to obtain sensor signals, such as hard-wired signals HW and local connection networks LIN. Therefore, in the embodiment of the present application, the interface of the original controller model is expanded, and the above HW signals and LIN signals are modified to bus type signals, so that all signals required by the controller model can be obtained through bus signals, and then the modified controller model can be integrated into the joint simulation platform.
[0015] In a possible implementation, after obtaining the multiple modified controller models, the method further includes: Compiling the modified controller model into a coding file; The encoding file is encoded into the corresponding hardware controller so that the hardware controller can be simulated and tested.
[0016] In an embodiment of the present application, the hardware controller is directly integrated into the joint simulation platform, thereby improving the simulation speed, and not only can the operation process of the controller model be detected, but it can also be calibrated.
[0017] In a possible implementation, the simulation requirement further includes an environmental requirement, and the simulation test on the target simulation model includes: Initialize the simulation environment according to the environmental requirements; In the simulation environment, a simulation test is performed on the target simulation model.
[0018] In the embodiment of the present application, initializing the simulation environment includes but is not limited to loading controller parameters, loading model characteristic parameters, setting functional software, and setting simulation platform parameters. By initializing the simulation environment, it is easy to adjust the simulation environment later and improve the simulation test speed.
[0019] In a possible implementation manner, after the simulation test is performed on the target simulation model, the method further includes: The results of the simulation test are collected and analyzed, and the results are fed back to the simulation environment.
[0020] In an embodiment of the present application, the results of the simulation operation are collected and archived, and it is analyzed whether the simulation purpose has been achieved. According to needs, the results can be fed back to the initialization process of the simulation environment to obtain better simulation results in the next simulation.
[0021] In a second aspect, an embodiment of the present application provides a simulation test device, including: A simulation requirement acquisition module, used to acquire simulation requirements, wherein the simulation requirements include model requirements and function requirements; A to-be-simulated model acquisition module, used to acquire the to-be-simulated model from a model library according to the model requirements, wherein the model library includes a plurality of the to-be-simulated models; A target simulation model acquisition module is used to integrate the corresponding functional software with the model to be simulated according to the functional requirements to obtain a target simulation model, wherein each functional requirement corresponds to one functional software; A simulation test module is used to perform simulation test on the target simulation model.
[0022] In a third aspect, an embodiment of the present application provides an electronic device, including: processor; Memory; and a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the control device executes the method described in the first aspect.
[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.
[0024] It is understandable that the simulation test device provided in the second aspect, the electronic device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect are used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0026] Figure 1 A flowchart of a simulation test method provided in an embodiment of the present application; Figure 2 A schematic diagram of model classification provided in an embodiment of the present application; Figure 3 A schematic diagram of a method for obtaining a controlled object model provided in an embodiment of the present application; Figure 4 A schematic diagram of a method for classification modeling of a single component provided in an embodiment of the present application; Figure 5 A schematic diagram of a cross-platform integration method provided in an embodiment of the present application; Figure 6 A schematic diagram of an interface expansion provided in an embodiment of the present application; Figure 7 A schematic diagram of a method for integrating a hardware controller provided in an embodiment of the present application; Figure 8 A schematic diagram of a joint simulation provided in an embodiment of the present application; Fig. 9 A schematic diagram of another simulation test method provided in an embodiment of the present application; Fig.10 A schematic diagram of a bus topology structure provided in an embodiment of the present application; Fig.11 A schematic diagram of the structure of a simulation test device provided in an embodiment of the present application; Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0028] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0029] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0030] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0031] With the rapid development of the automotive industry, users have higher and higher requirements for automobile manufacturing. In order to meet user needs, automobile manufacturers need to increase the number of models and shorten the development cycle to quickly meet market demand. However, the calibration test and verification cycle in the traditional model development process is long, and there are problems such as difficulty in testing extreme working conditions, high experimental costs, and high requirements for tester experience.
[0032] In the related art, the control model and the controlled object model are modeled separately, integrated in a virtual environment, and then simulated and tested.
[0033] However, the simulation model integration method in the prior art cannot meet the needs of multi-scenario simulation well. In addition, when it is necessary to integrate more vehicle simulation models or replace the current simulated vehicle components, the simulation model integration method cannot support the integration of new component simulation models and cannot adapt well to development and testing needs.
[0034] In view of the above problems, an embodiment of the present application provides a simulation test method, which sets a plurality of models to be simulated in a model library, and the model library includes a plurality of models to be simulated, and each model to be simulated has a different simulation target, for example, some models need to monitor the state during simulation operation, some models need high simulation accuracy, and some models need high simulation speed. In this way, the needs of multi-scenario simulation can be well met. In addition, when it is necessary to integrate more whole vehicle simulation models, or replace the current simulated whole vehicle components, the simulation test method can quickly realize the integration of new component simulation models, which can well adapt to the development and testing needs. It is described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0035] See also Figure 1 , is a flow chart of a simulation test method provided in an embodiment of the present application. Figure 1 As shown, it mainly includes the following steps.
[0036] Step S101: Acquire simulation requirements.
[0037] Specifically, after receiving the simulation test instruction, the simulation requirements are obtained, wherein the simulation requirements include model requirements and functional requirements.
[0038] In the embodiment of the present application, the model requirement refers to the requirement for the model to be simulated, for example, the engine system is simulated, the air conditioning system is simulated, and the whole vehicle is simulated. Of course, the model requirement can also include the requirement for other models, and the embodiment of the present application does not specifically limit this.
[0039] In the embodiments of the present application, the functional requirements refer to the simulation purpose, for example, virtual testing, virtual calibration, parameter optimization, MIL testing, etc. Different functional requirements correspond to different functional software. Of course, the functional requirements may also include requirements for other simulation purposes, which are not specifically limited in the embodiments of the present application.
[0040] Step S102: Acquire the model to be simulated from the model library according to the model requirements.
[0041] Specifically, the model to be simulated is obtained from the model library according to the model requirements, and the model library includes multiple models to be simulated. In a possible implementation, the user needs to perform simulation tests on a whole vehicle or multiple components. At this time, after obtaining the model to be simulated, the multiple models to be simulated need to be integrated.
[0042] Before obtaining the model to be simulated from the model library, it is necessary to establish a model library. In the joint simulation platform, there are two types of models that need to be integrated. One type is the controller model corresponding to the controller, such as the VCU controller model; the other type is the controlled object model corresponding to the vehicle component, such as the engine model. Specifically, it is described in detail below with reference to the accompanying drawings.
[0043] See also Figure 2 , is a schematic diagram of model classification provided in an embodiment of the present application. Figure 2 As shown in the figure, the models in the model library include controller models and controlled object models, where the controller model includes a white box model and physical hardware; the controlled object model is divided into multiple models according to different modeling platforms, and is divided into accuracy priority models and efficiency priority models according to modeling goals. Of course, this is just an exemplary description. In actual applications, controller models and controlled object models may also include multiple types.
[0044] Therefore, in one possible implementation, the model library includes a controller model and a controlled object model. At this time, the model library is established as follows: obtain multiple controlled object models, and store the multiple controlled object models into the controlled object model library in the model library; obtain multiple controller models, and store the multiple controller models into the controller models in the model library.
[0045] Specifically, the method for obtaining a controlled object model includes: decoupling the entire vehicle to obtain multiple controlled objects; modeling each controlled object to obtain multiple controlled object models corresponding to the multiple controlled objects, each controlled object corresponding to a controlled object model; and storing multiple simulation models in a model library.
[0046] See also Figure 3 , is a schematic diagram of a method for obtaining a controlled object model provided in an embodiment of the present application. Figure 3 As shown, the whole vehicle is decoupled to obtain multiple controlled objects, and each controlled object is modeled to obtain multiple controlled object models. When the whole vehicle needs to be simulated and tested, the multiple controlled object models can be integrated into a virtual whole vehicle model to facilitate the simulation test of the whole vehicle.
[0047] Of course, in a possible implementation, it is not necessary to perform simulation testing on the entire vehicle, only certain components need to be combined. Through the method provided in the embodiment of the present application, any combination of multiple components can be achieved.
[0048] In the embodiment of the present application, a single component can be classified and modeled according to accuracy requirements and functional requirements, such as a high-precision engine model, a low-precision low-voltage load model, a white box control model that can monitor the simulation process, and a black box control model that can only provide feedback on the input, etc., to meet the different requirements for models in different simulation scenarios. Because the joint simulation platform in the embodiment of the present application can use multiple simulation modeling platforms, and each component may use a different modeling platform when modeling, different simulation modeling platforms can be used when classifying and modeling a single component.
[0049] See also Figure 4 , is a schematic diagram of a method for classifying and modeling a single component provided in an embodiment of the present application. Figure 4 As shown, the joint simulation platform classifies and models different components through simulation modeling platform 1 and simulation modeling platform 2, and each simulation modeling platform can output a precision-first model and an efficiency-first model, respectively. Of course, in practical applications, the number of simulation modeling platforms may be more than two, and the classification of the controlled object model may be more than just a precision-first model and an efficiency-first model, and the embodiments of the present application do not impose specific restrictions on this.
[0050] Because each controlled object model uses a different simulation modeling platform when integrating, it is necessary to integrate the controlled objects across platforms. In a possible implementation, multiple simulation modeling platforms are integrated through a joint simulation platform.
[0051] join Figure 5 , is a schematic diagram of a cross-platform integration method provided in an embodiment of the present application. Figure 5 As shown in the figure, for models built using Simulink, such as VSIM, they can be directly integrated with the joint simulation platform. For models built using other platforms, there are multiple connection methods depending on the specific situation. If the model can be compiled into a format supported by Simulink, such as FMU (for example, simulation modeling platform 1), the model can be compiled and loaded into Simulink for integration; if the modeling platform provides an interface for communication with Simulink (for example, simulation modeling platform 2), such as Amesim and CANoe, the interface can be used for integration.
[0052] In addition, the method of building a controller white box model in the present application includes: building multiple controller models, expanding the interfaces of multiple controller models, and obtaining multiple modified controller models, so that each modified controller model can receive a preset type signal, wherein each controller model corresponds to a modified controller model.
[0053] Specifically, the controller model is usually built using the Simulink platform, and the controller model uses bus signals to communicate with the joint simulation platform. However, in addition to the bus signals, the controller model also needs to obtain sensor signals, such as hard-wired signals HW and local connection networks LIN. In the embodiment of the present application, the original controller model is firstly interface expanded, and the above HW signals and LIN signals are modified into bus type signals, so that all signals required by the controller model can be obtained through bus signals, and then the modified controller model can be integrated into the joint simulation platform.
[0054] join Figure 6 , is a schematic diagram of an interface expansion provided in an embodiment of the present application. Figure 6As shown, before the transformation, the input signal of the controller model includes HW signal, CAN signal and LIN signal, among which only CAN signal is the bus input signal, and the output signal also includes HW signal, CAN signal and LIN signal, among which only CAN signal is the bus output signal. After the transformation, the input signal of the controller model includes the transformed HW signal, CAN signal and the transformed LIN signal, among which the transformed HW signal, CAN signal and the transformed LIN signal are all bus input signals, and the output signal also includes the transformed HW signal, CAN signal and the transformed LIN signal, among which the transformed HW signal, CAN signal and the transformed LIN signal are all bus output signals. Of course, the signal type in the embodiment of the present application is only an exemplary description and should not be used as a limitation on the scope of protection of the present application.
[0055] In one possible implementation, in order to improve the simulation speed, the hardware controller can be directly integrated into the joint simulation platform. Specifically, the modified controller model is compiled into a coding file; the coding file is encoded into the corresponding hardware controller, so that the hardware controller can be simulated and tested.
[0056] More specifically, see Figure 7 , is a schematic diagram of a hardware controller integration method provided by an embodiment of the present application. Figure 7 As shown, the modified controller model is compiled into application layer code, the application layer code is integrated into the underlying code and Interface file, and the underlying code is compiled into A2l+hex file through HIGHTEC software, the A2l+hex file is encoded into the corresponding model of physical hardware, and the compiled physical hardware is integrated into the joint simulation platform to facilitate integration and simulation testing with the controller model. In addition, the physical hardware is connected to the calibration software INCA, and the calibration software INCA is run through the host computer.
[0057] In an embodiment of the present application, the hardware controller is directly integrated into the joint simulation platform, thereby improving the simulation speed, and not only can the operation process of the controller model be detected, but it can also be calibrated.
[0058] Step S103: Integrate the corresponding functional software with the model to be simulated according to the functional requirements to obtain a target simulation model.
[0059] Specifically, different functional software needs to be integrated according to different functional requirements. The corresponding functional software is integrated with the model to be simulated according to the functional requirements to obtain a target simulation model, wherein each functional requirement corresponds to one functional software.
[0060] In one possible implementation, if the functional requirement is virtual environment calibration, no additional integrated functional software is required. If the functional requirement is real-time virtual calibration, the controller model needs to select physical hardware. INCA is integrated into the joint simulation platform through physical hardware to achieve real-time online virtual calibration. Modifying the calibration parameters does not require stopping the simulation. The parameter optimization function requires the integration of HEEDS software, which controls the optimization process such as parameter space, optimization method, and optimization step length. The MIL test function requires the integration of CANoe, which uses CANoe to build a virtual CAN network, and sends virtual CAN signals to the VCU through this virtual network to implement functional testing of the VCU.
[0061] Step S104: performing simulation test on the target simulation model.
[0062] Specifically, after obtaining the target simulation model, the target simulation model is simulated and tested. All parts of the joint simulation platform in the embodiment of the present application are integrated in Simulink. Simulink is the main mode during simulation testing, and other simulation software or functional software is a slave mode platform. The joint simulation platform is started by Simulink, and sends simulation control signals to the remaining slave mode platforms. The control signals include simulation start signals, simulation step control, simulation duration control, etc. The remaining platforms are started in response to the control signal, and the simulation step and simulation duration are aligned with Simulink.
[0063] See also Figure 8 , is a schematic diagram of a joint simulation provided by an embodiment of the present application. Figure 8 As shown, the joint simulation platform is started by Simulink and sends simulation control signals to the slave mode platform. The simulation model is the slave mode platform, and the joint simulation platform and the simulation model are integrated.
[0064] In a possible implementation, the simulation requirements also include environmental requirements. Before the simulation test of the target simulation model is performed, the simulation environment can be initialized according to the environmental requirements. The simulation environment includes the controller model, the controlled object model, the functional software, and the simulation platform. Initializing the simulation environment includes: loading controller parameters, such as the calibration quantity and observation quantity of the VCU; loading the characteristic parameters of the model, such as the universal characteristics of the engine and the battery charging and discharging parameters; setting the functional software, such as the project file configuration of CANoe; setting the parameters of the simulation platform, such as the simulation time, simulation step, and solution type of Simulink.
[0065] In addition, after the simulation test, the results of the simulation test can also be collected and analyzed, and the results can be fed back to the simulation environment. In the embodiment of the present application, the results of the simulation run are collected and archived, and the simulation purpose is analyzed to see whether it has been achieved. The results can be fed back to the initialization process of the simulation environment as needed, so that the next simulation can obtain better simulation results.
[0066] Corresponding to the above embodiment, the present application also provides another simulation test method.
[0067] See also Fig. 9 , is a schematic diagram of another simulation test method provided in an embodiment of the present application. Fig. 9 As shown, the obtained simulation requirements include model requirements and functional requirements. According to the model requirements, the model to be simulated is obtained from the control model library and the controlled object model library. According to the functional requirements, the functional software is obtained, and the model to be simulated is integrated with the model environment and the functional software. The integrated model is integrated with the simulation environment, and the simulation test is started after the parameters are initialized to finally obtain the simulation results.
[0068] In summary, this application provides a simulation test method to build a simulation environment that is compatible with multiple platforms, multiple software, and has rich functional scenarios. Based on the use of a bus topology network, it can achieve rapid and agile integration of controlled object models from different simulation platforms, and can access a variety of functional software to meet more complex and diverse simulation scenarios and adapt to rapid changes in the market.
[0069] The bus topology in the embodiment of the present application can integrate multiple simulation models at the same time to achieve simulation of a partial vehicle or a complete vehicle. In addition, this simulation platform provides a standard interface to the outside world, and can integrate hardware such as physical VCU, calibration software such as INCA, optimization tools such as HEEDS, etc., to achieve compatible integration of multi-platform models and software.
[0070] Specifically, see Fig.10 , is a schematic diagram of a bus topology structure provided in an embodiment of the present application. Fig.10 As shown, the calibration tool and the optimization tool can be directly connected to the joint simulation platform through the bus, and the simulation model 1, the simulation model 2 and the physical hardware 1 in the simulation model library are respectively connected to the bus through a point-line topology, thereby connecting to the joint simulation platform.
[0071] Corresponding to the above embodiments, the present application also provides a simulation test device.
[0072] See also Fig.11 , is a schematic diagram of the structure of a simulation test device provided in an embodiment of the present application. Fig.11As shown, the simulation test device includes a simulation requirement acquisition module 1101, a to-be-simulated model acquisition module 1102, a target simulation model acquisition module 1103, and a simulation test module 1104. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0073] The simulation requirement acquisition module 1101 is used to acquire simulation requirements, which include model requirements and functional requirements. A to-be-simulated model acquisition module 1102 is used to acquire a to-be-simulated model from a model library according to the model requirement, wherein the model library includes a plurality of to-be-simulated models; A target simulation model acquisition module 1103 is used to integrate the corresponding functional software with the model to be simulated according to the functional requirements to obtain a target simulation model, wherein each functional requirement corresponds to one functional software; The simulation test module 1104 is used to perform simulation test on the target simulation model.
[0074] Corresponding to the above embodiments, the present application also provides an electronic device.
[0075] See also Fig.12 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device 1200 may include: a processor 1201, a memory 1202 and a communication unit 1203. These components communicate via one or more buses. Those skilled in the art will appreciate that the structure of the electronic device shown in the figure does not limit the embodiments of the present application. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0076] The communication unit 1203 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0077] The processor 1201 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 1202, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 1201 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.
[0078] The memory 1202 is used to store the execution instructions of the processor 1201. The memory 1202 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0079] When the execution instructions in the memory 1202 are executed by the processor 1201, the electronic device 1200 can execute Figure 1 Some or all of the steps in the illustrated embodiments.
[0080] In a specific implementation, the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the simulation scene generation method provided in the embodiment of the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0081] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0082] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0083] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0084] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0085] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A simulation test method, characterized in that: include: Acquiring simulation requirements, wherein the simulation requirements include model requirements and function requirements; Acquire a model to be simulated from a model library according to the model requirement, wherein the model library includes a plurality of models to be simulated; Integrating corresponding functional software with the model to be simulated according to the functional requirements to obtain a target simulation model, wherein each functional requirement corresponds to one functional software; A simulation test is performed on the target simulation model.
2. The method according to claim 1, characterized in that The model to be simulated includes a controller model and a controlled object model. Before acquiring the model to be simulated from a model library according to the model requirements, the method further includes: Acquire multiple controlled object models, and store the multiple controlled object models in a controlled object model library in a model library; A plurality of controller models are obtained, and the plurality of controller models are stored in a controller model library in a model library.
3. The method according to claim 2, characterized in that The obtaining of multiple controlled object models includes: Decouple the entire vehicle to obtain multiple controlled objects; Modeling each of the controlled objects to obtain a plurality of controlled object models corresponding to the plurality of controlled objects, wherein each of the controlled objects corresponds to one controlled object model; The plurality of simulation models are stored in a model library.
4. The method according to claim 2, characterized in that: The obtaining of multiple controller models includes: Build multiple controller models, Interface expansion is performed on the plurality of controller models to obtain a plurality of modified controller models, so that each of the modified controller models can receive a preset type of signal, wherein each of the controller models corresponds to one modified controller model.
5. The method according to claim 4, characterized in that After obtaining the multiple modified controller models, the method further includes: Compiling the modified controller model into a coding file; The encoding file is encoded into the corresponding hardware controller so that the hardware controller can be simulated and tested.
6. The method according to claim 1, characterized in that The simulation requirements also include environmental requirements, and the simulation test of the target simulation model includes: Initialize the simulation environment according to the environmental requirements; In the simulation environment, a simulation test is performed on the target simulation model.
7. The method according to claim 6, characterized in that After the simulation test is performed on the target simulation model, the method further includes: The results of the simulation test are collected and analyzed, and the results are fed back to the simulation environment.
8. A simulation test device, characterized in that: include: A simulation requirement acquisition module, used to acquire simulation requirements, wherein the simulation requirements include model requirements and function requirements; A to-be-simulated model acquisition module, used to acquire the to-be-simulated model from a model library according to the model requirements, wherein the model library includes a plurality of the to-be-simulated models; A target simulation model acquisition module is used to integrate the corresponding functional software with the model to be simulated according to the functional requirements to obtain a target simulation model, wherein each functional requirement corresponds to one functional software; A simulation test module is used to perform simulation test on the target simulation model.
9. An electronic device, characterized in that: include: processor; Memory; and a computer program, wherein the computer program is stored in the memory, the computer program comprising instructions, which, when executed by the processor, cause the control device to perform the method of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.