Vehicle controller test method, device, equipment and storage medium
By constructing a vehicle model by matching the target sub-model with the vehicle model during vehicle controller testing, the problems of long development time and low efficiency caused by repeated development of test models are solved, and efficient vehicle controller testing is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DONGFENG LIUZHOU MOTOR
- Filing Date
- 2022-11-09
- Publication Date
- 2026-07-21
AI Technical Summary
Existing technologies require the repeated development of whole-vehicle test models when dealing with different vehicle models, resulting in time-consuming and inefficient testing of whole-vehicle controllers.
The target sub-model is determined by matching the vehicle model of the vehicle under test with a pre-built sub-model library. The vehicle model is then built based on the target sub-model and control tests are performed.
It effectively improves the efficiency of vehicle model construction, avoids the problem of repeatedly building test platforms for different vehicle models, reduces testing time, and improves the testing efficiency of the vehicle controller.
Smart Images

Figure CN115903734B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle testing technology, and in particular to a method, apparatus, equipment and storage medium for testing a vehicle controller. Background Technology
[0002] Currently, in testing automotive controllers, to better simulate real-world vehicle performance and achieve optimal testing results, a dedicated vehicle test model needs to be developed for each specific vehicle model. However, this process is repeated for different models or configurations, leading to lengthy testing times and significantly reduced testing efficiency.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide a vehicle controller testing method, apparatus, equipment, and storage medium, aiming to solve the technical problem that the existing technology involves repeated development of vehicle test models, resulting in long testing times for vehicle controllers and greatly reducing testing efficiency.
[0005] To achieve the above objectives, the present invention provides a method for testing a vehicle controller, the method comprising the following steps:
[0006] The target sub-model in the sub-model library is determined by matching the vehicle model of the vehicle under test with each sub-model in the pre-built sub-model library.
[0007] A vehicle model of the vehicle under test is constructed based on each target sub-model;
[0008] Based on the vehicle model, the vehicle controller corresponding to the vehicle under test is used for control testing.
[0009] Optionally, the control test of the vehicle controller corresponding to the vehicle under test based on the vehicle model includes:
[0010] The driving process of the vehicle under test is simulated based on the vehicle model, and driving information during the simulation is obtained.
[0011] Obtain the test information corresponding to the vehicle model;
[0012] A simulated signal is generated based on the information to be tested and the driving information;
[0013] The analog signal is input to the vehicle controller of the vehicle under test, so that the vehicle controller outputs a corresponding drive signal to the vehicle model based on the analog signal;
[0014] The driving process of the vehicle model based on the driving signal response is monitored, and the vehicle controller is controlled and tested based on the monitoring results.
[0015] Optionally, the step of simulating the driving process of the vehicle under test based on the vehicle model and obtaining driving information during the simulation includes:
[0016] Obtain the test information corresponding to the vehicle model;
[0017] Based on the information to be tested, obtain the environmental simulation information and working condition simulation information corresponding to the vehicle model;
[0018] A driving simulation model is constructed based on the environmental simulation information and the working condition simulation information;
[0019] The driving process of the vehicle under test is simulated based on the driving simulation model and the vehicle model, and driving information during the simulation process is obtained.
[0020] Optionally, inputting the analog signal to the vehicle controller of the vehicle under test includes:
[0021] Obtain the interface information of the vehicle controller corresponding to the vehicle under test based on the vehicle model;
[0022] Based on the interface information, the model interface of the vehicle model is matched with the controller interface of the vehicle controller;
[0023] Build the interface model based on the matching results;
[0024] The analog signal is input to the vehicle controller through the interface model.
[0025] Optionally, the sub-model library includes a part model library; the target sub-model includes a target part model.
[0026] The step of matching the vehicle model of the vehicle under test with each sub-model in a pre-built sub-model library to determine the target sub-model in the sub-model library includes:
[0027] The model of each part corresponding to the vehicle model is determined by looking up the preset parts mapping table according to the vehicle model of the vehicle to be tested.
[0028] The target part model in the part model library is determined by matching each part model with each sub-model in the pre-built part model library.
[0029] Optionally, the sub-model library further includes a controller model library; the target sub-model further includes a target controller model;
[0030] The step of matching the vehicle model of the vehicle under test with each sub-model in a pre-built sub-model library to determine the target sub-model in the sub-model library includes:
[0031] The preset electronic control mapping table is searched according to the vehicle model of the vehicle under test to determine the electronic control units corresponding to the vehicle model.
[0032] The target controller model in the controller model library is determined by matching each electronic control unit with each sub-model in the pre-built controller model library.
[0033] Optionally, after performing control tests on the vehicle controller corresponding to the vehicle under test based on the vehicle model, the method further includes:
[0034] The fault to be tested in the vehicle controller corresponding to the vehicle under test is determined based on the vehicle model of the vehicle under test, as well as the fault type corresponding to the fault to be tested.
[0035] The target fault test model in the fault test model library is determined by matching the fault to be tested and the fault type with each fault test model in the pre-built fault test model library.
[0036] The vehicle controller is subjected to fault testing based on the target fault test model and the vehicle model.
[0037] Furthermore, to achieve the above objectives, the present invention also proposes a vehicle controller testing device, the vehicle controller testing device comprising:
[0038] The model matching module is used to match the vehicle model of the vehicle under test with each sub-model in the pre-built sub-model library to determine the target sub-model in the sub-model library.
[0039] The model building module is used to build a vehicle model of the vehicle under test based on each target sub-model;
[0040] The control test module is used to perform control tests on the vehicle controller corresponding to the vehicle under test based on the vehicle model.
[0041] Furthermore, to achieve the above objectives, the present invention also proposes a vehicle controller testing device, which includes: a memory, a processor, and a vehicle controller testing program stored in the memory and executable on the processor. The vehicle controller testing program is configured to implement the steps of the vehicle controller testing method described above.
[0042] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a vehicle controller test program, wherein when the vehicle controller test program is executed by a processor, it implements the steps of the vehicle controller test method described above.
[0043] This invention matches the vehicle model of the vehicle under test with each sub-model in a pre-built sub-model library to determine the target sub-model in the library. Based on each target sub-model, a vehicle model of the vehicle under test is constructed. Control tests are then performed on the corresponding vehicle controller of the vehicle under test based on the vehicle model. Because this invention matches the target sub-model corresponding to the vehicle under test from the pre-built sub-model library based on the vehicle model, it effectively obtains all the target sub-models required to construct the vehicle model. Therefore, it eliminates the need to repeatedly construct sub-models for different vehicle models. Constructing the vehicle model based on each target sub-model effectively improves the efficiency of vehicle model construction. Furthermore, controlling the vehicle controller of the vehicle under test based on the vehicle model effectively avoids the problem of repeatedly constructing test platforms when testing different vehicle models, effectively reducing testing time and improving the testing efficiency of the vehicle controller. Attached Figure Description
[0044] Figure 1 This is a schematic diagram of the structure of a vehicle controller testing device for the hardware operating environment involved in the embodiments of the present invention;
[0045] Figure 2 This is a flowchart illustrating the first embodiment of the vehicle controller testing method of the present invention;
[0046] Figure 3 This is a flowchart illustrating the second embodiment of the vehicle controller testing method of the present invention;
[0047] Figure 4 This is a flowchart illustrating the third embodiment of the vehicle controller testing method of the present invention;
[0048] Figure 5 This is a structural block diagram of the first embodiment of the vehicle controller testing device of the present invention.
[0049] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0050] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0051] Reference Figure 1 , Figure 1This is a schematic diagram of the structure of a vehicle controller testing device for the hardware operating environment involved in an embodiment of the present invention.
[0052] like Figure 1 As shown, the vehicle controller test equipment may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk storage device. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the vehicle controller test equipment and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0054] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a vehicle controller test program.
[0055] exist Figure 1 In the vehicle controller testing equipment shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the vehicle controller testing equipment of the present invention can be set in the vehicle controller testing equipment. The vehicle controller testing equipment calls the vehicle controller testing program stored in the memory 1005 through the processor 1001 and executes the vehicle controller testing method provided in the embodiment of the present invention.
[0056] This invention provides a method for testing a vehicle controller, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of a vehicle controller testing method according to the present invention.
[0057] In this embodiment, the vehicle controller testing method includes the following steps:
[0058] Step S10: Match the vehicle model of the vehicle to be tested with each sub-model in the pre-built sub-model library to determine the target sub-model in the sub-model library.
[0059] It should be understood that the execution subject of the method in this embodiment may be a vehicle controller test device with data processing, network communication and program running functions, such as a computer, or other devices or equipment that can achieve the same or similar functions. Here, the above-mentioned vehicle controller test device (hereinafter referred to as the test device) is used as an example for explanation.
[0060] It should be noted that the vehicle under test can be any vehicle requiring testing of the vehicle controller. The vehicle model number mentioned above can be the product model number of the vehicle under test; the testing equipment can use this model number to find information such as the vehicle type and configuration. The sub-model library mentioned above can be a model database pre-built by the testing equipment based on the configuration information of various vehicle models. For example, the sub-model library may include a parts model library, a controller model library, and a driving simulation model library. The sub-model mentioned above can be a model pre-built by the testing equipment based on the configuration information of various vehicle models. For example, a sub-model may be a parts model, a controller model, or a driving simulation model. The target sub-model mentioned above can be a sub-model in the sub-model library corresponding to the vehicle model number of the vehicle under test.
[0061] It should be understood that, in the process of building sub-models, the test equipment enumerates each vehicle model in the vehicle model database in advance, obtains the virtual controller information, configuration information, and environmental information of each enumerated vehicle model, builds the corresponding part model for each vehicle model based on the configuration information, and builds a part model library based on each part model; builds a controller model based on the virtual controller information, and builds a controller model library based on the controller model; and builds a driving simulation model based on the environmental information, and builds a driving simulation model library based on the driving simulation model, thereby constructing test conditions under different environments.
[0062] In practical implementation, the testing equipment extracts environmental parameters from environmental information, constructs an environmental simulation model based on the environmental parameters, obtains preset driver simulation information, constructs an operation simulation model based on the driver simulation information, and constructs a driving simulation model based on the environmental simulation model and the operation simulation model. The testing equipment writes control information related to driver operations and related environmental parameters. By developing this model, it is possible to write different driver operations and environmental parameter information in real time, such as signals for operating the brake / accelerator pedal, air conditioning accessory switches, etc., as well as to simulate parameters such as different temperatures, slopes, loads, vehicle frontal area, and air resistance in real time.
[0063] Furthermore, in order to accurately construct a vehicle model consistent with the vehicle under test, the sub-model library includes a parts model library; the target sub-model includes a target parts model.
[0064] Step S10 above may include:
[0065] The model of each part corresponding to the vehicle model is determined by looking up the preset parts mapping table according to the vehicle model of the vehicle to be tested.
[0066] The target part model in the part model library is determined by matching each part model with each sub-model in the pre-built part model library.
[0067] In practice, the testing equipment extracts motor, battery, and drive parameters from the vehicle under test's configuration information. Based on these parameters, it constructs electric system, transmission system, and chassis system models. Then, it builds component models of the vehicle under test based on these models. By developing these component models, the testing equipment can write information about different models and parameters of relevant components in real time. For example, vehicle A might be equipped with a 101-type motor, while vehicle B might be equipped with a 102-type motor. When the status of relevant components in different vehicle models is changed, this information can be written in real time through the component models. The configuration information may include the vehicle's motor model, battery model, rear axle ratio, tire radius, frontal area, vehicle weight, and maximum braking force.
[0068] Furthermore, in order to improve the information interaction efficiency of the vehicle model, the sub-model library also includes a controller model library; the target sub-model also includes a target controller model.
[0069] Step S10 above may include:
[0070] The preset electronic control mapping table is searched according to the vehicle model of the vehicle under test to determine the electronic control units corresponding to the vehicle model.
[0071] The target controller model in the controller model library is determined by matching each electronic control unit with each sub-model in the pre-built controller model library.
[0072] In practical implementation, the testing equipment extracts electronic control unit (ECU) information from the virtual controller information of the vehicle under test (VUT) and constructs a controller model based on the ECU information. For example, the controller model can be composed of virtual controllers of ECUs such as Motor Control Unit (MCU), Battery Management System (BMS), DC-DC converter (DC-DC), DC-AC converter (DCAC), Power Distribution Unit (PDU), Instrument Cluster (IC), Transmission Control Unit (TCU), or Shift Control Unit (SCU), to perform control interactions with the vehicle control unit (VCU) and related systems. Through the development of this model, it is possible to write virtual controller information in real time for different control interaction states. For example, vehicle A under test needs to interact with the instrument IC to obtain vehicle speed information, while vehicle B under test needs to interact with the TCU to obtain vehicle speed information. When the virtual controller state of the test vehicle model is changed, it can be written in real time through this controller model.
[0073] Step S20: Construct the vehicle model of the vehicle under test based on each target sub-model.
[0074] It should be noted that the vehicle model can be a complete vehicle model corresponding to the vehicle under test.
[0075] It should be understood that the testing equipment can construct power system models, transmission system models, and chassis system models based on the configuration information of the vehicle under test; construct component models based on the power system models, transmission system models, and chassis system models; construct controller models based on the corresponding electronic control units of the vehicle under test; construct environmental simulation models based on environmental information; construct operation simulation models based on driver simulation information; construct driving simulation models based on the environmental simulation models and operation simulation models; and construct a complete vehicle model of the vehicle under test based on the component models, controller models, and driving simulation models.
[0076] In its implementation, the test equipment constructs a power control model to simulate the actual vehicle supplying power to the VCU. This model primarily controls the power supply to the hardware simulation test cabinet, managing the programmable power supply and battery voltage. Through the development of this model, it is possible to write the vehicle controller voltage to different battery voltage platforms in real time.
[0077] For example, vehicle A under test uses a 12V voltage platform, while vehicle B under test uses a 24V voltage platform. When the relevant platform status of the test vehicle is changed, it can be written in real time through the power control model to change the voltage platform of different vehicle models.
[0078] Step S30: Perform control tests on the vehicle controller corresponding to the vehicle under test based on the vehicle model.
[0079] It should be understood that the testing equipment constructs a driving simulation environment through a driving simulation model in the vehicle model, simulates the driving process of the vehicle under test in the driving simulation environment through component models and controller models, and acquires the driving information of the vehicle model during the simulation. Based on the driving information and the test information corresponding to the vehicle model, it generates a simulation signal and inputs the simulation signal to the vehicle controller of the vehicle under test, so that the vehicle controller outputs the corresponding drive signal to the vehicle model based on the simulation signal. The driving process of the vehicle model responding to the drive signal is monitored, and the driving response of the vehicle model in the driving process is determined according to the monitoring results to determine whether the driving response of the vehicle model in the driving process is consistent with the response process corresponding to the drive signal, thereby realizing the control test of the vehicle controller corresponding to the vehicle under test.
[0080] This embodiment matches the vehicle model of the vehicle under test with each sub-model in a pre-built sub-model library to determine the target sub-model in the library. Based on each target sub-model, a vehicle model of the vehicle under test is constructed. Control tests are then performed on the vehicle controller corresponding to the vehicle under test based on the vehicle model. Because this embodiment matches the target sub-model corresponding to the vehicle under test from the pre-built sub-model library based on the vehicle model, it effectively obtains all the target sub-models required to construct the vehicle model. Therefore, it eliminates the need to repeatedly construct sub-models for different vehicle models. Constructing the vehicle model based on each target sub-model effectively improves the efficiency of vehicle model construction. Furthermore, controlling the vehicle controller corresponding to the vehicle under test based on the vehicle model effectively avoids the problem of repeatedly constructing the test platform when testing different vehicle models, effectively reducing testing time and improving the testing efficiency of the vehicle controller.
[0081] refer to Figure 3 , Figure 3 This is a flowchart illustrating a second embodiment of a vehicle controller testing method according to the present invention.
[0082] Based on the first embodiment described above, in this embodiment, step S30 includes:
[0083] Step S301: Simulate the driving process of the vehicle under test based on the vehicle model, and obtain driving information during the simulation process.
[0084] It should be noted that driving information can include the vehicle model's operational and condition information during the driving simulation process.
[0085] It should be understood that the testing equipment sets the state information of the vehicle under test during the driving simulation process based on the information to be tested (e.g., the state information can be the vehicle load and component status, etc.), sets the external environmental information (e.g., environmental information can include temperature, slope, load, vehicle frontal area, air resistance, etc.), and driver operation information (e.g., driver operation information includes operating the brake, operating the accelerator pedal, air conditioning accessory switches, etc.), adjusts the state of the vehicle model based on the state information, adjusts the driving environment of the vehicle model based on the environmental information, and controls the driving process of the vehicle model based on the driver operation information.
[0086] Furthermore, in order to accurately simulate the driving process of the vehicle under test and ensure the accuracy of the driving information, step S301 above may include:
[0087] Step S3011: Obtain the test information corresponding to the vehicle model;
[0088] Step S3012: Obtain the environmental simulation information and working condition simulation information corresponding to the vehicle model based on the information to be tested;
[0089] Step S3013: Construct a driving simulation model based on the environmental simulation information and the working condition simulation information;
[0090] Step S3014: Simulate the driving process of the vehicle under test based on the driving simulation model and the vehicle model, and obtain driving information during the simulation process.
[0091] It should be understood that the testing equipment extracts environmental parameters from environmental information, constructs an environmental simulation model based on the environmental parameters, obtains preset driver simulation information, constructs an operation simulation model based on the driver simulation information, and constructs a driving simulation model based on the environmental simulation model and the operation simulation model. The testing equipment writes control information related to driver operations and related environmental parameters. By developing this model, it is possible to write different driver operations and environmental parameter information in real time, such as signals for operating the brake / accelerator pedal, air conditioning accessory switches, etc., as well as to simulate parameters such as different temperatures, slopes, loads, vehicle frontal area, and air resistance in real time.
[0092] Step S302: Obtain the test information corresponding to the vehicle model.
[0093] It should be noted that the information to be tested can be operational information that needs to be tested on the vehicle controller. For example, the information to be tested can be the simulated control of the air conditioning switch of the vehicle under test.
[0094] Step S303: Generate a simulated signal based on the information to be tested and the driving information.
[0095] Step S304: Input the analog signal to the vehicle controller of the vehicle under test, so that the vehicle controller outputs the corresponding drive signal to the vehicle model based on the analog signal.
[0096] It should be understood that the test equipment inputs analog signals to the vehicle control unit (VCU), which performs internal logic calculations and outputs values that conform to the design strategy. For example, when simulating pressing the air conditioning switch, the VCU integrates the messages sent by various systems to determine whether the air conditioning relay is allowed to close, so that the VCU can successfully control the air conditioning compressor.
[0097] Furthermore, to improve the stability of signal interaction, step S304 may include:
[0098] Step S3041: Obtain the interface information of the vehicle controller corresponding to the vehicle under test according to the vehicle model;
[0099] Step S3042: Match the model interface of the vehicle model with the controller interface of the vehicle controller according to the interface information;
[0100] Step S3043: Construct the interface model based on the matching results;
[0101] Step S3044: Input the analog signal to the vehicle controller through the interface model.
[0102] It should be noted that the interface information can be the I / O interface information (i.e., input / output interface information) of the vehicle controller. The above model interface can be the input / output interface of the vehicle model, and the above controller interface can be the input / output interface of the VCU. The above interface model can be an I / O interface model, i.e., an input / output interface model.
[0103] It should be understood that the testing equipment obtains the interface information of the vehicle controller corresponding to the vehicle under test according to the vehicle model, performs interface matching between the model interface of the vehicle model and the controller interface of the vehicle controller, and constructs a digital input / output model, an analog input / output model and a PWM input / output model based on the matching result. Based on the digital input / output model, the analog input / output model and the PWM input / output model, an interface model is constructed, thereby ensuring that the vehicle controller can input and output digital signals, analog signals and PWM signals, so as to facilitate the processing of vehicle controller VCU related control signals and realize the acquisition and processing of vehicle controller VCU signals.
[0104] Step S305: Monitor the driving process of the vehicle model based on the driving signal response, and perform control tests on the vehicle controller based on the monitoring results.
[0105] In practical implementation, the test needs to verify whether the VCU can accurately control the target device (e.g., air conditioner) of the vehicle under test. Based on the instructions to control the target device, an analog signal is generated and input to the VCU. The VCU sends a drive signal (e.g., a drive signal to turn off the target device) to the vehicle model based on the received analog signal. The driving process of the vehicle model in response to the drive signal is monitored. Based on the monitoring results, it is checked whether the target device in the vehicle model is driven according to the drive instructions in the drive signal (e.g., whether the target device is turned off). This achieves the control test of the VCU.
[0106] For example, when the vehicle model receives a signal that the air conditioner switch is pressed, it is equivalent to a 1. If all other conditions are met, the VCU will send an air conditioner enable signal to drive the air conditioner compressor to close. At this time, the test equipment can observe and check whether the air conditioner compressor enable signal is 1. If it is 1, the design requirements are met; if it is 0, the design requirements are not met, thereby realizing the control test of the VCU.
[0107] This embodiment simulates the driving process of the vehicle under test based on the vehicle model and acquires driving information during the simulation. It also acquires test information corresponding to the vehicle model, generates a simulation signal based on the test information and the driving information, and inputs the simulation signal to the vehicle controller of the vehicle under test. The vehicle controller then outputs a corresponding drive signal to the vehicle model based on the simulation signal. The driving process of the vehicle model responding to the drive signal is monitored, and the control of the vehicle controller is tested based on the monitoring results. Because this embodiment simulates the driving process of the vehicle under test based on the vehicle model and acquires driving information during the simulation, it accurately acquires... The system obtains driving information of the vehicle under test during actual driving, acquires test information corresponding to the vehicle model, generates a simulated signal based on the test information and the driving information, and inputs the simulated signal to the vehicle controller of the vehicle under test. The vehicle controller then outputs a corresponding drive signal to the vehicle model based on the simulated signal, thereby simulating the signal interaction between the vehicle controller and the vehicle under test. The system monitors the driving process of the vehicle model based on the drive signal to determine whether the vehicle model can correctly respond to the drive signal sent by the vehicle controller. Based on the monitoring results, the system performs control tests on the vehicle controller, thereby improving the testing efficiency of the vehicle controller and ensuring the accuracy of the test results.
[0108] refer to Figure 4 , Figure 4 This is a flowchart illustrating a third embodiment of a vehicle controller testing method according to the present invention.
[0109] Based on the first embodiment described above, in this embodiment, after step S30, the following is included:
[0110] Step S40: Determine the fault to be tested in the vehicle controller corresponding to the vehicle under test, and the fault type corresponding to the fault to be tested, based on the vehicle model of the vehicle under test.
[0111] Step S50: Match the fault to be tested and the fault type with each fault test model in the pre-built fault test model library to determine the target fault test model in the fault test model library;
[0112] Step S60: Perform fault testing on the vehicle controller based on the target fault test model and the vehicle model.
[0113] It should be noted that the fault under test can be any fault that needs to be tested. For example, the fault under test can be an MCU overcurrent fault, a BMS level 3 fault, a DC-DC communication timeout fault, a power supply overvoltage fault, etc. The above fault types can include MCU faults, BMS faults, communication faults, or voltage plateau faults, etc. The above fault test model library can be a database containing multiple fault test models pre-built by the test equipment based on various fault types.
[0114] It should be understood that the testing equipment can pre-build various fault test models based on the possible faults of various models of vehicles under test and the corresponding fault types, such as virtual controller fault test models and system communication fault test models, and then build a fault test model library based on the constructed fault test models.
[0115] In practical implementation, the testing equipment can construct a fault test model based on the virtual controller fault test model and the system communication fault test model to trigger faults in the vehicle controller (VCU) related systems. By developing this model, it is possible to write different virtual controllers, system communication and other related faults in real time. For example, the fault test model can simulate MCU overcurrent faults, BMS level 3 faults, DC-DC communication timeout faults, power supply overvoltage and other faults. The fault test model can be used to test the VCU to realize the vehicle controller's response measures when facing faults.
[0116] This embodiment determines the fault to be tested in the vehicle controller corresponding to the vehicle under test based on the vehicle model of the vehicle under test, as well as the fault type corresponding to the fault to be tested. It then matches the fault to be tested and the fault type with various fault test models in a pre-built fault test model library to determine the target fault test model in the library. Based on the target fault test model and the vehicle model, the vehicle controller is subjected to fault testing. Because this embodiment performs fault testing on the vehicle controller based on the target fault test model and the vehicle model, it effectively tests the vehicle controller's response measures when facing faults.
[0117] Furthermore, this embodiment of the invention also proposes a storage medium storing a vehicle controller test program, which, when executed by a processor, implements the steps of the vehicle controller test method described above.
[0118] Since this storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.
[0119] Reference Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the vehicle controller testing device of the present invention.
[0120] like Figure 5 As shown, the vehicle controller testing device proposed in this embodiment of the invention includes:
[0121] The model matching module 10 is used to match the vehicle model of the vehicle under test with each sub-model in the pre-built sub-model library to determine the target sub-model in the sub-model library.
[0122] The model building module 20 is used to build a vehicle model of the vehicle under test based on each target sub-model;
[0123] The control test module 30 is used to perform control tests on the vehicle controller corresponding to the vehicle under test based on the vehicle model.
[0124] Furthermore, the control test module 30 is also used to simulate the driving process of the vehicle under test based on the vehicle model and acquire driving information during the simulation process; acquire test information corresponding to the vehicle model; generate a simulation signal based on the test information and the driving information; input the simulation signal to the vehicle controller of the vehicle under test, so that the vehicle controller outputs a corresponding drive signal to the vehicle model based on the simulation signal; monitor the driving process of the vehicle model based on the drive signal, and perform control tests on the vehicle controller based on the monitoring results.
[0125] Furthermore, the control test module 30 is also used to acquire test information corresponding to the vehicle model; acquire environmental simulation information and working condition simulation information corresponding to the vehicle model based on the test information; construct a driving simulation model based on the environmental simulation information and the working condition simulation information; simulate the driving process of the vehicle under test based on the driving simulation model and the vehicle model, and acquire driving information during the simulation process.
[0126] Furthermore, the control test module 30 is also used to obtain the interface information of the vehicle controller corresponding to the vehicle under test according to the vehicle model; to perform interface matching between the model interface of the vehicle model and the controller interface of the vehicle controller according to the interface information; to construct an interface model according to the matching result; and to input the analog signal to the vehicle controller through the interface model.
[0127] Furthermore, the sub-model library includes a part model library; the target sub-model includes a target part model;
[0128] The model matching module 10 is further configured to look up a preset parts mapping table based on the vehicle model of the vehicle under test, determine the model of each part corresponding to the vehicle model, and match each part model with each sub-model in the pre-built parts model library to determine the target part model in the parts model library.
[0129] Furthermore, the sub-model library also includes a controller model library; the target sub-model also includes a target controller model;
[0130] The model matching module 10 is further configured to look up a preset electronic control mapping table based on the vehicle model of the vehicle under test, determine each electronic control unit corresponding to the vehicle model, and determine the target controller model in the controller model library by matching each electronic control unit with each sub-model in the pre-built controller model library.
[0131] Furthermore, the control test module 30 is also used to determine the fault to be tested of the vehicle controller corresponding to the vehicle under test and the fault type corresponding to the fault to be tested based on the vehicle model of the vehicle under test; to match the fault to be tested and the fault type with each fault test model in the pre-built fault test model library to determine the target fault test model in the fault test model library; and to perform fault testing on the vehicle controller based on the target fault test model and the vehicle model.
[0132] This embodiment matches the vehicle model of the vehicle under test with each sub-model in a pre-built sub-model library to determine the target sub-model in the library. Based on each target sub-model, a vehicle model of the vehicle under test is constructed. Control tests are then performed on the vehicle controller corresponding to the vehicle under test based on the vehicle model. Because this embodiment matches the target sub-model corresponding to the vehicle under test from the pre-built sub-model library based on the vehicle model, it effectively obtains all the target sub-models required to construct the vehicle model. Therefore, it eliminates the need to repeatedly construct sub-models for different vehicle models. Constructing the vehicle model based on each target sub-model effectively improves the efficiency of vehicle model construction. Furthermore, controlling the vehicle controller corresponding to the vehicle under test based on the vehicle model effectively avoids the problem of repeatedly constructing the test platform when testing different vehicle models, effectively reducing testing time and improving the testing efficiency of the vehicle controller.
[0133] It should be understood that the above are merely illustrative examples and do not constitute any limitation on the technical solutions of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any restrictions on this.
[0134] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.
[0135] In addition, for technical details not described in detail in this embodiment, please refer to the vehicle controller testing method provided in any embodiment of the present invention, which will not be repeated here.
[0136] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0137] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0138] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0139] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for testing a vehicle controller, characterized in that, The vehicle controller testing method includes: Based on the vehicle model of the vehicle under test, a preset part mapping table is consulted to determine the part models corresponding to the vehicle model, and a preset electronic control mapping table is consulted to determine the electronic control units corresponding to the vehicle model. The part models are then matched with part models in a pre-built part model library to determine the target part model. Finally, the electronic control units are matched with controller models in a pre-built controller model library to determine the target controller model. The part model library includes part models that match the part models corresponding to each vehicle model, and the controller model library includes controller models that match the electronic control units corresponding to each vehicle model. Both the part models and the controller models are executable simulation models with input / output interfaces. Based on the target component models and target controller models, a vehicle model of the vehicle under test is constructed. Based on the vehicle model, the vehicle controller corresponding to the vehicle under test is used for control testing.
2. The vehicle controller testing method as described in claim 1, characterized in that, The control test of the vehicle controller corresponding to the vehicle under test based on the vehicle model includes: The driving process of the vehicle under test is simulated based on the vehicle model, and driving information during the simulation is obtained. Obtain the test information corresponding to the vehicle model; A simulated signal is generated based on the information to be tested and the driving information; The analog signal is input to the vehicle controller of the vehicle under test, so that the vehicle controller outputs a corresponding drive signal to the vehicle model based on the analog signal; The driving process of the vehicle model based on the driving signal response is monitored, and the vehicle controller is controlled and tested based on the monitoring results.
3. The vehicle controller testing method as described in claim 2, characterized in that, The process of simulating the driving process of the vehicle under test based on the vehicle model and obtaining driving information during the simulation includes: Obtain the test information corresponding to the vehicle model; Based on the information to be tested, obtain the environmental simulation information and working condition simulation information corresponding to the vehicle model; A driving simulation model is constructed based on the environmental simulation information and the working condition simulation information; The driving process of the vehicle under test is simulated based on the driving simulation model and the vehicle model, and driving information during the simulation process is obtained.
4. The vehicle controller testing method as described in claim 3, characterized in that, The step of inputting the analog signal to the vehicle controller of the vehicle under test includes: Obtain the interface information of the vehicle controller corresponding to the vehicle under test based on the vehicle model; Based on the interface information, the model interface of the vehicle model is matched with the controller interface of the vehicle controller; Build the interface model based on the matching results; The analog signal is input to the vehicle controller through the interface model.
5. The vehicle controller testing method as described in any one of claims 1 to 4, characterized in that, After performing control tests on the vehicle controller corresponding to the vehicle under test based on the vehicle model, the process further includes: The fault to be tested in the vehicle controller corresponding to the vehicle under test is determined based on the vehicle model of the vehicle under test, as well as the fault type corresponding to the fault to be tested. The target fault test model in the fault test model library is determined by matching the fault to be tested and the fault type with each fault test model in the pre-built fault test model library. The vehicle controller is subjected to fault testing based on the target fault test model and the vehicle model.
6. A vehicle controller testing device, characterized in that, The vehicle controller testing device includes: The model matching module is used to determine the corresponding part models based on the vehicle model of the vehicle under test by searching a preset part mapping table and a preset electronic control mapping table to determine the corresponding electronic control units. It then matches the part models with the part models in a pre-built part model library to determine the target part model; and matches the electronic control units with the controller models in a pre-built controller model library to determine the target controller model. The part model library includes part models that match the part models corresponding to each vehicle model, and the controller model library includes controller models that match the electronic control units corresponding to each vehicle model. Both the part models and the controller models are executable simulation models with input / output interfaces. The model building module is used to build a vehicle model of the vehicle under test based on the target part models and the target controller models. The control test module is used to perform control tests on the vehicle controller corresponding to the vehicle under test based on the vehicle model.
7. A vehicle controller testing device, characterized in that, The vehicle controller testing equipment includes: a memory, a processor, and a vehicle controller testing program stored in the memory and executable on the processor, wherein the vehicle controller testing program is configured to implement the vehicle controller testing method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium stores a vehicle controller test program, which, when executed by a processor, implements the vehicle controller test method as described in any one of claims 1 to 5.