Automatic driving function test system and test method

By using scene simulation, real-time simulation and communication simulation in the autonomous driving function test system, combined with hardware fault injection, automated testing of the autonomous driving system is realized, solving the problems of the existing test system being unable to simulate real working conditions and having a low degree of automation. , improving the efficiency and coverage of testing.

CN112684423BActive Publication Date: 2024-08-23DONGFENG MOTOR CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202011612503.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-08-23
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

The existing automatic driving system test system cannot effectively simulate real working conditions, and the degree of automation is low, requiring a large amount of manual intervention, making it difficult to comprehensively test automatic driving functions and failure safety.

Method used

Provide an automatic driving function test system, including a scene simulation system, a real-time simulator, a communication simulation system and a host computer. By simulating scene data and radar target data, combined with a hardware fault injection unit, the function and failure safety of the automatic driving system can be realized of automated testing.

Benefits of technology

It improves the automation level of testing, can more accurately simulate the real working conditions of the autonomous driving system, reduces testing costs, and enhances the test coverage of autonomous driving functions and failure safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112684423B
    Figure CN112684423B
Patent Text Reader

Abstract

The present invention provides an automated testing method for autonomous driving functions and failure safety, the system comprising a scenario simulation system, a real-time simulator, a communication simulation system and a host computer. The present invention, through the scenario simulation system, the real-time simulator, the communication simulation system and the host computer, implements testing of the autonomous driving function and failure safety of the autonomous driving system to be tested. The test system provides the scenario simulation data and the radar target simulation data to the autonomous driving system to be tested through the scenario simulation system, so that the test results are closer to the actual working conditions. During the use of the system, a flag signal can be set in the test case group through the host computer, and a full-vehicle message containing the flag signal can be obtained by means of a simulation communication module, so as to implement automated testing of the autonomous driving function and failure safety and improve work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to an automatic driving function testing system and testing method. Background Art

[0002] Autonomous driving systems such as the Advanced Driving Assistance System (ADAS) and L3 and above autonomous driving systems use various sensors installed on the vehicle (such as millimeter-wave radar, lidar, monocular / binocular cameras, and satellite navigation) to sense the surrounding environment at any time during driving, collect data, identify, detect, and track static and dynamic objects, and combine navigation map data to perform systematic calculations and analysis, so that drivers can be aware of possible dangers in advance, effectively increase the comfort and safety of car driving, and reduce labor intensity.

[0003] As an important technology in the field of active safety, the testing of the functions and failure safety of the autonomous driving system is particularly important. At present, the testing of the autonomous driving system is mostly completed by Hardware In The Loop (HIL). However, when testing the autonomous driving functions and failure safety, the existing test systems of the autonomous driving system can only test the radar or camera sensors or controllers separately, which is far from the actual working conditions of the autonomous driving system. In addition, the autonomous driving functions and failure safety require more manual intervention, and the degree of automation is low. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide an automatic driving function testing system and a testing method.

[0005] The technical solution of the present invention provides an automatic driving function test system, including a scene simulation system, a real-time simulator, a communication simulation system and a host computer, wherein:

[0006] The scene simulation system includes a scene projector and a radar target simulator, which are used to simulate scene data and simulate radar target data. The scene projector is used to provide simulated scene data, and the radar simulator is used to provide simulated radar target data.

[0007] When the scenario simulation system provides simulated scenario data and / or simulated radar data, the host computer or the real-time simulator sends a signal to the automatic driving system, and the automatic driving system obtains the simulated scenario data and the simulated radar data, and controls the automatic driving function and provides an automatic driving function status signal according to the simulated scenario data and the simulated radar target data;

[0008] The real-time simulator is communicatively connected with the automatic driving system and the execution system;

[0009] The communication simulation system is communicatively connected with the real-time simulator and the host computer, and is used to obtain the vehicle operation status signal and the automatic driving function status signal and output them to the host computer, wherein the vehicle status operation signal includes the execution status signal output by the execution system;

[0010] The host computer determines whether the automatic driving function and failure safety of the automatic driving system to be tested are normal according to the vehicle operation status signal and the automatic driving function status signal.

[0011] Furthermore, it also includes a power supply system, wherein the power supply system includes a programmable power supply,

[0012] The real-time simulator comprises an input I / output O port for outputting a voltage waveform output signal for adjusting the output voltage of the programmable power supply;

[0013] The programmable power supply, the input end of the programmable power supply is electrically connected to the I / O port, and the output end of the programmable power supply is electrically connected to the automatic driving system and the actuator system respectively, for outputting a corresponding voltage according to the voltage waveform output signal.

[0014] Furthermore, it also includes:

[0015] The hardware fault injection unit is used to inject a hardware fault signal, wherein the hardware fault signal includes at least one of a hard line fault signal, a communication line fault signal and a power supply fault signal.

[0016] Furthermore, the hardware fault injection unit includes a hardwire fault injection subunit for injecting hardwire faults, the hardwire fault injection subunit includes a hardwire relay, a hardwire input channel, a hardwire output channel and a hardwire ground channel, the hardwire relay includes a hardwire input end electrically connected to the first port of the I / O port, and a hardwire output end electrically connected to the second port of the I / O port, the hardwire relay controls the hardwire input channel to be connected to the hardwire output channel or the hardwire ground channel according to voltage signals of the hardwire input end and the hardwire output end.

[0017] Further, the hardware fault injection unit includes a communication line fault injection subunit for injecting a communication line fault signal, and the communication line fault injection subunit includes a first communication relay, a second communication relay, a third communication relay, a communication high-voltage input channel connected to the communication high-voltage input end, a communication low-voltage input channel connected to the communication low-voltage input end, a communication high-voltage output channel connected to the communication high-voltage output end, a communication low-voltage output channel connected to the communication low-voltage output end, a communication high-voltage grounding channel, and a communication low-voltage grounding channel;

[0018] The first communication relay, the second communication relay and the third communication relay each include a communication input terminal electrically connected to the third port of the I / O port, and a communication output terminal electrically connected to the fourth port of the I / O port;

[0019] The first communication relay controls the communication high-voltage input channel to be connected with the communication high-voltage output channel or the communication high-voltage grounding channel according to the voltage signal of the communication input terminal and the communication output terminal;

[0020] The second communication relay controls the communication low-voltage input channel to be connected with the communication low-voltage output channel or the communication low-voltage grounding channel according to the voltage signal of the communication input end and the communication output end;

[0021] The third communication relay is connected to the first communication relay and the second communication relay respectively, and the third communication relay controls the communication high-voltage input channel to be connected to the communication high-voltage output channel, the communication low-voltage input channel to be connected to the communication low-voltage output channel, or the communication high-voltage grounding channel to be connected to the communication low-voltage grounding channel according to the voltage signals of the communication input end and the communication output end.

[0022] Further, the programmable power supply includes a first output terminal and a second output terminal, and the hardware fault injection unit includes a power fault injection subunit for injecting the power fault signal.

[0023] The power failure injection subunit includes a power relay, a first power input channel electrically connected to the first storage battery, a second power input channel electrically connected to the second storage battery, and a power output channel;

[0024] The power relay includes a power input terminal electrically connected to the fifth port of the I / O port, and a power output terminal electrically connected to the sixth port of the I / O port. The power relay controls the power output channel to be connected to the first power input channel or the second power input channel according to voltage signals of the power input terminal and the power output terminal.

[0025] The technical solution of the present invention also provides a testing method for the automatic driving function testing system as described above, comprising:

[0026] A startup step, starting an automated script set in the host computer to execute a test case group, wherein a flag signal having an initial value is set in the test case group;

[0027] A communication simulation step, obtaining the test case name in the test case group, and performing message recording to generate a communication diagnosis report corresponding to the test case name;

[0028] A scenario simulation step, when there is no fault in the communication diagnosis report, obtaining a scenario sequence in the test case group, performing a scenario projection and radar target joint simulation according to the scenario sequence, turning on the automatic driving function, and generating an automatic driving function status signal;

[0029] a function testing step of determining the automatic driving function according to the automatic driving function status signal and the flag signal, and outputting a function determination result;

[0030] A failure safety test step, when the automatic driving function status signal is in the function-on state, injects a fault, diagnoses the fault, outputs a fault diagnosis report, terminates message recording, and outputs a message signal, wherein the message signal includes an HMI message signal and a fault injection-related message signal, performs a failure safety determination based on the flag signal, the HMI message signal, and the fault injection-related message signal, and outputs a failure safety determination result.

[0031] Furthermore, the communication simulation step includes:

[0032] Read the test case name and record the message;

[0033] Sending a diagnostic message, and when receiving a feedback message, outputting the communication diagnostic report according to the feedback message;

[0034] When there is no fault in the communication diagnosis report, executing the scenario simulation step;

[0035] When there is a fault in the communication diagnosis report, the automation script is terminated and a test report is output, wherein the test report includes the test case sequence number and timestamp in the test case group.

[0036] Furthermore, the scenario simulation step includes:

[0037] When there is no fault in the communication diagnosis report, obtaining a scenario sequence in the test case group and executing the scenario sequence;

[0038] Sending the target object list data in the scene sequence to the radar target simulator to control the radar target simulator to simulate;

[0039] Turn on the automatic driving function, modify the value of the flag signal to a first state value, and output the automatic driving function state signal.

[0040] Furthermore, the functional testing step includes:

[0041] When the automatic driving function status signal is in a completed state, stopping recording the message;

[0042] Taking the initial value and the first state value as the first value change point of the flag signal, and performing time segmentation on the automatic driving function state signal with the first value change point as a segmentation point to generate a function characteristic signal;

[0043] The functional characteristic signal corresponding to before the first numerical value change point and the functional characteristic signal corresponding to after the first numerical value change point are obtained, and the functional determination result is output based on the comparison between the functional characteristic signal and a preset functional status signal threshold.

[0044] Furthermore, the fail-safe testing step includes:

[0045] A fault injection step, injecting the fault;

[0046] A fault diagnosis step, when the fault injection is completed, reading the fault, performing fault diagnosis, outputting the fault diagnosis report, terminating message recording, and outputting the message signal;

[0047] The fail-safe determination step outputs the fail-safe determination result based on a comparison of the flag signal, the HMI message signal and the fault injection associated message signal.

[0048] Furthermore, the fault injection step includes:

[0049] Injecting the fault, and modifying the value of the flag signal to a second state value;

[0050] When the fault injection is completed, a fault injection completion temporary file is output.

[0051] Furthermore, the fault diagnosis step includes:

[0052] When the fault injection completion temporary file is detected, the fault is read and the fault injection completion temporary file is deleted;

[0053] Execute the fault diagnosis, and when a feedback fault message is received and it is found that a fault exists in the fault message, output a first sub-fault diagnosis report;

[0054] When the first sub-fault diagnosis report is detected, performing fault recovery and modifying the value of the flag signal to a third state value;

[0055] When the fault recovery is completed, the fault is cleared, the value of the flag signal is modified to the initial value, and a temporary fault diagnosis file is output;

[0056] When the fault diagnosis temporary file is detected, performing fault diagnosis again and deleting the fault diagnosis temporary file;

[0057] When the fault diagnosis is performed again and completed, a second sub-fault diagnosis report is output;

[0058] When the first sub-fault diagnosis report is consistent with the second sub-fault diagnosis report, the recording of the message is stopped, the second sub-fault diagnosis report is used as the fault diagnosis report, and the fault diagnosis report is output.

[0059] Furthermore, the fail-safe determination step includes:

[0060] Taking the initial value, the first state value, the second state value and the third state value as the second value change point of the flag signal, and taking the second value change point as the segmentation point to segment the HMI message signal and the fault injection associated message signal, to generate a fault characteristic signal;

[0061] The fault characteristic signal corresponding to before the second value change point and the fault characteristic signal corresponding to after the second value change point are obtained, and the failure safety determination result is output based on the comparison between the fault characteristic signal and a preset fault status signal threshold.

[0062] The test system of the present invention provides scene simulation data and radar target simulation data to the autonomous driving system to be tested through a scene simulation system, and the real sensors and controllers in the autonomous driving system to be tested respond to the jointly input simulated scene data and simulated radar target data and output status signals corresponding to the autonomous driving function and control signals for the actuators, and then perform subsequent tests, such as functional tests or failure safety tests. Compared with the existing system that can only test radar or camera sensors or controllers separately, the test results can be closer to the actual working conditions of the autonomous driving system.

[0063] At the same time, in the test method of the present invention, during the test, the host computer can set a flag signal in the test case group, and with the help of the simulation communication module, a full-vehicle message containing the flag signal can be obtained. In the host computer, the automatic driving function is determined according to the flag signal and the automatic driving function status signal, and the failure safety is determined according to the flag signal, the HMI message signal and the fault injection associated message signal, so as to realize the automatic driving function and failure safety automated testing and improve work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It should be understood that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In the drawings:

[0065] Figure 1 It is a structural diagram of an advanced auxiliary system hardware-in-the-loop test system provided by Embodiment 1 of the present invention;

[0066] Figure 2 yes Figure 1 The structural diagram of the host computer shown;

[0067] Figure 3 yes Figure 1 The structural diagram of the hard-wired hardware fault injection module shown;

[0068] Figure 4 yes Figure 1 The structural diagram of the communication line hardware fault injection module shown;

[0069] Figure 5 yes Figure 1 The structural diagram of the power fault injection module shown;

[0070] Figure 6 This is a workflow diagram of a testing method for an advanced auxiliary system hardware-in-the-loop testing system provided by Embodiment 2 of the present invention;

[0071] Figure 7 This is a workflow diagram of a testing method for an advanced auxiliary system hardware-in-the-loop testing system provided by Embodiment 3 of the present invention;

[0072] Figure 8 This is a workflow diagram of a testing method for an advanced auxiliary system hardware-in-the-loop testing system provided by a fourth embodiment of the present invention;

[0073] Fig. 9 This is a workflow diagram of a testing method for an advanced auxiliary system hardware-in-the-loop testing system provided by Embodiment 5 of the present invention;

[0074] Fig.10 It is a schematic diagram of segmenting the mark signal, the functional characteristic signal and the fault characteristic signal. DETAILED DESCRIPTION

[0075] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0076] It is easy to understand that according to the technical solution of the present invention, without changing the essential spirit of the present invention, a variety of structural modes and implementation modes that can be replaced by those skilled in the art can be replaced with each other. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present invention, and should not be regarded as the whole of the present invention or as a limitation or restriction to the technical solution of the invention.

[0077] The directional terms such as up, down, left, right, front, back, front, back, top, bottom, etc. mentioned or may be mentioned in this specification are defined relative to the structures shown in the drawings. They are relative concepts and may change accordingly according to different positions and different usage conditions. Therefore, these or other directional terms should not be interpreted as restrictive terms.

[0078] Embodiment 1

[0079] like Figure 1 As shown, Figure 1 1 is a schematic diagram of the structure of the automatic driving function test system provided in the first embodiment of the present invention, including a scene simulation system 11, a real-time simulation machine 14, a communication simulation system 15 and a host computer 16, wherein:

[0080] The scene simulation system 11 includes a scene projection device 111 and a radar target simulator 112, wherein the scene projection device 111 is used to provide simulated scene data, and the radar simulator 112 is used to provide simulated radar target data;

[0081] The scene simulation system 11 provides simulated scene data and / or simulated radar data, and the host computer 16 or the real-time simulator 14 can send a signal to the automatic driving system 12 to be tested. The automatic driving system 12 to be tested obtains the simulated scene data and the simulated radar data, and controls the automatic driving function and provides the automatic driving function status signal according to the simulated scene data and the simulated radar target data.

[0082] Specifically, in certain embodiments of the present invention, although the scene simulation system 11 can trigger the automatic driving system to obtain corresponding data when providing any scene data, when the automatic driving system 12 to be tested controls the automatic driving function, it makes a fusion judgment based on the received simulated scene data and simulated radar data, rather than making a judgment based on a single piece of data.

[0083] The scene simulation system 11 can send the simulated scene data and the simulated radar target data to the automatic driving system 12 to be tested, and the automatic driving system 12 to be tested includes a fusion sensor, and the fusion sensor is used to receive the simulated scene data and the simulated radar target data, and control the opening / closing of the automatic driving function according to the simulated scene data and the simulated radar target data;

[0084] The real-time simulator 14 communicates with the automatic driving system 12 to be tested and the execution system 13. Specifically, it sends the execution status signal of the execution system 13 to the automatic driving system 12 to be tested and receives the automatic driving function status signal fed back by the automatic driving system 12 to be tested; sends the automatic driving function status signal to the execution system 13 and receives the automatic driving function signal sent by the actual actuator;

[0085] The communication simulation system 15 is connected to the real-time simulation machine 14 and the host computer 16 for communication, and transmits the vehicle operation status signal and the automatic driving function status signal it obtains to the host computer 16, and the vehicle state operation signal executes the execution status signal output by the execution system 13;

[0086] The host computer 16 determines whether the automatic driving function and failure safety of the automatic driving system to be tested are normal according to the vehicle operation status signal and the automatic driving function status signal.

[0087] The automatic driving function test verifies whether the various functions of the automatic driving system are complete, and the various functions should include the adaptive cruise control system (Adaptive Cruise Control, ACC) function, lane keeping assist system (LaneKeeping Assist, LKA) function and forward emergency braking assist system (Forward Emergency Braking, FEB) function, etc. The automatic driving failure safety test injects faults into the automatic driving system to make it fail, and verifies whether the system can issue timely and accurately warnings to people inside and outside the car and surrounding vehicles in the event of a fault, and implements automatic driving function downgrade to avoid or mitigate hazards.

[0088] In the present invention, the scene projector 111 preferably has a small screen plus a lens, the lens is selected according to the size of the deployable area, and the relationship between the lens, the projection screen and the camera is determined. The scene projector 111 can also be a giant screen dark box, and the minimum distance of the camera imaging must be guaranteed.

[0089] The radar target simulator 112 is connected to the host computer 16 through a network port. The radar target simulator 112 is used to simulate radar target data. The radar target simulator 112 needs to provide at least one target vehicle and provide longitudinal front vehicle simulation.

[0090] The autonomous driving system 12 to be tested monitors the simulated scene data and the simulated radar target data in real time, and controls the turning on or off of the autonomous driving function according to the simulated scene data and the simulated radar target data. The autonomous driving system 12 to be tested includes a front camera 1211, a millimeter-wave radar 1212 and / or an ultrasonic radar 1213, and its controller stores an autonomous driving algorithm.

[0091] In the present invention, it is preferred to use a fusion sensor 121 in the automatic driving system, which includes a front camera 1211, a millimeter wave radar 1212 and an ultrasonic radar 1213, and an automatic driving control algorithm is embedded. The front camera 1211 is connected to the millimeter wave radar 1212 in communication. The front camera 1211 obtains the simulated scene data, and in combination with the radar target data transmitted by the millimeter wave radar, executes the embedded LKA control algorithm to control the LKA function to be turned on / off. The millimeter wave radar 1212 obtains the radar target data, and in combination with the simulated scene data transmitted by the front camera 1211, executes the embedded FEB control algorithm to control the FEB function to be turned on / off. The front camera 1211 and the millimeter wave radar 1212 should have fixed equipment, and the fixed equipment should include a camera pan-tilt bracket and a guide rail to ensure the simulation of the five degrees of freedom of the front camera 123, front and back, left and right, up and down, pitch, and yaw, so as to realize the test of the forward and lateral functions of the automatic driving system. The ultrasonic radar 1213 simulates the corresponding ultrasonic radar signal according to the simulated radar target data, executes the control algorithm, controls the automatic parking function, outputs the automatic parking status signal and the execution signal to the actuator system, and realizes the test of the automatic parking function of the automatic driving system.

[0092] Preferably, the automatic driving system 12 to be tested further includes a gateway 122 for sending video signals, millimeter wave radar signals and ultrasonic radar signals to the real-time simulator 14. The gateway 122 may be an existing gateway for transmitting signals, or the gateway 122 may be an automatic driving controller that only provides gateway functions. The real-time simulator 14 is respectively connected to the automatic driving system 12 to be tested and the actuator system 13 through a communication port 141 (such as a CAN board), and a closed-loop communication loop is formed between the automatic driving system 12 to be tested, the actuator system 13 and the real-time simulator 14.

[0093] The autonomous driving system 12 and actuator system 13 to be tested are the objects to be tested of the test system of the present invention. Therefore, the autonomous driving system 12 and actuator system 13 to be tested can be integrated into the test system or can be an external autonomous driving system and actuator system. For ease of understanding, the present invention is described by integrating the autonomous driving system 12 and actuator system 13 to be tested into the test system. Figure 1As shown, the actuator system 13 includes an electronic stability program (ESP) 131 and / or an electric power steering system (EPS) 132. The actuator system 13 is used to simulate the vehicle operation state and the execution state of the automatic driving function according to the test instructions and the simulated scene data signal output by the automatic driving system, and output the vehicle operation state signal and the automatic driving function state signal to the real-time simulator 14. The real-time simulator 14 outputs the vehicle operation state signal and the automatic driving function state signal to the automatic driving system 12 to be tested, thereby forming a closed-loop communication loop. The vehicle operation state includes longitudinal acceleration and deceleration and yaw motion, and the vehicle motion state signal includes vehicle speed, turning angle, acceleration, yaw angular velocity, brake pressure and automatic driving function state signals. Among them, the actuator system 13 can be connected to the host computer 16 through the P-CAN 17 to transmit the vehicle operation state signal to the host computer 16. The P-CAN 17 includes at least one CAN communication channel.

[0094] One end of the communication simulation system 15 is connected to the real-time simulation machine 14, and the other end of the communication simulation system 15 is connected to the host computer 16 to form a communication network. The communication simulation system 15 is used to obtain the vehicle operation status signal and the automatic driving function status signal and output them to the host computer 16. Preferably, the communication simulation system of the present invention is a controller area network (CAN) simulation system.

[0095] The host computer 16 is connected to the real-time simulator 14 through the network port. The host computer 16 is used to edit the vehicle dynamics model and download the vehicle dynamics model to the real-time simulator 14 for operation by the real-time simulator 14. The host computer 16 tests the system functions and failure safety of the automatic driving system 12 to be tested according to the feedback information of the real-time simulator 14 and the feedback information of the communication simulation system 15. The system functions include automatic parking function, forward automatic driving function and lateral automatic driving function. Figure 1 and Figure 2 As shown, the host computer 16 is provided with a communication diagnosis module 161 , a database script module 162 , an automatic test sequence module 163 and an automation script module 164 .

[0096] The communication diagnosis module 161 can be implemented using the CAN development environment (CAN open environment, CANoe), and the communication diagnosis module 161 includes a message recording submodule 1611, a fault reading submodule 1612, a fault clearing submodule 1613, a diagnostic report output submodule 1614, and a status flag monitoring submodule 1615. The message recording submodule 1611 is used to automatically record the message of the communication output channel, and read the test case name in the test case group from a database file (such as a CSV file), save the message and store it at a specified address. The fault reading submodule 1612 is used to send a diagnostic message to the specified channel, receive a diagnostic feedback message, and parse the data of the feedback message. The fault clearing submodule 1613 is used to send a fault clearing request message to the specified channel and receive a clearing feedback message. The diagnostic report output submodule 1614 is used to output a communication diagnostic report, and save the format of the communication diagnostic report as a text txt format. The status flag monitoring submodule 1615 is used to monitor the bus message specified signal value, which includes vehicle speed, wheel speed, brake master cylinder and wheel cylinder pressure, actuation status signals of each controller / sensor / actuator, and main related message signals when execution failure occurs.

[0097] The database script module 162 can be implemented using Matlab / Simulink, and the database script module 162 includes a result comparison script submodule 1621, an intelligent assisted driving simulation automation submodule 1622, and a scene sequence submodule 1623. The result comparison script submodule 1621 is used to extract, split, calculate and compare the difference of the signal data in the .mat file, and output the judgment result. The intelligent assisted driving simulation automation submodule 1622 is used to call, execute and close the scene sequence, and the intelligent assisted driving simulation automation submodule 1622 can be implemented using Matlab. The scene sequence submodule 1623 is divided into two parts, establishing a scene sequence in Prescan, calling and converting parameters in Simulink, completing the output / input of related messages to the communication bus through the communication module, and projecting the video to the scene projection device 111 through the HDMI interface, and outputting the target vehicle motion state information and the vehicle position information to the radar target simulator 112 through the Ethernet port.

[0098] The automatic test sequence module 163 includes a functional test sequence 1631 and a fail-safe test sequence 1632. The functional test sequence 1631 includes an ACC test subsequence, an LKA test subsequence, a FEB test subsequence, and an APA test subsequence. The fail-safe test sequence 1632 includes a software fault injection submodule, which can realize message interruption, message interruption recovery, rolling check (RollingCounter) error, cumulative sum (Checksum) error, signal timing error, and signal anomaly (overlimit / mutation).

[0099] The automation script module 164 includes a diagnostic information monitoring submodule 1641, a flag file monitoring submodule 1642, and a database interface submodule 1643. The diagnostic information monitoring submodule 1641 is used to monitor the communication diagnostic report output by the communication diagnostic module 161, and read the fault information to determine whether there is a fault in the communication diagnostic report. The flag file monitoring submodule 1642 is used to access and delete the temporary flag files generated by the communication diagnostic module 161 and the automatic test sequence module 163. The database interface submodule 1643 is used to modify the intelligent assisted driving simulation automation submodule 1622, specify and execute the test case group, and call the result comparison script submodule 1621 at the same time.

[0100] The present invention uses a scene simulation system, a real-time simulator, a communication simulation system and a host computer to test the autonomous driving function and failure safety of the autonomous driving system to be tested, without the need to build two different HIL test systems respectively, thus reducing costs. In addition, the scene projector and the radar target simulator are used for joint simulation to improve the test coverage of the test system, further reducing costs.

[0101] In one embodiment, if Figure 1 As shown, it also includes a power supply system 18, the power supply system 18 includes a programmable power supply 181,

[0102] The real-time simulator 14 includes an input (I) / output (O) port 142 for outputting a voltage waveform output signal for adjusting the output voltage of the programmable power supply 181;

[0103] A programmable power supply 181, wherein the input end of the programmable power supply 181 is electrically connected to the I / O port 142, and the output end of the programmable power supply 181 is electrically connected to the automatic driving system 12 to be tested and the actuator system 13, respectively, for outputting a corresponding voltage according to a voltage waveform output signal.

[0104] Specifically, the real-time simulator 14 includes an I / O port 142, one I / O port 142 forms four output channels, the output channels of the I / O port 142 can also be set according to the number of PIN pins of the actuator system 13 and the number of sensors, and the programmable power supply 181 includes at least two output terminals. The real-time simulator 14 outputs a voltage waveform output signal for adjusting the output voltage of the programmable power supply 181 through the I / O port 142, thereby simulating the output waveform of each sensor.

[0105] The automatic driving function test system also includes a power supply system 18, which includes a programmable power supply 181. The programmable power supply 181 adjusts the output voltage in real time according to the voltage waveform output signal. The programmable power supply 181 includes at least two output interfaces and can perform different outputs. Preferably, in order to meet the power supply requirements, the voltage of the programmable power supply 181 is at least 12V and the current is at least 100A.

[0106] Preferably, the power supply system 18 further includes a fuse 182 to prevent the power bus from being overloaded.

[0107] This embodiment uses a programmable power supply to achieve adjustable output voltage to meet different voltage test requirements. At the same time, a fuse can be used to prevent the power bus from overloading, thereby increasing service life and further reducing costs.

[0108] In one embodiment, if Figure 1 , Figure 3-Figure 5 As shown, it also includes:

[0109] The hardware fault injection unit 19 is used to inject a hardware fault signal, where the hardware fault signal includes at least one of a hard line fault signal, a communication line fault signal and a power supply fault signal.

[0110] The hardware fault injection unit 19 is electrically connected to the I / O port 142 and provides an analog voltage signal through the I / O port 142 .

[0111] This embodiment implements hardware fault injection through a hardware fault injection unit to achieve automated fail-safe testing.

[0112] In one embodiment, if Figure 3As shown, the hardware fault injection unit 19 includes a hard-wire fault injection sub-unit 191 for injecting hard-wire faults. The hard-wire fault injection sub-unit 191 includes a hard-wire relay 1911, a hard-wire input channel 1912, a hard-wire output channel 1913 and a hard-wire ground channel 1914. The hard-wire relay 1911 includes a hard-wire input terminal AH electrically connected to a first port of the I / O port 142, and a hard-wire output terminal AL electrically connected to a second port of the I / O port 142. The hard-wire relay 1911 controls the hard-wire input channel 1912 to be connected to the hard-wire output channel 1913 or the hard-wire ground channel 1914 according to voltage signals at the hard-wire input terminal and the hard-wire output terminal.

[0113] Specifically, the hard-line fault injection subunit 191 includes a hard-line relay 1911, a hard-line input channel 1912, a hard-line output channel 1913 and a hard-line grounding channel 1914. The hard-line relay 1911 is electrically connected to the I / O board 142. The hard-line fault injection subunit 191 can provide a single-channel hard-line (Pin) disconnection fault. When performing a hard-line hardware fault test, the hard-line input terminal AH is electrically connected to the first port of the real-time simulator 14, and the hard-line output terminal AL is electrically connected to the second port of the real-time simulator 14, and an analog voltage is provided through the I / O board 142. When the analog voltage output provided by the I / O port 142 is at a low level, the hard-wire input terminal AH is connected to a low level, controlling the hard-wire input channel 1912 to be connected to the hard-wire output channel 1913, and the hard-wire is connected normally; when the analog voltage output provided by the I / O port 142 is at a high level, the hard-wire relay 1911 controls the hard-wire input channel 1912 to be connected to the hard-wire grounding channel 1914, and the hard-wire is disconnected, thereby realizing a hard-wire disconnection test.

[0114] In one embodiment, if Figure 4 As shown, the hardware fault injection unit 19 includes a communication line fault injection subunit 192 for injecting a communication line fault signal, and the communication line fault injection subunit 192 includes a first communication relay 1921, a second communication relay 1922, a third communication relay 1923, a communication high-voltage input channel 1924 connected to the communication high-voltage input terminal, a communication low-voltage input channel 1925 connected to the communication low-voltage input terminal, a communication high-voltage output channel 1926 connected to the communication high-voltage output terminal, a communication low-voltage output channel 1927 connected to the communication low-voltage output terminal, a communication high-voltage grounding channel 1928 and a communication low-voltage grounding channel 1929;

[0115] The first communication relay 1921, the second communication relay 1922 and the third communication relay 1923 each include a communication input terminal BH1, BH2, BH3 electrically connected to the third port of the I / O port 142, and a communication output terminal BL1, BL2, BL3 electrically connected to the fourth port of the I / O port 142;

[0116] The first communication relay 1921 controls the communication high voltage input channel 1924 to be connected to the communication high voltage output channel 1926 or the communication high voltage grounding channel 1928 according to the voltage signal of the communication input terminal BH1 and the communication output terminal BL1;

[0117] The second communication relay 1922 controls the communication low voltage input channel 1925 to be connected to the communication low voltage output channel 1927 or the communication low voltage grounding channel 1929 according to the voltage signal of the communication input terminal BH2 and the communication output terminal BL2;

[0118] The third communication relay 1923 is connected to the first communication relay 1921 and the second communication relay 1922 respectively. The third communication relay 1923 controls the communication high-voltage input channel 1924 to be connected with the communication high-voltage output channel 1926, the communication low-voltage input channel 1925 to be connected with the communication low-voltage output channel 1927, or the communication high-voltage grounding channel 1928 to be connected with the communication low-voltage grounding channel 1929 according to the voltage signals of the communication input terminal BH3 and the communication output terminal BL3.

[0119] Specifically, the hardware fault injection unit 19 also includes a communication line fault injection subunit 192, and the communication line fault injection subunit 192 includes a first communication relay 1921, a second communication relay 1922, a third communication relay 1923, a communication high-voltage input channel 1924 connected to the communication high-voltage input end, a communication low-voltage input channel 1925 connected to the communication low-voltage input end, a communication high-voltage output channel 1926 connected to the communication high-voltage output end, a communication low-voltage output channel 1927 connected to the communication low-voltage output end, a communication high-voltage grounding channel 1928 and a communication low-voltage grounding channel 1929.

[0120] The communication line fault injection subunit 192 can provide three fault modes of single-channel communication: communication high communication_H disconnection, communication low communication_L disconnection, and communication_H to communication_L short circuit. The three fault modes are respectively controlled and realized by the first communication relay 1921, the second communication relay 1922, and the third communication relay 1923. Take communication_H short circuit and communication_H to communication_L short circuit as examples for explanation: BH1, BH2, and BH3 are respectively connected to the three analog voltage output terminals of the I / O port 142, and BL1, BL2, and BL3 are respectively connected to the ground port of the I / O port 142. When the three analog voltage outputs are all low level, the communication line communication is normal; let BH1 be high level, the first communication relay 1921 controls the communication high voltage input channel 1924 to be connected with the communication high voltage output channel 1926, and the communication _H is disconnected; let BH3 be high level, then the third communication relay 1923 controls the communication high voltage input channel 1924 to be connected with the communication high voltage output channel 1926, and the communication low voltage input channel 1925 to be connected with the communication low voltage output channel 1927, that is, Figure 4 In the figure, ① and ② of a, b, c, and d are connected, so that communication_H is short-circuited to communication_L.

[0121] Preferably, the communication line fault signal provided in this embodiment is a CAN line fault signal.

[0122] In one embodiment, if Figure 5 As shown, the programmable power supply 181 includes a first output terminal and a second output terminal, and the hardware fault injection unit 19 includes a power fault injection subunit 193 for injecting a power fault signal.

[0123] The power failure injection subunit 193 includes a power relay 1931, a first power input channel 1932 connected to the first output terminal of the programmable power supply 181, a second power input channel 1933 connected to the second output terminal of the programmable power supply 181, and a power output channel 1934;

[0124] The power relay 1931 includes a power input terminal CH electrically connected to the fifth port of the I / O port 142, and a power output terminal CL electrically connected to the sixth port of the I / O port 142. The power relay 1931 controls the power output channel 1934 to connect to the first power input channel 1932 or the second power input channel 1933 according to the voltage signals of the power input terminal and the power output terminal.

[0125] Specifically, the hardware fault injection unit 19 further includes a power fault injection subunit 193 , and the power fault injection subunit 193 includes a power relay 1931 , a first power input channel 1932 , a second power input channel 1933 , and a power output channel 1934 .

[0126] The power supply fault injection subunit 193, the programmable power supply 181 and the I / O port 142 can provide a power supply fault of a single power supply line, connect the power supply input terminal CH to the analog voltage output terminal of the I / O port 142, connect the power supply output terminal CL to the ground terminal of the I / O port 142, input a fixed voltage to the first power supply input channel 1932, and output a corresponding waveform voltage according to the analog signal to the second power supply input channel 1933. When the power supply input terminal CH is at a low level, the first power supply input channel 1932 supplies power, and the voltage is normal; when the power supply input terminal CH is at a high level, the power supply relay 1931 controls the second power supply input channel 1933 to be connected to the power supply output channel 1934, and the second power supply input channel 1933 supplies power, and the voltage performs faults according to the specified waveform, thereby realizing power supply fault injection.

[0127] It should be noted that the hardware fault injection unit 19 can be split and combined according to the connectors of different sensors, for example, only the hard-line fault injection subunit 191 is set, or the hard-line fault injection subunit 191 and the power supply fault injection subunit 193 are combined. The present invention respectively sets the hardware injection unit 18 in front of the ESP131, EPS132, the simulated front camera 123 and the simulated millimeter wave radar 124, such as Figure 1 As shown, it is ensured that only a single line is affected, thereby realizing fault testing of ESP131, EPS132, simulated front camera 123 and simulated millimeter-wave radar 124.

[0128] Embodiment 2

[0129] like Figure 6 As shown, Figure 6 This is a workflow diagram of a test method of an automatic driving function test system provided by Embodiment 2 of the present invention, including:

[0130] Step S601: starting an automated script set in a host computer to execute a test case group, wherein a flag signal having an initial value is set in the test case group;

[0131] Step S602: obtaining the test case name in the test case group, and performing message recording to generate a communication diagnosis report corresponding to the test case name;

[0132] Step S603: when there is no fault in the communication diagnosis report, the scene sequence in the test case group is obtained, the scene projection and radar target joint simulation are performed according to the scene sequence, the automatic driving function is turned on, and the automatic driving function status signal is generated;

[0133] Step S604: determining the automatic driving function according to the automatic driving function state signal and the flag signal, and outputting the function determination result;

[0134] Step S605: When the automatic driving function status signal is in the function-on state, a fault is injected, a fault diagnosis is performed on the fault, a fault diagnosis report is output, and message recording is terminated. A message signal is output, and the message signal includes an HMI message signal and a fault injection-related message signal. A failure safety judgment is made based on the flag signal, the HMI message signal and the fault injection-related message signal, and a failure safety judgment result is output.

[0135] Specifically: when it is necessary to perform hardware in the loop test (HIL) on the autonomous driving system to be tested, the controller triggers step S601 to start the automation script set in the host computer, control the real-time simulator to power the actuator system and the autonomous driving system, and execute the test case group. A flag signal is pre-set in the test case group, and the initial value of the flag signal is set to 0. Then, execute step S602 to obtain the test case name, record the message, and generate a communication diagnosis report. The communication diagnosis report is named after the test case name. Next, execute step S603 to detect whether a fault occurs in the communication diagnosis report. If there is no fault, obtain the scene sequence in the test case group, perform scene projection and radar target joint simulation according to the scene sequence, realize the synchronization and data unification of scene projection and radar target simulation, and turn on the autonomous driving function. Secondly, execute step S604 to determine the autonomous driving function according to the autonomous driving function status signal and the flag signal, and output the function determination result. Finally, execute step S605. When the automatic driving function status signal is in the function-on state, inject a fault, diagnose the fault, output a fault diagnosis report, terminate message recording, and output a message signal. The message signal includes an HMI message signal and a fault injection-related message signal. Perform a failure safety judgment based on the flag signal, the HMI message signal, and the fault injection-related message signal, and output a failure safety judgment result.

[0136] Among them, the HMI message signal includes the status signal of the indicator icon in the human-machine interface (instrument and central control screen), including but not limited to the indicator light status signal of functions such as ACC, LKA, FEB and APA, vehicle speed, speed, gear position, and engine, EPS, ESP and other fault light status signals. The fault injection associated message signal varies according to the test case, and can be the status signal of functions such as ACC, LKA, FEB and APA or the feedback signal of the actuator execution status, which is mainly used for the analysis of test results. . The HMI message signal and the fault injection associated message signal are recorded synchronously when the message is recorded.

[0137] Among them, the order of step S604 and step S605 can be interchanged. The controller can first execute step S604 for functional testing and then execute step S605 for failure safety testing according to needs; or first execute step S605 for failure safety testing and then execute step S604 for functional testing. The execution order of step S604 and step S605 does not affect the effect that can be achieved by the present invention.

[0138] This embodiment sets a flag signal in the test case group, determines the autonomous driving function based on the flag signal and the autonomous driving function status signal, and determines the failure safety based on the flag signal, the HMI message signal, and the fault injection associated message signal, so as to achieve automated testing of the autonomous driving function and failure safety and improve work efficiency.

[0139] Embodiment 3

[0140] Based on the second embodiment, the third embodiment is a workflow of the functional test. Figure 7 As shown, Figure 7 This is a workflow diagram of a test method for an advanced auxiliary system hardware-in-the-loop test system provided by Embodiment 3 of the present invention, including:

[0141] Step S701: the automation script controls AutomationDesk to start and execute the test case group;

[0142] Specifically, after the automatic test sequence module is started, the automatic test sequence module controls the real-time simulator to complete the control of the power supply system, thereby realizing the power supply and communication of the actuator system and the automatic driving system. The DBC loaded in the test case group should pre-add a flag message with a length of 1 Byte, including 1 flag signal, a signal length of 2 bits, and an initial value of 0. Before executing step S701, the format of the test case group needs to be converted to character separated values ​​(Comma Separated Values, CSV).

[0143] Step S702: Read the test case name and record the message;

[0144] Specifically, the automation script controls the CANoe operation, loads the AutomationDesk test DBC and the CANoe program environment variable DBC, and the automation script controls the message recording submodule to read the test case name in the test case group in the CSV file, and records the message with the test case name;

[0145] Step S703: Send a diagnostic message, and when a feedback message is received, output a communication diagnostic report according to the feedback message;

[0146] Specifically, the automated script controls the fault reading submodule to perform the first diagnosis and output a communication diagnosis report.

[0147] Step S704: Determine whether there is a fault in the communication diagnosis report;

[0148] Specifically, the automated script cyclically monitors the generation of the communication diagnostic report, and after monitoring the communication diagnostic report, reads the communication diagnostic report to determine whether there is a fault in the communication diagnostic report, and if so, executes step S705, otherwise executes step S706.

[0149] Step S705: terminating the automation script and outputting a test report;

[0150] Specifically, when there is a fault in the communication diagnosis report, the automation script is terminated and a test report is output, where the test report includes a test case sequence number and a timestamp in the test case group.

[0151] Step S706: Obtain the scenario sequence in the test case group, and execute the scenario sequence;

[0152] Specifically, the automated script calls Matlab to detect or modify the scene sequence and serial number in Prescan to make it conform to this test case, and executes the scene sequence to achieve scene projection.

[0153] Step S707: sending the target object list data in the scene sequence to the radar target simulator to control the radar target simulator to perform simulation;

[0154] Specifically, the automated script controls Simulink to output the target list in Prescan, calls the target list, vehicle speed and steering parameters, and performs data processing and packaging based on the TCP / IP protocol. The data is transmitted to the radar target simulator through the Ethernet port. The radar target simulator receives the data and works, so that Simulink and Prescan are jointly simulated to achieve synchronization and data unification between scene projection and radar target simulation.

[0155] Step S708: turning on the automatic driving function, modifying the value of the flag signal to a first state value, and outputting an automatic driving function state signal;

[0156] Specifically, the automation script controls AutomationDesk to enable the ACC function, the LKA function, and the FEB function in the real-time simulator, maintain the functions for at least 5 seconds, and modify the value of the flag signal to a first state value, where the first state value is preferably 1;

[0157] Step S709: Determine whether the automatic driving function status signal is in a completed state;

[0158] Specifically, after completing step S707, CANoe will continue to monitor the status signals of the ACC function, the LKA function, and the FEB function to determine whether the status signal of the automatic driving function is in a completed state. If so, step S711 is executed, otherwise step S710 is executed.

[0159] Step S710: When the monitoring time exceeds the preset time threshold, record the monitoring timeout and end the process;

[0160] Specifically, CANoe monitors the detection time of the autonomous driving function status signal. When the monitoring time exceeds a time threshold (such as 5 minutes), the monitoring timeout is recorded and the process ends.

[0161] Step S711: stop recording messages;

[0162] Specifically, CANoe controls to stop recording messages and converts the message format to .mat.

[0163] Step S712: taking the initial value and the first state value as the first value change point of the flag signal, and performing time segmentation on the automatic driving function state signal with the first value change point as the segmentation point to generate a function characteristic signal;

[0164] Step S713: obtaining a function characteristic signal corresponding to before the first value change point and a function characteristic signal corresponding to after the first value change point, and outputting a function determination result according to a comparison between the function characteristic signal and a preset function status signal threshold;

[0165] Specifically, the automated program monitors the generation of .mat files, and uses Matlab to control the result comparison script submodule to compare the difference between the functional characteristic signal and the preset functional status signal threshold, and outputs the functional determination result. The functional determination result can be output to an Excel file for easy storage and viewing. The following example illustrates how the result comparison script submodule performs functional determination:

[0166] like Fig.10 As shown, the preset function status signal threshold is defined as: function activation (active) value is 1, function shutdown (off) value is 2, standby (standby) value is 3, and failure (fail) value is 4. Fig.10 The change point from 0 to 1 in is the segmentation point, and the automatic driving function status signal is segmented. Fig.10Point A in the figure. After segmentation, the value V1 of the functional characteristic signal after point A is taken, and the state represented by the functional characteristic signal value V_BC_1 can be obtained according to the preset functional status signal threshold. For example, when the value V1 of the functional characteristic signal after point A is 2, the state represented by the functional characteristic signal value V_BC_1 is the function-off state. Similarly, the value V0 of the functional characteristic signal before point A is taken, and the state represented by the functional characteristic signal value V_BC_0 can be obtained according to the preset functional status signal threshold. For example, when the value V1 of the functional characteristic signal before point A is 1, the state represented by the functional characteristic signal value V_BC_0 is the function-activated state. It is determined whether there is a difference between the state represented by the functional characteristic signal value V_BC_1 and the state represented by the functional characteristic signal value V_BC_0 and the design intent. If there is a difference, it is determined that the function of the autonomous driving system is abnormal. If there is no difference, it is determined that the function of the autonomous driving system is normal, thereby automatically determining whether the function of the autonomous driving system is normal or abnormal.

[0167] Step S714: determine whether the test cases in the test sequence are completed;

[0168] Specifically, if the process is to be terminated, otherwise, step S715 is executed.

[0169] Step S715: modifying the value of the flag signal to an initial value;

[0170] Specifically, the automation script controls AutomationDesk to modify the value of the flag signal to the initial value, and switches to the next use case, and executes steps S702 to S715 in a loop.

[0171] This embodiment sets a flag signal in the test case group, determines the autonomous driving function according to the flag signal and the autonomous driving function status signal, thereby realizing automated testing of the autonomous driving function and improving work efficiency.

[0172] Embodiment 4

[0173] Based on the second embodiment, the fourth embodiment is a workflow of a fail-safe test. Figure 8 As shown, Figure 8 This is a workflow diagram of a testing method for an advanced auxiliary system hardware-in-the-loop testing system provided by a fourth embodiment of the present invention, including:

[0174] Step S801: starting an automated script set in a host computer to execute a test case group, in which a flag signal having an initial value is set;

[0175] Step S802: obtaining the test case name in the test case group, and performing message recording to generate a communication diagnosis report corresponding to the test case name;

[0176] Step S803: when there is no fault in the communication diagnosis report, the scene sequence in the test case group is obtained, the scene projection and radar target joint simulation are performed according to the scene sequence, the automatic driving function is turned on, and the automatic driving function status signal is generated;

[0177] Step S804: inject faults;

[0178] Step S805: when the fault injection is completed, read the fault, perform fault diagnosis, output a fault diagnosis report, terminate message recording, and output a message signal, the message signal includes an HMI message signal and a fault injection associated message signal;

[0179] Step S806: Outputting a fail-safe determination result based on the comparison of the flag signal, the HMI message signal and the fault injection associated message signal.

[0180] Specifically, steps S801 to S803 are the same as steps S601 to S603 in Example 2, and are not described in detail here. When performing a fail-safe test, first execute step S804 to control AutomationDesk to implement a specified fault injection; then execute step S805 to complete the fault injection, CANoe reads the fault, performs fault diagnosis, outputs a fault diagnosis report, terminates message recording, and outputs message signals, which include HMI message signals and fault injection-related message signals; finally, execute step S806 to output a fail-safe judgment result based on a comparison of the flag signal, the HMI message signal, and the fault injection-related message signal.

[0181] This embodiment sets a flag signal in the test case group, and makes a fail-safe determination based on the flag signal, the HMI message signal, and the fault injection associated message signal, thereby achieving automated test of fail-safety and improving work efficiency.

[0182] Embodiment 5

[0183] Based on the fourth embodiment, the fifth embodiment is a workflow of the fail-safe test, and the same parts as the fourth embodiment are not repeated here. Fig. 9 As shown, Fig. 9 This is a workflow diagram of a testing method for an advanced auxiliary system hardware-in-the-loop testing system provided by Embodiment 5 of the present invention, including:

[0184] Step S901: injecting a fault and modifying the value of the flag signal to a second state value;

[0185] Specifically, the automation script controls AutomationDesk to implement the specified fault injection. Software fault injection is implemented by changing the real-time simulator forwarding message, and hardware fault injection is implemented by the hardware fault injection unit. While executing the fault injection, the value of the flag signal is modified to the second state value through AutomationDesk, and the second state value is preferably 2.

[0186] Step S902: when the fault injection is completed, output the fault injection completion temporary file;

[0187] Specifically, after the fault injection is completed, AutomationDesk generates a temporary file indicating the completion of the fault injection and outputs it, marking the completion of the fault injection.

[0188] Step S903: determining whether a temporary file for fault injection completion is detected;

[0189] Specifically, the automated script cyclically monitors whether a temporary file for completing fault injection is generated, and if so, executes step S904 , otherwise, executes step S911 .

[0190] Step S904: Read the fault and delete the temporary file after the fault injection is completed;

[0191] Specifically, the automated script controls CANoe to perform fault reading and deletes the temporary file after the fault injection is completed.

[0192] Step S905: performing fault diagnosis, when a feedback fault message is received and a fault is found to exist in the fault message after parsing, outputting a first sub-fault diagnosis report;

[0193] Specifically, the automated script controls CANoe to perform fault diagnosis, and when a feedback fault message is received and a fault is analyzed to be present, a first sub-fault diagnosis report is output.

[0194] Step S906: determining whether the first sub-fault diagnosis report is monitored;

[0195] Specifically, if yes, execute step S907, otherwise execute step S916.

[0196] Step S907: performing fault recovery, and modifying the value of the flag signal to a third state value;

[0197] Specifically, when the first sub-fault diagnosis report is detected, the automation script controls AutomationDesk to perform fault recovery and at the same time modifies the value of the flag signal to a third state value, and the third state value is preferably 3.

[0198] Step S908: When the fault recovery is completed, the fault is cleared, the value of the flag signal is modified to the initial value, and a temporary fault diagnosis file is output;

[0199] Specifically, 10 seconds after the fault recovery is completed, AutomationDesk is controlled to modify the value of the flag signal to the initial value and output the fault diagnosis temporary file at the same time.

[0200] Step S909: determining whether a temporary fault diagnosis file is detected;

[0201] Specifically, the automated script cyclically monitors the fault diagnosis temporary file, and executes step S910 when the fault diagnosis temporary file is detected, otherwise, executes step S916.

[0202] Step S910: performing fault diagnosis again and deleting the fault diagnosis temporary file;

[0203] Specifically, the automated script controls CANoe to perform the fault diagnosis again and deletes the fault diagnosis temporary files.

[0204] Step S911: when the fault diagnosis is completed again, output a second sub-fault diagnosis report;

[0205] Specifically, after CANoe completes the fault diagnosis, it saves the diagnosis result and outputs the second sub-fault diagnosis report.

[0206] Step S912: determining whether a second sub-fault diagnosis report is detected;

[0207] Specifically, the automated script cyclically monitors the second sub-fault diagnosis report, and when the second sub-fault diagnosis report is detected, executes step S913, otherwise executes step S916.

[0208] Step S913: when the first sub-fault diagnosis report is consistent with the second sub-fault diagnosis report, stop recording the message, use the second sub-fault diagnosis report as the fault diagnosis report, and output the fault diagnosis report;

[0209] Specifically, when the first sub-fault diagnosis report is consistent with the second sub-fault diagnosis report, it indicates that the fault recovery is completed. The automation script controls CANoe to stop recording messages, converts the format of the fault diagnosis report into .mat format, and outputs the fault diagnosis report. The fault diagnosis report includes HMI message signals and fault injection associated message signals.

[0210] Step S914: using the initial value, the first state value, the second state value and the third state value as the second value change point of the flag signal, and using the second value change point as the segmentation point to segment the HMI message signal and the fault injection associated message signal to generate a fault characteristic signal;

[0211] Specifically, the automated script controls Matlab to extract the flag signal, HMI message signal, and fault injection-related message signal from the .mat file, and uses the initial value, first state value, second state value, and third state value in the flag signal as the value change point, and divides the HMI message signal and the fault injection-related message signal according to the time axis, such as Fig.10 As shown, there are 4 value change points, namely: 0-1, 1-2, 2-3, 3-4, and the corresponding values ​​are points A, B, C, and D.

[0212] Step S915: obtaining a fault characteristic signal corresponding to before the second value change point and a fault characteristic signal corresponding to after the second value change point, and outputting a fail-safe determination result based on a comparison between the fault characteristic signal and a preset fault state signal threshold;

[0213] Specifically, the automated script control result comparison script submodule performs different processing on the HMI-related signal and the fault injection-related message signal when comparing the fault characteristic signal with the fault status signal threshold. Fig.10 As shown, by comparing the signal value of the middle segment of point BC with the fault status signal threshold, the HMI indicator icon style corresponding to the signal value can be obtained, and the HMI indicator icon style can be output to Excel. For the fault injection associated message signal: ① Compare the signal value of the middle segment of point AB with the signal value of the middle segment of point BC to obtain the change result after the fault injection; ② Compare the signal value of the middle segment of point CD with the signal value of the middle segment of point AB to obtain the change result after the fault recovery, and then output the change results of ① and ② to Excel. The following example illustrates how the result comparison script submodule performs failure safety judgment:

[0214] The fault status signal threshold includes the HMI message signal threshold and the fault injection associated message signal threshold. The HMI message signal threshold is defined as: white icon value is 1, yellow icon value is 2, green icon value is 3, and no icon value is 4. The fault injection associated message signal threshold is defined as: active value is 1, off value is 2, standby value is 3, and fail value is 4. Fig.10A, B, C, and D in are segmentation points, and the fault characteristic signals (HMI message signals and fault injection associated message signals) are segmented. Take the HMI message signal as an example to illustrate. After segmentation, take the fault characteristic signal value V_D_1 between points A and B. According to the four HMI message signal thresholds, the state represented by the fault characteristic signal value V_D_1 can be obtained. This state is the state before the fault injection. Take the fault characteristic signal value V_D_2 between points B and C. According to the four HMI message signal thresholds, the state represented by the fault characteristic signal value V_D_2 can be obtained. This state is the state after the fault injection. Take the fault characteristic signal value V_D_3 between points C and D. According to the four HMI message signal thresholds, the state represented by the fault characteristic signal value V_D_3 can be obtained. This state is the state after the fault is recovered. Similarly, the states of the fault injection associated message signal before, after, and after the fault injection can be obtained. According to the above six states of HMI message signals and fault injection associated message signals, as well as the diagnosis results in the fault diagnosis report, the design intent is compared to achieve automatic test failure safety and determine the test case results.

[0215] The following example illustrates how to determine fail-safety: Assume that the design intention is that after the message interruption fault is injected, the HMI displays the ACC yellow light, and the ACC function exits and cannot be turned on, and the abnormal communication fault can be read from ESP131, and it is required that after the fault is restored, the HMI still displays the fault, and the ACC remains unable to be turned on, and the abnormal communication fault remains. If the state signal of the ACC display light (i.e., the HMI message signal in this example) HMI_V_D_1 is 1 when the automatic test is carried out to the result judgment, the corresponding state in the HMI message signal threshold is active; HMI_V_D_2 is 4, and the corresponding state in the HMI message signal threshold is fail; HMI_V_D_2 is 4, and the corresponding state in the HMI message signal threshold is fail. This result meets the design intention.

[0216] If the ACC status information ESP_V_D_1 sent by ESP131 is 1, the corresponding state in the HMI message signal threshold is active; ESP_V_D_2 is 4, the corresponding state in the HMI message signal threshold is fail; ESP_V_D_2 is 4, the corresponding state in the HMI message signal threshold is fail. This result meets the design intention.

[0217] If the ESP fault information in the first sub-fault diagnosis report is communication abnormality (which can be directly extracted based on keywords through Python or other methods, or by adding code blocks in the automation program), and the ESP fault information in the second sub-fault diagnosis report is communication abnormality, this result meets the design intent.

[0218] When all three results are consistent, the failure safety of the autonomous driving system can be determined to be normal. If the test results do not meet the above requirements, the failure safety of the autonomous driving system is determined to be abnormal.

[0219] Step S916: Determine whether the monitoring time exceeds a preset time threshold;

[0220] Specifically, the automated script determines whether the monitoring time exceeds a time threshold (eg, 5 minutes). If so, step S917 is executed; otherwise, the corresponding previous step is continued.

[0221] Step S917: Exit the program, record the current step and the corresponding timestamp, and output the log document.

[0222] This embodiment sets a flag signal in the test case group, and makes a fail-safe determination based on the flag signal, the HMI message signal, and the fault injection associated message signal, thereby achieving automated test of fail-safety and improving work efficiency.

Claims

1. A testing method for an automatic driving function testing system, characterized in that: The automatic driving function test system includes a scene simulation system, a real-time simulator, a communication simulation system and a host computer, wherein: the scene simulation system includes a scene projector and a radar target simulator, the scene projector is used to provide simulated scene data, and the radar target simulator is used to provide simulated radar target data; when the scene simulation system provides simulated scene data and / or simulated radar target data, the host computer or the real-time simulator sends a signal to the automatic driving system to be tested, and the automatic driving system to be tested obtains the simulated scene data and the simulated radar target data, and controls the automatic driving system according to the simulated scene data and the simulated radar target data. driving function and providing an automatic driving function status signal; the real-time simulator, the real-time simulator is communicatively connected with the automatic driving system and the actuator system; the communication simulation system, the communication simulation system is communicatively connected with the real-time simulator and the host computer, and is used to obtain the vehicle operation status signal and the automatic driving function status signal and output them to the host computer, the vehicle operation status signal includes the execution status signal output by the actuator system; the host computer determines whether the automatic driving function and fail-safe of the automatic driving system to be tested are normal according to the vehicle operation status signal and the automatic driving function status signal, and the test method includes: A startup step, starting an automated script set in the host computer to execute a test case group, wherein a flag signal having an initial value is set in the test case group; A communication simulation step, obtaining the test case name in the test case group, and performing message recording to generate a communication diagnosis report corresponding to the test case name; A scenario simulation step, when there is no fault in the communication diagnostic report, obtaining the scenario sequence in the test case group, performing scene projection and radar target joint simulation according to the scenario sequence, turning on the automatic driving function, and generating an automatic driving function status signal: when there is no fault in the communication diagnostic report, obtaining the scenario sequence in the test case group, and executing the scenario sequence; sending the target object list data in the scenario sequence to the radar target simulator, and controlling the radar target simulator to simulate; turning on the automatic driving function, and modifying the value of the flag signal to the first state value, and outputting the automatic driving function status signal; a function test step, determining the function of the automatic driving system according to the automatic driving function status signal and the flag signal, and outputting the function determination result: when the automatic driving function status signal is in the completion state, stopping recording the message; taking the initial value and the first state value as the first value change point of the flag signal, and performing time division on the automatic driving function status signal with the first value change point as the division point to generate a function characteristic signal; obtaining the function characteristic signal corresponding to before the first value change point and the function characteristic signal corresponding to after the first value change point, and outputting the function determination result according to the comparison between the function characteristic signal and a preset function status signal threshold; A failure safety test step, when the automatic driving function status signal is in the function-on state, inject a fault, and modify the value of the flag signal to a second state value, perform fault diagnosis on the fault, output a fault diagnosis report, terminate message recording, and output a message signal, wherein the message signal includes an HMI message signal and a fault injection-related message signal; when the fault injection is completed, output a fault injection completion temporary file; when the fault injection completion temporary file is detected, read the fault and delete the fault injection completion temporary file; perform the fault diagnosis, and when a feedback fault message is received and the fault message is parsed to find that a fault exists, output a first sub-fault diagnosis report; when the first sub-fault diagnosis report is detected, perform fault recovery, and modify the value of the flag signal to a third state value; perform a failure safety determination based on the flag signal, the HMI message signal, and the fault injection-related message signal, and output a failure safety determination result.

2. The testing method according to claim 1, characterized in that: The communication simulation step comprises: Read the test case name and record the message; Sending a diagnostic message, and when receiving a feedback message, outputting the communication diagnostic report according to the feedback message; When there is no fault in the communication diagnosis report, executing the scenario simulation step; When there is a fault in the communication diagnosis report, the automation script is terminated and a test report is output, wherein the test report includes the test case sequence number and timestamp in the test case group.

3. The testing method according to claim 1, characterized in that: The fail-safe testing step comprises: A fault injection step, injecting the fault; A fault diagnosis step, when the fault injection is completed, reading the fault, performing fault diagnosis, outputting the fault diagnosis report, terminating message recording, and outputting the message signal; A fail-safe determination step is performed to output the fail-safe determination result based on a comparison of the flag signal, the HMI message signal and the fault injection associated message signal.

4. The testing method according to claim 3, characterized in that: The fault diagnosis step comprises: When the fault recovery is completed, the fault is cleared, the value of the flag signal is modified to the initial value, and a temporary fault diagnosis file is output; When the fault diagnosis temporary file is detected, performing fault diagnosis again and deleting the fault diagnosis temporary file; When the fault diagnosis is performed again and completed, a second sub-fault diagnosis report is output; When the first sub-fault diagnosis report is consistent with the second sub-fault diagnosis report, the recording of the message is stopped, the second sub-fault diagnosis report is used as the fault diagnosis report, and the fault diagnosis report is output.

5. The testing method according to claim 4, characterized in that: The fail-safe determination step comprises: Taking the initial value, the first state value, the second state value and the third state value as the second value change point of the flag signal, and taking the second value change point as the segmentation point to segment the HMI message signal and the fault injection associated message signal, to generate a fault characteristic signal; The fault characteristic signal corresponding to before the second value change point and the fault characteristic signal corresponding to after the second value change point are obtained, and the failure safety determination result is output based on the comparison between the fault characteristic signal and a preset fault status signal threshold.

6. The testing method according to claim 1, characterized in that: The automatic driving function test system further includes a power supply system, wherein the power supply system includes a programmable power supply, The real-time simulator comprises an input I / output O port for outputting a voltage waveform output signal for adjusting the output voltage of the programmable power supply; The programmable power supply, the input end of the programmable power supply is electrically connected to the I / O port, and the output end of the programmable power supply is electrically connected to the automatic driving system and the actuator system respectively, for outputting a corresponding voltage according to the voltage waveform output signal.

7. The testing method according to claim 6, characterized in that: The automatic driving function test system further includes: The hardware fault injection unit is used to inject a hardware fault signal, wherein the hardware fault signal includes at least one of a hard line fault signal, a communication line fault signal and a power supply fault signal.

8. The testing method according to claim 7, characterized in that: The hardware fault injection unit includes a hard-wire fault injection subunit for injecting hard-wire faults, the hard-wire fault injection subunit includes a hard-wire relay, a hard-wire input channel, a hard-wire output channel and a hard-wire ground channel, the hard-wire relay includes a hard-wire input end electrically connected to a first port of the I / O port, and a hard-wire output end electrically connected to a second port of the I / O port, the hard-wire relay controls the hard-wire input channel to be connected to the hard-wire output channel or the hard-wire ground channel according to voltage signals of the hard-wire input end and the hard-wire output end.

9. The testing method according to claim 7, characterized in that: The hardware fault injection unit includes a communication line fault injection subunit for injecting a communication line fault signal, and the communication line fault injection subunit includes a first communication relay, a second communication relay, a third communication relay, a communication high-voltage input channel connected to the communication high-voltage input end, a communication low-voltage input channel connected to the communication low-voltage input end, a communication high-voltage output channel connected to the communication high-voltage output end, a communication low-voltage output channel connected to the communication low-voltage output end, a communication high-voltage grounding channel, and a communication low-voltage grounding channel; The first communication relay, the second communication relay and the third communication relay each include a communication input terminal electrically connected to the third port of the I / O port, and a communication output terminal electrically connected to the fourth port of the I / O port; The first communication relay controls the communication high-voltage input channel to be connected with the communication high-voltage output channel or the communication high-voltage grounding channel according to the voltage signal of the communication input terminal and the communication output terminal; The second communication relay controls the communication low-voltage input channel to be connected with the communication low-voltage output channel or the communication low-voltage grounding channel according to the voltage signal of the communication input end and the communication output end; The third communication relay is connected to the first communication relay and the second communication relay respectively, and the third communication relay controls the communication high-voltage input channel to be connected to the communication high-voltage output channel, the communication low-voltage input channel to be connected to the communication low-voltage output channel, or the communication high-voltage grounding channel to be connected to the communication low-voltage grounding channel according to the voltage signals of the communication input end and the communication output end.

10. The testing method according to claim 7, characterized in that: The programmable power supply comprises a first output terminal and a second output terminal, the hardware fault injection unit comprises a power fault injection subunit for injecting the power fault signal, The power fault injection subunit includes a power relay, a first power input channel connected to the first output end of the programmable power supply, a second power input channel connected to the second output end of the programmable power supply, and a power output channel; The power relay includes a power input terminal electrically connected to the fifth port of the I / O port, and a power output terminal electrically connected to the sixth port of the I / O port. The power relay controls the power output channel to be connected to the first power input channel or the second power input channel according to voltage signals of the power input terminal and the power output terminal.

Citation Information

Patent Citations

  • Intelligent connected vehicle in-the-loop simulation and test and verification system and method

    CN108646586A

  • Automatic driving human-computer interaction simulation testing system based on driving simulator

    CN108766096A

  • Testing method and system of auxiliary driving vehicle hardware in loop simulation

    CN109901546A

  • Function simulation detection system of automatic driving automobile

    CN110020471A

  • Bench test method for vehicle-level in-the-loop testing of L3-level self-driving vehicle

    CN110031238A