Adaptive cruise function test method and device, vehicle and storage medium

CN117111575BActive Publication Date: 2026-10-09GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311013354.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2026-10-09
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

[0003]目前在开展ACC功能安全测试中,经常会针对实车进行故障注入测试,然而一些故障失效模式往往是无法由实际的交通场景触发的,即在真实交通场景下,无法产生此类故障,导致测试需求无法满足

Benefits of technology

[0041] This application embodiment employs a technical solution that generates test messages for testing adaptive cruise control (the test messages include target test parameters for the adaptive cruise control function), sends these test messages to the actuator of the adaptive cruise control function, and causes the actuator to execute the test operations corresponding to the test messages to obtain the vehicle's operating parameters, thereby obtaining the actual test parameters for the adaptive cruise control function. Based on the target test parameters and the actual test parameters, a test result is generated. This technical solution belongs to the category of using simulation to conduct safety testing of the adaptive cruise control function of a real vehicle. Specifically, at the real vehicle level, through simulation, fault test messages that can be triggered in real traffic environments or fault test messages that cannot be triggered in real traffic environments are sent to the actuator executing the adaptive cruise control function. The actuator then executes the corresponding test operations based on the received test messages. This enables testing of faults that cannot be triggered in real traffic scenarios, meeting the safety testing requirements of adaptive cruise control functions. Furthermore, this technical solution eliminates the need for a target vehicle; a test vehicle can suffice. This not only allows for more efficient and safer testing of adaptive cruise control functions but also saves testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117111575B_ABST
    Figure CN117111575B_ABST
Patent Text Reader

Abstract

The application provides a kind of adaptive cruise function test method, device, vehicle and computer readable storage medium, it is related to automobile technical field, the method comprises: generating the test message about testing adaptive cruise function;Wherein, test message includes the target test parameter of adaptive cruise function;Test message is sent to the actuator of adaptive cruise function, to make the actuator execute the test operation corresponding to test message;The operating parameter of vehicle is acquired, to obtain the actual test parameter of adaptive cruise function;According to target test parameter and actual test parameter, generate test result.The application can test the fault that cannot be triggered in real traffic scenario, meet the safety test demand of adaptive cruise function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive technology, and more specifically, to an adaptive cruise control function testing method, apparatus, vehicle, and computer-readable storage medium in the field of automotive technology. Background Technology

[0002] With the rapid development of vehicle intelligence technology, vehicle driving is becoming increasingly automated, and vehicle functional safety issues are becoming more and more urgent. Testing the functional safety of vehicles has become a key focus and challenge for autonomous vehicles. For example, the safety test of the Adaptive Cruise Control (ACC) function in autonomous driving involves the ACC controller sending acceleration or deceleration requests based on traffic scenarios. The gateway then forwards the deceleration request to the ECM (Engine Control Module) or the acceleration request to the ESP (Electrical Stable Program) actuator, thereby controlling the vehicle to accelerate or decelerate.

[0003] Currently, in conducting ACC functional safety testing, fault injection tests are often performed on real vehicles. However, some fault failure modes cannot be triggered by actual traffic scenarios. In other words, such faults cannot occur in real traffic scenarios, which makes it impossible to meet the testing requirements. Summary of the Invention

[0004] This application provides an adaptive cruise control (ACC) function testing method, device, vehicle, and computer-readable storage medium. The method can test faults that cannot be triggered in real traffic scenarios, thus meeting the safety testing requirements of the ACC function.

[0005] In a first aspect, an adaptive cruise control function testing method is provided, comprising: generating a test message for testing the adaptive cruise control function; wherein the test message includes target test parameters of the adaptive cruise control function; sending the test message to the actuator of the adaptive cruise control function, so that the actuator performs a test operation corresponding to the test message; obtaining the vehicle's operating parameters to obtain the actual test parameters of the adaptive cruise control function; and generating test results based on the target test parameters and the actual test parameters.

[0006] In conjunction with the first aspect, in some possible implementations, sending the test message to the actuator of the adaptive cruise function includes: controlling the control module of the adaptive cruise function to go into sleep mode; constructing a virtual control module to simulate the control module; and using the virtual control module to send the test message to the actuator.

[0007] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the control module is communicatively connected to the CAN bus of the vehicle; the construction of the virtual control module includes: creating a simulation node and establishing a communication connection between the simulation node and the CAN bus; creating a test script for generating the test message; binding the simulation node to the test script to obtain the virtual control module.

[0008] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the hibernation of the control module that controls the adaptive cruise function includes: sending a silence command to the control module to instruct the control module to stop working, so that the control module responds to the silence command and hibernates.

[0009] In combination with the first aspect and the above implementation methods, in some possible implementation methods, sending a silent instruction to the control module to instruct the control module to stop working includes: obtaining the address information of the control module; and calling the on-board diagnostic service to send the silent instruction to the control module based on the address information.

[0010] In combination with the first aspect and the above implementation methods, in some possible implementation methods, generating a test message for testing the adaptive cruise function includes: displaying a parameter configuration interface; wherein the parameter configuration interface includes configuration items for the target test parameters; receiving a user's parameter setting operation and displaying the target test parameters in the configuration items; and encrypting the target test parameters using a preset verification algorithm to generate the test message.

[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the executor executing the test operation corresponding to the test message includes: decrypting the test message using the verification algorithm stored in the executor; if the decryption is successful, the executor executing the test operation corresponding to the test message.

[0012] In combination with the first aspect and the above implementation methods, in some possible implementation methods, generating test results based on the target test parameters and the actual test parameters includes: determining the difference information between the target test parameters and the actual test parameters; and generating the test results based on the difference information.

[0013] Secondly, an adaptive cruise function testing device is provided, the adaptive cruise function testing device comprising:

[0014] The message generation module is used to generate a test message for testing the adaptive cruise function; wherein, the test message includes the target test parameters of the adaptive cruise function;

[0015] The message sending module is used to send the test message to the actuator of the adaptive cruise function, so that the actuator performs the test operation corresponding to the test message;

[0016] The parameter acquisition module is used to acquire the vehicle's operating parameters in order to obtain the actual test parameters of the adaptive cruise control function.

[0017] The result generation module is used to generate test results based on the target test parameters and the actual test parameters.

[0018] In conjunction with the second aspect, in some possible implementations, the message sending module includes:

[0019] The control unit is used to put the control module of the adaptive cruise function into sleep mode.

[0020] A construction unit is used to construct a virtual control module to simulate the control module.

[0021] The sending unit is used to send the test message to the actuator using the virtual control module.

[0022] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the control module is communicatively connected to the CAN bus of the vehicle, and the construction unit is specifically used to create a simulation node and establish a communication connection between the simulation node and the CAN bus; create a test script for generating the test message; and bind the simulation node to the test script to obtain the virtual control module.

[0023] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the control unit is specifically used to send a silence command to the control module to instruct the control module to stop working, so that the control module responds to the silence command and goes into sleep mode.

[0024] In conjunction with the second aspect and the above implementation methods, in some possible implementations, the control unit's function of sending a silent command to the control module to instruct the control module to stop operating includes:

[0025] The acquisition subunit is used to acquire the address information of the control module;

[0026] The calling subunit is used to call the on-board diagnostic service to send the silent command to the control module based on the address information.

[0027] In combination with the second aspect and the above implementation methods, in some possible implementations, the message generation module includes:

[0028] The display unit is used to display a parameter configuration interface; wherein the parameter configuration interface includes configuration items for the target test parameters;

[0029] A configuration unit is used to receive parameter setting operations from users and display the target test parameters in the configuration items;

[0030] The message generation unit is used to encrypt the target test parameters using a preset verification algorithm to generate the test message.

[0031] In conjunction with the second aspect and the above-described implementation methods, in some possible implementations, the adaptive cruise function testing device further includes:

[0032] The decryption unit is used to decrypt the test message using the verification algorithm stored in the executor;

[0033] An execution unit is used to execute the test operation corresponding to the test message if the decryption is successful.

[0034] In combination with the second aspect and the above implementation methods, in some possible implementations, the result generation module includes:

[0035] A difference calculation unit is used to determine the difference information between the target test parameters and the actual test parameters;

[0036] The result generation unit is used to generate the test results based on the difference information.

[0037] Thirdly, a vehicle is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the vehicle to perform the adaptive cruise function test method in the first aspect or any possible implementation thereof.

[0038] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to execute the adaptive cruise function testing method in the first aspect or any possible implementation thereof.

[0039] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the adaptive cruise function test method of the first aspect or any possible implementation thereof.

[0040] The adaptive cruise control function testing method, apparatus, vehicle, and computer-readable storage medium provided in the embodiments of this application have the following technical effects:

[0041] This application embodiment employs a technical solution that generates test messages for testing adaptive cruise control (the test messages include target test parameters for the adaptive cruise control function), sends these test messages to the actuator of the adaptive cruise control function, and causes the actuator to execute the test operations corresponding to the test messages to obtain the vehicle's operating parameters, thereby obtaining the actual test parameters for the adaptive cruise control function. Based on the target test parameters and the actual test parameters, a test result is generated. This technical solution belongs to the category of using simulation to conduct safety testing of the adaptive cruise control function of a real vehicle. Specifically, at the real vehicle level, through simulation, fault test messages that can be triggered in real traffic environments or fault test messages that cannot be triggered in real traffic environments are sent to the actuator executing the adaptive cruise control function. The actuator then executes the corresponding test operations based on the received test messages. This enables testing of faults that cannot be triggered in real traffic scenarios, meeting the safety testing requirements of adaptive cruise control functions. Furthermore, this technical solution eliminates the need for a target vehicle; a test vehicle can suffice. This not only allows for more efficient and safer testing of adaptive cruise control functions but also saves testing costs. Attached Figure Description

[0042] Figure 1 A schematic flowchart of an adaptive cruise function testing method provided in an embodiment of this application is shown;

[0043] Figure 2 A schematic diagram of the CAN bus is shown;

[0044] Figure 3 A schematic diagram of the parameter configuration interface is shown;

[0045] Figure 4 This illustration shows a structural schematic diagram of an adaptive cruise function testing device provided in an embodiment of this application;

[0046] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of this application is shown. Detailed Implementation

[0047] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0048] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0049] With the rapid development of vehicle intelligence technology, vehicle driving is becoming increasingly automated, and vehicle functional safety issues are becoming more and more urgent. Testing the functional safety of vehicles has become a key focus and challenge for autonomous vehicles. For example, the safety test of the Adaptive Cruise Control (ACC) function in autonomous driving involves the ACC controller sending acceleration or deceleration requests based on traffic scenarios. The gateway then forwards the deceleration request to the ECM (Electronic Control Module) or the acceleration request to the ESP (Electronic Stability Program) actuator, thereby controlling the vehicle to accelerate or decelerate. Currently, the safety testing of the ACC function has the following shortcomings:

[0050] 1. In conducting ACC functional safety testing, fault injection tests are often performed on real vehicles. However, some failure modes cannot be triggered by actual traffic scenarios, meaning that such faults cannot occur in real traffic conditions, thus failing to meet testing requirements. For example, in a real vehicle environment, faults outside the design range of the ACC controller cannot be triggered in real traffic scenarios. For instance, the ACC controller is designed to request deceleration within a range of 0.5G (where G is gravitational acceleration). To ensure safety, ESP will not respond to deceleration requests exceeding 0.5G; deceleration requests greater than 0.5G cannot be triggered in real traffic scenarios, thus failing to meet testing requirements.

[0051] 2. Real-vehicle testing requires the cooperation of two vehicles, the target vehicle and the vehicle being tested, which results in low testing efficiency and a high risk of rear-end collisions at high speeds, making it impossible to guarantee safety.

[0052] 3. Suppliers only conduct simulation tests on ESP and ECM at the system level, which cannot replace real-vehicle-level functional safety testing.

[0053] 4. Currently, the ESP and ECM systems installed in real vehicles are designed with safety verification mechanisms, such as Secoc (Security On Communication), Checksum, and E2E (End-to-End). However, in traditional module simulation, the safety algorithm verification of ESP and ECM is not satisfied, making it impossible to realize vehicle acceleration and deceleration.

[0054] 5. The signals sent during simulation testing will be sent simultaneously with the original vehicle signals, which can easily cause bus conflicts, excessive load, bus silence, and failure of simulation test signal transmission.

[0055] To address the aforementioned issues, embodiments of this application provide an adaptive cruise control function testing method, apparatus, vehicle, and computer-readable storage medium.

[0056] The following is an embodiment of an adaptive cruise function testing method provided in this application.

[0057] Figure 1 A schematic flowchart of an adaptive cruise function testing method provided in an embodiment of this application is shown, as follows: Figure 1 As shown, the adaptive cruise function testing method provided in this application embodiment is applied to a physical computing device with computing power, such as a computer. The adaptive cruise function testing method includes the following scheme:

[0058] S110: Generate a test message for testing the adaptive cruise control function; wherein the test message includes the target test parameters of the adaptive cruise control function.

[0059] In one exemplary embodiment, a pre-created test script is used to generate test messages for testing the adaptive cruise control function. These test messages can be messages for faults that can be triggered in real traffic environments or messages for faults that cannot be triggered in real traffic environments. The test messages include target test parameters for the adaptive cruise control function, which are used as parameters for comparison with actual test data after subsequent testing. For example, a test message for a fault that cannot be triggered in real traffic environments specifically includes a deceleration request and its corresponding target test parameters, and / or an acceleration request and its corresponding target test parameters. For instance, the target test parameter for a deceleration request might be a desired deceleration value V1, where V1 is less than 0.5G, and the target test parameter for an acceleration request might be a desired deceleration value V2, where V2 is greater than 0.5G.

[0060] S120: Send the test message to the actuator of the adaptive cruise function so that the actuator performs the test operation corresponding to the test message.

[0061] After generating the test message, it is sent to the GW (Gateway) via the CAN bus. The GW then forwards the test message to the actuator of the adaptive cruise control function, which is the ESP and / or ECM. The ESP controls the vehicle to decelerate, and the ECM controls the vehicle to accelerate. Upon receiving the test message, the actuator performs a safety check. If the safety check passes, the actuator executes the corresponding test operation, controlling the vehicle to operate according to the test instructions in the test message, thus testing the adaptive cruise control function. For example, if the test message includes a deceleration request and the corresponding expected deceleration value, the actuator controls the vehicle to decelerate according to the expected deceleration value; if the test message includes an acceleration request and the corresponding expected acceleration value, the actuator controls the vehicle to decelerate according to the expected deceleration value.

[0062] S130: Obtain the vehicle's operating parameters to obtain the actual test parameters for the adaptive cruise control function.

[0063] After the actuator executes the test operation corresponding to the test message, the actual vehicle runs according to the test instructions in the test message, and the operating parameters of the actual vehicle after running according to the test instructions in the test message are obtained, which are the actual test parameters of the adaptive cruise control function. If the test message includes a deceleration request and the expected deceleration value corresponding to the deceleration request, then the operating parameters of the actual vehicle obtained are the actual deceleration values, which are the actual test parameters of the adaptive cruise control function.

[0064] S140: Generate test results based on the target test parameters and the actual test parameters.

[0065] After obtaining the actual test parameters, the target test parameters are compared with the actual test parameters to generate test results, and the adaptive cruise function is evaluated based on the test results.

[0066] This application embodiment employs a technical solution that generates test messages for testing adaptive cruise control (the test messages include target test parameters for the adaptive cruise control function), sends these test messages to the actuator of the adaptive cruise control function, and causes the actuator to execute the test operations corresponding to the test messages to obtain the vehicle's operating parameters, thereby obtaining the actual test parameters for the adaptive cruise control function. Based on the target test parameters and the actual test parameters, a test result is generated. This technical solution belongs to the category of using simulation to conduct safety testing of the adaptive cruise control function of a real vehicle. Specifically, at the real vehicle level, through simulation, fault test messages that can be triggered in real traffic environments or fault test messages that cannot be triggered in real traffic environments are sent to the actuator executing the adaptive cruise control function. The actuator then executes the corresponding test operations based on the received test messages. This enables testing of faults that cannot be triggered in real traffic scenarios, meeting the safety testing requirements of adaptive cruise control functions. Furthermore, this technical solution eliminates the need for a target vehicle; a test vehicle can suffice. This not only allows for more efficient and safer testing of adaptive cruise control functions but also saves testing costs.

[0067] The following are Figure 1 The specific implementation methods of each step in the illustrated embodiment will be explained below:

[0068] In one possible implementation, sending the test message to the actuator of the adaptive cruise function includes the following schemes:

[0069] The control module that controls the adaptive cruise function goes into sleep mode.

[0070] Construct a virtual control module to simulate the control module.

[0071] The virtual control module is used to send the test message to the actuator.

[0072] When testing the adaptive cruise control function on a real vehicle, the control module of the adaptive cruise control function is always active. The control module sends other controller signals to the outside via the CAN bus. Since the test message is also sent to the actuator of the adaptive cruise control function via the CAN bus, there may be a situation where the other control signals sent by the control module and the test message are sent simultaneously via the CAN bus. In this case, the test message and the aforementioned other controller signals will conflict during transmission on the CAN bus, causing the CAN bus to be overloaded. This can easily result in the CAN bus being unable to send either the test message or the aforementioned other controller signals, causing the test message transmission to fail and the test to be unsuccessful. The control module is the controller.

[0073] like Figure 2 As shown, Figure 2A schematic diagram of the CAN bus is shown. To resolve the CAN bus transmission conflict problem, before sending the test message to the actuator, the control module of the adaptive cruise function is put into sleep mode, i.e., the control module is put into an inactive state. The control module no longer sends signals, thus preventing the CAN bus from transmitting signals sent by the control module, thereby resolving the CAN bus transmission conflict problem. Figure 2 As shown in Figure B, since the actuator is controlled by the real control module, a simulated control module is constructed to make the actuator trust that the test message is sent by the real control module when the control module is in sleep mode. The virtual control module simulates the real control module and then uses the virtual control module to send the test message to the actuator. This allows the test message to be successfully sent to the actuator, which not only avoids the problem of excessive CAN bus load, but also successfully achieves the test and verifies whether the actuator's response is correct.

[0074] One possible implementation is, such as Figure 2 As shown in Figure A, the control module is connected to the vehicle's CAN bus for communication. The control module can send control signals to the actuators via the CAN bus. The following schemes are available for constructing a virtual control module:

[0075] Create a simulation node and establish a communication connection between the simulation node and the CAN bus;

[0076] Create a test script to generate the test message;

[0077] The simulation node is bound to the test script to obtain the virtual control module.

[0078] After the simulation node is connected to the CAN bus, it can transmit data and commands via the CAN bus. The process of creating the test script includes:

[0079] 1) First determine the vehicle information for different vehicles, and then extract the parameters to be tested for the adaptive cruise control function based on the vehicle information, such as acceleration and / or deceleration.

[0080] 2) Based on vehicle information and extracted parameters, establish a simulation project, load the database (e.g., CAN database, Database Can, DBC), and establish variables for the extracted parameters, such as acceleration and / or deceleration variables.

[0081] 3) Use programming languages ​​to write test scripts and encapsulate multiple preset verification algorithms. For example, encapsulate the security algorithms ESP and ECM. Encapsulating multiple preset verification algorithms makes it easy to call multiple preset verification algorithms at once when encrypting test messages, without having to call multiple algorithms separately, which helps improve the efficiency of test message generation.

[0082] 4) Write a Panel (parameter configuration interface) to bind the above variables to the input and output modules of the parameter configuration interface. For example, the parameter configuration interface can display the configuration items of acceleration and / or deceleration variables to the user. The user can customize the values ​​of acceleration and / or deceleration variables on the parameter configuration interface according to the actual test requirements.

[0083] 5) Debug the test script. Once debugging is successful, the test script creation is complete.

[0084] After the test script is created, the simulation node is bound to it. The simulation node bound to the test script then has the function of generating test messages, which can be sent to the actuator via the CAN bus. Therefore, the simulation node bound to the test script possesses the function of a control module, capable of simulating a control module sending test messages to the actuator. Thus, the simulation node bound to the test script is considered a virtual control module. Figure 2 As shown in Figure B, the virtual control module is the simulation node in Figure A that is bound to the test script.

[0085] In one possible implementation, the control module controlling the adaptive cruise function going into sleep mode includes the following schemes:

[0086] A silence command is sent to the control module to instruct it to stop working, so that the control module responds to the silence command and goes into sleep mode.

[0087] For testing the adaptive cruise control function, it can be triggered manually by the user or automatically and periodically. After the adaptive cruise control function test is triggered, the test script sends a silence command to the control module. The silence command is used to instruct the control module to stop working. The control module responds to the silence command, thereby entering sleep mode, stopping working, and no longer sending out signals.

[0088] In one possible implementation, sending a silent command to the control module to instruct it to stop working includes the following schemes:

[0089] Obtain the address information of the control module;

[0090] The on-board diagnostic service is invoked to send the silent command to the control module based on the address information.

[0091] To accurately disable communication from the adaptive cruise control module, the module's address information, including both receiving and sending addresses, is pre-stored in the database. Before the control module goes into sleep mode, its address information is retrieved, and then the on-board diagnostic service is invoked. Based on the address information, the on-board diagnostic service sends a mute command to the control module, ensuring accurate delivery and preventing errors.

[0092] In one possible implementation, the generation of test messages regarding the adaptive cruise control function includes the following schemes:

[0093] Display parameter configuration interface; wherein, the parameter configuration interface includes configuration items for the target test parameters;

[0094] Receive parameter setting operations from users and display the target test parameters in the configuration items;

[0095] The target test parameters are encrypted using a preset verification algorithm to generate the test message.

[0096] To facilitate users' testing of the adaptive cruise control function at any time, a parameter configuration interface is included when creating test scripts, allowing them to configure target test parameters. This interface is displayed on the physical computing device. The parameter configuration interface includes configuration items for the target test parameters, test cycle settings, and request configuration items. For example... Figure 3 As shown, Figure 3 The diagram shows a parameter configuration interface. Assuming the target test parameters are the desired deceleration value and the desired acceleration value, the parameter configuration interface displays configuration items for the desired deceleration value, deceleration request, desired acceleration value, acceleration request, and test cycle settings.

[0097] Users configure the displayed parameters through the parameter configuration interface, which then shows the target test parameters in the configuration items. After setting, clicking the send switch activates the test script, which uses a preset verification algorithm to encrypt the target test parameters, thereby generating a test message. The preset verification algorithms include SeC, Checksum, and E2E. Encrypting the target test parameters prevents the test message from being intercepted, improves the security of information transmission, and maintains consistency between simulation testing and real-world scenario testing.

[0098] In one possible implementation, the executor executes the test operation corresponding to the test message, including the following schemes:

[0099] The test message is decrypted using the verification algorithm stored in the executor;

[0100] If decryption is successful, the executor performs the test operation corresponding to the test message.

[0101] The actuator stores verification algorithms including SeC, Checksum, and E2E, which are the same as the algorithms used to encrypt the target test parameters. After receiving the test message, the actuator uses the stored verification algorithm to decrypt the test message. If decryption is successful, the actuator controls the actual vehicle to operate according to the target test parameters in the test message to test the adaptive cruise control function. If decryption fails, the target test parameters cannot be obtained, and the test is not performed to ensure the safe operation of the actual vehicle.

[0102] In one possible implementation, the generation of test results based on the target test parameters and the actual test parameters includes the following schemes:

[0103] Determine the difference information between the target test parameters and the actual test parameters;

[0104] The test results are generated based on the difference information.

[0105] After obtaining the actual test parameters, the difference between the target test parameters and the actual test parameters is calculated to obtain the difference information between the two. Then, the difference information is used as the test result, and the gap between the test result and the expected result is compared. If the gap is small, it means that the adaptive cruise control function meets the safety requirements; if the gap is large, it means that the adaptive cruise control function does not meet the safety requirements. The situation of not meeting the safety requirements is then reported to the developer of the adaptive cruise control function so that the adaptive cruise control function can be adjusted.

[0106] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0107] Figure 4 This illustration shows a structural schematic diagram of an adaptive cruise function testing device provided in an embodiment of this application. For example, as shown... Figure 4 As shown, the adaptive cruise control function test device 400 includes:

[0108] The message generation module 410 is used to generate a test message for testing the adaptive cruise function; wherein, the test message includes the target test parameters of the adaptive cruise function;

[0109] The message sending module 420 is used to send the test message to the actuator of the adaptive cruise function, so that the actuator performs the test operation corresponding to the test message;

[0110] The parameter acquisition module 430 is used to acquire the vehicle's operating parameters to obtain the actual test parameters of the adaptive cruise function.

[0111] The result generation module 440 is used to generate test results based on the target test parameters and the actual test parameters.

[0112] In one possible implementation, the message sending module 420 includes:

[0113] The control unit is used to put the control module of the adaptive cruise function into sleep mode.

[0114] A construction unit is used to construct a virtual control module to simulate the control module.

[0115] The sending unit is used to send the test message to the actuator using the virtual control module.

[0116] In one possible implementation, the control module is communicatively connected to the vehicle's CAN bus. The construction unit is specifically used to create a simulation node and establish a communication connection between the simulation node and the CAN bus; create a test script for generating the test message; and bind the simulation node to the test script to obtain the virtual control module.

[0117] In one possible implementation, the control unit is specifically used to send a silence command to the control module to instruct the control module to stop working, so that the control module responds to the silence command and goes into sleep mode.

[0118] In one possible implementation, the control unit includes sending a silent command to the control module to instruct the control module to stop operating, comprising:

[0119] The acquisition subunit is used to acquire the address information of the control module;

[0120] The calling subunit is used to call the on-board diagnostic service to send the silent command to the control module based on the address information.

[0121] In one possible implementation, the message generation module 410 includes:

[0122] The display unit is used to display a parameter configuration interface; wherein the parameter configuration interface includes configuration items for the target test parameters;

[0123] A configuration unit is used to receive parameter setting operations from users and display the target test parameters in the configuration items;

[0124] The message generation unit is used to encrypt the target test parameters using a preset verification algorithm to generate the test message.

[0125] In one possible implementation, the adaptive cruise function testing device 400 further includes:

[0126] The decryption unit is used to decrypt the test message using the verification algorithm stored in the executor;

[0127] An execution unit is used to execute the test operation corresponding to the test message if the decryption is successful.

[0128] In one possible implementation, the result generation module 440 includes:

[0129] A difference calculation unit is used to determine the difference information between the target test parameters and the actual test parameters;

[0130] The result generation unit is used to generate the test results based on the difference information.

[0131] It should be noted that the adaptive cruise control function testing device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the adaptive cruise control function testing method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the adaptive cruise control function testing device and the adaptive cruise control function testing method embodiments provided in the above embodiments belong to the same concept. Therefore, for details not disclosed in the device embodiments of this application, please refer to the embodiments of the adaptive cruise control function testing method of this application, which will not be repeated here.

[0132] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0133] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of this application is shown.

[0134] For example, such as Figure 5 As shown, the vehicle 500 includes a memory 501 and a processor 502. The memory 501 stores executable program code 5011, and the processor 502 is used to call and execute the executable program code 5011 to perform an adaptive cruise function test method.

[0135] This embodiment can divide the vehicle into functional modules according to the above method example. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0136] When each functional module is divided according to its corresponding function, the vehicle may include: a message generation module, a message sending module, a parameter acquisition module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0137] The vehicle provided in this embodiment is used to perform the above-described adaptive cruise control function test method, and therefore can achieve the same effect as the above implementation method.

[0138] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's actions. The storage module supports the vehicle in executing program code and data.

[0139] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits as disclosed in this application. The processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc., and the storage module may be a memory.

[0140] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement an adaptive cruise function testing method in the above embodiment.

[0141] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement an adaptive cruise function testing method as described in the above embodiment.

[0142] In addition, the vehicle provided in the embodiments of this application may specifically be a chip, component or module. The vehicle may include a connected processor and a memory. The memory is used to store instructions. When the vehicle is running, the processor can call and execute the instructions to make the chip execute an adaptive cruise function test method in the above embodiments.

[0143] In this embodiment, the vehicle, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding adaptive cruise function test method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding adaptive cruise function test method provided above, and will not be repeated here.

[0144] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0145] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0146] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for testing adaptive cruise control function, characterized in that, The adaptive cruise control function test method includes: Generate a test message for testing the adaptive cruise control function; wherein the test message includes the target test parameters for the adaptive cruise control function; The control module that controls the adaptive cruise function goes into sleep mode to prevent the control module from sending signals outward via the CAN bus; Create a simulation node and establish a communication connection between the simulation node and the CAN bus; Create a test script to generate the test message; The simulation node is bound to the test script to obtain a virtual control module. The virtual control module simulates the control module sending the test message to the actuator of the adaptive cruise function, so that the actuator trusts that the test message was sent by the control module when the control module is in sleep mode. The virtual control module sends the test message to the executor, so that the executor performs the test operation corresponding to the test message. Obtain the vehicle's operating parameters to obtain the actual test parameters for the adaptive cruise control function; Test results are generated based on the target test parameters and the actual test parameters.

2. The adaptive cruise function test method according to claim 1, characterized in that, The control module that controls the adaptive cruise function goes into sleep mode, including: A silence command is sent to the control module to instruct it to stop working, so that the control module responds to the silence command and goes into sleep mode.

3. The adaptive cruise control function test method according to claim 2, characterized in that, Sending a silent command to the control module to instruct it to stop working includes: Obtain the address information of the control module; The on-board diagnostic service is invoked to send the silent command to the control module based on the address information.

4. The adaptive cruise control function test method according to claim 1, characterized in that, The generated test message regarding the adaptive cruise control function includes: Display parameter configuration interface; wherein, the parameter configuration interface includes configuration items for the target test parameters; Receive parameter setting operations from users and display the target test parameters in the configuration items; The target test parameters are encrypted using a preset verification algorithm to generate the test message.

5. The adaptive cruise function test method according to claim 4, characterized in that, The executor performs the test operation corresponding to the test message, including: The test message is decrypted using the verification algorithm stored in the executor; If decryption is successful, the executor performs the test operation corresponding to the test message.

6. The adaptive cruise function test method according to any one of claims 1 to 5, characterized in that, The step of generating test results based on the target test parameters and the actual test parameters includes: Determine the difference information between the target test parameters and the actual test parameters; The test results are generated based on the difference information.

7. An adaptive cruise function testing device, characterized in that, The adaptive cruise function testing device includes: The message generation module is used to generate a test message for testing the adaptive cruise function; wherein, the test message includes the target test parameters of the adaptive cruise function; A message sending module is used to control the control module of the adaptive cruise function to go into sleep mode, thereby preventing the control module from sending signals outward via the CAN bus; create a simulation node and establish a communication connection between the simulation node and the CAN bus; create a test script for generating the test message; bind the simulation node to the test script to obtain a virtual control module, and use the virtual control module to simulate the control module sending the test message to the actuator of the adaptive cruise function, so that the actuator trusts that the test message was sent by the control module while the control module is in sleep mode; use the virtual control module to send the test message to the actuator, so that the actuator performs the test operation corresponding to the test message; The parameter acquisition module is used to acquire the vehicle's operating parameters in order to obtain the actual test parameters of the adaptive cruise control function. The result generation module is used to generate test results based on the target test parameters and the actual test parameters.

8. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the adaptive cruise function test method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the adaptive cruise function test method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Self-adaptive cruise test method and system based on virtual driving system

    CN115032968A

  • ADAS controller test method and device, terminal and storage medium

    CN116449799A