A closed-loop testing method and system

By dynamically simulating real road scenes and performing video interpretation in the AR HUD closed-loop test system, the problems of long test cycles and low coverage in existing test methods are solved, a high-accuracy and highly automated test process is achieved, and the system is improved. Stability and development efficiency.

CN113609571BActive Publication Date: 2024-09-24CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110761926.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-06
Publication Date
2024-09-24
Estimated Expiration
2041-07-06

AI Technical Summary

Technical Problem

The existing AR HUD closed-loop testing method has the problems of long test cycle, low coverage, and poor timeliness. It is difficult to effectively shorten the development cycle and improve the accuracy of the target information extraction and calculation of the electronic control unit under test.

Method used

Adopting closed-loop testing methods and systems, by dynamically simulating real road scenes in the scene module, the source video is output to the electronic control unit under test for calculation, extraction, and interpretation and comparison with the target video. If there is no match, the unmatched frame is saved to improve calculation Extraction accuracy and system stability.

Benefits of technology

It shortens the development cycle of AR HUD, improves the accuracy of the target information extraction and calculation of the electronic control unit under test, improves system stability and operational safety, has a high degree of automation, and reduces the workload of testers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113609571B
    Figure CN113609571B
Patent Text Reader

Abstract

The present invention discloses a closed-loop test method and system, including dynamically simulating a real road scene including a vehicle motion trajectory in a scene module; outputting the information of the real road scene as a source video through a hardware-in-the-loop simulation unit, and sending the source video to an electronic control unit under test; the electronic control unit under test performs calculation extraction, extracts feature information from the source video, obtains a target video through a test algorithm, and outputs it to a test module through the hardware-in-the-loop simulation unit; in the test module, the source video and the target video are interpreted and compared to obtain a reading result; if the interpretation result is a match, the test is terminated; if the interpretation result is a mismatch, the electronic control unit under test performs calculation extraction errors, obtains mismatched frames, and outputs and saves them. The present invention greatly shortens the development cycle of AR HUD, improves the accuracy of extracting and calculating target information, has a high degree of automation, and can also save manpower.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of testing systems, and in particular to a closed-loop testing method and system. Background Art

[0002] The HIL (hardware in the loop) closed loop simulates the operating state of the ECU under test by running a simulation model on a real-time processor, and simulates the input state of the ECU under test through I / O interfaces, bus interfaces, etc., and finally realizes closed-loop testing by automatically judging whether the output state of the ECU under test is the expected design result.

[0003] AR (Augmented reality) is a technology that superimposes navigation, vehicle speed, distance to the vehicle in front, and information about the vehicle's surroundings on the real road ahead in a digital, graphical form, thereby enhancing the driver's understanding of the current driving environment and improving their driving experience.

[0004] AR HUD (Augmented Reality Flat Display) is a new product developed in the past two years to improve the driving experience. At present, major OEMs and parts manufacturers basically record the video stream of the vehicle driving environment in the form of real-life road sampling, that is, combining the actual driving environment of the vehicle, additionally using high-definition cameras to record the road environment ahead of the current vehicle and other forms such as buses to record the current vehicle status, and finally manually judge the accuracy of the output results of the control unit under test online or offline. Of course, some manufacturers use scene software to simulate roads and traffic flow information to avoid time-consuming and labor-intensive road sampling work, but in the end, due to high costs, they all use the AR HUD output results separated by human eye comparison and the road condition information in the scene software to judge the correctness of the AR HUD calculation.

[0005] The above testing methods all have the disadvantages of long testing cycle, low coverage and poor timeliness, which are not conducive to the integrated development of AR HUD components and complete vehicles.

[0006] Therefore, a closed-loop testing method and system are needed to shorten the development cycle of AR HUD and improve the accuracy of the electronic control unit under test in extracting and calculating target information. Summary of the invention

[0007] In view of the problems existing in the above-mentioned prior art, the present invention provides a closed-loop testing method and system, which can effectively shorten the development cycle of AR HUD, improve the accuracy of the electronic control unit under test in extracting and calculating target information, and enhance the system stability and operational safety. The technical solution is as follows:

[0008] In one aspect, the present invention provides a closed-loop testing method, comprising:

[0009] Dynamically simulate real road scenes including vehicle motion trajectories in the scene module;

[0010] Outputting the information of the real road scene as a source video through a hardware-in-the-loop simulation unit, and sending the source video to the electronic control unit under test;

[0011] The electronic control unit under test performs calculation extraction, extracts feature information from the source video, obtains the target video through the test algorithm, and outputs it to the test module through the hardware-in-the-loop simulation unit;

[0012] In the test module, the source video and the target video are interpreted and compared to obtain an interpretation result;

[0013] If the judgment result is a match, the test is terminated;

[0014] If the judgment result is mismatch, the electronic control unit under test performs calculation to extract the error, obtains the mismatch frame, and outputs and saves the mismatch frame.

[0015] Furthermore, the dynamic simulation of the real road scene including the vehicle motion trajectory in the scene module includes:

[0016] Importing the target map into the scenario module, establishing a road scenario model, and dynamically simulating road information, traffic lights, front traffic flow and road conditions;

[0017] A vehicle speed model is established in the scenario module to dynamically simulate the vehicle speed information of the vehicle and the target vehicle; the vehicle speed information includes vehicle speed and acceleration and deceleration;

[0018] Simulate real-time positioning information and dynamically simulate the movement trajectory of the vehicle.

[0019] Furthermore, after establishing a vehicle speed model in the scenario module and dynamically simulating the vehicle speed information of the host vehicle and the vehicle speed information of the target vehicle, the method further includes:

[0020] The vehicle speed model is imported into a simulation module to generate a bus signal, and is sent to the electronic control unit under test.

[0021] Furthermore, the characteristic information includes: vehicle speed, speed limit sign, road information, traffic lights and traffic flow ahead.

[0022] Further, the comparing the source video with the target video in the test module includes:

[0023] In the test module, the source video and the target video are overlaid with each other; and / or

[0024] In the test module, the source video and the target video are digitally and dynamically compared.

[0025] Furthermore, the mismatched frame includes:

[0026] Through the image superposition, the fitting deviation between the road information in the target video and the road information in the source video reaches 9% to 11%; and / or

[0027] By superimposing the images, the speed limit sign and the traffic light in the target video are omitted; and / or

[0028] Through the digital dynamic comparison, the digital information of vehicle speed, speed limit sign, road information, traffic light and traffic flow ahead in the target video deviates from the digital information of the corresponding feature information in the source video.

[0029] On the other hand, the present invention provides a closed-loop test system, including a host computer, a test unit, a hardware-in-the-loop simulation unit and an electronic control unit under test;

[0030] The host computer is used to generate a test instruction and send it to the hardware-in-the-loop simulation unit;

[0031] The test unit includes a scene module and a test module. The scene module is used to dynamically simulate a real road scene including a vehicle motion trajectory, and output the information of the real road scene to the hardware-in-the-loop simulation unit to obtain a source video; the test module is used to receive the source video and the target video, and compare the source video with the target video to obtain a judgment result, and when the judgment result is mismatched, obtain a mismatch frame, output the mismatch frame and save it;

[0032] The hardware-in-the-loop simulation unit includes a video injection module and a video acquisition module. The video injection module is connected to the host computer and is used to obtain the source video and send it to the electronic control unit under test; the video acquisition module is connected to the electronic control unit under test and is used to obtain the target video and send it to the test module;

[0033] The electronic control unit under test includes a SOC module and an MCU module, which are used to receive the signal of the hardware-in-the-loop simulation unit, receive the source video for extraction calculation, obtain the target video, and output it to the test module through the hardware-in-the-loop simulation unit.

[0034] Furthermore, the hardware-in-the-loop simulation unit also includes a real-time processor, a programmable power supply, a GNSS simulation device, a bus communication interface module, an IO board and a signal conditioning module and a fault injection module.

[0035] Furthermore, the electronic control unit under test also includes a bus module, a navigation module, a vehicle positioning module, a power module, a connector and an I / O port.

[0036] Furthermore, the test unit also includes a simulation module with a built-in CAN module, and the CAN module is connected to the bus module via a bus communication interface module, and is used to send and collect various bus signals of the electronic control unit under test.

[0037] The implementation of the present invention has the following beneficial effects:

[0038] 1. The present invention forms a closed loop with the test unit through the interaction between the hardware-in-the-loop simulation unit and the electronic control unit under test. The source video and the target video can be interpreted and compared in the test unit, and the accuracy of the calculation and extraction of the electronic control unit under test can be judged, which greatly shortens the AR HUD development cycle, has high test accuracy, and a high degree of automation, greatly reducing the workload of testers.

[0039] 2. Add real-time positioning information for dynamic simulation to further realize real-time dynamic planning, with good flexibility, more realistic scenes and high reliability of the test system. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings used in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0041] Figure 1 A logical structure diagram of a closed-loop method provided by an embodiment of the present invention;

[0042] Figure 2 A logical structure diagram for dynamically simulating a real road scene including a vehicle motion trajectory in a scene module provided by an embodiment of the present invention;

[0043] Figure 3 A logical structure diagram of a simulation module in a possible implementation mode of the present invention;

[0044] Figure 4 A schematic diagram of a corresponding form of an unmatched frame in a possible implementation manner of the present invention;

[0045] Figure 5 A simplified diagram of a closed-loop test system in a possible implementation mode of the present invention;

[0046] Figure 6 FIG. 4 is a schematic diagram of a closed-loop test system in a possible implementation manner of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, and therefore cannot be understood as limiting the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0048] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than the following diagrams or the following descriptions. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0049] This embodiment provides a closed-loop testing method to solve the problems of the prior art test methods having long test cycles, low coverage, poor timeliness, and being unfavorable to the integrated development of ARHUD components and whole vehicles. The closed-loop testing method can be applied to the closed-loop testing system of the embodiment of the present invention. Figure 5 As shown, the closed-loop test system includes a host computer, a test unit, a hardware-in-the-loop simulation unit and an electronic control unit under test, wherein the test unit includes a scenario module and a test module for dynamic simulation and testing, and the test unit is integrated in the host computer (or controller) as a software end; correspondingly, the hardware-in-the-loop simulation unit is a hardware end, and the information transmission, acquisition and other behaviors of various software in the test unit depend on the hardware-in-the-loop simulation unit as a hardware device, so the software modules in the test unit are all corresponding to the hardware modules in the hardware-in-the-loop simulation unit; and the hardware-in-the-loop simulation unit and the electronic control unit under test are both hardware ends, and the hardware ends are connected by various interfaces, so that information interacts between the host computer, the hardware-in-the-loop simulation unit and the electronic control unit under test under the control of the host computer.

[0050] When a test requirement occurs, the host computer issues a test instruction, dynamically simulates a real road scene in the scene module, and outputs its information as a source video through a hardware-in-the-loop simulation unit. The source video is output to the test module for interpretation and comparison. The source video is also output to the electronic control unit under test, and the target video is obtained through calculation and extraction by the electronic control unit under test, and is transmitted back to the test module through the hardware-in-the-loop simulation unit. The source video and the target video are interpreted and compared in the test module, and the accuracy of the calculation and extraction of the electronic control unit under test is judged based on the interpretation result. The test accuracy is high. Moreover, the closed-loop test method is based on the bench implementation and has a high degree of automation, which can significantly reduce the workload of staff and save manpower.

[0051] The technical solution of the embodiment of the present invention is described in detail below. Figure 1 , the method comprising:

[0052] S101, dynamically simulating a real road scene including a vehicle motion trajectory in a scene module.

[0053] In a possible implementation of the present specification, when a test requirement arises, the host computer generates a test instruction and sends the test instruction to the hardware-in-the-loop simulation unit, so that the entire closed-loop test system starts a round of closed-loop test process and executes step S101 and its subsequent steps.

[0054] Among them, the scene module is a scene software, which is a type of upper computer software. It is used to dynamically simulate real road scenes and output information of real road scenes to other software or hardware ends, and the scene software can also set internal and external parameters of the camera to simulate the camera hardware in the loop; during the simulation, the data information related to the real road scene is imported into the scene software, and the data information is automatically analyzed to dynamically simulate the real road scene; for example, the real-time dynamic switching of traffic lights is one of the characteristics of the simulated real road scene; however, it should be noted that the objects imported into the scene software in this step, and the objects output to the hardware end of the hardware-in-the-loop simulation unit after dynamic simulation by the scene software are all data type or signal type information, rather than video form.

[0055] S103, outputting the information of the real road scene as a source video through a hardware-in-the-loop simulation unit, and sending the source video to the electronic control unit under test.

[0056] The hardware-in-the-loop simulation unit includes a video injection module, which is connected to the host computer and is used to receive information about the real road scene, obtain a source video based on the information about the real road scene, and then send the source video to the electronic control unit under test; in a possible implementation of the present specification, Figure 6As shown, the video injection module can be a video injection board, the input end of the video injection board is connected to the host computer, and the output end is connected to the electronic control unit under test, so as to realize transmission, and the information transmitted from the video injection board to the electronic control unit under test is in the form of video, that is, source video; in addition, the source video injected into the electronic control unit under test by the video injection board can also include a driver's eye position video library and a video stream shot by a simulated camera, so that the injected source video is richer and more realistic, and has high reliability.

[0057] S105, the electronic control unit under test performs calculation extraction, extracts feature information from the source video, obtains the target video through the test algorithm, and outputs it to the test module through the hardware-in-the-loop simulation unit.

[0058] Correspondingly, the hardware-in-the-loop simulation unit and the electronic control unit under test are both used as hardware terminals, so that information can be exchanged between the two. Figure 6 As shown, the electronic control unit under test includes a SOC module for receiving and processing signals received from the hardware-in-the-loop simulation unit, and the SOC module is connected to the video injection board to receive the source video, extract and calculate the source video to obtain the target video, and output the target video; in this embodiment, the hardware-in-the-loop simulation unit also includes an MCU module, which can play the same role as the SOC module, or play the role of assisting the SOC module, sharing the load of the SOC module, and improving the operating stability of the closed-loop test system.

[0059] Among them, the characteristic information mainly includes vehicle speed, speed limit sign, road information, traffic lights and traffic flow ahead, but is not limited to the above five types of characteristic information, and can also include vehicle movement trajectory, vehicle speed information, etc. The characteristics that can reflect the real road scene can be within the protection scope of this specification; the electronic control unit under test extracts these characteristic information from the source video, and through its own test algorithm, restores it according to the characteristic information, and dynamically simulates to obtain the target video. The ideal target video should also include corresponding characteristic information, which can be used for interpretation and comparison.

[0060] The hardware-in-the-loop simulation unit also includes a video acquisition module, as shown in the attached manual. Figure 6 As shown, the acquisition end of the video acquisition module is connected to the electronic control unit under test, and can acquire the target video, while the output end of the video acquisition module is connected to the host computer, and can send the target video to the test module of the host computer for subsequent interpretation and comparison; and the closed-loop test method in this embodiment verifies the accuracy of the calculation and extraction process of the electronic control unit under test, including whether the correct and appropriate features are accurately extracted when extracting feature information, and whether the test algorithm used to obtain the target video is correct.

[0061] S107, in the test module, the source video and the target video are interpreted and compared to obtain an interpretation result.

[0062] Among them, the test module can be an automatic test software, which is a part of the test unit. Like the scene software, it belongs to a type of upper computer software; and, the interpretation and comparison is performed in the test module, so the source video can also be imported into the test module, and the test module superimposes the source video and the target video for interpretation and comparison.

[0063] In this embodiment, the automatic test software has functions such as real-time comparison and information extraction, so it can directly compare the corresponding frames in the source video and the target video by video superposition and image superposition to obtain the judgment result intuitively; or when the judgment result cannot be obtained intuitively during video superposition and image superposition, the source video and the target video are digitally dynamically compared to obtain the judgment result; in addition, image superposition and dynamic digital comparison can be applied together, and the two judgment comparisons can be performed simultaneously or sequentially to further improve the reliability and authenticity of the judgment result.

[0064] S109: If the judgment result is a match, the test ends.

[0065] S111, if the judgment result is mismatch, the electronic control unit under test performs calculation extraction error, obtains a mismatch frame, and outputs and saves the mismatch frame.

[0066] Among them, if the judgment result is a match, it is equivalent to indicating that the electronic control unit under test has no error in the process of extracting feature information, and the test algorithm adopted is also appropriate and accurate, and can accurately restore the target video containing the feature information. The accuracy of the entire electronic control unit under test is high during operation, and the test can be ended at this time; if the judgment result is a mismatch, it means that the electronic control unit under test has an error in the operation process, and the target video consistent with the source video is not restored, or there is an extraction error in the process of extracting feature information, or there is an error in the test algorithm and further optimization is required, or there are errors in the above two processes. What is judged here is only the accuracy of the electronic control unit under test, and it is not specific to the inside of the electronic control unit under test; and in a possible implementation manner of the present specification, a faulty component can be further set for further testing and confirmation to improve the judgment accuracy of the closed-loop test method and system.

[0067] Furthermore, when the judgment result is mismatch, there is a mismatch frame, which can be captured and saved by automatic screenshot software or some tools provided by the automatic test software for output, or for subsequent analysis of the closed-loop test process and generation of a test report.

[0068] Specifically, as shown in the attached manual Figure 2As shown, in step S101, the dynamic simulation of the real road scene including the vehicle motion trajectory in the scene module includes:

[0069] S202, importing the target map into the scene module, establishing a road scene model, and dynamically simulating road information, traffic lights, forward traffic flow and road conditions.

[0070] Among them, the target map is a high-precision map, including a map of the surrounding area of ​​the current position of the vehicle, and may also include a map of the surrounding area of ​​the position that the vehicle may pass during driving, so as to ensure that the target map is rich enough, so that the established road scene model is real and reliable; in this step, the road scene model in the real road scene is mainly dynamically simulated, including road information, traffic lights, traffic flow ahead and road conditions and other scenes related to the target map, and the data information of the road scene model is used to output as a source video through a video injection board, that is, the road information, traffic lights, traffic flow ahead and road conditions simulated in the road scene model are part of the feature information in the source video.

[0071] S204, establishing a vehicle speed model in the scenario module to dynamically simulate the vehicle speed information of the host vehicle and the target vehicle; the vehicle speed information includes vehicle speed and acceleration / deceleration.

[0072] Similar to the above-mentioned road scene model, the vehicle speed model is also a part of the real road scene. It mainly dynamically simulates the vehicle speed, acceleration and deceleration and other speed information. In order to increase the authenticity and reliability, it can also simulate the speed information of some target vehicles around the vehicle, making the dynamically simulated real road scene more valuable for reference and the final judgment result more accurate and reliable.

[0073] S206, simulating real-time positioning information and dynamically simulating the movement trajectory of the vehicle.

[0074] In the test unit, the host computer software can also simulate the vehicle position of the vehicle in real time, that is, it can obtain real-time positioning information to dynamically simulate the vehicle's movement trajectory over a period of time, or the vehicle's movement trajectory between two points; in this embodiment, as shown in the attached manual Figure 6As shown, the hardware-in-the-loop simulation unit also includes a real-time processor and a GNSS simulation device, and the electronic control unit under test also includes a navigation module and a vehicle positioning module, wherein the host computer is connected to the real-time processor, and the real-time processor is connected to the GNSS simulation device, and the simulation of the vehicle motion trajectory is mainly achieved by simulating the vehicle position in real time through the GNSS simulation device, and arbitrarily planning the path in the host computer and the real-time processor; and for the electronic control unit under test, the GNSS simulation device can send the vehicle position information to the vehicle positioning module in real time, so that the electronic control unit under test can be freely positioned on the test bench, and can also simulate complex weather, road bridges, high-rise buildings, mountainous areas and other signal interference, and plan a navigation path that is the same as the above-mentioned arbitrary planned path in the navigation module, thereby realizing the navigation function in the real road scene on the test bench, further enriching the real road scene and improving the reliability of the test.

[0075] Specifically, as shown in the attached manual Figure 3 As shown, after step S204, that is, after establishing a vehicle speed model in the scenario module and dynamically simulating the vehicle speed information of the own vehicle and the vehicle speed information of the target vehicle, the method further includes:

[0076] S301, importing the vehicle speed model into a simulation module to generate a bus signal, and sending the bus signal to the electronic control unit under test.

[0077] In this embodiment, the simulation module here can be selected as Simulink software, that is, the simulation module is based on Simulink for simulation calculation; and as part of the test unit, Simulink software comes with a CAN module, correspondingly, as shown in the attached manual Figure 6 As shown, the hardware-in-the-loop simulation unit includes a bus communication interface module, and the electronic control unit under test includes a bus module. The CAN module is connected to the bus module through the bus communication interface module. After the data information of the vehicle speed model is imported into the Simulink software for simulation operation, a type of bus signal is generated, which is directly sent to the bus module through the bus communication interface module after output, so as to ensure that the vehicle speed information in the scene software is synchronized with the vehicle speed information received by the electronic control unit under test in real time, thereby improving the test accuracy and reliability; in addition, the sending and collection of other bus signals of the electronic control unit under test can also be realized in the host computer software; in a possible implementation manner of the present specification, the bus communication interface module can be set as a bus communication interface board, which is simple and convenient to set up.

[0078] Specifically, as shown in the attached manual Figure 4 As shown, when the judgment result is mismatch, the mismatch frame includes at least the following situations:

[0079] S402, through the image superposition, the fitting deviation between the road information in the target video and the road information in the source video reaches 9% to 11%; and / or

[0080] S404, by superimposing the images, the speed limit sign and the traffic light in the target video are missing; and / or

[0081] S406, through the digital dynamic comparison, the digital information of the vehicle speed, speed limit sign, road information, traffic light and traffic flow ahead in the target video deviates from the digital information of the corresponding feature information in the source video.

[0082] Among them, according to steps S202-S206, it can be known that the target video obtained in step S105 includes at least the feature information extracted by the electronic control unit under test (vehicle speed, speed limit sign, road information, traffic lights and traffic flow ahead simulated by the scene module), the planned navigation path and the vehicle speed information synchronized in real time with the Simu link software, and these can all be used as test objects for interpretation and comparison. Multi-faceted comparisons ensure the accuracy and reliability of the interpretation results.

[0083] In addition, to ensure the normal operation of the closed-loop test process, the test unit also integrates a series of software such as fault injection software, IO model generation tools, control interface, bus message configuration and integration, and experiment management software. These software can correspond to the hardware-in-the-loop simulation unit and the electronic control unit under test, and be integrated into the host computer to further optimize and improve the closed-loop test system, improve test accuracy, and ensure the reliability of the judgment results.

[0084] Specifically, Figure 6 As shown, the hardware-in-the-loop simulation unit also includes a programmable power supply, an IO board and a signal conditioning module, a fault injection module and other simulation auxiliary modules, and the electronic control unit under test also includes a power supply module, a connector and an I / O port and other unit test auxiliary modules, which are used to further improve the closed-loop test system, and can complete both conventional hardware-in-the-loop simulation tests and the closed-loop test process performed by the above-mentioned closed-loop test method, thereby improving the system operation stability and accuracy.

[0085] Among them, the host computer is connected to the fault injection module and the connector of the electronic control unit under test, and conventional fault injection is performed on the electronic control unit under test through the host computer software to realize short circuit, open circuit, virtual connection, leakage current and change of contact resistance of the electronic control unit under test; and in this embodiment, the fault injection module can be selected as a fault injection board.

[0086] The host computer is connected with the real-time processor, IO board, signal conditioning module and I / O port of the electronic control unit under test, and can simulate and collect the input and output signals of the electronic control unit under test in real time; and the host computer is connected with the programmable power supply and power supply module, and can dynamically adjust the voltage of the electronic control unit under test through the host computer software.

[0087] It can be seen from the above embodiments that the heterogeneous sensor synchronization method in the embodiments of the present invention has the following beneficial effects:

[0088] 1. The present invention forms a closed loop with the test unit by interacting with the electronic control unit under test through the hardware-in-the-loop simulation unit. The source video and the target video can be interpreted and compared in the test unit, and the accuracy of the calculation and extraction of the electronic control unit under test can be judged, which greatly shortens the AR HUD development cycle and has high test accuracy. In addition, the present invention is based on a test bench and has a high degree of automation, which greatly reduces the workload of testers.

[0089] 2. By importing the target map into the scene module to dynamically simulate real road scenes such as road information, traffic lights, traffic flow ahead and road conditions, the authenticity can be improved and the accuracy of the judgment results can be improved; through the simulation module, the vehicle speed in the scene module is synchronized with the vehicle speed received by the electronic control unit under test in real time, and additional real-time positioning information is used for dynamic simulation, further realizing real-time dynamic planning, good flexibility, more realistic scenes, and high reliability of the test system.

[0090] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0091] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0092] What is described above are only some embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art should understand that the present invention may be subject to various changes and improvements, and any modifications, equivalent substitutions and improvements made in accordance with the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A closed-loop testing method, characterized in that: include: Dynamically simulate real road scenes including vehicle motion trajectories in the scene module; Outputting the information of the real road scene as a source video through a hardware-in-the-loop simulation unit, and sending the source video to the electronic control unit under test; The electronic control unit under test performs calculation extraction, extracts feature information from the source video, restores the feature information through a test algorithm, dynamically simulates to obtain a target video, and outputs the target video to a test module through the hardware-in-the-loop simulation unit, wherein the target video includes the feature information extracted by the electronic control unit under test, the planned navigation path, and the vehicle speed information synchronized with real time; The characteristic information includes: vehicle speed, speed limit sign, road information, signal lights and traffic flow ahead; In the test module, the source video and the target video are interpreted and compared to obtain an interpretation result; If the judgment result is a match, the test is terminated; If the judgment result is mismatch, the electronic control unit under test performs calculation extraction error, obtains a mismatch frame, and outputs and saves the mismatch frame; The dynamic simulation of the real road scene including the vehicle motion trajectory in the scene module includes: Importing the target map into the scenario module, establishing a road scenario model, and dynamically simulating road information, traffic lights, front traffic flow and road conditions; A vehicle speed model is established in the scenario module to dynamically simulate the vehicle speed information of the host vehicle and the target vehicle speed information; The vehicle speed information includes vehicle speed and acceleration / deceleration; Simulate real-time positioning information and dynamically simulate the movement trajectory of the vehicle.

2. A closed-loop testing method according to claim 1, characterized in that: After establishing a vehicle speed model in the scenario module and dynamically simulating the vehicle speed information of the host vehicle and the vehicle speed information of the target vehicle, the method further includes: The vehicle speed model is imported into a simulation module to generate a bus signal, and is sent to the electronic control unit under test.

3. A closed-loop testing method according to claim 1, characterized in that: The comparing the source video with the target video in the test module includes: In the test module, the source video and the target video are image-superimposed; and / or in the test module, the source video and the target video are digitally and dynamically compared.

4. A closed-loop testing method according to claim 3, characterized in that: The mismatch frame includes: Through the image superposition, the fitting deviation between the road information in the target video and the road information in the source video reaches 9% to 11%; and / or through the image superposition, the speed limit sign and the traffic light in the target video are missed; and / or through the digital dynamic comparison, the digital information of the vehicle speed, speed limit sign, road information, traffic light and traffic flow ahead in the target video deviates from the digital information of the corresponding feature information in the source video.

5. A closed-loop test system, characterized in that: It includes host computer, test unit, hardware-in-the-loop simulation unit and electronic control unit under test; The host computer is used to generate a test instruction and send it to the hardware-in-the-loop simulation unit; The test unit includes a scene module and a test module. The scene module is used to dynamically simulate a real road scene including a vehicle motion trajectory, and output the information of the real road scene to the hardware-in-the-loop simulation unit to obtain a source video; the test module is used to receive the source video and the target video, and compare the source video with the target video to obtain a judgment result, and when the judgment result is a mismatch, obtain a mismatch frame, output the mismatch frame and save it; the scene module is specifically used to establish a road scene model, dynamically simulate road information, traffic lights, front traffic flow and road conditions; establish a vehicle speed model, dynamically simulate the vehicle speed information of the vehicle and the target vehicle, the vehicle speed information includes vehicle speed and acceleration and deceleration; simulate real-time positioning information, and dynamically simulate the vehicle motion trajectory; The hardware-in-the-loop simulation unit includes a video injection module and a video acquisition module. The video injection module is connected to the host computer and is used to obtain the source video and send it to the electronic control unit under test; the video acquisition module is connected to the electronic control unit under test and is used to obtain the target video and send it to the test module; The electronic control unit under test includes a SOC module and an MCU module, which are used to receive the signal of the hardware-in-the-loop simulation unit, receive the source video for extraction and calculation, obtain the target video, and output it to the test module through the hardware-in-the-loop simulation unit. The target video includes feature information extracted by the electronic control unit under test, the planned navigation path, and vehicle speed information synchronized with real time. The feature information includes: vehicle speed, speed limit sign, road information, traffic lights, and traffic flow ahead.

6. A closed-loop test system according to claim 5, characterized in that: The hardware-in-the-loop simulation unit also includes a real-time processor, a programmable power supply, a GNSS simulation device, a bus communication interface module, an IO board and a signal conditioning module and a fault injection module.

7. A closed-loop test system according to claim 5, characterized in that: The electronic control unit under test also includes a bus module, a navigation module, a vehicle positioning module, a power module, a connector and an I / O port.

8. A closed-loop test system according to claim 5, characterized in that: The test unit also includes a simulation module with a built-in CAN module, and the CAN module is connected to the bus module through a bus communication interface module, and is used to send and collect various bus signals of the electronic control unit under test.