Vehicle function testing method, system, storage medium and vehicle

By constructing test cases and simulation models for closed-loop testing, the problems of low efficiency, high cost and insufficient coverage of rear-wheel steering system functional testing in the existing technology are solved, efficient and stable functional testing is achieved, and the ability of testing is improved Repeatability and coverage.

CN118467395BActive Publication Date: 2024-11-05CHINA FAW CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202410875259.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-11-05
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

In the prior art, the functional test of rear wheel steering (RWS) systems relies on actual vehicle tests, and there are problems such as high cost, low efficiency, poor repeatability and low test coverage, making it difficult to fully cover dangerous working conditions, extreme weather and Different road conditions.

Method used

The vehicle functional testing method is adopted to construct test cases and simulation models, and the target vehicle is run closed-loop test, generate rear wheel steering requests and receive responses, and use response data to perform fault analysis, generate test reports to improve test efficiency and coverage.

Benefits of technology

It realizes efficient, stable and comprehensive testing of the rear wheel steering function, reduces testing costs, improves the repeatability and coverage of tests, and avoids risks in real-life vehicle tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467395B_ABST
    Figure CN118467395B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle function test method, system, storage medium and vehicle, and relates to the field of vehicle technology and simulation test technology. The method comprises: constructing a test case according to the test requirement information corresponding to the rear-wheel steering function of the target vehicle; performing a closed-loop test on the target vehicle based on the test case and the simulation model to generate a rear-wheel steering request; sending the rear-wheel steering request to the rear-wheel steering component, and receiving the rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes the state data after the rear-wheel steering component performs the steering test action; using the rear-wheel steering response, performing fault analysis on the test case and generating a test report for the rear-wheel steering function. The present invention solves the technical problems of low efficiency, high cost, poor repeatability and low test coverage in the solution of the related art that relies on real vehicle tests to test the rear-wheel steering function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicles and simulation testing, and in particular to a vehicle function testing method, system, storage medium and vehicle. Background Art

[0002] The rear wheel steering (RWS) system is an important component of intelligent driving vehicles. At present, with the continuous development of intelligent driving technology, functional testing of the RWS system has also become one of the important issues in the design and development process of intelligent driving vehicles.

[0003] Most of the RWS system function test solutions provided in the prior art rely on actual vehicle tests after the RWS system is installed on the vehicle. However, actual vehicle tests have the following defects: high cost, requiring the purchase and maintenance of vehicles, roads and equipment; low efficiency, high time consumption, and the need to arrange test vehicles and testers for testing; high safety risks; large test site limits; poor repeatability; poor test coverage, especially difficult to cover dangerous conditions during driving, extreme weather, different road conditions and function inhibition conditions. Therefore, how to conduct efficient, stable, reliable and comprehensive functional testing of the RWS system has become one of the important technical issues in the relevant technical field.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a vehicle function testing method, system, storage medium and vehicle to at least solve the technical problems in the related art of relying on actual vehicle tests to perform rear-wheel steering function testing, which are low in efficiency, high in cost, poor in repeatability and low in test coverage.

[0006] According to one aspect of an embodiment of the present invention, a vehicle function testing method is provided, comprising: constructing a test case according to test requirement information corresponding to a rear-wheel steering function of a target vehicle; performing a closed-loop test on the target vehicle based on the test case and a simulation model to generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to components other than the rear-wheel steering component in the target vehicle; sending the rear-wheel steering request to the rear-wheel steering component, and receiving a rear-wheel steering response returned by the rear-wheel steering component, wherein data carried by the rear-wheel steering response includes status data after the rear-wheel steering component performs a steering test action; and utilizing the rear-wheel steering response to perform a fault analysis on the test case to generate a test report for the rear-wheel steering function.

[0007] Optionally, based on the test requirement information corresponding to the rear-wheel steering function of the target vehicle, constructing a test case includes: obtaining the test requirement information input through the test interface; extracting the test conditions corresponding to the rear-wheel steering function from the test requirement information; decomposing the test requirement information into performance indicators and determining multiple test indicators; generating a test sequence to be executed based on the test requirement information, multiple test indicators and a preset test specification file; and constructing a test case based on the test conditions, multiple test indicators and test sequence.

[0008] Optionally, the multiple test indicators include a test range, a test depth, a test mode and a test evaluation criterion, the test range is used to determine multiple functional characteristics to be tested corresponding to the rear-wheel steering function, the test depth is used to determine the abnormality types to be tested corresponding to the multiple functional characteristics, the test mode is used to determine the type of test technology to be used, and the test evaluation criterion is used to determine at least one indicator to be evaluated and the indicator threshold corresponding to the indicator to be evaluated.

[0009] Optionally, generating a test sequence according to test requirement information, multiple test indicators and preset test specification data includes: obtaining system parameter information pre-configured for the target vehicle; performing functional logic analysis on the test specification file to obtain test logic data; generating an initial sequence based on the test requirement information, system parameter information, multiple test indicators and test logic data; and debugging the initial sequence using preset debugging rules to obtain a test sequence.

[0010] Optionally, the test case includes a test condition, multiple test indicators and a test sequence; based on the test case and the simulation model, a closed-loop test is performed on the target vehicle, and generating a rear-wheel steering request includes: generating test data based on the test condition and the vehicle dynamics model in the simulation model, wherein the test data includes: vehicle driving data, driving behavior data and road environment data; using the test data and the test sequence, a closed-loop test of a person, vehicle and road is performed on the target vehicle, and a rear-wheel steering request is generated, wherein the rear-wheel steering request is at least used to determine the steering test action to be performed by the rear-wheel steering component during the closed-loop test of the person, vehicle and road.

[0011] Optionally, the test data and the test sequence are used to perform a closed-loop test of a person, vehicle and road on the target vehicle, and generating a rear-wheel steering request includes: based on the test data, controlling the simulation model to execute the test sequence to obtain an execution result; extracting partial data related to the rear-wheel steering function from the execution result, wherein the partial data includes at least: switch status data of multiple auxiliary driving functions in the automatic driving system, steering wheel angle data, steering yaw angular velocity data, wheel speed data and acceleration data; and generating a rear-wheel steering request using the partial data.

[0012] Optionally, sending the rear-wheel steering request to the rear-wheel steering component includes: sending the rear-wheel steering request to a steering controller in the rear-wheel steering component to trigger the steering controller to analyze part of the data carried in the rear-wheel steering request, generate a steering test action, and control the rear-wheel steering component to perform the steering test action.

[0013] Optionally, the rear-wheel steering response is used to perform fault analysis on the test case, and generating a test report for the rear-wheel steering function includes: determining the true value of the indicator corresponding to the indicator to be evaluated based on the status data in the rear-wheel steering response; comparing the true value of the indicator with the indicator threshold to obtain the test result corresponding to the rear-wheel steering function, wherein the test result is used to determine the abnormal indicator in the indicator to be evaluated, and the abnormal indicator is used to determine the faulty functional characteristics from multiple functional characteristics; and generating a test report based on the test results.

[0014] Optionally, the vehicle function testing method further includes: acquiring fault condition data to be injected; injecting the fault condition data into the rear wheel steering request, and updating the rear wheel steering request.

[0015] Optionally, the vehicle function testing method further includes: utilizing rear wheel steering response and fault condition data to perform fault tracking on the test case and generate a test report.

[0016] According to another aspect of an embodiment of the present invention, a vehicle function testing system is also provided, comprising: a host computer, a simulation platform and a rear-wheel steering component of a target vehicle; the host computer is used to: construct a test case according to the test requirement information corresponding to the rear-wheel steering function of the target vehicle; the simulation platform is used to: perform a closed-loop test on the target vehicle based on the test case and the simulation model, and generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear-wheel steering component; the simulation platform is also used to: send the rear-wheel steering request to the rear-wheel steering component, and receive the rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes the status data of the rear-wheel steering component after executing the steering test action; the host computer is also used to: use the rear-wheel steering response to perform fault analysis on the test case, and generate a test report for the rear-wheel steering function; the rear-wheel steering component is used to: generate and execute a steering test action based on the rear-wheel steering request.

[0017] According to another aspect of an embodiment of the present invention, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above-mentioned vehicle function testing methods.

[0018] According to another aspect of an embodiment of the present invention, a vehicle is provided, including an on-board memory and an on-board processor, wherein a computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program to execute any one of the above-mentioned vehicle function testing methods.

[0019] In an embodiment of the present invention, a test case is constructed according to the test requirement information corresponding to the rear wheel steering function of the target vehicle; based on the test case and the simulation model, a closed-loop test is performed on the target vehicle to generate a rear wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear wheel steering component; the rear wheel steering request is sent to the rear wheel steering component, and a rear wheel steering response returned by the rear wheel steering component is received, wherein the data carried by the rear wheel steering response includes the state data after the rear wheel steering component performs the steering test action; the rear wheel steering response is used to perform fault analysis on the test case and generate a test report of the rear wheel steering function. Thus, the embodiment of the present invention can achieve the purpose of performing simulation function testing on the rear wheel steering function of the vehicle, thereby achieving the technical effect of improving the test efficiency, stability and comprehensive coverage of the rear wheel steering function, and further solving the technical problems of low efficiency, high cost, poor repeatability and low test coverage of the solution that relies on real vehicle testing for rear wheel steering function testing in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. 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:

[0021] Figure 1 is a hardware structure block diagram of an optional vehicle terminal for a vehicle function testing method according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of a vehicle function testing method according to an embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of an optional automated test system architecture for rear-wheel steering function according to an embodiment of the present invention;

[0024] Figure 4 is a schematic structural diagram of an optional host computer according to an embodiment of the present invention;

[0025] Figure 5 is a schematic structural diagram of an optional hardware-in-the-loop test platform and a rear-wheel steering control system assembly according to an embodiment of the present invention;

[0026] Figure 6is a schematic diagram of an optional implementation process of automatic testing of a rear wheel steering function according to an embodiment of the present invention;

[0027] Figure 7 is a structural block diagram of a vehicle function testing device according to an embodiment of the present invention;

[0028] Figure 8 4 is a schematic diagram of the architecture of a vehicle function testing system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings 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 described herein can be implemented in an order other than those illustrated or described herein. 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 device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] According to an embodiment of the present invention, an embodiment of a vehicle function testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0032] Figure 1 is a hardware structure block diagram of a vehicle terminal for a vehicle function testing method according to an embodiment of the present invention, such as Figure 1As shown, the vehicle terminal 10 (or a mobile device 10 that is communicatively associated with the vehicle) may include one or more processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor (Microcontroller Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA)), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display device 110, an input / output device 108 (i.e., an I / O device), a Universal Serial Bus (USB) port (which may be included as one of the ports of a computer bus, not shown in the figure), a network interface (not shown in the figure), a power supply (not shown in the figure) and / or a camera (not shown in the figure). It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the vehicle terminal 10. For example, the vehicle terminal 10 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0033] It should be noted that the one or more processors 102 and / or other data processing circuits may be embodied in whole or in part as software, hardware, firmware or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be integrated in whole or in part into any of the other components in the vehicle terminal 10 (or mobile device).

[0034] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the vehicle function test method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned vehicle function test method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the vehicle terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0035] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the vehicle terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0036] Under the above operating environment, the embodiment of the present invention provides the following Figure 2 The vehicle function test method shown, Figure 2 is a flow chart of a vehicle function testing method according to an embodiment of the present invention. Figure 2 As shown, the method includes the following implementation steps:

[0037] Step S201, constructing a test case according to the test requirement information corresponding to the rear wheel steering function of the target vehicle;

[0038] Step S202, based on the test case and the simulation model, a closed-loop test is performed on the target vehicle to generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear-wheel steering component;

[0039] Step S203, sending a rear-wheel steering request to the rear-wheel steering component, and receiving a rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes state data after the rear-wheel steering component performs a steering test action;

[0040] Step S204, using the rear wheel steering response, performing fault analysis on the test case and generating a test report of the rear wheel steering function.

[0041] The above-mentioned test requirement information can be the data of the rear-wheel steering function input by the technician according to the application scenario requirements. The test case constructed according to the test requirement information can be used to determine the test behavior that the simulation model can execute. The above-mentioned simulation model is a virtual vehicle model corresponding to the target vehicle, and the virtual vehicle model does not contain the virtual component corresponding to the rear-wheel steering component, but contains virtual components corresponding to other components except the rear-wheel steering component. When the virtual vehicle model executes the test behavior, the test instruction involving the rear-wheel steering function is executed by the real rear-wheel steering component to be tested, and the state data of the rear-wheel steering component after executing the test instruction is collected, and the virtual vehicle model can process other test instructions in the test case according to the state data. Further, the test host computer can use the rear-wheel steering response returned by the rear-wheel steering component to generate a test report of the rear-wheel steering function, and the test report can determine whether the rear-wheel steering function has a functional abnormality or functional failure.

[0042] In an embodiment of the present invention, a test case is constructed according to the test requirement information corresponding to the rear wheel steering function of the target vehicle; based on the test case and the simulation model, a closed-loop test is performed on the target vehicle to generate a rear wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear wheel steering component; the rear wheel steering request is sent to the rear wheel steering component, and a rear wheel steering response returned by the rear wheel steering component is received, wherein the data carried by the rear wheel steering response includes the state data after the rear wheel steering component performs the steering test action; the rear wheel steering response is used to perform fault analysis on the test case and generate a test report of the rear wheel steering function. Thus, the embodiment of the present invention can achieve the purpose of performing simulation function testing on the rear wheel steering function of the vehicle, thereby achieving the technical effect of improving the test efficiency, stability and comprehensive coverage of the rear wheel steering function, and further solving the technical problems of low efficiency, high cost, poor repeatability and low test coverage of the solution that relies on real vehicle testing for rear wheel steering function testing in the related art.

[0043] In an application scenario, according to the above solution of the embodiment of the present invention, the following is provided: Figure 3 The automated test system architecture of a rear-wheel steering function is shown. The automated test system includes a host computer 301, a hardware-in-the-loop (HIL) simulation platform 302, and a rear-wheel steering control system assembly 303. The host computer 301 is connected to the HIL simulation platform 302 via Ethernet; the HIL simulation platform 302 is connected to the rear-wheel steering control system assembly 303 via a CAN bus and a hard line.

[0044] The above method of the embodiment of the present invention is further introduced below in conjunction with the above automated testing system architecture.

[0045] Optionally, in the above step S201, constructing a test case according to the test requirement information corresponding to the rear wheel steering function of the target vehicle may further include the following execution steps:

[0046] Step S211, obtaining test requirement information input through the test interface;

[0047] Step S212, extracting the test conditions corresponding to the rear wheel steering function from the test requirement information;

[0048] Step S213, decomposing the test requirement information into performance indicators to determine multiple test indicators;

[0049] Step S214, generating a test sequence to be executed according to the test requirement information, multiple test indicators and a preset test specification file;

[0050] Step S215, constructing a test case based on the test conditions, multiple test indicators and test sequences.

[0051] In an exemplary application scenario, according to Figure 4 The upper computer 301 is a schematic diagram of a structure of the upper computer 301, which is composed of a test management module and an automated test module. The upper computer 301 includes a test product library 41.

[0052] The test product library 41 also includes: a test strategy library 411, which is an analysis file of the entire test process; a test specification library 412, which is the basis and standard for test implementation; a test sequence library 413, which is used to build executable test sequences and update each test sequence library; a test result library 414, which refers to the results of executing the automated testing process, generates test reports and tracks test defects.

[0053] Specifically, the test strategy library 411 includes: a test tracking matrix 4111 and an input and output parameter table 4112. The test specification library 412 includes: a functional logic library 4121, a parameter configuration library 4122, and a digital dictionary 4123. The test sequence library 413 includes: a test sequence building 4131, an action library building 4132, a parameter mapping library building 4133, a mapping file library building 4134, a test script module 4135, and a test implementation module 4136. The test result library 414 includes: a test defect tracking module 4141 and a test report generation module 4142.

[0054] Furthermore, based on the virtual simulation test environment of the rear-wheel steering control system, the upper computer 301 decomposes the test requirement information of the integrated rear-wheel steering system into performance indicators, and determines the specific test scope, test depth, test technology, test method and test result evaluation criteria by the test tracking matrix 4111 and the input and output parameter table 4112, and outputs the above-mentioned test scope, test depth, test technology, test method and test result evaluation criteria to the functional logic library 4121, parameter configuration library 4122 and digital dictionary 4123 accordingly.

[0055] Based on the structure of the host computer 301, the functional logic library 4121 describes the input and output interfaces of the design functions and guides the construction of the test sequence and action library; the parameter configuration library 4122 performs system configuration; the digital dictionary 4123 manages the data dictionary variables used by the user, and outputs the data to the parameter mapping library 4133 and the mapping file library 4134, and writes the code or graphical test steps for automatic test execution. The test implementation module 4136 runs the written and debugged automated test program to perform tests on the rear wheel steering control system; the test defect tracking module 4141 and the test report generation module 4142 summarize and manage the documents after the test program is run, including whether the test results meet the evaluation criteria.

[0056] According to the execution steps provided in the embodiment of the present invention, the test requirement information input by the user to the host computer through the test interface is obtained. The test requirement information is used to determine the rear-wheel steering function test task to be completed. The above-mentioned host computer can extract the test conditions corresponding to the rear-wheel steering function from the test requirement information. Further, the host computer can also decompose the test requirement information into performance indicators to obtain the above-mentioned multiple test indicators. Multiple test indicators can be used to determine the evaluation criteria for the test results. Further, the host computer generates a test sequence to be executed based on the test requirement information, multiple test indicators and a preset test specification file; and based on the test conditions, multiple test indicators and test sequences, a test case is constructed, which can be characterized as: the virtual vehicle model and the rear-wheel steering component execute the test sequence under the test conditions, and the execution results of the test sequence are evaluated and analyzed according to multiple test indicators to obtain the test results.

[0057] Optionally, in the above-mentioned vehicle function testing method, the multiple test indicators include a test range, a test depth, a test mode and a test evaluation criterion, the test range is used to determine a plurality of functional characteristics to be tested corresponding to the rear-wheel steering function, the test depth is used to determine the abnormality types to be tested corresponding to the plurality of functional characteristics, the test mode is used to determine the type of test technology to be used, and the test evaluation criterion is used to determine at least one indicator to be evaluated and an indicator threshold corresponding to the indicator to be evaluated.

[0058] In vehicle function simulation testing, the test scope is used to determine which functions of the vehicle are tested and verified. This includes the test scope of various functional modules, system functions, and overall functions of the vehicle. Determining the test scope is very important for the accuracy and comprehensiveness of the test. It can help testers clarify the goals and scope of the test to ensure that the test covers all functions that need to be verified, and help improve the efficiency and quality of the test.

[0059] In vehicle function simulation testing, test depth is used to determine the extent of test coverage of functions and scenarios. The higher the test depth, the more comprehensive the functions and scenarios covered by the test, and the better it can verify whether the various functions of the vehicle are operating normally. Test depth usually includes functional testing, performance testing, compatibility testing, safety testing and other aspects. The choice of test depth depends on the purpose and needs of the test. Generally speaking, the higher the test depth, the more time and resources required for testing.

[0060] In the vehicle function simulation test, the test mode can be used to determine the type of test technology to be used in the test. For example, the test technology type can be fault injection technology, interruption test technology, availability test technology, etc. The indicators to be evaluated determined by the above test evaluation criteria include: stability index, reliability index, safety index, compatibility index, comfort index, environmental protection index and economic index, etc. According to the application scenario requirements, indicator thresholds can be determined for the above indicators to be evaluated.

[0061] Therefore, the vehicle function testing solution provided according to the embodiment of the present invention can automatically construct test cases according to the test requirement information input by the user to support the automated testing of the rear-wheel steering function, with high testing efficiency and low cost.

[0062] Optionally, in the above step S214, generating a test sequence according to the test requirement information, multiple test indicators and preset test specification data may also include the following execution steps:

[0063] Step S2141, obtaining system parameter information pre-configured for the target vehicle;

[0064] Step S2142, performing functional logic analysis on the test specification file to obtain test logic data;

[0065] Step S2143, generating an initial sequence based on the test requirement information, the system parameter information, the multiple test indicators and the test logic data;

[0066] Step S2144: Debug the initial sequence using the preset debugging rules to obtain a test sequence.

[0067] Still like Figure 4As shown, based on the structure of the host computer 301, the system parameter information pre-configured for the target vehicle can be the configuration information obtained by the parameter configuration library 4122 for system configuration. The content recorded in the test specification file can include: the test specification pre-defined for the rear wheel steering test task of the vehicle. The host computer 301 performs functional logic analysis on the test specification file to obtain test logic data, which can be stored in the functional logic library 4121 to guide the construction of the test sequence and the test action library. Further, the test script module 4135 in the host computer can generate an initial sequence based on the test requirement information, system parameter information, multiple test indicators and test logic data, and then use the preset debugging rules to debug the initial sequence to obtain the test sequence. Further, the test script module 4135 sends the test sequence after debugging to the test implementation module 4136.

[0068] It should be noted that the parameter configuration in the above-mentioned parameter configuration library 4122, the data dictionary variables in the digital dictionary 4123, the parameter mapping information in the parameter mapping library construction 4133 and the mapping files in the mapping file library construction 4134 can also assist the test script module 4135 in generating a test sequence according to the test requirements of the rear-wheel steering function.

[0069] Optionally, the test case includes a test condition, multiple test indicators and a test sequence; in the above step S202, based on the test case and the simulation model, a closed-loop test is performed on the target vehicle to generate a rear-wheel steering request, and the following execution steps may also be included:

[0070] Step S221, generating test data based on the test conditions and the vehicle dynamics model in the simulation model, wherein the test data includes: vehicle travel data, driving behavior data and road environment data;

[0071] Step S222, using the test data and the test sequence, performs a closed-loop test on the target vehicle to generate a rear-wheel steering request, wherein the rear-wheel steering request is at least used to determine the steering test action to be performed by the rear-wheel steering component during the closed-loop test.

[0072] In an exemplary application scenario, according to Figure 5 A schematic structural diagram of a hardware-in-the-loop test platform 302 and a rear-wheel steering control system assembly 303 is shown.

[0073] like Figure 5As shown, the HIL simulation platform 302 includes: a real-time processor 521, an IO board 522, an IO board 528, a CAN board 523, a fault injection board 524, a fault injection board 527, a signal conditioning module 525, and a programmable power supply 526. The real-time processor 521 is loaded with a vehicle dynamics model, which includes a vehicle model, a driver model, a virtual controller model, a sensor model, and a road model.

[0074] According to the above-mentioned execution steps provided by the embodiment of the present invention, the real-time processor 521 in the HIL simulation platform 302 can generate test data based on the test conditions and the vehicle dynamics model in the simulation model, and the test data can be the basic data when the human-vehicle-road closed-loop test is performed on the target vehicle. For example, the test data includes the vehicle driving data of the target vehicle during driving, the driving behavior data is used to determine the driving behavior to be performed in the rear wheel steering function test of the target vehicle, and the above-mentioned road environment data includes the road data and environment perception data corresponding to the target vehicle.

[0075] Furthermore, the real-time processor 521 can perform a closed-loop test of the target vehicle and generate a rear-wheel steering request based on the test data and the test sequence. The rear-wheel steering request can control the rear-wheel steering component to perform a corresponding steering test action during the execution of the test sequence by the virtual model of the target vehicle.

[0076] Optionally, in the above step S222, using the test data and the test sequence to perform a human-vehicle-road closed-loop test on the target vehicle to generate a rear-wheel steering request may also include the following execution steps:

[0077] Step S2221, based on the test data, controlling the simulation model to execute the test sequence and obtaining the execution result;

[0078] Step S2222, extracting partial data related to the rear-wheel steering function from the execution result, wherein the partial data at least includes: switch state data of multiple auxiliary driving functions in the automatic driving system, steering wheel angle data, steering yaw angular velocity data, wheel speed data and acceleration data;

[0079] Step S2223, using partial data to generate a rear wheel steering request.

[0080] Still like Figure 5As shown, the rear-wheel steering control system assembly 303 includes a rear-wheel steering controller 531, a motor 532, a reducer 533, a shock absorber 534, an angle sensor 535 and a steering column 536. Based on the structure of the above HIL simulation platform 302 and the rear-wheel steering control system assembly 303, the vehicle dynamics model is used to simulate the closed-loop system of human-vehicle-road, and the driver model can output brake, throttle and steering wheel angle signals in real time according to the current driving state; the virtual controller model is used to send various related controller state signals to the vehicle dynamics model; the sensor model is used to simulate the sensor and output the sensor value; the road model is used to simulate the real vehicle road scene and dynamically simulate the road surface information according to the test working condition; the vehicle model can collect various signals (that is, the above-mentioned part of the data) and output them to the rear-wheel steering controller 531 through hardware. The rear-wheel steering controller 531 calculates and outputs the control motor 532 and the reducer 533 according to the received signal value, the steering column 536 performs the steering action, and the angle sensor 535 collects the rear wheel steering angle in real time and inputs it to the vehicle dynamics model. By calculating the rear wheel steering action, the vehicle dynamics model calculates the current vehicle state, wheel speed and acceleration value and inputs them to the rear wheel steering controller to form a closed loop. The real-time processor 521 is connected to the IO board 522, IO board 528, and CAN board 523 through the PCI eXtensions for Instrumentation (PXI) bus, where PCI refers to Peripheral Component Interconnect; the rear wheel steering control system assembly is powered by the programmable power supply 526.

[0081] According to the above execution steps provided by the embodiment of the present invention, the real-time processor 521 in the HIL simulation platform can control the simulation model to execute the test sequence based on the test data to obtain the execution result; further, the following partial data are extracted from the execution result: the switch state data of multiple auxiliary driving functions in the automatic driving system, the steering wheel angle data, the steering yaw rate data, the wheel speed data and the acceleration data. For example, the multiple auxiliary driving functions include the auxiliary power switch function (Accessory, referred to as ACC) and the automatic parking assist function (Automatic Parking Assist, referred to as APA). Correspondingly, the switch state data of the above multiple auxiliary driving functions include: ACC switch signal, APA switch signal. The steering wheel angle data is recorded in the steering wheel angle signal. The above steering yaw rate (YAW rate) data can be recorded in the YAW signal. The above acceleration data includes the acceleration information of the vehicle in the lateral and longitudinal directions. Further, the HIL simulation platform will generate a rear wheel steering request based on some of the data.

[0082] Optionally, in the above step S203, sending the rear wheel steering request to the rear wheel steering component may further include the following execution steps:

[0083] Step S231, sending the rear-wheel steering request to the steering controller in the rear-wheel steering component to trigger the steering controller to analyze part of the data carried in the rear-wheel steering request, generate a steering test action, and control the rear-wheel steering component to perform the steering test action.

[0084] Still like Figure 5 As shown, the HIL simulation platform 302 sends the rear-wheel steering request to the steering controller 531 in the rear-wheel steering control system assembly 303. Then, the steering controller 531 analyzes part of the data carried in the rear-wheel steering request, generates a steering test action, and controls the rear-wheel steering component of the vehicle to perform the steering test action. Further, the rear-wheel steering control system assembly 303 uses the state data after the rear-wheel steering component performs the steering test action as the rear-wheel steering response return value HIL simulation platform 302.

[0085] In addition, the HIL simulation platform 302 can also actively retrieve the state data of the rear wheel steering component after performing the steering test action to obtain the data corresponding to the above rear wheel steering response.

[0086] Through the above-mentioned execution steps provided by the embodiment of the present invention, a test sequence is automatically generated according to the test requirement information, the rear-wheel steering component is controlled to perform the steering test action and the state data after the rear-wheel steering component performs the steering test action is automatically retrieved, and the state data can characterize the functional characteristics of the rear-wheel steering function corresponding to the rear-wheel steering component.

[0087] Optionally, in the above step S204, using the rear wheel steering response to perform fault analysis on the test case and generate a test report of the rear wheel steering function, the following execution steps may also be included:

[0088] Step S241, determining the true value of the indicator corresponding to the indicator to be evaluated based on the state data in the rear wheel steering response;

[0089] Step S242, comparing the real value of the indicator with the indicator threshold to obtain a test result corresponding to the rear-wheel steering function, wherein the test result is used to determine an abnormal indicator among the indicators to be evaluated, and the abnormal indicator is used to determine a faulty functional characteristic from a plurality of functional characteristics;

[0090] Step S243, generating a test report according to the test results.

[0091] According to the above-mentioned execution steps of the embodiment of the present invention, Figure 5As shown, after the rear-wheel steering response is returned to the real-time processor 521 in the HIL simulation platform 302, the real-time processor 521 determines the true value of the indicator corresponding to the indicator to be evaluated based on the state data in the rear-wheel steering response, and further, compares the true value of the indicator corresponding to each indicator to be evaluated with the indicator threshold to obtain the test result corresponding to the rear-wheel steering function. Specifically, according to the indicator threshold, some abnormal indicators with abnormalities are selected from multiple indicators to be evaluated. For example, if the true value of the indicator corresponding to a certain indicator to be evaluated is less than the indicator threshold, it means that the indicator to be evaluated is abnormal, and the indicator to be evaluated is determined as an abnormal indicator. Further, a test report is generated based on the above test results.

[0092] Optionally, the vehicle function testing method may further include the following method steps:

[0093] Step S251, obtaining fault condition data to be injected;

[0094] Step S252, injecting the fault condition data into the rear wheel steering request to update the rear wheel steering request.

[0095] In the application scenario, the fault injection technology can be used to simulate the function test of the rear wheel steering function. The above-mentioned fault condition data to be injected can be pre-set by the user according to the application scenario requirements, or it can be automatically generated by the host computer or HIL simulation platform according to the test requirement information. The fault condition data is injected into the rear wheel steering request, and the updated rear wheel steering request contains the fault test sequence corresponding to the fault condition data.

[0096] For example, a rear-wheel steering function test solution based on fault injection includes the following processes: clarify the test objectives of the rear-wheel steering function (such as test scope and test depth); analyze the functional design documents corresponding to the rear-wheel steering function to identify potential functional failure points; select appropriate fault injection techniques (such as modifying the code to introduce faults, simulating environmental anomalies, etc.) according to the test objectives and functional failure points; according to the selected fault injection technology, automatically inject pre-defined fault condition data into the rear-wheel steering request, which can simulate the rear-wheel steering failure that occurs when the rear-wheel steering component is under fault conditions.

[0097] Optionally, the vehicle function testing method may further include the following method steps:

[0098] Step S206, using the rear wheel steering response and fault condition data, fault tracking is performed on the test case and a test report is generated.

[0099] According to the above method steps of an embodiment of the present invention, the updated rear-wheel steering request after fault injection is sent to the rear-wheel steering component, and the rear-wheel steering response returned by the rear-wheel steering component is received; further, the rear-wheel steering response and fault condition data are used to track the fault of the test case and generate a test report.

[0100] For example, the rear-wheel steering function test solution based on fault injection includes the following process: after obtaining the rear-wheel steering component to perform the corresponding steering test action according to the rear-wheel steering request, analyze the performance and output results of the rear-wheel steering component according to the rear-wheel steering response, and record the behavior and fault phenomenon of the rear-wheel steering control system assembly. Furthermore, according to the fault condition data injected in the rear-wheel steering request and the rear-wheel steering response, the test case is fault tracked to obtain a test report, which may include information such as the test technology, test results, fault problem description, fault problem location and fault repair strategy.

[0101] Still like Figure 4 As shown, after the HIL simulation platform 302 sends the test report back to the host computer 301, the test defect tracking module 4141 and the test report generation module 4142 in the host computer 301 summarize and manage the test report after the functional test sequence is run, and provide fault repair strategy suggestions.

[0102] The present invention provides a low-cost, simple-structured rear-wheel steering system interface function test device and test process. Under the condition that the use case is well built, the device can not only complete the basic function test of RWS at different vehicle speeds and different working conditions, but also complete the test of the rear-wheel steering system automatic driving interface function. This innovation solves the previous problems of high cost, incomplete coverage, and easy errors.

[0103] According to the above-mentioned execution steps of the embodiment of the present invention, the following is provided: Figure 6 Specifically, in combination with the above Figure 3 , Figure 4 and Figure 5 The automated test system structure of the rear wheel steering function is shown, and the implementation process of the automated test is as follows.

[0104] The real-time processor 521 in the HIL simulation platform 302 sends signals such as automatic driving, vehicle speed, steering wheel angle, longitudinal acceleration, and lateral acceleration to the rear-wheel steering control system assembly 303 through the IO board 522 according to the working conditions of each working mode of the rear-wheel steering control system. The rear-wheel steering control system assembly 303 receives and analyzes these input data in real time to achieve system state adjustment of the rear-wheel steering control system and adjustment of the rear-wheel steering components.

[0105] The real-time processor 521 in the HIL simulation platform 302 is connected to the I / O board 522 and the I / O board 528 via a PXI bus, and the I / O board 522 and the I / O board 528 can be used to retrieve the state information of the rear-wheel steering control system by the real-time processor 521. A fault injection board 524 is added between the I / O board 522 and the rear-wheel steering controller 531 to perform a fault condition test. Through the control of the host computer 301, a comprehensive and systematic functional test can be performed on the rear-wheel steering control system assembly 303.

[0106] like Figure 6 As shown, after the rear-wheel steering control system test program is started, the corner motor turns to the initial position (the initialized corner motor is calibrated to 0° in this example); the automatic driving controller sends a rear-wheel steering request, and the data carried in the rear-wheel steering request includes the expected target position and target angular velocity; the RWS controller responds to the rear-wheel steering request to control the corner motor to rotate to the expected target position; further, it is determined whether the corner motor reaches the target position and whether the angular velocity of the corner motor reaches the target angular velocity. If satisfied, the function interruption condition is input into the rear-wheel steering request, and it is further determined whether the interface signal of the rear-wheel steering control system contains exit information; if not satisfied, it returns to the step of the automatic driving controller sending the rear-wheel steering request. Further, if the interface signal of the rear-wheel steering control system contains exit information, it returns to the step of the automatic driving controller sending the rear-wheel steering request. If the interface signal of the rear-wheel steering control system does not contain exit information, the position of the corner motor is adjusted to the initial position, indicating that the rear-wheel steering control system test program is exited.

[0107] The advantages of the above-mentioned rear-wheel steering function automated testing solution provided by the embodiment of the present invention include: convenient and easy real-time generation of test codes, and convenience in downloading and debugging relevant files of the software environment required for the test.

[0108] In summary, the above scheme provided by the embodiment of the present invention can save the test personnel from the need to perform repetitive and boring testing work. By starting the automated test system for the rear-wheel steering function and checking the test report, it can be determined whether the rear-wheel steering control function of the rear-wheel steering assembly to be tested is abnormal. Compared with the actual vehicle test, the above scheme provided by the embodiment of the present invention can shorten the test cycle and cost of the functional test, improve the test efficiency, and increase the test coverage and depth.

[0109] In addition, the beneficial effects of the above-mentioned scheme provided by the embodiment of the present invention include: being able to automatically realize the interface function test of the rear-wheel steering control system assembly; being able to avoid the test risks in the actual vehicle test while covering all actual vehicle test conditions and other extreme conditions; being able to effectively control the test conditions, the test requirement information can be flexibly customized, and the test process has a high degree of reusability.

[0110] In this embodiment, a vehicle function test device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, a "module" is a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0111] Figure 7 is a structural block diagram of a vehicle function testing device according to an embodiment of the present invention. Figure 7 As shown, the device comprises:

[0112] A construction module 701 is used to construct a test case according to the test requirement information corresponding to the rear wheel steering function of the target vehicle;

[0113] A test module 702 is used to perform a closed-loop test on the target vehicle based on the test case and the simulation model to generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear-wheel steering component;

[0114] The receiving module 703 is used to send the rear-wheel steering request to the rear-wheel steering component, and receive the rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes the state data of the rear-wheel steering component after performing the steering test action;

[0115] The generating module 704 is used to perform fault analysis on the test case by using the rear wheel steering response and generate a test report of the rear wheel steering function.

[0116] Optionally, the above-mentioned construction module 701 is also used to: obtain test requirement information input through the test interface; extract the test conditions corresponding to the rear-wheel steering function from the test requirement information; decompose the test requirement information into performance indicators and determine multiple test indicators; generate a test sequence to be executed based on the test requirement information, multiple test indicators and a preset test specification file; and construct a test case based on the test conditions, multiple test indicators and a test sequence.

[0117] Optionally, in the above-mentioned vehicle function testing device, the multiple test indicators include a test range, a test depth, a test mode and a test evaluation criterion, the test range is used to determine the multiple functional characteristics to be tested corresponding to the rear-wheel steering function, the test depth is used to determine the abnormality types to be tested corresponding to the multiple functional characteristics, the test mode is used to determine the type of test technology to be used, and the test evaluation criterion is used to determine at least one indicator to be evaluated and the indicator threshold corresponding to the indicator to be evaluated.

[0118] Optionally, the above-mentioned construction module 701 is also used to: obtain system parameter information pre-configured for the target vehicle; perform functional logic analysis on the test specification file to obtain test logic data; generate an initial sequence based on test requirement information, system parameter information, multiple test indicators and test logic data; use preset debugging rules to debug the initial sequence to obtain a test sequence.

[0119] Optionally, the test case includes a test condition, multiple test indicators and a test sequence; the above-mentioned test module 702 is also used to: generate test data based on the test condition and the vehicle dynamics model in the simulation model, wherein the test data includes: vehicle driving data, driving behavior data and road environment data; use the test data and the test sequence to perform a human-vehicle-road closed-loop test on the target vehicle, and generate a rear-wheel steering request, wherein the rear-wheel steering request is at least used to determine the steering test action to be performed by the rear-wheel steering component during the human-vehicle-road closed-loop test.

[0120] Optionally, the above-mentioned test module 702 is also used to: control the simulation model to execute the test sequence based on the test data to obtain the execution results; extract partial data related to the rear-wheel steering function from the execution results, wherein the partial data at least includes: switch status data of multiple auxiliary driving functions in the automatic driving system, steering wheel angle data, steering yaw angular velocity data, wheel speed data and acceleration data; and generate a rear-wheel steering request using the partial data.

[0121] Optionally, the above-mentioned receiving module 703 is also used to: send the rear-wheel steering request to the steering controller in the rear-wheel steering component to trigger the steering controller to analyze part of the data carried in the rear-wheel steering request, generate a steering test action, and control the rear-wheel steering component to perform the steering test action.

[0122] Optionally, the above-mentioned generation module 704 is also used to: determine the true value of the indicator corresponding to the indicator to be evaluated based on the status data in the rear-wheel steering response; compare the true value of the indicator with the indicator threshold to obtain the test result corresponding to the rear-wheel steering function, wherein the test result is used to determine the abnormal indicator in the indicator to be evaluated, and the abnormal indicator is used to determine the fault function characteristics from multiple functional characteristics; generate a test report according to the test results.

[0123] Optionally, in addition to all the above modules, the vehicle function testing device also includes a fault module 705 (not shown in the figure), which is used to: obtain fault condition data to be injected; inject the fault condition data into the rear wheel steering request, and update the rear wheel steering request.

[0124] Optionally, the fault module 705 is further used to: utilize the rear wheel steering response and fault condition data to perform fault tracking on the test case and generate a test report.

[0125] The vehicle function testing device provided by the embodiment of the present invention can achieve the purpose of performing a simulated function test on the rear-wheel steering function of the vehicle, thereby achieving the technical effect of improving the test efficiency, stability and comprehensive coverage of the rear-wheel steering function, and further solving the technical problems of low efficiency, high cost, poor repeatability and low test coverage of the solution for rear-wheel steering function testing relying on actual vehicle tests in the related technology.

[0126] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0127] According to yet another aspect of an embodiment of the present invention, a vehicle function testing system is provided. Figure 8 is a schematic diagram of the architecture of a vehicle function test system according to an embodiment of the present invention. Figure 8 As shown, the vehicle function test system includes: a host computer 801, a simulation platform 802 and a rear wheel steering component 803 of a target vehicle;

[0128] The host computer 801 is used to: construct a test case according to the test requirement information corresponding to the rear wheel steering function of the target vehicle;

[0129] The simulation platform 802 is used to: perform a closed-loop test on the target vehicle based on the test case and the simulation model to generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear-wheel steering component;

[0130] The simulation platform 802 is also used to: send a rear wheel steering request to the rear wheel steering component, and receive a rear wheel steering response returned by the rear wheel steering component, wherein the data carried by the rear wheel steering response includes state data after the rear wheel steering component performs a steering test action;

[0131] The host computer 801 is also used to: utilize the rear wheel steering response to perform fault analysis on the test case and generate a test report of the rear wheel steering function;

[0132] The rear wheel steering component 803 is used to generate and execute a steering test action based on a rear wheel steering request.

[0133] Through the host computer and the simulation platform, a functional test can be performed on the rear-wheel steering function corresponding to the rear-wheel steering component to determine whether the rear-wheel steering function has any functional abnormality.

[0134] The vehicle function testing system provided based on the embodiment of the present invention can achieve the purpose of performing a simulated function test on the rear-wheel steering function of the vehicle, thereby realizing the technical effect of improving the test efficiency, stability and comprehensive coverage of the rear-wheel steering function, and further solving the technical problems of low efficiency, high cost, poor repeatability and low test coverage of the solution for rear-wheel steering function testing relying on actual vehicle tests in the related technology.

[0135] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the aforementioned vehicle function testing methods.

[0136] Optionally, in this embodiment, the above-mentioned storage medium can be configured to store a computer program for performing the following steps: constructing a test case according to the test requirement information corresponding to the rear-wheel steering function of the target vehicle; based on the test case and the simulation model, performing a closed-loop test on the target vehicle to generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear-wheel steering component; sending the rear-wheel steering request to the rear-wheel steering component, and receiving the rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes the status data of the rear-wheel steering component after performing the steering test action; using the rear-wheel steering response, performing fault analysis on the test case and generating a test report for the rear-wheel steering function.

[0137] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0138] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising an on-board memory and an on-board processor, wherein a computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program to execute any one of the aforementioned vehicle function testing methods.

[0139] Optionally, in this embodiment, the above-mentioned on-board processor can be configured to perform the following steps through a computer program: construct a test case according to the test requirement information corresponding to the rear-wheel steering function of the target vehicle; based on the test case and the simulation model, perform a closed-loop test on the target vehicle to generate a rear-wheel steering request, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear-wheel steering component; send the rear-wheel steering request to the rear-wheel steering component, and receive the rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes the status data of the rear-wheel steering component after performing the steering test action; use the rear-wheel steering response to perform fault analysis on the test case and generate a test report for the rear-wheel steering function.

[0140] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiment and its optional implementation manners, which will not be described in detail here.

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

[0142] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0143] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0145] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, ROM, RAM, mobile hard disks, magnetic disks or optical disks.

[0147] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A vehicle function testing method, characterized in that: include: Constructing a test case according to the test requirement information corresponding to the rear wheel steering function of the target vehicle, wherein the test case includes a test condition, a plurality of test indicators and a test sequence; Generate test data based on the test conditions and the vehicle dynamics model in the simulation model, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear wheel steering component, and the test data includes: vehicle travel data, driving behavior data and road environment data; Using the test data and the test sequence, the target vehicle is subjected to a closed-loop test of a vehicle and a road, and the rear-wheel steering request is generated, wherein the rear-wheel steering request is at least used to determine a steering test action to be performed by the rear-wheel steering component during the closed-loop test of a vehicle and a road; Sending the rear-wheel steering request to the rear-wheel steering component, and receiving a rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes state data of the rear-wheel steering component after performing a steering test action; Using the rear wheel steering response, performing fault analysis on the test case and generating a test report of the rear wheel steering function; Using the test data and the test sequence, the target vehicle is subjected to a closed-loop test of a human-vehicle-road, and generating the rear-wheel steering request includes: based on the test data, controlling the simulation model to execute the test sequence to obtain an execution result; extracting partial data related to the rear-wheel steering function from the execution result, wherein the partial data includes at least: switch status data of multiple auxiliary driving functions in the automatic driving system, steering wheel angle data, steering yaw angular velocity data, wheel speed data and acceleration data; and generating the rear-wheel steering request using the partial data.

2. The vehicle function testing method according to claim 1, characterized in that: According to the test requirement information corresponding to the rear wheel steering function of the target vehicle, constructing the test case includes: Acquire the test requirement information input through the test interface; Extracting the test conditions corresponding to the rear wheel steering function from the test requirement information; Decomposing the test requirement information into performance indicators to determine a plurality of test indicators; Generate a test sequence to be executed according to the test requirement information, the multiple test indicators and a preset test specification file; The test case is constructed based on the test conditions, the multiple test indicators and the test sequence.

3. The vehicle function testing method according to claim 2, characterized in that: The multiple test indicators include a test range, a test depth, a test mode and a test evaluation criterion. The test range is used to determine a plurality of functional characteristics to be tested corresponding to the rear-wheel steering function, the test depth is used to determine the types of abnormalities to be tested corresponding to the plurality of functional characteristics, the test mode is used to determine the type of test technology to be used, and the test evaluation criterion is used to determine at least one indicator to be evaluated and an indicator threshold corresponding to the indicator to be evaluated.

4. The method according to claim 2, characterized in that: Generating the test sequence according to the test requirement information, the multiple test indicators and the preset test specification data includes: Acquiring system parameter information pre-configured for the target vehicle; Performing functional logic analysis on the test specification file to obtain test logic data; Generate an initial sequence based on the test requirement information, the system parameter information, the multiple test indicators and the test logic data; The initial sequence is debugged using a preset debugging rule to obtain the test sequence.

5. The vehicle function testing method according to claim 1, characterized in that: Sending the rear wheel steering request to the rear wheel steering component comprises: The rear-wheel steering request is sent to the steering controller in the rear-wheel steering component to trigger the steering controller to analyze the partial data carried in the rear-wheel steering request, generate the steering test action, and control the rear-wheel steering component to perform the steering test action.

6. The vehicle function testing method according to claim 3, characterized in that: Utilizing the rear wheel steering response, performing fault analysis on the test case, and generating the test report of the rear wheel steering function includes: Determining a true value of an indicator corresponding to the indicator to be evaluated based on the state data in the rear wheel steering response; Comparing the true value of the indicator with the indicator threshold value to obtain a test result corresponding to the rear-wheel steering function, wherein the test result is used to determine an abnormal indicator among the indicators to be evaluated, and the abnormal indicator is used to determine a faulty functional characteristic from the multiple functional characteristics; The test report is generated according to the test result.

7. The vehicle function testing method according to any one of claims 1 to 5, characterized in that: The vehicle function testing method further comprises: Obtaining fault condition data to be injected; The fault condition data is injected into the rear wheel steering request to update the rear wheel steering request.

8. The vehicle function testing method according to claim 7, characterized in that: The vehicle function testing method further comprises: The rear wheel steering response and the fault condition data are used to perform fault tracing on the test case and generate the test report.

9. A vehicle function test system, characterized in that: include: Host computer, simulation platform and rear wheel steering components of the target vehicle; The host computer is used to: construct a test case according to the test requirement information corresponding to the rear wheel steering function of the target vehicle, wherein the test case includes a test condition, a plurality of test indicators and a test sequence; The simulation platform is used to generate test data based on the test conditions and the vehicle dynamics model in the simulation model, wherein the simulation model includes simulation components corresponding to other components in the target vehicle except the rear wheel steering component, and the test data includes vehicle travel data, driving behavior data and road environment data; The simulation platform is also used to: perform a human-vehicle-road closed-loop test on the target vehicle using the test data and the test sequence, and generate the rear-wheel steering request, wherein the rear-wheel steering request is at least used to determine the steering test action to be performed by the rear-wheel steering component during the human-vehicle-road closed-loop test; The simulation platform is also used for: sending the rear-wheel steering request to the rear-wheel steering component, and receiving the rear-wheel steering response returned by the rear-wheel steering component, wherein the data carried by the rear-wheel steering response includes the state data of the rear-wheel steering component after performing the steering test action; The host computer is also used to: use the rear wheel steering response to perform fault analysis on the test case and generate a test report for the rear wheel steering function; The rear wheel steering component is used to: generate and execute the steering test action based on the rear wheel steering request; The simulation platform is also used to: control the simulation model to execute the test sequence based on the test data to obtain an execution result; extract partial data related to the rear-wheel steering function from the execution result, wherein the partial data at least includes: switch status data of multiple auxiliary driving functions in the automatic driving system, steering wheel angle data, steering yaw angular velocity data, wheel speed data and acceleration data; and generate the rear-wheel steering request using the partial data.

10. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the vehicle function testing method according to any one of claims 1 to 8.

11. A vehicle, characterized in that: The vehicle function testing method comprises an on-board memory and an on-board processor, wherein the on-board memory stores a computer program, and the on-board processor is configured to run the computer program to execute the vehicle function testing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Example design test method for testing based on data driving and automatically testing platform

    CN101162426A

  • Automatic test method and device for graphic user interface software

    CN104699608A

  • Model-in-loop test method and device

    CN110096445A

  • Method and device for determining steering intention of target vehicle

    CN113226885A

  • Hardware-in-the-loop test system and method of steering system

    CN115060514A