Vehicle domain controller testing method, device, equipment and storage medium

By building a virtual model and using control strategies to simulate and test the domain controller, the problems of high testing difficulty and low accuracy in the existing technology are solved, and efficient and accurate domain controller testing is achieved.

CN116360386BActive Publication Date: 2025-08-15DONGFENG LIUZHOU MOTOR
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310071430.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-01
Publication Date
2025-08-15
Estimated Expiration
2043-02-01

AI Technical Summary

Technical Problem

In the prior art, the test of vehicle domain controllers is difficult and has low accuracy, and there are errors in actual vehicle tests, which cannot effectively ensure the accuracy of the test results.

Method used

By building a virtual model of the target vehicle, a control strategy is generated based on the test requirements of the domain controller to be tested, the virtual model is controlled by the domain controller to be tested, and the current control status with the target is compared to the test result.

Benefits of technology

Accurate testing of domain controllers is achieved, reducing testing costs and difficulty, and ensuring the accuracy and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116360386B_ABST
    Figure CN116360386B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle domain controller testing method, apparatus, equipment, and storage medium. The present invention discloses: constructing a virtual model of a target vehicle according to a preset test environment; generating a control strategy based on the test requirements of the domain controller to be tested of the target vehicle; controlling the virtual model through the domain controller to be tested according to the control strategy; determining the target control state of the virtual model according to the control strategy; obtaining the current control state of the virtual model after control; comparing the current control state with the target control state; and determining the test result of the domain controller to be tested based on the comparison result. The present invention controls the virtual model of the target vehicle through the domain controller to be tested according to the control strategy, compares the current control state after control with the target control state, and obtains the test result of the domain controller to be tested. This achieves simulated testing of the control behavior of the domain controller, effectively reduces testing costs, and ensures the accuracy of domain controller testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automotive technology, and in particular to a testing method, device, equipment, and storage medium for a vehicle domain controller. Background Art

[0002] Currently, in the development of key technologies for vehicle assistance and autonomous driving, domain controllers are used to perform interactive logic control, such as signal recognition and conversion, to achieve control interaction between traditional component controllers and autonomous driving controllers. Therefore, domain controllers play a vital role in driving demand management, human-machine interaction, interface unification, and safety control. Currently, through real-vehicle testing and extensive real-vehicle operating condition verification, and given the safety implications of assisted and autonomous driving functions, current domain controller testing methods are costly and difficult, and real-vehicle testing methods are subject to significant errors, making it difficult to ensure test accuracy.

[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of the present invention is to provide a vehicle domain controller testing method, device, equipment and storage medium, aiming to solve the technical problems of the existing technology that domain controller testing is difficult and has low testing accuracy.

[0005] To achieve the above object, the present invention provides a method for testing a vehicle domain controller, the method comprising the following steps:

[0006] Build a virtual model of the target vehicle based on the preset test environment;

[0007] Generate a control strategy according to the test requirements of the domain controller to be tested of the target vehicle;

[0008] Controlling the virtual model through the domain controller to be tested according to the control strategy;

[0009] Determining a target control state of the virtual model according to the control strategy, and obtaining a current control state of the virtual model after control;

[0010] The current control state is compared with the target control state, and a test result of the domain controller to be tested is determined according to the comparison result.

[0011] Optionally, generating a control strategy according to a test requirement of the domain controller to be tested of the target vehicle includes:

[0012] determining a target domain to be tested in the target vehicle;

[0013] Determining a domain controller to be tested of the target vehicle according to the target domain;

[0014] Determining the test requirements of the domain controller to be tested according to the target domain;

[0015] A control strategy is generated according to the test requirements.

[0016] Optionally, generating a control strategy according to the test requirements includes:

[0017] Determining the function to be tested of the target domain according to the test requirements;

[0018] Determining a control behavior to be tested of the domain controller to be tested according to the function to be tested;

[0019] A control strategy is generated according to the control behavior to be measured.

[0020] Optionally, determining the control behavior to be tested of the domain controller to be tested according to the function to be tested includes:

[0021] calling a pre-built control behavior library according to the target domain;

[0022] Matching each control behavior in the control behavior library according to the function to be tested;

[0023] The control behavior matched in the control behavior library is used as the control behavior to be tested of the domain controller to be tested.

[0024] Optionally, generating a control strategy according to the control behavior to be measured includes:

[0025] Determining the test weight of each control behavior to be tested according to the test requirements;

[0026] sorting the control behaviors to be tested according to the test weights;

[0027] generating a test sequence according to the sorting result and the control behavior to be tested;

[0028] A control strategy is generated according to the test sequence.

[0029] Optionally, controlling the virtual model through the domain controller to be tested according to the control strategy includes:

[0030] generating a control request through the domain controller to be tested according to the control policy;

[0031] Performing signal conversion on the control request by the domain controller to be tested to obtain a target signal;

[0032] The virtual model is controlled by the domain controller to be tested according to the target signal.

[0033] Optionally, after comparing the current control state with the target control state and determining the test result of the domain controller to be tested according to the comparison result, the method further includes:

[0034] Adjusting the preset test environment according to the test results;

[0035] Rebuilding the virtual model of the target vehicle according to the adjusted preset test environment;

[0036] The control strategy is modified according to the test result, and the process returns to the step of controlling the virtual model through the domain controller to be tested according to the control strategy.

[0037] In addition, to achieve the above-mentioned object, the present invention further provides a vehicle domain controller test device, the vehicle domain controller test device comprising:

[0038] A model building module, used to build a virtual model of the target vehicle according to a preset test environment;

[0039] A strategy generation module, configured to generate a control strategy according to the test requirements of the domain controller to be tested of the target vehicle;

[0040] A control test module, configured to control the virtual model through the domain controller to be tested according to the control strategy;

[0041] a state acquisition module, configured to determine a target control state of the virtual model according to the control strategy, and to acquire a current control state of the virtual model after control;

[0042] The state comparison module is used to compare the current control state with the target control state, and determine the test result of the domain controller to be tested according to the comparison result.

[0043] In addition, to achieve the above-mentioned objectives, the present invention also proposes a vehicle domain controller testing device, which includes: a memory, a processor, and a vehicle domain controller testing program stored in the memory and executable on the processor. The vehicle domain controller testing program is configured to implement the steps of the vehicle domain controller testing method described above.

[0044] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a test program for a vehicle domain controller is stored. When the test program for the vehicle domain controller is executed by a processor, the steps of the vehicle domain controller test method described above are implemented.

[0045] The present invention constructs a virtual model of a target vehicle according to a preset test environment, generates a control strategy according to the test requirements of the domain controller to be tested of the target vehicle, controls the virtual model through the domain controller to be tested according to the control strategy, determines the target control state of the virtual model according to the control strategy, obtains the current control state of the virtual model after control, compares the current control state with the target control state, and determines the test result of the domain controller to be tested according to the comparison result; since the present invention constructs a virtual model of the target vehicle according to the preset test environment, thereby constructing a virtual test environment, according to the test requirements of the domain controller to be tested of the target vehicle A control strategy is generated, and the virtual model is controlled by the domain controller to be tested according to the control strategy, thereby simulating the control behavior of the domain controller to be tested of the target vehicle, determining the target control state of the virtual model according to the control strategy, and obtaining the current control state of the virtual model after control, comparing the current control state with the target control state, and determining the test result of the domain controller to be tested according to the comparison result, thereby completing the control test of the domain controller to be tested. Since the present invention controls the virtual model by controlling the domain controller to be tested, it not only ensures the accuracy of the control test, but also effectively reduces the test cost and test difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a structural diagram of a vehicle domain controller test device in a hardware operating environment involved in an embodiment of the present invention;

[0047] Figure 2 1. A flow chart of a first embodiment of a method for testing a vehicle domain controller according to the present invention;

[0048] Figure 3 2 is a flow chart of a second embodiment of a method for testing a vehicle domain controller according to the present invention;

[0049] Figure 4 This is a structural block diagram of the first embodiment of the vehicle domain controller testing device of the present invention.

[0050] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0052] Reference Figure 1 , Figure 1 This is a schematic diagram of the test equipment structure of a vehicle domain controller in the hardware operating environment involved in an embodiment of the present invention.

[0053] like Figure 1 As shown, the test equipment for the vehicle domain controller 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. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the test equipment of the vehicle domain controller, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0055] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a test program of a vehicle domain controller.

[0056] exist Figure 1 In the vehicle domain controller test device 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 domain controller test device of the present invention can be set in the vehicle domain controller test device. The vehicle domain controller test device calls the vehicle domain controller test program stored in the memory 1005 through the processor 1001 and executes the vehicle domain controller test method provided by the embodiment of the present invention.

[0057] The embodiment of the present invention provides a method for testing a vehicle domain controller, referring to Figure 2 , Figure 2 This is a flow chart of a first embodiment of a method for testing a vehicle domain controller according to the present invention.

[0058] In this embodiment, the vehicle domain controller testing method includes the following steps:

[0059] Step S10: Construct a virtual model of the target vehicle according to a preset test environment.

[0060] It should be understood that the execution subject of the method of this embodiment can be a test device of a vehicle domain controller 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. The above-mentioned vehicle domain controller test device (hereinafter referred to as the control test device) is used as an example for illustration.

[0061] It should be noted that the preset test environment can be a pre-configured test environment for control testing. The control test equipment can pre-configure the preset test environment for different operating conditions based on information such as test conditions, test requirements, and test environment parameters, thereby enabling control testing under different operating conditions and environments. The aforementioned virtual model can be a simulation model of each functional module in the target vehicle. For example, the virtual model may include the target vehicle's IO interface model, virtual controller model, signal interaction model, etc.

[0062] It should be understood that this embodiment obtains the test requirements of the target vehicle, determines the test conditions based on the test requirements, obtains the corresponding test environment parameters, builds a preset test environment based on the test conditions and test environment parameters, obtains the vehicle parameters of the target vehicle, and builds a virtual model of each functional module in the target vehicle based on the vehicle parameters under the preset test environment, thereby completing the construction of the test environment and test object for the control test, effectively improving the efficiency and accuracy of subsequent tests.

[0063] Step S20: Generate a control strategy according to the test requirements of the domain controller to be tested of the target vehicle.

[0064] It should be noted that the domain controller under test can be the domain controller in the target vehicle that requires control behavior testing, such as a chassis domain controller or a powertrain domain controller. The aforementioned control strategy can be a strategy for controlling the test equipment to simulate control behavior by controlling a virtual model through the domain controller under test of the target vehicle. For example, the control strategy can include signal interaction control, signal conversion control, and control request transmission.

[0065] It should be understood that this embodiment controls the test equipment to pass the test requirements of the domain controller to be tested of the target vehicle, determines the control behavior to be tested of the domain controller to be tested according to the test requirements, and generates a control strategy according to the control behavior to be tested.

[0066] For example, the control test equipment obtains the test requirements of the domain controller to be tested, and determines the control behavior to be tested according to the test requirements, including: simulating the state changes of the intelligent driving trigger switch and the emergency stop switch of the real vehicle, simulating the operation of the accelerator pedal and other driver operations, and generates a control strategy based on the control behavior to be tested, which is to control the IO interface model of the target vehicle through the domain controller to be tested to simulate the state changes of the intelligent driving trigger switch and the emergency stop switch of the real vehicle; and to control the virtual controller model through the domain controller to be tested to simulate the operation of the accelerator pedal and other driver operations.

[0067] Step S30: controlling the virtual model through the domain controller to be tested according to the control strategy.

[0068] It should be understood that the control test equipment in this embodiment determines the module model corresponding to each control behavior to be tested according to the control strategy, and controls each module model through the domain controller to be tested according to the control strategy.

[0069] Furthermore, in order to effectively control the virtual model, the above step S30 may include:

[0070] generating a control request through the domain controller to be tested according to the control policy;

[0071] Performing signal conversion on the control request by the domain controller to be tested to obtain a target signal;

[0072] The virtual model is controlled by the domain controller to be tested according to the target signal.

[0073] In the specific implementation, the control test equipment performs vehicle intelligent driving trigger and emergency stop control logic judgment on the hard-wired input signals such as the intelligent driving trigger switch and emergency stop switch output signals of the IO interface model through the domain controller to be tested according to the control strategy; performs throttle pedal signal acquisition and signal conversion on the hard-wired input signals such as the accelerator pedal of the IO interface model simulation output signal through the domain controller to be tested according to the control strategy; sends the brake pedal opening to the virtual controller model electronic brake system controller EBS through the domain controller to be tested according to the control strategy for brake pedal signal conversion; sends the intelligent driving mode status, wire-controlled throttle request, wire-controlled brake request, and wire-controlled gear request CAN signals to the virtual controller model automatic driving controller ADU through the domain controller to convert the vehicle wire-controlled request signal according to the control strategy; calculates the relevant status of the intelligent driving control of the whole vehicle through the domain controller to be tested based on internal signal acquisition and signal conversion, and converts the intelligent driving control according to the intelligent driving The trigger switch collects signals and sends the intelligent driving trigger status and other signals to the ADU through CAN, and converts the opening according to the collected voltage of the accelerator pedal, and sends the accelerator pedal opening to the ADU through CAN for manual takeover; the domain controller to be tested sends the wire-controlled gear request CAN signal to the transmission controller TCU for gear control according to the ADU; the domain controller to be tested collects the accelerator pedal voltage (normal driving) and the ADU wire-controlled throttle / torque request (intelligent driving driving), and converts it into the accelerator pedal voltage after comprehensively judging the current intelligent driving mode status, and gives it to the vehicle controller VCU for drive control; the domain controller to be tested forwards the ADU wire-controlled braking request (intelligent driving braking) to the EBS for brake pedal signal conversion, and sends the brake pedal opening (normal driving / intelligent driving braking) sent by EBS, and converts it into the brake pedal voltage after comprehensively judging the current intelligent driving mode status, and gives it to the vehicle controller VCU for braking control.

[0074] Step S40: determining the target control state of the virtual model according to the control strategy, and obtaining the current control state of the virtual model after control.

[0075] It should be noted that the current control state can be the current state of the virtual model after being controlled by the domain controller under test. For example, the domain controller under test simulates emergency braking of a vehicle, obtains the current braking state of the virtual model, and checks whether the current braking state is consistent with the expected state. The target control state can be the expected state corresponding to the control behavior in the control strategy.

[0076] Step S50: Compare the current control state with the target control state, and determine the test result of the domain controller to be tested according to the comparison result.

[0077] It should be understood that in order to accurately determine whether the control behavior of the domain controller under test is consistent with expectations, the control test equipment of this embodiment determines the target control state of the virtual model according to the control strategy and obtains the current control state of the virtual model after control. For example, it determines whether the DCU control drive logic, such as intelligent driving triggering, emergency stop switch request and message output, is consistent, determines whether the DCU signal interaction and signal conversion are correct, and sends signals to relevant devices to realize intelligent driving related function control.

[0078] Furthermore, in order to effectively optimize the test, after the above step S50, the following steps may be included:

[0079] Adjusting the preset test environment according to the test results;

[0080] Rebuilding the virtual model of the target vehicle according to the adjusted preset test environment;

[0081] The control strategy is modified according to the test result, and the process returns to the step of controlling the virtual model through the domain controller to be tested according to the control strategy.

[0082] It should be understood that during the test process, the control test equipment can promptly correct the test parameters and return the test data and test conclusions in a timely manner according to the test results, so as to optimize the control strategy. It can also build automated test cases and sequences under different working conditions based on test conditions, test environment parameters and other information, generate automated test reports, etc., so as to carry out large-scale and repeated working condition tests.

[0083] This embodiment constructs a virtual model of the target vehicle according to a preset test environment, generates a control strategy according to the test requirements of the domain controller to be tested of the target vehicle, controls the virtual model through the domain controller to be tested according to the control strategy, determines the target control state of the virtual model according to the control strategy, obtains the current control state of the virtual model after control, compares the current control state with the target control state, and determines the test result of the domain controller to be tested according to the comparison result; Since this embodiment constructs the virtual model of the target vehicle according to the preset test environment, thereby constructing a virtual test environment, according to the test requirements of the domain controller to be tested of the target vehicle A control strategy is generated, and the virtual model is controlled by the domain controller to be tested according to the control strategy, thereby simulating the control behavior of the domain controller to be tested of the target vehicle, determining the target control state of the virtual model according to the control strategy, and obtaining the current control state of the virtual model after control, comparing the current control state with the target control state, and determining the test result of the domain controller to be tested according to the comparison result, thereby completing the control test of the domain controller to be tested. Since this embodiment controls the virtual model by controlling the domain controller to be tested, it not only ensures the accuracy of the control test, but also effectively reduces the test cost and test difficulty.

[0084] refer to Figure 3 , Figure 3 This is a flow chart of a second embodiment of a method for testing a vehicle domain controller according to the present invention.

[0085] Based on the above first embodiment, in this embodiment, step S20 includes:

[0086] Step S21: determining a target domain to be tested in the target vehicle.

[0087] It should be noted that the target domain can be a functional domain in the target vehicle that needs to be tested, wherein each functional domain in the target vehicle corresponds to a different domain controller, and each functional domain contains multiple functional modules. For example, the functional domain can be a chassis functional domain, an assisted driving functional domain, a powertrain functional domain, a body functional domain, and a cockpit functional domain. In order to effectively control the multiple functional modules contained in the target vehicle, each functional module is classified and controlled according to the classification results, so that the multiple functional modules in the vehicle can work in an orderly and coordinated manner. For example, the control test equipment determines that the cockpit function of the target vehicle needs to be tested based on the test requirements, so the cockpit functional domain is used as the target domain to be tested.

[0088] Step S22: Determine the domain controller to be tested of the target vehicle according to the target domain.

[0089] It should be understood that, in this embodiment, the control test equipment determines the domain controller corresponding to the target domain according to the function of the target domain, and uses the domain controller as the domain controller to be tested of the target vehicle.

[0090] Step S23: Determine the test requirements of the domain controller to be tested according to the target domain.

[0091] It should be noted that the test requirement may be a test requirement for testing the functionality of the domain controller to be tested. For example, the test requirement may be a test for whether the domain controller to be tested can perform signal interaction and signal conversion normally.

[0092] Step S24: Generate a control strategy according to the test requirements.

[0093] It should be understood that this embodiment controls the test equipment to pass the test requirements of the domain controller to be tested of the target vehicle, determines the control behavior to be tested of the domain controller to be tested according to the test requirements, and generates a control strategy according to the control behavior to be tested.

[0094] For example, the control test equipment obtains the test requirements of the domain controller to be tested, and determines the control behavior to be tested according to the test requirements, including: simulating the state changes of the intelligent driving trigger switch and the emergency stop switch of the real vehicle, simulating the operation of the accelerator pedal and other driver operations, and generates a control strategy based on the control behavior to be tested, which is to control the IO interface model of the target vehicle through the domain controller to be tested to simulate the state changes of the intelligent driving trigger switch and the emergency stop switch of the real vehicle; and to control the virtual controller model through the domain controller to be tested to simulate the operation of the accelerator pedal and other driver operations.

[0095] Furthermore, in order to effectively generate the control strategy, the above step S24 may include:

[0096] Step S241: determining the function to be tested of the target domain according to the test requirement;

[0097] Step S242: determining the control behavior to be tested of the domain controller to be tested according to the function to be tested;

[0098] Step S243: generating a control strategy according to the control behavior to be tested.

[0099] It should be noted that the function to be tested can be the function required to be tested by each functional module in the target domain. For example, the test requirement can be the requirement to test the execution of an action, by setting the intelligent driving trigger switch through the controller of the domain to be tested; or it can be a test of autonomous driving drive, by setting the ADU through the controller of the domain to be tested to send a wire-controlled gear position request. The above-mentioned control behavior to be tested can be the response behavior corresponding to the function to be tested. For example, to simulate the logic judgment of the vehicle's emergency stop mechanism, the control behavior to be tested can be outputting the emergency stop switch signal light to the IO interface model.

[0100] Furthermore, in order to improve the testing efficiency, the above step S242 may include:

[0101] Step S2421: calling a pre-built control behavior library according to the target domain;

[0102] Step S2422: matching each control behavior in the control behavior library according to the function to be tested;

[0103] Step S2423: using the control behavior matched in the control behavior library as the control behavior to be tested of the domain controller to be tested.

[0104] It should be noted that the control behavior library can be a pre-built custom action library, and by constructing the control behavior in advance, it is possible to directly call the relevant data information of the control behavior during the test process.

[0105] It should be understood that in order to effectively improve test efficiency, the control test equipment of this embodiment can establish a custom action library of major actions based on the needs of setting up automated test sequences, which can be directly called by setting up automated test sequences for other functions. For example, based on this functional test, an action library can be established to set request signals such as setting intelligent driving triggers and setting entry into manual mode. An action library can also be established to check the status of intelligent driving mode and the status of manual takeover, etc.

[0106] Furthermore, in order to perform the control test in an orderly manner during the test process, the above step S243 may include:

[0107] Step S2431: determining the test weight of each control behavior to be tested according to the test requirements;

[0108] Step S2432: sorting the control behaviors to be tested according to the test weights;

[0109] Step S2433: generating a test sequence according to the sorting result and the control behavior to be tested;

[0110] Step S2434: Generate a control strategy according to the test sequence.

[0111] It should be noted that the test weight may be the importance of each control behavior to be tested. For example, the weight of the braking control behavior is greater than the weight of the cockpit function control behavior.

[0112] In the specific implementation, the control test equipment controls the virtual model through the domain controller to be tested, sets the test initialization, sets the execution action, then determines whether the test results are consistent with expectations, then sets the test reset, and finally generates a test report.

[0113] This embodiment determines the target domain to be tested in the target vehicle, determines the domain controller to be tested of the target vehicle based on the target domain, determines the test requirements of the domain controller to be tested based on the target domain, and generates a control strategy based on the test requirements. Since this embodiment locates the target domain to be tested in the target vehicle, thereby locating the domain controller to be tested, and then determines the test requirements of the domain controller to be tested based on the functional information of the target domain, the control strategy of the domain controller to be tested is accurately generated, thereby effectively improving the test efficiency.

[0114] In addition, an embodiment of the present invention further provides a storage medium storing a test program for a vehicle domain controller. When the test program for the vehicle domain controller is executed by a processor, the steps of the vehicle domain controller test method described above are implemented.

[0115] Since the 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 described one by one here.

[0116] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the vehicle domain controller testing device of the present invention.

[0117] like Figure 4 As shown, the vehicle domain controller test device proposed in an embodiment of the present invention includes:

[0118] A model building module 10 is used to build a virtual model of the target vehicle according to a preset test environment;

[0119] A strategy generation module 20 is used to generate a control strategy according to the test requirements of the domain controller to be tested of the target vehicle;

[0120] A control test module 30, configured to control the virtual model through the domain controller to be tested according to the control strategy;

[0121] A state acquisition module 40 is used to determine the target control state of the virtual model according to the control strategy and obtain the current control state of the virtual model after control;

[0122] The state comparison module 50 is configured to compare the current control state with the target control state, and determine a test result of the domain controller to be tested based on the comparison result.

[0123] Furthermore, the strategy generation module 20 is also used to determine the target domain to be tested in the target vehicle; determine the domain controller to be tested of the target vehicle based on the target domain; determine the test requirements of the domain controller to be tested based on the target domain; and generate a control strategy based on the test requirements.

[0124] Furthermore, the strategy generation module 20 is further configured to determine the function to be tested of the target domain according to the test requirements; determine the control behavior to be tested of the domain controller to be tested according to the function to be tested; and generate a control strategy according to the control behavior to be tested.

[0125] Furthermore, the strategy generation module 20 is also used to call a pre-built control behavior library according to the target domain; match each control behavior in the control behavior library according to the function to be tested; and use the control behavior matched in the control behavior library as the control behavior to be tested of the domain controller to be tested.

[0126] Furthermore, the strategy generation module 20 is also used to determine the test weight of each control behavior to be tested according to the test requirements; sort each control behavior to be tested according to the test weight; generate a test sequence according to the sorting result and the control behavior to be tested; and generate a control strategy according to the test sequence.

[0127] Furthermore, the control test module 30 is also used to generate a control request through the domain controller to be tested according to the control strategy; perform signal conversion on the control request through the domain controller to be tested to obtain a target signal; and control the virtual model through the domain controller to be tested according to the target signal.

[0128] Furthermore, the model construction module 10 is also used to adjust the preset test environment according to the test results; reconstruct the virtual model of the target vehicle according to the adjusted preset test environment; modify the control strategy according to the test results, and return to the step of controlling the virtual model through the domain controller to be tested according to the control strategy.

[0129] This embodiment constructs a virtual model of the target vehicle according to a preset test environment, generates a control strategy according to the test requirements of the domain controller to be tested of the target vehicle, controls the virtual model through the domain controller to be tested according to the control strategy, determines the target control state of the virtual model according to the control strategy, obtains the current control state of the virtual model after control, compares the current control state with the target control state, and determines the test result of the domain controller to be tested according to the comparison result; Since this embodiment constructs the virtual model of the target vehicle according to the preset test environment, thereby constructing a virtual test environment, according to the test requirements of the domain controller to be tested of the target vehicle A control strategy is generated, and the virtual model is controlled by the domain controller to be tested according to the control strategy, thereby simulating the control behavior of the domain controller to be tested of the target vehicle, determining the target control state of the virtual model according to the control strategy, and obtaining the current control state of the virtual model after control, comparing the current control state with the target control state, and determining the test result of the domain controller to be tested according to the comparison result, thereby completing the control test of the domain controller to be tested. Since this embodiment controls the virtual model by controlling the domain controller to be tested, it not only ensures the accuracy of the control test, but also effectively reduces the test cost and test difficulty.

[0130] It should be understood that the above is only an example and does not constitute any limitation to the technical solution 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 limitation on this.

[0131] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of it according to actual needs to achieve the purpose of the embodiment scheme, and no limitation is made here.

[0132] In addition, for technical details not fully described in this embodiment, reference can be made to the vehicle domain controller testing method provided in any embodiment of the present invention, and will not be repeated here.

[0133] In addition, it should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0134] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. 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. The computer software product is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0136] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A vehicle domain controller testing method, characterized in that: The vehicle domain controller testing method includes: Constructing a virtual model of the target vehicle according to a preset test environment, wherein the virtual model includes simulation models of various functional models of the target vehicle; Generate a control strategy according to the test requirements of the domain controller to be tested of the target vehicle; Controlling the virtual model through the domain controller to be tested according to the control strategy; Determining a target control state of the virtual model according to the control strategy, and obtaining a current control state of the virtual model after control; Comparing the current control state with the target control state, and determining a test result of the domain controller to be tested according to the comparison result; Adjusting the preset test environment according to the test results; Rebuilding the virtual model of the target vehicle according to the adjusted preset test environment; Modifying the control strategy according to the test result, and returning to the step of controlling the virtual model through the domain controller to be tested according to the control strategy; The step of generating a control strategy according to the test requirements of the domain controller to be tested of the target vehicle includes: Determining a target domain to be tested in the target vehicle and a domain controller to be tested corresponding to the target domain, and determining a test requirement for the domain controller to be tested based on the target domain; Determine the function to be tested of the target domain according to the test requirements, and use the control behavior matching the function to be tested in the pre-built control behavior library as the control behavior to be tested of the domain controller to be tested; Determine the test weight of each control behavior to be tested according to the test requirements, sort the control behaviors to be tested according to the test weight, generate a test sequence according to the sorting result and the control behavior to be tested, and generate a control strategy according to the test sequence.

2. The vehicle domain controller testing method according to claim 1, wherein: The step of using the control behavior matching the function to be tested in the pre-built control behavior library as the control behavior to be tested of the domain controller to be tested includes: calling a pre-built control behavior library according to the target domain; Matching each control behavior in the control behavior library according to the function to be tested; The control behavior matched in the control behavior library is used as the control behavior to be tested of the domain controller to be tested.

3. The vehicle domain controller testing method according to any one of claims 1 to 2, characterized in that: The controlling the virtual model through the domain controller to be tested according to the control strategy includes: generating a control request through the domain controller to be tested according to the control policy; Performing signal conversion on the control request by the domain controller to be tested to obtain a target signal; The virtual model is controlled by the domain controller to be tested according to the target signal.

4. A vehicle domain controller test device, characterized in that: The test device of the vehicle domain controller includes: A model building module, used to build a virtual model of the target vehicle according to a preset test environment; A strategy generation module, configured to generate a control strategy according to the test requirements of the domain controller to be tested of the target vehicle; A control test module, configured to control the virtual model through the domain controller to be tested according to the control strategy; a state acquisition module, configured to determine a target control state of the virtual model according to the control strategy, and to acquire a current control state of the virtual model after control; A state comparison module, configured to compare the current control state with the target control state, and determine a test result of the domain controller to be tested according to the comparison result; The model construction module is further configured to adjust the preset test environment according to the test results; reconstruct the virtual model of the target vehicle according to the adjusted preset test environment; modify the control strategy according to the test results, and return to the step of controlling the virtual model through the domain controller to be tested according to the control strategy; Among them, the strategy generation module is also used to determine the target domain to be tested in the target vehicle and the domain controller to be tested corresponding to the target domain, and determine the test requirements of the domain controller to be tested based on the target domain; determine the function to be tested of the target domain based on the test requirements, and use the control behavior matching the function to be tested in the pre-built control behavior library as the control behavior to be tested of the domain controller to be tested; determine the test weight of each control behavior to be tested based on the test requirements, sort each control behavior to be tested based on the test weight, generate a test sequence based on the sorting result and the control behavior to be tested, and generate a control strategy based on the test sequence.

5. A vehicle domain controller test device, characterized in that: The vehicle domain controller test device includes: a memory, a processor, and a vehicle domain controller test program stored in the memory and executable on the processor. The vehicle domain controller test program is configured to implement the vehicle domain controller test method according to any one of claims 1 to 3.

6. A storage medium, characterized in that The storage medium stores a test program for a vehicle domain controller, and when the test program for the vehicle domain controller is executed by a processor, the test method for the vehicle domain controller according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Domain controller offline detection system and method

    CN109857095A

  • Test case test method and device, electronic equipment and storage medium

    CN115437336A

  • Dynamic self-adaptive test case management method, electronic equipment and medium

    CN115437919A