Vehicle function scene testing method and device

By connecting bus testing tools in the vehicle, simulating functional test cases and controlling the vehicle, the safety and reliability problems of vehicle functional tests in the prior art are solved, and efficient and reliable testing is achieved in simulated scenarios.

CN119064024APending Publication Date: 2024-12-03SAIC MOTOR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310651037.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, when conducting vehicle functional tests, especially emergency faults and extreme working conditions, it is difficult to ensure safety and reliability of test results, and there is a problem of signal interaction between bench tests and actual vehicle tests without closed loops.

Method used

By connecting at least two electronic control units of the vehicle through the controller LAN CAN network bus test tool, receiving and modifying network signals to simulate different functional test cases, controlling the vehicle for testing, and obtaining and verifying the test results, the test results are achieved Testing of vehicle functional scenarios.

Benefits of technology

Vehicle functional tests can be completed safely and reliably without real test scenarios. The reliability of the test results is improved, and the software and hardware configurations are the same in simulated scenarios, avoiding the risk of safety accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064024A_ABST
    Figure CN119064024A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle function scene testing method and device. The at least two electric control units are connected with the bus test tool through a controller area network (CAN); the at least two electric control units comprise a first electric control unit and a second electric control unit; the method comprises the following steps: receiving a network signal sent by a second electric control unit from a CAN network through a bus test tool; the network signal is packaged into a protocol data unit (PDU) form and interacts on the CAN network; modifying the network signal according to the function test case to obtain an updated network signal; different function test cases correspond to different function scenes; forwarding the updated network signal to a CAN network through a bus test tool; the first electronic control unit is controlled to receive the updated network signal and control the vehicle to test; and obtaining vehicle state information corresponding to the test process, and verifying a test result. Functional tests of the vehicle in various scenes can be safely and reliably completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle testing technology, and in particular to a method and device for vehicle function scenario testing. Background Art

[0002] Real vehicle function testing is an important part of the vehicle function development process. Conventional test scenarios, such as target tracking, line patrol and lane change, can be easily tested on real vehicles; however, when it comes to complex test scenarios such as emergency failures, extreme working conditions or special sites, real vehicle testing will encounter many problems and challenges.

[0003] On the one hand, actual vehicle testing in complex scenarios places high demands on the driver's driving skills, requires a long period of preparation, is costly, and is prone to safety accidents, which cannot meet the requirements of safe production. On the other hand, many companies use bench testing methods to replace drivers driving actual vehicles to conduct functional testing in complex scenarios. However, there are differences in the software and hardware configurations of the bench and the actual vehicle, and the signal interaction cannot be closed-loop, resulting in the verification results being not completely reliable. Summary of the invention

[0004] In view of this, the present application provides a method and device for vehicle functional scenario testing, aiming to improve the convenience of the testing process. For test scenarios that are difficult to cover in actual vehicle testing, such as emergency fault conditions, extreme conditions, or require complex sites, the vehicle functional testing can also be completed safely and reliably.

[0005] To solve the above problems, the technical solutions provided by this application are as follows:

[0006] A first aspect of the present application provides a method for testing a vehicle function scenario, wherein at least two electronic control units of the vehicle are connected to a bus testing tool via a controller area network (CAN) network; the at least two electronic control units include: a first electronic control unit and a second electronic control unit;

[0007] The network signal sent by the second electronic control unit is received from the CAN network through the bus test tool; the network signal is packaged into a protocol data unit (PDU) form to interact on the CAN network;

[0008] Modify the network signal according to the functional test case to obtain the updated network signal; different functional test cases correspond to different functional scenarios;

[0009] Forwarding the updated network signal to the CAN network through the bus test tool; controlling the first electronic control unit to receive the updated network signal and control the vehicle to perform the test;

[0010] Obtain the vehicle status information corresponding to the test process and verify the test results.

[0011] Preferably, the functional test case includes: test initial conditions and functional simulation values; the network signal includes: vehicle initial state and function parameters to be tested;

[0012] According to the functional test case, modify the network signal to obtain the updated network signal, including:

[0013] According to the initial state of the vehicle, determine whether the vehicle meets the initial test conditions; if so, modify the numerical value corresponding to the functional parameter to be tested to the functional simulation value to obtain the updated network signal.

[0014] Preferably, the method further comprises:

[0015] When the vehicle meets the initial test conditions, the start and end of the functional scenario test are controlled by the preset test duration.

[0016] Preferably, obtaining vehicle status information corresponding to the test process and verifying the test results specifically include:

[0017] Obtain vehicle status information corresponding to the test process;

[0018] Determine whether the vehicle status information is consistent with the expected result; if yes, the test passes; if no, the test fails.

[0019] Preferably, after obtaining the vehicle status information corresponding to the test process and verifying the test results, the following steps are further included:

[0020] Record test results and test data, and generate test reports;

[0021] Test data includes: road type, functional status, vehicle speed, power output or braking status.

[0022] Preferably, the bus test tool specifically includes CANOE;

[0023] The CANOE includes at least two channels; both channels are connected to the CAN network corresponding to the electronic control unit of the function to be tested.

[0024] A second aspect of the present application provides a device for vehicle function scenario testing, wherein at least two electronic control units of the vehicle are connected to a bus test tool via a controller area network (CAN) network; the at least two electronic control units include: a first electronic control unit and a second electronic control unit;

[0025] The device is connected to a bus test tool, and the device includes a receiving module, a simulation module, a forwarding module and a verification module;

[0026] A receiving module is used to receive a network signal sent by the second electronic control unit from the CAN network through a bus test tool; the network signal is packaged into a protocol data unit (PDU) form to interact on the CAN network;

[0027] The simulation module is used to modify the network signal according to the functional test case and obtain the updated network signal; different functional test cases correspond to different functional scenarios;

[0028] A forwarding module, used to forward the updated network signal to the CAN network through the bus test tool; to control the first electronic control unit to control the vehicle to perform the test according to the updated PDU signal;

[0029] The verification module is used to obtain the vehicle status information corresponding to the test process and verify the test results.

[0030] Preferably, the functional test case includes: test initial conditions and functional simulation values; the network signal includes: vehicle initial state and function parameters to be tested;

[0031] The simulation module is specifically used to determine whether the vehicle meets the initial test conditions based on the initial state of the vehicle; if so, the numerical value corresponding to the functional parameter to be tested is modified to the functional simulation value to obtain an updated PDU signal.

[0032] Preferably, the verification module is also used to control the start and end of the functional scenario test by presetting the test duration after the vehicle meets the initial test conditions.

[0033] Preferably, the verification module is specifically used to obtain vehicle status information corresponding to the test process; determine whether the vehicle status information is consistent with the expected result, if so, the test passes; if not, the test fails.

[0034] It can be seen that this application has the following beneficial effects:

[0035] The method for testing vehicle functional scenarios provided by the present application, at least two electronic control units of the vehicle are connected to a bus test tool through a controller area network (CAN) network; at least two electronic control units include: a first electronic control unit and a second electronic control unit; the method receives a network signal sent by the second electronic control unit from the CAN network through the bus test tool, wherein the network signal is packaged into a protocol data unit (PDU) form for interaction on the CAN network; according to the functional test case, the network signal is modified to obtain an updated network signal; different functional test cases correspond to different functional scenarios; the updated network signal is forwarded to the CAN network through the bus test tool; the first electronic control unit is controlled to control the vehicle for testing according to the updated network signal; since the bus test tool modifies the network signal according to the functional test case, the vehicle is tested under the corresponding functional scenario simulated by the functional test case at this time; the vehicle status information corresponding to the test process is obtained, and the test results are verified. The method for testing vehicle functional scenarios provided by the present application can complete the testing of vehicle functions without using a real test scenario, and is safer; and a real vehicle is used for testing in a simulated test scenario, and the configuration of software and hardware is the same, and the reliability of the test results is higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a specific application scenario provided by an embodiment of the present application;

[0037] Figure 2 A flowchart of a method for vehicle function scenario testing provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of another specific application scenario provided for an embodiment of the present application;

[0039] Figure 4 A flowchart of another method for vehicle function scenario testing provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of a vehicle function scenario testing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand and implement the technical solution of the present application, the specific application scenarios of the present application are introduced below.

[0042] This application does not specifically limit the types of specific functional scenarios to be tested. For example, the functional scenario can be an adaptive cruise scenario; it can also be an anti-lock braking scenario, a lane keeping assist scenario, a blind spot monitoring scenario, or an automatic parking scenario, etc.

[0043] See also Figure 1, which is a schematic diagram of a specific application scenario provided in an embodiment of the present application.

[0044] The test vehicle includes at least two electronic control units: a first electronic control unit ECU1 and a second electronic control unit ECU2; both electronic control units are connected to a bus test tool via a controller area network (CAN) network.

[0045] The first electronic control unit ECU1 and the second electronic control unit ECU2 are general terms. The electronic control unit of the function to be tested may correspond to the first electronic control unit ECU1 or the second electronic control unit ECU2.

[0046] The present application does not specifically limit the type of bus test tool. For the convenience of introduction, the following embodiments are all described in detail by taking the bus test tool as CANOE as an example.

[0047] Among them, CANOE is controlled by the device for vehicle function scenario testing provided by this application.

[0048] This application does not specifically limit the connection method between hardware; specifically, the CAN network between ECU1 and ECU2 can be disconnected, and connectors can be connected at both ends of the wiring harness. When no functional test is performed, the connectors are normally connected, which is no different from traditional cars; when performing functional tests, the connectors are connected to two channels of the CANOE hardware device respectively. Commonly, the connectors can be male and female connectors of OBD9.

[0049] In order to better understand the technical solution provided by the present application, the terms involved in the embodiments of the present application are first explained.

[0050] Protocol Data Unit (PDU) is a specific CAN network data frame format.

[0051] Anti-lock Brake System (ABS): A system that controls the braking force when the car brakes so that the wheels are not locked and are in a sliding and rolling state, ensuring the safety of the vehicle.

[0052] Adaptive Cruise Control (ACC): A system that controls the vehicle to travel at a set speed or to follow the vehicle in front.

[0053] Electronic Stability Program (ESP): A braking system that prevents the vehicle from skidding or rolling over under emergency driving conditions.

[0054] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0055] See also Figure 2 , which is a flow chart of a method for vehicle function scenario testing provided in an embodiment of the present application.

[0056] The vehicle function scenario testing method provided in this application is applied to the hardware environment introduced above.

[0057] The methods for vehicle functional scenario testing include:

[0058] S201: Receive a network signal sent by ECU2 from the CAN network through a bus test tool.

[0059] Network signals are packaged into PDU format and interact on the CAN network.

[0060] It should be understood that the network signals sent by ECU2 are all vehicle information in actual scenarios.

[0061] S202: Modify the network signal according to the functional test case to obtain an updated network signal.

[0062] Among them, different functional test cases correspond to different functional scenarios.

[0063] This application does not specifically limit the specific types of functional test cases. For example, it may be that the ABS is activated under the ACC function, or the vehicle speed exceeds the maximum speed limit under the ACC function.

[0064] In a possible implementation, the functional test case specifically includes: test initial conditions and functional simulation values; the network signal includes: vehicle initial state and function parameters to be tested; correspondingly, step S202 may specifically include:

[0065] S2021: Based on the initial state of the vehicle, determine whether the vehicle meets the initial test conditions; if so, execute step S2022.

[0066] Determining the initial test conditions is equivalent to further ensuring that the vehicle is tested in the appropriate state; eliminating test failures caused by other factors; and making the test more accurate.

[0067] It should be understood that the network signal includes a variety of information about the vehicle, one or more of which can reflect the initial state of the vehicle; the initial state of the vehicle is the initial state relative to the functional scenario test, that is, the state of the vehicle before the test starts.

[0068] S2022: Modify the numerical value corresponding to the functional parameter to be tested into the functional simulation value to obtain an updated network signal.

[0069] The present application does not specifically limit the specific implementation method of modifying the network signal. For example, the network signal may be modified by calling a pre-written functional test case function.

[0070] Different network signals include different types of parameters; therefore, modifying a network signal means only modifying the network signal corresponding to the parameters involved in the functional test case, while other network signals remain unchanged.

[0071] It should be understood that the updated network signal obtained in step S202 is vehicle information in a simulated functional test scenario.

[0072] In a possible implementation, after obtaining the updated network signal, the cyclic redundancy check value and the information security check value of the updated network signal are further recalculated to meet the communication specification.

[0073] S203: Forwarding the updated network signal to the CAN network through the bus test tool.

[0074] Step S203 is executed to control the first electronic control unit ECU1 to control the vehicle to perform the test according to the updated network signal; this means that ECU1 controls itself or other electronic control units in the simulated functional test scenario, thereby completing the functional scenario test.

[0075] In a possible implementation, step S203 can be specifically completed using the On PDU instruction. When CANOE receives the PDU, the On PDU function instruction is used to trigger the modification of the test signal value of the PDU to a simulated value, and the modified PDU is forwarded through the trigger function. This implementation does not intercept the real vehicle signal, and has a low delay, which can ensure the synchronization of the signal cycle, that is, to ensure the cycle and sending timing consistent with the vehicle network communication; the test result is more accurate.

[0076] S204: Obtain vehicle status information corresponding to the test process and verify the test results.

[0077] Specifically, the vehicle status information can be obtained from the CAN network through CANOE to verify whether the vehicle status is controlled according to the expected results when the vehicle is controlled by the updated PDU signal.

[0078] In some embodiments, it may be necessary to test multiple functional scenarios; therefore, different functional test cases correspond to different expected results; then step S204 specifically includes:

[0079] S2041: According to the functional test case, obtain the corresponding test preset duration and expected results.

[0080] S2042: After the test duration ends, obtain vehicle status information corresponding to the test process;

[0081] S2043: Determine whether the vehicle status information is consistent with the expected result; if yes, the test passes; if no, the test fails.

[0082] It should be understood that the vehicle status information corresponding to the test process is the vehicle status information at the end of the test duration; depending on the functional scenario, the vehicle status information corresponding to the test process may also be different, and this application does not make specific limitations on this.

[0083] Among them, as a possible implementation method, parameters corresponding to the functional scenario during the test process, such as the functional scenario name, test initial conditions, functional simulation values, preset test duration, and expected results, can all be written into the functional test case in advance, so that they can be obtained and judged together during the test.

[0084] The method for testing vehicle functional scenarios provided by the embodiment of the present application is that at least two electronic control units of the vehicle are connected to a bus test tool through a controller area network (CAN) network; at least two electronic control units include: a first electronic control unit and a second electronic control unit; the method receives a protocol data unit (PDU) signal sent by the second electronic control unit through the bus test tool; according to the functional test case, the PDU signal is modified to obtain an updated PDU signal; different functional test cases correspond to different functional scenarios; the updated PDU signal is forwarded to the CAN network through the bus test tool; the first electronic control unit is controlled to control the vehicle for testing according to the updated PDU signal; at this time, the vehicle controls its own state under the simulated test scenario; the vehicle state information corresponding to the test process is obtained, and the test results are verified. The method for testing vehicle functional scenarios provided by the embodiment of the present application can complete the testing of vehicle functions without using a real test scenario, and is safer; and a real vehicle is used for testing in a simulated test scenario, and the software and hardware configurations are the same, and the test results are more reliable.

[0085] In a possible specific implementation, CANOE includes at least two channels, and the channels of CANOE are all connected to the CAN network corresponding to the electronic control unit of the function to be tested.

[0086] CANOE is only connected to the CAN network corresponding to the electronic control unit of the function to be tested, and the simulation scenario is only effective for the electronic control unit of the function to be tested, without affecting other electronic control units of the whole vehicle. It can more intuitively obtain the test results of the electronic control unit of the function to be tested and reduce unnecessary test steps.

[0087] In a possible process of building a test environment, CANOE communicates with the CAN network in the following manner: multiple network nodes are established in CANOE; the number of network nodes is equal to the number of CANOE channels; the same network configuration is set for multiple network nodes and allocated to channels respectively.

[0088] For example, when the test environment involves only two ECUs, the specific construction process is as follows: establish network nodes of CAN1_1 and CAN1_2 in CANOE, set the network configuration of CAN1_1 and CAN1_2, and assign them to channel 1 and channel 2 of the CANOE hardware device respectively.

[0089] The present application does not specifically limit the specific number of electronic control units related to functional testing in the vehicle. The following is a detailed introduction using three electronic control units as an example in combination with specific test functions.

[0090] See also Figure 3 , which is a schematic diagram of another specific application scenario provided in an embodiment of the present application.

[0091] The vehicle includes a first electric control unit ECU1 , a second electric control unit ECU2 , and a third electric control unit ECU3 .

[0092] Specifically, taking the test condition where ESP actively intervenes under ACC activation as an example, ECU1 is the electronic control unit of the function to be tested, and ECU1 is specifically the intelligent driving domain controller; ECU2 and ECU3 are scene-associated electronic control units, among which ECU2 is specifically the brake controller, and ECU3 is specifically the instrument controller.

[0093] The intelligent driving domain controller is the electronic control unit for the ACC function; the brake controller executes the deceleration request issued by the intelligent driving domain controller on the CAN1 network, and the brake controller is also the electronic control unit for the ESP function; the instrument controller will send the instrument vehicle speed to the intelligent driving domain controller, and the intelligent driving domain controller will send display information to the instrument controller.

[0094] In the above test scenario, the corresponding hardware connection method is as follows: the CAN network specifically includes the CAN1 network and the CAN2 network; ECU1 and ECU2 communicate through the CAN1 network, and ECU1 and ECU3 communicate through the CAN2 network.

[0095] Specifically, CANOE includes four channels, channel 1 is connected to ECU2 through CAN1 network; channel 2 is connected to ECU1 through CAN1 network; channel 3 is connected to ECU3 through CAN2 network; channel 4 is connected to ECU1 through CAN2 network.

[0096] See also Figure 4, which is a flow chart of another method for vehicle function scenario testing provided in an embodiment of the present application.

[0097] The vehicle function scenario testing method provided in the embodiment of the present application is applied to Figure 3 The corresponding specific scenario, that is, the functional scenario currently being tested is: when ACC is activated, ESP actively intervenes.

[0098] In the embodiment of the present application, the functional test case specifically includes: test initial conditions, functional simulation values, preset test duration and expected results; specifically, the test initial conditions are: the vehicle ACC status, power request status and braking request feedback status are all normal; the functional simulation values ​​are: ESP activated, vehicle speed 80km / h; the expected result is: ACC exit.

[0099] The corresponding steps are as follows:

[0100] S401: Receive network signals respectively sent by ECU2 and ECU3 through CANOE.

[0101] S402: According to the network signal, determine whether the vehicle ACC state, power request state and brake request feedback state are all normal; if so, execute step S403.

[0102] The ACC status, power request status and brake request feedback status are normal, which is equivalent to further ensuring that the vehicle is tested in a suitable state; eliminating the situation where uncertain factors interfere with the test; and making the test more accurate.

[0103] S403: According to the On PDU instruction, the ESP status signal in the network signal sent by ECU2 to the CAN network is obtained and modified to the activated state, and the vehicle speed signal in the network signal sent by ECU3 to the CAN network is modified to 80 km / h.

[0104] Among them, those skilled in the art can change the value of the preset vehicle speed according to specific test requirements.

[0105] S404: Through the trigger PDU instruction, the updated network signal corresponding to ECU2 is forwarded to the CAN1 network through CANOE; the updated network signal corresponding to ECU3 is forwarded to the CAN2 network through CANOE.

[0106] Among them, On PDU and trigger PDU are only one way to modify the forwarding PDU, and are not limited to other ways.

[0107] S405: Determine whether the test duration reaches the preset test duration. If yes, the test ends; if not, maintain the simulation of the functional scenario until the preset duration is reached.

[0108] Reaching the preset test duration is only one possible condition for ending the simulation test, and those skilled in the art may also set other conditions, such as a parameter value reaching a range, etc.

[0109] S406: Obtain the ACC status of the vehicle corresponding to the test process.

[0110] S407: Determine whether the ACC status of the vehicle is exit; if yes, the test passes; if no, the test fails.

[0111] Since ESP is used to prevent the vehicle from skidding or rolling over, which has a greater impact on safety, its priority should be higher than ACC. Therefore, when ESP actively intervenes and the vehicle speed is high, ACC needs to exit automatically. If ACC cannot exit in time, it means that there is a fault in the function.

[0112] S408: Record the test results and test data, and generate a test report.

[0113] The test data shall include at least: road type, functional status, vehicle speed, power output and braking status.

[0114] Specifically, steps S402-S408 can be completed by calling a functional test case function. The functional test case function is pre-written and includes multiple parts such as test prerequisites, simulation values, and test preset duration, and can realize functions such as automatic testing, automatic generation of results, and generation of test reports. Furthermore, the functional test case function can also include a number and a test name, and is displayed in a visual interface. The functional test case function is called by inputting the number in the visual interface.

[0115] Based on the method for vehicle function scenario testing provided in the above embodiments, the embodiments of the present application also provide a device for vehicle function scenario testing, which is described in detail below in conjunction with the accompanying drawings.

[0116] See also Figure 5 , which is a schematic diagram of a device for vehicle function scenario testing provided in an embodiment of the present application.

[0117] The vehicle function scenario testing device 1000 provided in the embodiment of the present application is applied to the hardware scenario introduced in the above embodiment. The vehicle function scenario testing device 1000 includes: a receiving module 100, a simulation module 200, a forwarding module 300 and a verification module 400.

[0118] The receiving module 100 is used to receive a network signal sent by the second electronic control unit from the CAN network through a bus testing tool.

[0119] Among them, network signals are packaged into protocol data units (PDUs) to interact on the CAN network.

[0120] The present application does not specifically limit the implementation method of the receiving module 100. For example, the receiving module 100 can be implemented as an internal function of the forwarding module 300, or can be independent of the forwarding module 300.

[0121] The simulation module 200 is used to modify the network signal according to the functional test case to obtain an updated network signal.

[0122] Different functional test cases correspond to different functional scenarios.

[0123] The present application does not specifically limit the specific working method of the simulation module 200. For example, the simulation module 200 updates the test signal value in the PDU by assigning the simulation value to the analog interface of the test signal to obtain the updated PDU.

[0124] The forwarding module 300 is used to forward the updated network signal to the CAN network through the bus test tool, so as to control the first electronic control unit to control the vehicle to perform the test according to the updated PDU signal.

[0125] The verification module 400 is used to obtain the vehicle status information corresponding to the test process and verify the test results.

[0126] In some embodiments, the functional test case specifically includes: test initial conditions and functional simulation values; the network signal includes: vehicle initial state and function parameters to be tested. Correspondingly, the simulation module 200 is specifically used to determine whether the vehicle meets the test initial conditions according to the vehicle initial state; if so, modify the numerical value corresponding to the function parameter to be tested to the function simulation value to obtain an updated PDU signal.

[0127] In some embodiments, the verification module 400 is also used to control the start and end of the functional scenario test by presetting the test duration after the vehicle meets the initial test conditions.

[0128] In some embodiments, due to the existence of multiple functional scenarios, the expected test results corresponding to different functional scenarios are also different; therefore, the verification module 400 is specifically used to obtain the corresponding expected results based on the functional test cases; obtain the vehicle status information corresponding to the test process; determine whether the vehicle status information is consistent with the expected results, if so, the test passes; if not, the test fails.

[0129] Among them, as a possible implementation method, parameters corresponding to the functional scenario during the test process, such as the functional scenario name, test initial conditions, functional simulation values, preset test duration, and expected results, can all be written into the functional test case in advance, so that they can be obtained and judged together during the test.

[0130] In addition to the first electronic control unit ECU1 and the second electronic control unit ECU2, the vehicle may also include a third electronic control unit ECU3. Take ECU1 as an example of an electronic control unit whose function is to be tested.

[0131] The CAN network includes the CAN1 network and the CAN2 network; ECU1 and ECU2 communicate via the CAN1 network, and ECU1 and ECU3 communicate via the CAN2 network.

[0132] The receiving module 100 can also be used to receive the PDU signal sent by the ECU 3 through CANOE.

[0133] The simulation module 200 can be specifically used to modify the network signals of ECU2 and ECU3 into corresponding updated network signals according to the On PDU instruction and the functional test case.

[0134] The forwarding module 300 can be specifically used to forward the updated network signal corresponding to ECU2 to the CAN1 network through CANOE according to the Trigger PDU instruction; forward the updated network signal corresponding to ECU3 to the CAN2 network through CANOE; so that ECU1 controls the vehicle for testing according to the updated network signal corresponding to ECU2 on the CAN1 network and the updated network signal corresponding to ECU3 on the CAN2 network.

[0135] In some embodiments, the device for vehicle function scenario testing may also include: a wake-up module: the wake-up module is used to wake up the ECU through a network management frame before the test starts; this application does not specifically limit the method of waking up the ECU.

[0136] The device for testing vehicle functional scenarios provided by the embodiment of the present application, at least two electronic control units of the vehicle are connected to the bus test tool through the controller area network CAN network; at least two electronic control units include: a first electronic control unit and a second electronic control unit; the device includes: a receiving module, a simulation module, a forwarding module and a verification module. The receiving module receives the protocol data unit PDU signal sent by the second electronic control unit through the bus test tool; the simulation module modifies the PDU signal according to the functional test case to obtain the updated PDU signal; different functional test cases correspond to different functional scenarios; the forwarding module forwards the updated PDU signal to the CAN network through the bus test tool; to control the first electronic control unit to control the vehicle to test according to the updated PDU signal; at this time, the vehicle controls its own state under the simulated test scenario; the verification module obtains the vehicle state information corresponding to the test process and verifies the test results. The device for testing vehicle functional scenarios provided by the embodiment of the present application can complete the test of vehicle functions without using a real test scenario, and has higher safety; and a real vehicle is used for testing in a simulated test scenario, and the configuration of software and hardware is the same, and the reliability of the test results is higher.

[0137] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0138] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for vehicle function scenario testing, characterized in that: The at least two electronic control units of the vehicle are connected to the bus test tool via a controller area network (CAN) network; the at least two electronic control units include: a first electronic control unit and a second electronic control unit; The bus test tool receives a network signal sent by the second electronic control unit from the CAN network; the network signal is packaged into a protocol data unit (PDU) form to interact on the CAN network; According to the functional test case, modify the network signal to obtain an updated network signal; different functional test cases correspond to different functional scenarios; Forwarding the updated network signal to the CAN network through the bus test tool; controlling the first electronic control unit to receive the updated network signal and control the vehicle to perform the test; Obtain the vehicle status information corresponding to the test process and verify the test results.

2. The method according to claim 1, characterized in that The functional test case includes: test initial conditions and functional simulation values; the network signal includes: vehicle initial state and function parameters to be tested; The modifying the network signal according to the functional test case to obtain an updated network signal specifically includes: According to the initial state of the vehicle, determine whether the vehicle meets the initial test condition; if so, modify the numerical value corresponding to the functional parameter to be tested to the functional simulation value to obtain an updated network signal.

3. The method according to claim 2, characterized in that The method further comprises: When the vehicle meets the initial test conditions, the start and end of the functional scenario test are controlled by the preset test duration.

4. The method according to claim 2, characterized in that: The obtaining of vehicle status information corresponding to the test process and verification of the test results specifically include: Obtain vehicle status information corresponding to the test process; Determine whether the vehicle status information is consistent with the expected result; if yes, the test passes; if no, the test fails.

5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the vehicle status information corresponding to the test process and verifying the test results, the method further includes: Record the test results and test data, and generate a test report; The test data includes: road type, functional status, vehicle speed, power output or braking status.

6. The method according to any one of claims 1 to 4, characterized in that: The bus test tool specifically includes CANOE; The CANOE includes at least two channels; the channels are both connected to the CAN network corresponding to the electronic control unit of the function to be tested.

7. A vehicle function scenario testing device, characterized in that: The at least two electronic control units of the vehicle are connected to the bus test tool via a controller area network (CAN) network; the at least two electronic control units include: a first electronic control unit and a second electronic control unit; The device is connected to the bus test tool, and the device includes a receiving module, a simulation module, a forwarding module and a verification module; The receiving module is used to receive the network signal sent by the second electronic control unit from the CAN network through the bus test tool; the network signal is packaged into a protocol data unit (PDU) form to interact on the CAN network; The simulation module is used to modify the network signal according to the functional test case to obtain an updated network signal; different functional test cases correspond to different functional scenarios; The forwarding module is used to forward the updated network signal to the CAN network through the bus test tool; so as to control the first electronic control unit to control the vehicle to perform the test according to the updated PDU signal; The verification module is used to obtain vehicle status information corresponding to the test process and verify the test results.

8. The device according to claim 7, characterized in that The functional test case includes: test initial conditions and functional simulation values; the network signal includes: vehicle initial state and function parameters to be tested; The simulation module is specifically used to determine whether the vehicle meets the initial test conditions based on the initial state of the vehicle; if so, modify the numerical value corresponding to the functional parameter to be tested to the functional simulation value to obtain an updated PDU signal.

9. The device according to claim 7, characterized in that The verification module is also used to control the start and end of the functional scenario test by presetting the test duration when the vehicle meets the initial test conditions.

10. The device according to claim 8, characterized in that The verification module is specifically used to obtain vehicle status information corresponding to the test process; determine whether the vehicle status information is consistent with the expected result, if so, the test passes; if not, the test fails.