Vehicle dynamics model hardware-in-the-loop simulation method and device and storage medium
Through the vehicle dynamics model hardware-in-the-loop simulation method, the vehicle dynamics model is simplified and hardware-in-the-loop simulation is performed, which solves the problem of low vehicle control strategy verification and optimization efficiency in the existing technology, and achieves faster and more economical strategy verification and optimization. optimization.
Patent Information
- Application Number
- CN202410779955.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology relies on experimenters to drive physical vehicles to iteratively optimize vehicle control strategies, resulting in long verification and optimization cycles, low efficiency, and high costs.
Using the vehicle dynamics model hardware-in-the-loop simulation method, by establishing a specified interface relationship between the preset vehicle dynamics model and the control strategy model, the target operating unit whose frequency exceeds the threshold is obtained for order reduction processing, the model is simplified, and the simplified model is written The hardware-in-the-loop simulation platform performs simulation, verification and optimization of vehicle control strategies.
It improves the verification and optimization efficiency of vehicle control strategies, shortens the cycle, reduces costs, and ensures the stability and accuracy of the model.
Smart Images

Figure CN118778476A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile testing technology, and in particular to a vehicle dynamics model hardware-in-the-loop simulation method, device and storage medium. Background Art
[0002] With the rapid development of automobile technology, the power system of vehicles is becoming more and more complex, including system components such as engines, clutches, gearboxes, and mechanical / hydraulic transmission mechanisms. The corresponding controller types are also more complex, and the vehicle control strategies in the controllers are also more complex. In order to improve the power, economy, comfort, and reliability of the vehicle, it is necessary to verify and optimize the vehicle control strategies one by one. At present, the verification of vehicle control strategies mainly relies on experimenters driving physical vehicles on real roads, monitoring the operating effects of physical vehicles in real time, and iteratively optimizing vehicle control strategies to achieve design expectations, resulting in long verification and optimization cycles for vehicle control strategies, low efficiency, and high costs. Summary of the invention
[0003] The present invention provides a vehicle dynamics model hardware-in-the-loop simulation method, device and storage medium, which are used to solve the defect of the prior art that the vehicle control strategy is iteratively optimized by an experimenter driving a physical vehicle, and improve the verification and optimization efficiency of the vehicle control strategy.
[0004] The present invention provides a hardware-in-the-loop simulation method for a vehicle dynamics model, comprising: establishing a corresponding relationship between a preset vehicle dynamics model and a specified interface of a preset control strategy model; wherein the vehicle dynamics model comprises a plurality of operating units; controlling the vehicle dynamics model to perform simulation motion based on the control strategy model, and obtaining a target operating unit whose frequency exceeds a threshold value among the plurality of operating units of the vehicle dynamics model; performing order reduction processing on each target operating unit whose frequency exceeds the threshold value to obtain a simplified operating unit, and using the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model; and writing the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0005] According to a hardware-in-the-loop simulation method for a vehicle dynamics model provided by the present invention, the method of controlling the vehicle dynamics model to perform simulated motion based on the control strategy model and obtaining a target operating unit whose frequency exceeds a threshold value among the multiple operating units of the vehicle dynamics model comprises: controlling the vehicle dynamics model to perform simulated motion based on the control strategy model and obtaining resource scheduling data of the vehicle dynamics model during the simulated motion; and obtaining a target operating unit whose frequency exceeds a threshold value among the multiple operating units of the vehicle dynamics model based on the resource scheduling data.
[0006] According to a hardware-in-the-loop simulation method of a vehicle dynamics model provided by the present invention, before obtaining a target operating unit whose frequency exceeds a threshold among the multiple operating units of the vehicle dynamics model, the method further includes: controlling the vehicle dynamics model to perform simulation movement based on the control strategy model, and judging whether a strategy simulation result of the vehicle dynamics model meets a preset standard; if not, adjusting the vehicle dynamics model based on a difference between the strategy simulation result of the vehicle dynamics model and the preset standard, and repeating the judgment of the strategy simulation result of the vehicle dynamics model.
[0007] According to a hardware-in-the-loop simulation method for a vehicle dynamics model provided by the present invention, the simplified vehicle dynamics model is written into a hardware-in-the-loop simulation platform, and after hardware-in-the-loop simulation is performed, the method further includes: judging whether the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard; if not, adjusting the vehicle dynamics model and / or the preset control strategy model based on the difference between the hardware-in-the-loop simulation result of the simplified vehicle dynamics model and the preset standard, and repeating the judgment of the hardware-in-the-loop simulation result of the simplified vehicle dynamics model.
[0008] According to a hardware-in-the-loop simulation method for a vehicle dynamics model provided by the present invention, after determining whether the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard, the method further includes: if the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard, obtaining an executable file based on the simplified vehicle dynamics model; writing the executable file into a controller; during the hardware-in-the-loop simulation process of the vehicle dynamics model, the controller is connected to the hardware-in-the-loop simulation platform.
[0009] The present invention also provides a hardware-in-the-loop simulation system for a vehicle dynamics model, an integrated module for establishing a corresponding relationship between the preset vehicle dynamics model and the specified interface of the preset control strategy model; wherein the vehicle dynamics model includes multiple operating units; a target operating unit acquisition module for controlling the vehicle dynamics model to perform simulation motion based on the control strategy model, and acquiring a target operating unit whose frequency exceeds a threshold among the multiple operating units of the vehicle dynamics model; a simplification module for reducing the order of each target operating unit whose frequency exceeds the threshold to obtain a simplified operating unit, using the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model; and a vehicle dynamics model writing module for writing the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0010] According to a hardware-in-the-loop simulation system of a vehicle dynamics model provided by the present invention, the target operating unit acquisition module is specifically used to: control the vehicle dynamics model to perform simulated movement based on the control strategy model, and obtain resource scheduling data of the vehicle dynamics model during the simulated movement; and obtain a target operating unit whose frequency exceeds a threshold among the multiple operating units of the vehicle dynamics model based on the resource scheduling data.
[0011] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a hardware-in-the-loop simulation method of a vehicle dynamics model as described above is implemented.
[0012] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the hardware-in-the-loop simulation method of the vehicle dynamics model as described in any one of the above is implemented.
[0013] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the hardware-in-the-loop simulation method of the vehicle dynamics model as described above is implemented.
[0014] The vehicle dynamics model hardware-in-the-loop simulation method, device and storage medium provided by the present invention write the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation. The simplified vehicle dynamics model can be used to replace the physical vehicle to verify and optimize the vehicle control strategy, thereby improving the verification and optimization efficiency of the vehicle control strategy, shortening the verification and optimization cycle of the vehicle control strategy, and reducing the verification and optimization cost of the vehicle control strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 It is one of the flow charts of the hardware-in-the-loop simulation method of the vehicle dynamics model provided by the embodiment of the present invention.
[0017] Figure 2 It is one of the module schematic diagrams of the hardware-in-the-loop simulation system of the vehicle dynamics model provided by an embodiment of the present invention.
[0018] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0019] Reference numerals: 210: integration module; 220: target operation unit acquisition module; 230: simplification module; 240: vehicle dynamics model writing module; 310: processor; 320: communication interface; 330: memory; 340: communication bus. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] Combine the following Figure 1-Figure 3 The present invention describes a vehicle dynamics model hardware-in-the-loop simulation method, device and storage medium according to an embodiment of the present invention.
[0022] Figure 1 FIG. 1 is one of the flow charts of the hardware-in-the-loop simulation method of the vehicle dynamics model provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0023] Step 101: establishing a correspondence between a preset vehicle dynamics model and a specified interface of a preset control strategy model; wherein the vehicle dynamics model includes a plurality of operation units;
[0024] Step 102: Control the vehicle dynamics model to perform simulation motion based on the control strategy model, and obtain a target operating unit whose frequency exceeds a threshold among the multiple operating units of the vehicle dynamics model;
[0025] Step 103: Perform order reduction processing on each target operating unit whose frequency exceeds the threshold to obtain a simplified operating unit, and use the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model;
[0026] Step 104: Write the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0027] Among them, the vehicle dynamics model is a model pre-built according to the architecture and parameters of the physical vehicle, which is used to simulate the movement and response of the vehicle under different conditions. The vehicle dynamics model may include an engine module, a clutch module, a gearbox module, a controller module, and an electrical module, etc. Each module includes multiple operating units. The operating unit is a unit in the vehicle dynamics model corresponding to the parts of the physical vehicle. For example, the operating unit can be a piston unit or a cylinder unit in the engine module, or a relay unit or a sensor unit in the electrical module.
[0028] The control strategy model is a pre-built model based on the vehicle control strategy in the physical controller. The interface refers to the entry and exit of the model for interaction with the outside of the model. In this way, the corresponding relationship between the specified interface of the vehicle dynamics model and the control strategy model is established, which can realize data exchange and information transmission between the vehicle dynamics model and the control strategy model.
[0029] For example, the vehicle dynamics model and the control strategy model may interact directly through a clearly defined interface, or the vehicle dynamics model may be introduced into the control strategy model as a subsystem through a clearly defined interface, or the control strategy model may be introduced into the vehicle dynamics model as a subsystem through a clearly defined interface.
[0030] The threshold is a frequency of an operating unit that ensures the stability and robustness of the vehicle dynamics model. The threshold can be a frequency set according to the actual parameters of the vehicle dynamics model. Order reduction is to simplify the operating unit while retaining the main dynamic characteristics and behaviors of the operating unit to reduce the complexity of the model.
[0031] The hardware-in-the-loop simulation method of the vehicle dynamics model provided in the embodiment of the present invention writes the simplified vehicle dynamics model into the hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation. The simplified vehicle dynamics model can be used to replace the physical vehicle to verify and optimize the vehicle control strategy, thereby improving the verification and optimization efficiency of the vehicle control strategy, shortening the verification and optimization cycle of the vehicle control strategy, and reducing the verification and optimization cost of the vehicle control strategy.
[0032] The hardware-in-the-loop simulation method of the vehicle dynamics model provided in the embodiment of the present invention obtains a target operating unit whose frequency of the vehicle dynamics model exceeds a threshold, performs order reduction processing on the target operating unit to obtain a simplified operating unit, so as to obtain a simplified vehicle dynamics model, writes the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform, and performs hardware-in-the-loop simulation. This method can shorten the running time of the vehicle dynamics model during the hardware-in-the-loop simulation process and improve the efficiency of the hardware-in-the-loop simulation.
[0033] In addition, simplifying the vehicle dynamics model can improve the stability and robustness of the vehicle dynamics model used in the hardware-in-the-loop simulation process while ensuring the accuracy of the model, and reduce the probability of errors caused by the vehicle dynamics model in the hardware-in-the-loop simulation process, thereby improving the efficiency of the hardware-in-the-loop simulation.
[0034] Further, based on the above embodiment, the controlling the vehicle dynamics model to perform simulated movement based on the control strategy model to obtain the target operating unit whose frequency exceeds a threshold in the vehicle dynamics model includes: controlling the vehicle dynamics model to perform simulated movement based on the control strategy model to obtain resource scheduling data of the vehicle dynamics model during the simulated movement; and obtaining the target operating unit whose frequency exceeds a threshold in the vehicle dynamics model based on the resource scheduling data.
[0035] Among them, the resource scheduling data may include CPU duration, simulation step length, simulation time, etc. The simulation step length refers to the time step size of the simulation calculation, and the CPU duration refers to the time spent by the CPU when executing the running unit. The threshold may include multiple sub-thresholds, each sub-threshold corresponds to a resource scheduling data. The method for determining the sub-threshold is basically the same as the method for determining the aforementioned threshold, and will not be repeated here.
[0036] Whether the frequency in the running unit exceeds the threshold can be comprehensively judged based on the CPU duration, simulation step length, simulation time, etc., or preset indicators can be obtained from resource scheduling data to determine the frequency of the running unit in the vehicle dynamics model based on the preset indicators.
[0037] In one embodiment, it can be determined whether the CPU usage of an operation unit exceeds the first sub-threshold, whether the simulation step exceeds the second sub-threshold, and whether the simulation time exceeds the third sub-threshold. If all are yes, it is determined that the operation unit is a target operation unit whose frequency exceeds the threshold. If not, it is determined that the operation unit is not a target operation unit whose frequency exceeds the threshold. In another embodiment, the CPU usage rate can be selected as a preset indicator to determine whether the CPU usage rate exceeds the threshold. If yes, it is determined that the operation unit is a target operation unit whose frequency exceeds the threshold. If not, it is determined that the operation unit is not a target operation unit whose frequency exceeds the threshold.
[0038] The hardware-in-the-loop simulation method of the vehicle dynamics model provided in this embodiment obtains the target operating unit whose frequency exceeds a threshold in the vehicle dynamics model through resource scheduling data, reduces the order of the target operating unit to obtain a simplified operating unit, and uses the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model. This can ensure the accuracy of the vehicle dynamics model while reducing the demand for computer resources during the simulation movement of the simplified vehicle dynamics model.
[0039] In one embodiment, the vehicle dynamics model is controlled to perform simulation motion based on the control strategy model, and a target operating unit whose frequency exceeds a threshold value among the multiple operating units of the vehicle dynamics model is obtained, and the target operating unit whose oscillation frequency exceeds a threshold value is obtained; the model parameters of the target operating unit whose oscillation frequency exceeds the threshold value are adjusted, and a modified operating unit whose oscillation frequency is lower than the threshold value is obtained, and the target operating unit whose oscillation frequency exceeds the threshold value is replaced by the modified operating unit to obtain a modified vehicle dynamics model, so as to shorten the running time of the modified vehicle dynamics model for simulation motion on the hardware-in-the-loop simulation platform.
[0040] Exemplarily, the oscillation frequency and damping ratio of the target operating unit whose oscillation frequency exceeds a threshold value may be obtained, and the model parameters may be adjusted to obtain a modified operating unit.
[0041] Further, on the basis of the above embodiments, before obtaining the target operating unit whose frequency in the vehicle dynamics model exceeds a threshold, the method also includes: controlling the vehicle dynamics model to perform simulated movement based on the control strategy model, and judging whether the strategy simulation result of the vehicle dynamics model meets a preset standard; if not, adjusting the vehicle dynamics model based on the difference between the strategy simulation result of the vehicle dynamics model and the preset standard, and repeating the judgment of the strategy simulation result of the vehicle dynamics model.
[0042] The preset standard is a preset vehicle performance corresponding to the vehicle control strategy in the control strategy model, and the corresponding preset standard can be determined based on the actual control strategy. The strategy simulation result is the result obtained by the vehicle dynamics model executing the corresponding simulation movement according to the vehicle control strategy in the control strategy model.
[0043] The hardware-in-the-loop simulation method of the vehicle dynamics model provided in this embodiment controls the vehicle dynamics model to perform simulated motion through a control strategy model to obtain a strategy simulation result of the vehicle dynamics model, and adjusts the vehicle dynamics model according to the difference between the strategy simulation result and a preset standard, so that the strategy simulation result of the vehicle dynamics model is basically the same as the preset vehicle performance, which can ensure the reliability of the controlled object model, thereby improving the reliability of subsequent hardware-in-the-loop test simulation results.
[0044] Furthermore, based on the above embodiments, after the simplified vehicle dynamics model is written into the hardware-in-the-loop simulation platform and the hardware-in-the-loop simulation is performed, the method further includes: determining whether the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard; if not, based on the difference between the hardware-in-the-loop simulation result of the simplified vehicle dynamics model and the preset standard, adjusting the vehicle dynamics model and / or the preset control strategy model, and repeating the determination of the hardware-in-the-loop simulation result of the simplified vehicle dynamics model. In this way, the vehicle dynamics model can be quickly adjusted and tested based on the vehicle control strategy in the controller, and the vehicle dynamics model and / or the control strategy model can be iteratively optimized.
[0045] The simplified vehicle dynamics model is mounted on the hardware-in-the-loop simulation platform, and the controller is connected to the hardware-in-the-loop simulation platform. The controller is used to send signals to the hardware-in-the-loop simulation platform based on the vehicle control strategy, and the hardware-in-the-loop simulation platform transmits the received signals to the simplified vehicle dynamics model to perform hardware-in-the-loop simulation of the vehicle dynamics model. The hardware-in-the-loop simulation result is the result obtained by the vehicle dynamics model executing the corresponding simulation motion according to the vehicle control strategy in the controller.
[0046] Furthermore, based on the above embodiments, after determining whether the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard, the method also includes: if the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard, obtaining an executable file based on the simplified vehicle dynamics model; writing the executable file into a controller; during the hardware-in-the-loop simulation process of the vehicle dynamics model, the controller is connected to the hardware-in-the-loop simulation platform.
[0047] Exemplarily, after the hardware-in-the-loop simulation results of the simplified vehicle dynamics model meet the preset standards, the simplified vehicle dynamics model can be introduced into the control strategy model as a subsystem, and the executable file can be obtained in the environment of the control strategy model.
[0048] The hardware-in-the-loop simulation method of the vehicle dynamics model provided in this embodiment obtains an executable file by simplifying the vehicle dynamics model based on the hardware-in-the-loop simulation results that meet the preset standards, and writes the executable file into the controller to facilitate the subsequent use of other hardware-in-the-loop simulation platforms to adjust and optimize the vehicle control strategy of the controller.
[0049] Other hardware-in-the-loop simulation platforms may be standard hardware-in-the-loop simulation platforms or simple test benches. The simple test benches may only include necessary stimulus equipment and basic measurement tools to further reduce test costs.
[0050] In order to specifically illustrate the hardware-in-the-loop simulation method of the vehicle dynamics model provided by this embodiment, a specific example is provided below.
[0051] A preset vehicle dynamics model and a preset control strategy model are obtained, and the preset vehicle dynamics model and the preset control strategy model are integrated and coupled through a set interface, wherein the vehicle dynamics model is a vehicle dynamics model constructed by AMESim, and the control strategy model is a control strategy model constructed by SimuLink.
[0052] Based on the control strategy model, the vehicle dynamics model is controlled to perform simulation movement. The "RUN STATE" tool of AMESim is used to monitor the running state of the vehicle dynamics model, and the target running unit whose frequency exceeds the threshold in the vehicle dynamics model is found in the "Performance Analyser" window.
[0053] By using the built-in Rom Builder tool in AMESim, the target operating units with frequencies exceeding the threshold in the vehicle dynamics model are reduced to obtain simplified operating units, and the simplified operating units are used to replace the target operating units with frequencies exceeding the threshold before reduction to obtain a simplified vehicle dynamics model.
[0054] Obtain the FMU file of the simplified vehicle dynamics model, establish a test environment in the database of the desktop-level hardware-in-the-loop test bench, connect the input and output signals of the simplified vehicle dynamics model in the test environment with the desktop-level hardware-in-the-loop test bench configuration, and perform hardware-in-the-loop simulation.
[0055] After the hardware-in-the-loop simulation results meet the preset standards, the vehicle dynamics model is simplified to generate an S-function file, the S-function file is imported into SimuLink to generate an executable file, and the executable file is flashed to the controller.
[0056] The hardware-in-the-loop simulation system of the vehicle dynamics model provided by the present invention is described below. The hardware-in-the-loop simulation system of the vehicle dynamics model described below and the hardware-in-the-loop simulation method of the vehicle dynamics model described above can be referenced to each other.
[0057] Figure 2 The following is a block diagram of a hardware-in-the-loop simulation system for a vehicle dynamics model. Figure 2 As shown, the system includes an integration module 210 , a target operation unit acquisition module 220 , a simplification module 230 and a vehicle dynamics model writing module 240 .
[0058] The integration module 210 is used to establish a corresponding relationship between the preset vehicle dynamics model and the specified interface of the preset control strategy model; wherein the vehicle dynamics model includes a plurality of operation units.
[0059] The target operation unit acquisition module 220 is used to control the vehicle dynamics model to perform simulation motion based on the control strategy model, and acquire a target operation unit whose frequency exceeds a threshold among the multiple operation units of the vehicle dynamics model.
[0060] The simplification module 230 is used to perform order reduction processing on each target operating unit whose frequency exceeds a threshold to obtain a simplified operating unit, and use the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model.
[0061] The vehicle dynamics model writing module 240 is used to write the simplified vehicle dynamics model into the hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0062] Furthermore, based on the above embodiments, the target operation unit acquisition module 220 is specifically used to: control the vehicle dynamics model to perform simulated motion based on the control strategy model, and obtain resource scheduling data of the vehicle dynamics model during the simulated motion; and obtain the target operation unit in the vehicle dynamics model based on the resource scheduling data.
[0063] The working principle and technical effect of the hardware-in-the-loop simulation system of the vehicle dynamics model provided by the embodiment of the present invention are basically the same as the working principle and technical effect of the hardware-in-the-loop simulation method of the corresponding vehicle dynamics model mentioned above, and will not be repeated here.
[0064] The hardware-in-the-loop simulation method and system of the vehicle dynamics model provided in the embodiment of the present invention, by virtualizing the physical vehicle into a vehicle dynamics model and deploying it on a hardware-in-the-loop simulation platform, conducts sufficient control strategy verification and pre-calibration before actual road tests, thereby greatly reducing development time and cost and providing a research basis for the feasibility of digital twins in the later stage.
[0065] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 complete mutual communication through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the hardware-in-the-loop simulation method of the vehicle dynamics model, the method comprising: establishing a correspondence between a preset vehicle dynamics model and a specified interface of a preset control strategy model; wherein the vehicle dynamics model comprises a plurality of operation units; based on the control strategy model, the vehicle dynamics model is controlled to perform simulation motion, and a target operation unit whose frequency exceeds a threshold value among the plurality of operation units of the vehicle dynamics model is obtained; each target operation unit whose frequency exceeds the threshold value is subjected to order reduction processing to obtain a simplified operation unit, and the simplified operation unit is used to replace the corresponding target operation unit to obtain a simplified vehicle dynamics model; the simplified vehicle dynamics model is written into the hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0066] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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 for 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 invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0067] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the hardware-in-the-loop simulation method of the vehicle dynamics model provided by the above methods, the method including: establishing a correspondence between a preset vehicle dynamics model and a specified interface of a preset control strategy model; wherein the vehicle dynamics model includes multiple operating units; based on the control strategy model, the vehicle dynamics model is controlled to perform simulation motion, and a target operating unit whose frequency exceeds a threshold value among the multiple operating units of the vehicle dynamics model is obtained; each target operating unit whose frequency exceeds the threshold value is reduced to obtain a simplified operating unit, and the simplified operating unit is used to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model; the simplified vehicle dynamics model is written into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0068] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the hardware-in-the-loop simulation method of the vehicle dynamics model provided by the above-mentioned methods, the method comprising: establishing a correspondence between a preset vehicle dynamics model and a specified interface of a preset control strategy model; wherein the vehicle dynamics model comprises a plurality of operating units; controlling the vehicle dynamics model to perform simulation motion based on the control strategy model, and obtaining a target operating unit whose frequency exceeds a threshold among the plurality of operating units of the vehicle dynamics model; performing order reduction processing on each target operating unit whose frequency exceeds the threshold to obtain a simplified operating unit, and using the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model; and writing the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
[0069] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A hardware-in-the-loop simulation method for a vehicle dynamics model, characterized in that: include: Establishing a correspondence between a preset vehicle dynamics model and a specified interface of a preset control strategy model; wherein the vehicle dynamics model includes a plurality of operation units; Controlling the vehicle dynamics model to perform simulation motion based on the control strategy model, and obtaining a target operating unit whose frequency exceeds a threshold among the multiple operating units of the vehicle dynamics model; Performing order reduction processing on each target operating unit whose frequency exceeds a threshold value to obtain a simplified operating unit, and using the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model; The simplified vehicle dynamics model is written into a hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
2. The hardware-in-the-loop simulation method of a vehicle dynamics model according to claim 1, characterized in that: The step of controlling the vehicle dynamics model to perform simulation motion based on the control strategy model and obtaining a target operating unit whose frequency exceeds a threshold value among the multiple operating units of the vehicle dynamics model includes: Controlling the vehicle dynamics model to perform simulation movement based on the control strategy model, and obtaining resource scheduling data of the vehicle dynamics model during the simulation movement; A target operating unit having a frequency exceeding a threshold among the plurality of operating units in the vehicle dynamics model is acquired based on the resource scheduling data.
3. The hardware-in-the-loop simulation method of a vehicle dynamics model according to claim 1, characterized in that: Before acquiring a target operating unit whose frequency exceeds a threshold value among the plurality of operating units of the vehicle dynamics model, the method further includes: Controlling the vehicle dynamics model to perform simulation motion based on the control strategy model, and determining whether a strategy simulation result of the vehicle dynamics model meets a preset standard; If not, based on the difference between the strategy simulation result of the vehicle dynamics model and the preset standard, the vehicle dynamics model is adjusted, and the determination of the strategy simulation result of the vehicle dynamics model is repeated.
4. The hardware-in-the-loop simulation method of a vehicle dynamics model according to claim 1, characterized in that: After writing the simplified vehicle dynamics model into a hardware-in-the-loop simulation platform and performing hardware-in-the-loop simulation, the method further includes: Determining whether the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard; If not, based on the difference between the hardware-in-the-loop simulation result of the simplified vehicle dynamics model and the preset standard, the vehicle dynamics model and / or the preset control strategy model are adjusted, and the judgment of the hardware-in-the-loop simulation result of the simplified vehicle dynamics model is repeated.
5. The hardware-in-the-loop simulation method of the vehicle dynamics model according to claim 4, characterized in that: After determining whether the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard, the method further includes: If the hardware-in-the-loop simulation result of the simplified vehicle dynamics model meets the preset standard, obtaining an executable file based on the simplified vehicle dynamics model; The executable file is written into the controller; during the hardware-in-the-loop simulation process of the vehicle dynamics model, the controller is connected to the hardware-in-the-loop simulation platform.
6. A hardware-in-the-loop simulation system for a vehicle dynamics model, characterized in that: include: An integration module, used to establish a correspondence between the preset vehicle dynamics model and the specified interface of the preset control strategy model; wherein the vehicle dynamics model includes a plurality of operation units; a target operation unit acquisition module, configured to control the vehicle dynamics model to perform simulation motion based on the control strategy model, and acquire a target operation unit whose frequency exceeds a threshold value among the multiple operation units of the vehicle dynamics model; A simplification module, configured to perform order reduction processing on each target operating unit whose frequency exceeds a threshold to obtain a simplified operating unit, and use the simplified operating unit to replace the corresponding target operating unit to obtain a simplified vehicle dynamics model; The vehicle dynamics model writing module is used to write the simplified vehicle dynamics model into the hardware-in-the-loop simulation platform to perform hardware-in-the-loop simulation.
7. The hardware-in-the-loop simulation system of the vehicle dynamics model according to claim 6, characterized in that: The target operation unit acquisition module is specifically used for: Controlling the vehicle dynamics model to perform simulation movement based on the control strategy model, and obtaining resource scheduling data of the vehicle dynamics model during the simulation movement; A target operating unit having a frequency exceeding a threshold value among the plurality of operating units of the vehicle dynamics model is acquired based on the resource scheduling data.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the hardware-in-the-loop simulation method of the vehicle dynamics model as claimed in any one of claims 1 to 5 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the hardware-in-the-loop simulation method of the vehicle dynamics model as claimed in any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the hardware-in-the-loop simulation method of the vehicle dynamics model as claimed in any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Hardware-in-the-loop test method and device based on model order reduction control strategy
CN120508089A
Automatic driving debugging calibration simulation test method and device and storage medium
CN122151824A
