ADAS hardware-in-loop automatic test method, device and equipment and storage medium

By building a test case library and using an automated test system, the existing ADAS hardware in-ring automation test methods are solved, and efficient and accurate automated testing is achieved.

CN119415387APending Publication Date: 2025-02-11SINO TRUK JINAN POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411458020.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The existing ADAS hardware in-loop automation testing methods are insufficient in flexibility, making it difficult to ensure the consistency and accuracy of test sequence parameters, resulting in a high error rate.

Method used

Provides an ADAS hardware in-loop automated testing method, which can identify and locate and set up test scenarios by building a test case library, control and execute tests, and generate test results.

Benefits of technology

The consistency and accuracy of parameters in automated testing are achieved, the dependence of testing scenario construction is reduced, the testing efficiency is improved, and the labor and time cost is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415387A_ABST
    Figure CN119415387A_ABST
Patent Text Reader

Abstract

The invention discloses an ADAS hardware-in-loop automatic test method, device and equipment and a storage medium, and the method comprises the steps: building a test case library, and checking a to-be-tested test case; testing the ADAS system to be tested based on the automatic testing system; in the test process, generating a scene test file based on the virtual scene simulation platform; testing is controlled and executed based on the upper computer management system, and a testing result is monitored. By means of the technical scheme, all operations of ADAS hardware-in-the-loop testing can be completed, and meanwhile the dependency of automatic testing on pre-building of a testing scene is reduced; the link of building test sequences one by one is omitted, and the problems of building massive test sequences and difficulty in later maintenance are solved; the method has no requirement for the version of the to-be-tested program, can be suitable for automatic testing of brand-new single or batch test cases, and is higher in adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle testing technology, and in particular to an ADAS hardware-in-the-loop automated testing method, device, equipment and storage medium. Background Art

[0002] In recent years, with the rapid development of Advanced Driver Assistance System (ADAS) technology, the demand for testing has exploded and the difficulty of testing has become increasingly greater. ADAS Hardware in the Loop (HIL) testing not only covers complex technical links such as scene simulation, sensor simulation, vehicle model, and ECU hardware fusion, but also involves the integrity and real-time synchronization requirements of multiple professional data fusions. This makes the HIL test of the ADAS system more complicated than conventional ECU testing, and requires the simultaneous simulation of millimeter-wave radar detection targets and camera capture test scenarios. How to quickly and massively conduct comprehensive coverage testing has become a problem that needs to be solved in the development and release of ADAS systems.

[0003] The existing automated testing method is to build an automated test sequence based on a third-party automated testing software architecture, which is not flexible enough and does not support certain specific testing requirements. At the same time, the existing automated test sequence is built manually, which makes it difficult to ensure the consistency and accuracy of all test sequence parameters with the expected parameters in the test case, resulting in a high error rate. Therefore, there is an urgent need for a highly accurate ADAS hardware-in-the-loop automated testing solution. Summary of the invention

[0004] The present invention provides an ADAS hardware-in-the-loop automated testing method, device, equipment and storage medium to solve the above-mentioned problems.

[0005] In one aspect, the present invention provides an ADAS hardware-in-the-loop automated testing method, the method comprising the following steps:

[0006] Step S1: Build a test case library and select the test cases to be tested;

[0007] Step S2: Testing the ADAS system to be tested based on the automated test system;

[0008] Step S3: During the test, a scene test file is generated based on the virtual scene simulation platform;

[0009] Step S4: Control the execution of the test based on the host computer management system and monitor the test results.

[0010] In one implementation of the present invention, the test case library is managed in the form of a test case table, and the test case table describes the test requirements in detail according to preset rules so that the automated testing system can automatically identify them.

[0011] In an implementation of the present invention, the test requirement is described based on a test requirement module, and the test requirement module includes a power-on reset module, a static scene description module, an event board module, and a monitoring and evaluation module.

[0012] In one implementation of the present invention, the automated testing system includes: an identification and positioning module, a scenario building module, and a control execution module.

[0013] In one implementation of the present invention, the identification and positioning module identifies and locates the expected test cases checked in the test case library, and translates the test cases described in the table text into a language recognized by the computer; the scenario building module is used to automatically build and generate a test scenario file consistent with the test case description based on the test case command translated by the computer; the control execution module is used to issue and execute test commands, control the virtual scene simulation platform and the host computer to collaboratively execute automated testing, and generate test results.

[0014] In one implementation of the present invention, the construction process of the scenario construction module is: according to the test scenario described in the test case, the OpenDRIVE file consistent with the test case description in the virtual scene simulation platform is retrieved, and the corresponding SCP instruction is sent to the virtual scene simulation platform, and an OpenSCENARIO test scenario file consistent with the test case description is generated based on the OpenDRIVE file.

[0015] In one implementation of the present invention, the scenario test file is an .xml road scenario file, which is a reasonable and free combination of road attributes to build an OpenDRIVE file that meets road regulations in a virtual scenario simulation platform.

[0016] The present invention also provides an ADAS hardware-in-the-loop automated testing device, the system comprising:

[0017] The case library building unit is used to build the test case library and check the test cases to be tested;

[0018] A test unit, used to test the ADAS system to be tested based on an automated test system;

[0019] A file generating unit, used to generate a scene test file based on a virtual scene simulation platform during the test process;

[0020] The management and monitoring unit is used to control the execution of tests and monitor the test results based on the upper computer management system.

[0021] The present invention also provides an ADAS hardware-in-the-loop automated testing device, the device comprising:

[0022] at least one processor; and,

[0023] a memory communicatively connected to the at least one processor; wherein,

[0024] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can complete the aforementioned ADAS hardware-in-the-loop automated testing method.

[0025] The present invention also provides a non-volatile computer storage medium for ADAS hardware-in-the-loop automated testing, which stores computer-executable instructions. The computer-executable instructions are executed by a processor to implement the aforementioned ADAS hardware-in-the-loop automated testing method.

[0026] The ADAS hardware-in-the-loop automated testing method, device, equipment and storage medium provided by the present invention have the following beneficial effects:

[0027] (1) The computer can automatically identify the variable parameters in the test case table to ensure the consistency and accuracy of the parameters in the automated test;

[0028] (2) It can automatically generate corresponding test scenario files, reducing the dependence of ADAS HIL automated testing on pre-built and debugged test scenarios;

[0029] (3) There is no need to build a test action library and a test sequence library, which solves the problem of cumbersome and long test sequence construction, and effectively reduces manpower and time costs;

[0030] (4) Only one general system is needed, and there is no need to build an automated test sequence for each test case. There is no need for secondary editing, and it can quickly adapt to changes in test requirements, solving the problem of high stability requirements for the program version to be tested in existing ADAS HIL automated testing;

[0031] (5) It is only related to the test case and is not affected by the simulation engineering model. It can be easily and quickly reused for different simulation test engineering models, reducing a lot of repetitive work and test preparation time, and solving the problem of high customization and poor reusability between test sequences and test model engineering in existing ADAS HIL automated testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0033] Figure 1 A flow chart of an ADAS hardware-in-the-loop automated testing method provided by the present invention;

[0034] Figure 2 Schematic diagram of the architecture of the automated testing system provided by the present invention

[0035] Figure 3 A composition diagram of an ADAS hardware-in-the-loop automated testing device provided by the present invention;

[0036] Figure 4 A schematic diagram of an ADAS hardware-in-the-loop automated testing device provided by the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0038] The present invention provides an ADAS hardware-in-the-loop automated testing method, device, equipment and storage medium, which solve the problems of cumbersome and long cycle in setting up test scenarios and test sequences in existing ADAS HIL automated testing, the problem of needing to set up massive test sequences and difficult later maintenance in existing ADASHIL automated testing, and the problem of high requirements for the stability of the version of the program to be tested in existing ADAS HIL automated testing; and the problem of high customization and poor reusability between the test sequence and the test model engineering in existing ADAS HIL automated testing. Based on hardware-in-the-loop equipment, advanced ADAS systems are automatically tested. The technical solution proposed in the present invention is described in detail below through the accompanying drawings.

[0039] Example 1

[0040] Figure 1 This is the first embodiment of the present invention, specifically providing a flow chart of an ADAS hardware-in-the-loop automated testing method. Figure 1 As shown, the method mainly includes the following steps:

[0041] Step S1: Build a test case library and select the test cases to be tested.

[0042] In this embodiment, the test case library is managed in a table form. The test case table modularizes and granularizes the test requirements according to defined rules so that the automation system can automatically identify them.

[0043] Furthermore, the test requirement module includes a power-on reset module, a static scene description module, an event board module, a monitoring and evaluation module and the like.

[0044] Furthermore, the checking of the test cases to be tested is to mark the test case numbers to be tested in the test case library, so that the automated testing system can identify and locate the test cases to be tested.

[0045] Step S2: Testing the ADAS system to be tested based on the automated test system.

[0046] In this embodiment, the automated testing system is a general automated testing system, including an identification and positioning module, a scene building module, and a control execution module. Figure 2 shown.

[0047] The identification and positioning module is used to identify and locate the desired test cases checked in the test case library, and translate the test cases described in the table text into a language recognized by the computer.

[0048] The scenario building module automatically builds and generates a test scenario file consistent with the test case description according to the test case command translated by the computer.

[0049] Furthermore, the scenario building module is an automated testing system that locates the test scenario described in the test case, retrieves the OpenDRIVE file in the virtual scenario simulation platform that is consistent with the test case description, sends corresponding SCP instructions to the virtual scenario simulation platform, and builds and generates an OpenSCENARIO test scenario file that is consistent with the test case description based on the OpenDRIVE file.

[0050] The control execution module is used to issue execution test commands, control the virtual scene simulation platform and the host computer to collaboratively execute automated tests, and generate test results.

[0051] Furthermore, the control execution module is an automated test system that assigns the event board control variable parameters in the test case table to the host computer system management software, and automatically controls the host computer platform management software to execute the test task.

[0052] Furthermore, the system has the function of completing all test operations with one click, can correctly call the OpenDRIVE files consistent with the test cases in sequence, generate OpenSCENARIO test scenario files consistent with the test cases, and control the host computer management software to perform automated testing. After the system runs in a loop to complete the automated testing of all checked test cases, it will output a complete test report.

[0053] Step S3: During the test, a scene test file is generated based on the virtual scene simulation platform.

[0054] In this embodiment, the virtual scene simulation platform generates a scene test file, which is used to provide a static road scene file required for the test and generate a dynamic test scene file.

[0055] Furthermore, the static scene file is an .xml road scene file, which is a reasonable and free combination of road attributes, and an OpenDRIVE file that meets road regulations is built in the virtual scene simulation platform.

[0056] Furthermore, the generated dynamic test scenario calls the OpenDRIVE file, adds the test entity and event board content in the OpenDRIVE file according to the SCP instruction issued by the automated test system, and generates an OpenSCENARIO test scenario file that conforms to the test case to support scenario simulation testing.

[0057] Furthermore, the test event board is used to describe the behavior of traffic participants, including the initial state of the traffic participants and the behavior changes during the traffic process.

[0058] Step S4: Control the execution of the test based on the host computer management system and monitor the test results.

[0059] In this embodiment, the host computer management system receives the test execution commands issued by the automated test system in sequence, starts executing the corresponding test steps, monitors the test step process and test results, and outputs the test results.

[0060] Furthermore, when a test model project is replaced in a virtual scene based ADAS system hardware-in-the-loop automated test system, only the system interface address name needs to be changed to run the test normally.

[0061] Embodiment 1 of the present invention specifically discloses an ADAS hardware-in-the-loop automated testing method. Through the technical solution of the present invention, a computer can automatically identify variable parameters in a test case table to ensure the consistency and accuracy of parameters in the automated test.

[0062] The technical solution of the present invention can automatically generate corresponding test scenario files, reducing the dependence of ADAS HIL automated testing on pre-built and debugged test scenarios.

[0063] The technical solution of the present invention does not require the construction of a test action library (a library of defined action labels) and a test sequence library (an execution project corresponding to each test case), thereby solving the problem of cumbersome and long-cycle test sequence construction and effectively reducing manpower and time costs.

[0064] The technical solution of the present invention only needs to maintain and update the test case table in the later stage, which solves the problem of difficulty in maintaining the test action library and the test sequence library in the later stage and greatly improves the test efficiency.

[0065] The technical solution of the present invention only requires a universal system. It does not require a one-to-one correspondence between each test case and an automated test sequence. It also does not require secondary editing and can quickly adapt to changes in test requirements. It solves the problem of high requirements on the stability of the program version to be tested in the existing ADAS HIL automated test.

[0066] The automation system of the solution of the present invention is only related to the test case and is not affected by the simulation engineering model. It can conveniently and quickly reuse different simulation test engineering models, reducing a lot of repetitive work and test preparation time, and solving the problems of high customization and poor reusability between test sequences and test model engineering in existing ADAS HIL automated testing.

[0067] Example 2

[0068] The above is an ADAS hardware-in-the-loop automated testing method provided by the present invention. Based on the same inventive concept, embodiment 2 of the present invention further provides an ADAS hardware-in-the-loop automated testing device. Figure 3 A composition diagram of an ADAS hardware-in-the-loop automated testing device provided by the present invention, such as Figure 3 As shown, the system mainly includes: a case library building unit 301, which is used to build a test case library and check the test cases to be tested; a test unit 302, which is used to test the ADAS system to be tested based on an automated test system; a file generation unit 303, which is used to generate a scenario test file based on a virtual scenario simulation platform during the test; a management and monitoring unit 304, which is used to control the execution of the test based on the upper computer management system and monitor the test results.

[0069] In addition to the above two embodiments, the present invention also provides an ADAS hardware-in-the-loop automated testing device, Figure 4 A schematic diagram of an ADAS hardware-in-the-loop automated testing device provided by the present invention is shown in FIG. Figure 4As shown, the device mainly includes: at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor; wherein the memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401 so that the at least one processor 401 can complete the aforementioned ADAS hardware-in-the-loop automated testing method.

[0070] In addition, the present invention also provides a non-volatile computer storage medium for ADAS hardware-in-the-loop automated testing, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the aforementioned ADAS hardware-in-the-loop automated testing method.

[0071] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0072] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0073] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0074] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0075] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various 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.

[0076] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0077] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. An ADAS hardware-in-the-loop automated testing method, characterized in that: The method comprises the following steps: Step S1: Build a test case library and select the test cases to be tested; Step S2: Testing the ADAS system to be tested based on the automated test system; Step S3: During the test, a scene test file is generated based on the virtual scene simulation platform; Step S4: Control the execution of the test based on the host computer management system and monitor the test results.

2. A ADAS hardware-in-the-loop automated testing method according to claim 1, characterized in that: The test case library is managed in the form of a test case table, and the test case table describes the test requirements in detail according to preset rules so that the automated testing system can automatically identify them.

3. A ADAS hardware-in-the-loop automated testing method according to claim 1, characterized in that: The test requirement is described based on a test requirement module, and the test requirement module includes a power-on reset module, a static scene description module, an event board module, and a monitoring and evaluation module.

4. A ADAS hardware-in-the-loop automated testing method according to claim 1, characterized in that: The automated testing system comprises: an identification and positioning module, a scene building module and a control execution module.

5. A ADAS hardware-in-the-loop automated testing method according to claim 4, characterized in that: The identification and positioning module identifies and locates the expected test cases checked in the test case library, and translates the test cases described in the table text into a language recognized by the computer; the scenario building module is used to automatically build and generate a test scenario file consistent with the test case description according to the test case command translated by the computer; The control execution module is used to issue execution test commands, control the virtual scene simulation platform and the host computer to collaboratively execute automated tests, and generate test results.

6. The ADAS hardware-in-the-loop automated testing method according to claim 5, characterized in that: The construction process of the scenario construction module is: according to the test scenario described in the test case, the OpenDRIVE file consistent with the test case description in the virtual scenario simulation platform is retrieved, and the corresponding SCP instruction is sent to the virtual scenario simulation platform, and the OpenSCENARIO test scenario file consistent with the test case description is generated based on the OpenDRIVE file.

7. The ADAS hardware-in-the-loop automated testing method according to claim 1, characterized in that: The scenario test file is an .xml road scenario file, which is a reasonable and free combination of road attributes to build an OpenDRIVE file that meets road regulations in a virtual scenario simulation platform.

8. An ADAS hardware-in-the-loop automated testing device, characterized in that: The device comprises: The case library building unit is used to build the test case library and check the test cases to be tested; A test unit, used to test the ADAS system to be tested based on an automated test system; A file generating unit, used to generate a scene test file based on a virtual scene simulation platform during the test process; The management and monitoring unit is used to control the execution of tests and monitor the test results based on the upper computer management system.

9. An ADAS hardware-in-the-loop automated testing device, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can complete the ADAS hardware-in-the-loop automated testing method described in any one of claims 1-7.

10. A non-volatile computer storage medium for ADAS hardware-in-the-loop automated testing, storing computer executable instructions, characterized in that: The computer executable instructions are executed by a processor to implement an ADAS hardware-in-the-loop automated testing method as described in any one of claims 1-7.