Vehicle-mounted controller wake-up test method, device, equipment, medium and program

By testing the on-board controller's wake-up and sleep states in HIL equipment, the existing problems of incomplete testing and insufficient automation are solved, achieving faster and more comprehensive test coverage.

CN118732653APending Publication Date: 2024-10-01BEIJING ELECTRIC VEHICLE
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410766513.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing on-vehicle controller wake-up test is not comprehensive, has not been automated, and the test time is long.

Method used

Use the hardware-in-the-loop HIL device to perform wake-up tests on the vehicle controller, monitor its sleep state and send different types of wake-up instructions (hardwire wake-up signals or network management messages), and switch between wake-up and sleep states based on feedback messages and messages. , ensuring comprehensiveness and automation of testing.

Benefits of technology

It achieves a more comprehensive test of the vehicle controller, shortens the test time, and ensures test coverage and automated operation of different wake-up methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732653A_ABST
    Figure CN118732653A_ABST
Patent Text Reader

Abstract

The invention provides a wake-up test method and device of a vehicle-mounted controller, equipment, a medium and a program, and the method applied to hardware-in-the-loop (HIL) equipment comprises the following steps: when monitoring that the vehicle-mounted controller is in a dormant state, sending a wake-up instruction to the vehicle-mounted controller according to a wake-up mode of the vehicle-mounted controller, the wake-up instruction is used for controlling the vehicle-mounted controller to be switched from a dormant state to a wake-up state, and different wake-up modes correspond to different wake-up instructions; under the condition that a response message fed back by the vehicle-mounted controller is received within a first duration after the wake-up instruction is sent, sending a first message to the vehicle-mounted controller according to the simulation environment; and after the first message is sent to the vehicle-mounted controller for a second duration, controlling the vehicle-mounted controller to be switched from the awakening state to the dormant state. According to the embodiment of the invention, the vehicle-mounted controller is tested according to different wake-up modes, the test is more comprehensive, the automatic test is also realized, and the time is greatly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle testing technology, and in particular to a wake-up test method, device, equipment, medium and program for a vehicle-mounted controller. Background Art

[0002] Common controller wake-up methods for vehicles include hard-wire wake-up and network wake-up. Hard-wire wake-up is usually achieved through low-voltage levels, such as low-voltage wake-up on the key and hard-wire wake-up on the on-board charger (OBC). Network wake-up methods are divided into arbitrary frame wake-up and specific frame wake-up. Arbitrary frame wake-up means that the controller wakes up when receiving any signal on the controller area network (CAN) bus. Specific frame means that the controller wakes up when receiving a specific network management (NM) message.

[0003] In actual situations, the controller wake-up method may be one of hard-line wake-up and network wake-up, or both. During the test, in order to avoid incomplete testing due to demand delivery errors and to ensure the adequacy of normal testing, when the controller is awakened by one wake-up method, it is also necessary to test that it cannot be awakened by another wake-up method. However, the current wake-up test is not comprehensive, nor automated, and the test time is long. Summary of the invention

[0004] The purpose of the present invention is to provide a wake-up test method, device, equipment, medium and program for a vehicle-mounted controller, which is used to solve the problems that the existing wake-up test is not comprehensive, not automated, and has a long test time.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a wake-up test method for a vehicle controller, which is applied to a hardware-in-the-loop HIL device, including:

[0006] When it is detected that the vehicle controller is in a dormant state, a wake-up instruction is sent to the vehicle controller according to the wake-up mode of the vehicle controller, wherein the wake-up instruction is used to control the vehicle controller to switch from the dormant state to the awakened state, and different wake-up modes correspond to different wake-up instructions;

[0007] In case a response message fed back by the vehicle controller is received within a first time period after sending the wake-up instruction, sending a first message to the vehicle controller according to the simulation environment;

[0008] After sending the first message to the vehicle controller for a second time period, the vehicle controller is controlled to switch from the awake state to the sleep state, wherein the vehicle controllers with different awakening modes have different corresponding sleep control modes.

[0009] Optionally, the wake-up instruction includes a hard-line wake-up signal or a network management message;

[0010] Wherein, sending a wake-up instruction to the vehicle-mounted controller according to the wake-up mode of the vehicle-mounted controller includes:

[0011] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up, sending the hard-line wake-up signal to the vehicle-mounted controller;

[0012] When the wake-up mode of the vehicle-mounted controller is network wake-up, sending the network management message to the vehicle-mounted controller;

[0013] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, the hard-line wake-up signal or the network management message is sent to the vehicle-mounted controller.

[0014] Optionally, controlling the vehicle-mounted controller to switch from the awake state to the sleep state includes:

[0015] In the case where the wake-up mode of the vehicle-mounted controller is hard-line wake-up, controlling the vehicle-mounted controller to switch from the wake-up state to the sleep state by sending a hard-line sleep signal to the vehicle-mounted controller;

[0016] When the wake-up mode of the vehicle controller is network wake-up and the wake-up instruction includes a network management message, controlling the vehicle controller to switch from the wake-up state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle controller;

[0017] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a network management message, controlling the vehicle-mounted controller to switch from the wake-up state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle-mounted controller;

[0018] When the wake-up mode of the vehicle controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a hard-line wake-up signal, the vehicle controller is controlled to switch from the wake-up state to the sleep state by sending a hard-line sleep signal to the vehicle controller and stopping sending the first message to the vehicle controller.

[0019] Optionally, the method further comprises:

[0020] When it is monitored that the vehicle controller is in a sleep state, a test instruction is sent to the vehicle controller according to the wake-up method of the vehicle controller, wherein the test instruction is used to test whether the vehicle controller is awakened, and the test instruction corresponding to each wake-up method is different from the wake-up instruction.

[0021] The embodiment of the present invention further provides a wake-up test method for a vehicle-mounted controller, which is applied to the vehicle-mounted controller and includes:

[0022] When receiving a wake-up instruction sent by the HIL device, switching from the sleep state to the wake-up state according to the wake-up instruction;

[0023] Sending a response message to the HIL device according to the wake-up instruction;

[0024] receiving a first message sent by the HIL device according to the response message;

[0025] Respond according to the first message.

[0026] Optionally, the wake-up instruction includes a hard-line wake-up signal or a network management message;

[0027] Before switching from the sleep state to the wake-up state according to the wake-up instruction, the method further includes:

[0028] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up, receiving a hard-line wake-up signal sent by the HIL device;

[0029] When the wake-up mode of the vehicle-mounted controller is network wake-up, receiving a network management message sent by the HIL device;

[0030] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, a hard-line wake-up signal or a network management message sent by the HIL device is received.

[0031] Optionally, the method further comprises:

[0032] In the case where the wake-up instruction includes a network management message, detecting whether the network management message and the first message are stopped;

[0033] When it is detected that the network management message and the first message stop being sent one after another, the awake state is switched to the dormant state.

[0034] In the case where the wake-up mode of the vehicle-mounted controller is hard-line wake-up, receiving a hard-line sleep signal sent by the HIL device, and switching from the wake-up state to the sleep state according to the hard-line sleep signal;

[0035] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up and the wake-up instruction includes a hard-line wake-up signal, a hard-line sleep signal sent by the HIL device is received and whether the first message stops being sent is detected; when it is detected that the first message stops being sent, the wake-up state is switched to the sleep state.

[0036] The embodiment of the present invention further provides a wake-up test device for a vehicle-mounted controller, which is applied to a HIL device, and includes:

[0037] A first sending module is used to send a wake-up instruction to the vehicle controller according to the wake-up mode of the vehicle controller when it is detected that the vehicle controller is in a dormant state, wherein the wake-up instruction is used to control the vehicle controller to switch from the dormant state to the awakened state, and different wake-up modes correspond to different wake-up instructions;

[0038] A second sending module is used to send a first message to the vehicle controller according to the simulation environment when receiving a response message fed back by the vehicle controller within a first time period after sending the wake-up instruction;

[0039] The first control module is used to control the vehicle controller to switch from the awake state to the sleep state after sending the first message to the vehicle controller for a second time period, wherein the vehicle controller with different awakening modes has different corresponding sleep control modes.

[0040] The embodiment of the present invention further provides a wake-up test device for a vehicle-mounted controller, comprising:

[0041] A second control module is used to switch from the sleep state to the wake-up state according to the wake-up instruction when receiving the wake-up instruction sent by the HIL device;

[0042] A third sending module, configured to send a response message to the HIL device according to the wake-up instruction;

[0043] A first receiving module, configured to receive a first message sent by the HIL device according to the response message;

[0044] The first response module is used to respond according to the first message.

[0045] An embodiment of the present invention also provides a network device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the wake-up test method for the vehicle controller as described in any one of the above items.

[0046] An embodiment of the present invention further provides a readable storage medium, comprising: a program is stored on the readable storage medium, and when the program is executed by a processor, the steps of the wake-up test method of the vehicle controller as described in any one of the above items are implemented.

[0047] An embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the wake-up test method for a vehicle controller as described in any one of the above items.

[0048] At least one of the above technical solutions of the present invention has the following beneficial effects:

[0049] In the above scheme, the vehicle controller is tested by a hardware in the loop (HIL) device. When the HIL device detects that the vehicle controller is in a dormant state, the HIL device sends a wake-up instruction to the vehicle controller for a wake-up test. Different vehicle controllers correspond to different wake-up methods, and different wake-up methods correspond to different wake-up instructions. If the wake-up instruction is a wake-up instruction corresponding to the wake-up method of the vehicle controller, the controller switches from the dormant state to the wake-up state and feeds back a response message to the HIL device. If the HIL device receives the above response message within a first time period after sending the wake-up instruction, the first message required by the HIL device is sent to the vehicle controller for testing. The vehicle controller is tested according to different wake-up methods using the embodiment of the present invention, which is more comprehensive and realizes automated testing, greatly shortening the time. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a structural schematic diagram of a wake-up test system of a vehicle controller according to an embodiment of the present invention;

[0051] Figure 2 A schematic diagram of a wake-up test method for a vehicle controller according to one embodiment of the present invention;

[0052] Figure 3 A schematic flow chart of a hard-wire wake-up method for a vehicle controller according to an embodiment of the present invention;

[0053] Figure 4 A schematic diagram of a flow chart of a network wake-up method for a vehicle controller according to an embodiment of the present invention;

[0054] Figure 5 It is a flowchart of a network wakeup method when the vehicle-mounted controller according to an embodiment of the present invention has both hard-line wakeup and network wakeup functions;

[0055] Figure 6 It is a flowchart of a hard-wire wakeup method when the vehicle-mounted controller according to an embodiment of the present invention has both hard-wire wakeup and network wakeup functions;

[0056] Figure 7 A schematic flow chart of a wake-up test method for a vehicle controller according to another embodiment of the present invention;

[0057] Figure 8 A schematic diagram of the structure of a wake-up test device for a vehicle controller according to one embodiment of the present invention;

[0058] Fig. 9 It is a structural schematic diagram of a wake-up test device for a vehicle controller according to another embodiment of the present invention. DETAILED DESCRIPTION

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

[0060] like Figure 1 As shown, an embodiment of the present invention provides a wake-up test system for a vehicle controller, the system includes: a HIL device, a host computer connected to the HIL, an environmental model connected to the HIL, and a vehicle controller to be tested connected to the HIL, wherein the host computer is used to set the conditions required by the HIL device, and the environmental model contains the signal logic required by the vehicle controller to be tested, which can be downloaded to the real-time processor of the HIL device after compilation, providing a basis for automated testing. During the test, the environmental model uses the wake-up mode of the vehicle controller as an external interface, and the tester can change its value online for simulation.

[0061] like Figure 2 As shown, an embodiment of the present invention provides a wake-up test method for a vehicle controller, which is applied to a hardware-in-the-loop HIL device, including:

[0062] Step S201, when it is detected that the vehicle controller is in a dormant state, sending a wake-up instruction to the vehicle controller according to the wake-up mode of the vehicle controller, wherein the wake-up instruction is used to control the vehicle controller to switch from the dormant state to the awakened state, and different wake-up modes correspond to different wake-up instructions;

[0063] In step S201, the HIL device performs a wake-up test on the vehicle controller. When the HIL device detects that the vehicle controller is in a dormant state, the HIL device sends a wake-up instruction to the vehicle controller to perform a wake-up test. Different vehicle controllers correspond to different wake-up methods, and different wake-up methods correspond to different wake-up instructions. If the wake-up instruction is a wake-up instruction corresponding to the wake-up method of the vehicle controller, the vehicle controller can be controlled to switch from the dormant state to the awakened state.

[0064] Step S202, when a response message fed back by the vehicle controller is received within a first time period after sending the wake-up instruction, sending a first message to the vehicle controller according to the simulation environment;

[0065] In step S202, if the HIL device receives a response message sent by the vehicle controller within the first time period after sending the wake-up instruction, it means that the vehicle controller is woken up successfully, then the message required by the vehicle controller (i.e., the first message) is obtained according to the simulation environment, and the first message is sent to the vehicle controller;

[0066] Step S203, after sending the first message to the vehicle controller for a second time period, controlling the vehicle controller to switch from the awake state to the sleep state, wherein the vehicle controllers with different awakening modes correspond to different sleep control modes.

[0067] In step S203, after the HIL device sends the first message to the vehicle controller for the second time and there is no abnormality during the sending of the first message, it means that the wake-up test is successful, and the vehicle controller is controlled to switch from the wake-up state to the sleep state. It should be noted that different wake-up methods correspond to different wake-up instructions, so the sleep mode is also different.

[0068] In the embodiment of the present invention, the vehicle controller is waked up and tested by HIL equipment, and the wake-up logic and wake-up process are set. The vehicle controller can be tested in different wake-up modes, which is more comprehensive and realizes automated testing, greatly shortening the time.

[0069] Optionally, the wake-up instruction includes a hard-line wake-up signal or a network management message;

[0070] Wherein, sending a wake-up instruction to the vehicle-mounted controller according to the wake-up mode of the vehicle-mounted controller includes:

[0071] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up, sending the hard-line wake-up signal to the vehicle-mounted controller;

[0072] When the wake-up mode of the vehicle-mounted controller is network wake-up, sending the network management message to the vehicle-mounted controller;

[0073] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, the hard-line wake-up signal or the network management message is sent to the vehicle-mounted controller.

[0074] In an embodiment of the present invention, wake-up instructions corresponding to different wake-up methods are described. When the wake-up method of the vehicle-mounted controller is hard-wired wake-up, the vehicle-mounted controller can be awakened by sending a hard-wired wake-up signal; when the wake-up method of the vehicle-mounted controller is network wake-up, the vehicle-mounted controller can be awakened by sending a network management message; when the wake-up methods of the vehicle-mounted controller are hard-wired wake-up and network wake-up, the vehicle-mounted controller can be awakened by sending a hard-wired wake-up signal or a network management message, wherein sending a hard-wired wake-up signal corresponds to hard-wire wake-up, and the network management message corresponds to network wake-up.

[0075] Optionally, controlling the vehicle-mounted controller to switch from the awake state to the sleep state includes:

[0076] In the case where the wake-up mode of the vehicle-mounted controller is hard-line wake-up, controlling the vehicle-mounted controller to switch from the wake-up state to the sleep state by sending a hard-line sleep signal to the vehicle-mounted controller;

[0077] When the wake-up mode of the vehicle controller is network wake-up and the wake-up instruction includes a network management message, controlling the vehicle controller to switch from the wake-up state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle controller;

[0078] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a network management message, controlling the vehicle-mounted controller to switch from the wake-up state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle-mounted controller;

[0079] When the wake-up mode of the vehicle controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a hard-line wake-up signal, the vehicle controller is controlled to switch from the wake-up state to the sleep state by sending a hard-line sleep signal to the vehicle controller and stopping sending the first message to the vehicle controller.

[0080] In the embodiment of the present invention, Figure 3 As shown, when the wake-up mode of the vehicle controller is hard-wired wake-up, if the vehicle controller needs to be controlled to switch from the awake state to the sleep state, the hard-wired sleep signal is first sent to the vehicle controller to control the vehicle controller to sleep, and then it is necessary to stop sending the first message to the vehicle controller.

[0081] like Figure 4As shown, when the wake-up mode of the vehicle-mounted controller is network wake-up, if the vehicle-mounted controller needs to be controlled to switch from the awake state to the sleep state, it is necessary to first stop sending network management messages to the vehicle-mounted controller, and then stop sending the first message to the vehicle-mounted controller, where the first message includes but is not limited to application messages. After all messages are stopped, the vehicle-mounted controller switches from the awake state to the sleep state.

[0082] like Figure 5 As shown, if the wake-up method of the vehicle controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a network management message, it means that the vehicle controller is awakened by the network wake-up method, then you must first stop sending the network management message to the vehicle controller, and then stop sending the first message to the vehicle controller, where the first message includes but is not limited to an application message. After all messages are stopped, the vehicle controller switches from the awake state to the sleep state.

[0083] like Figure 6 As shown, if the wake-up method of the vehicle-mounted controller is hard-wire wake-up and network wake-up, and the wake-up instruction includes a hard-wire wake-up signal, it means that the vehicle-mounted controller is awakened by the hard-wire wake-up method. If the vehicle-mounted controller is to be controlled to sleep, it is necessary to send a hard-wire sleep signal to the vehicle-mounted controller. However, the wake-up method of the vehicle-mounted controller also includes network wake-up. Therefore, when the first message also includes a network management message, only sending a hard-wire sleep signal cannot control the vehicle-mounted controller to sleep, and it is also necessary to stop sending the first message to the vehicle-mounted controller. It should be noted that in the process of stopping sending the first message, it is first necessary to stop sending the network management message.

[0084] Optionally, the method further comprises:

[0085] When it is monitored that the vehicle controller is in a sleep state, a test instruction is sent to the vehicle controller according to the wake-up method of the vehicle controller, wherein the test instruction is used to test whether the vehicle controller is awakened, and the test instruction corresponding to each wake-up method is different from the wake-up instruction.

[0086] In an embodiment of the present invention, during the test process, in order to avoid incomplete testing due to erroneous demand issuance and to ensure the adequacy of normal testing, when the test controller is awakened by one wake-up method, it is also necessary to test whether it can be awakened by another wake-up method. For example, when the wake-up method of the vehicle-mounted controller is hard-wired wake-up, the test instruction is to send a network management message. When the wake-up method of the vehicle-mounted controller is network wake-up, the test instruction is to send a hard-wired wake-up signal to test whether the vehicle-mounted controller is awakened.

[0087] like Figure 7As shown, an embodiment of the present invention further provides a wake-up test method for a vehicle-mounted controller, which is applied to the vehicle-mounted controller and includes:

[0088] Step S701, when receiving a wake-up instruction sent by a HIL device, switching from a dormant state to a wake-up state according to the wake-up instruction;

[0089] Step S702, sending a response message to the HIL device according to the wake-up instruction;

[0090] Step S703, receiving a first message sent by the HIL device according to the response message;

[0091] Step S704: respond according to the first message.

[0092] In the embodiment of the present invention, the vehicle controller wake-up mode includes hard-wire wake-up, network wake-up, and hard-wire wake-up and network wake-up. When the vehicle controller receives the wake-up instruction corresponding to the wake-up mode sent by the HIL device, it switches from the sleep state to the wake-up state according to the wake-up instruction and sends a response message to the HIL device; after wake-up, it receives the first message sent by the HIL device for testing, and responds accordingly according to the first message. By performing an automated wake-up test on the vehicle controller through the HIL device, the test is more comprehensive and the test time is greatly shortened.

[0093] Optionally, the wake-up instruction includes a hard-line wake-up signal or a network management message;

[0094] Before switching from the sleep state to the wake-up state according to the wake-up instruction, the method further includes:

[0095] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up, receiving a hard-line wake-up signal sent by the HIL device;

[0096] When the wake-up mode of the vehicle-mounted controller is network wake-up, receiving a network management message sent by the HIL device;

[0097] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, a hard-line wake-up signal or a network management message sent by the HIL device is received.

[0098] In the embodiment of the present invention, Figure 3-6As shown, when the vehicle controller wakes up in the hard-wire wake-up mode, the vehicle controller switches from the sleep state to the wake-up state after receiving the hard-wire wake-up signal sent by the HIL device; when the vehicle controller wakes up in the network wake-up mode, the vehicle controller switches from the sleep state to the wake-up state after receiving the network management message sent by the HIL device; when the vehicle controller wakes up in the hard-wire wake-up mode and the network wake-up mode, if the hard-wire wake-up signal sent by the HIL device is received, it is awakened by the hard-wire wake-up mode, and if the network management message sent by the HIL device is received, it is awakened by the network wake-up mode. Different wake-up modes correspond to different wake-up instructions, and each mode is tested, so the test is more comprehensive.

[0099] Optionally, the method further comprises:

[0100] In the case where the wake-up instruction includes a network management message, detecting whether the network management message and the first message are stopped;

[0101] When it is detected that the network management message and the first message stop being sent one after another, switching from the awake state to the dormant state;

[0102] In the case where the wake-up mode of the vehicle-mounted controller is hard-line wake-up, receiving a hard-line sleep signal sent by the HIL device, and switching from the wake-up state to the sleep state according to the hard-line sleep signal;

[0103] When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up and the wake-up instruction includes a hard-line wake-up signal, a hard-line sleep signal sent by the HIL device is received and whether the first message stops being sent is detected; when it is detected that the first message stops being sent, the wake-up state is switched to the sleep state.

[0104] In the embodiment of the present invention, Figure 4 As shown, if the wake-up instruction includes a network management message, it means that the wake-up method of the vehicle controller includes network wake-up. For the vehicle controller that wakes up through the network, when it is detected that the network management message and the first message are stopped successively, the vehicle controller switches from the wake-up state to the sleep state; wherein, the first message includes an application message.

[0105] like Figure 3 As shown, if the wake-up mode of the vehicle controller is hard-line wake-up, that is, the vehicle controller is awakened by a hard-line wake-up signal, for the hard-line awakened vehicle controller, when the hard-line sleep signal sent by the HIL device is received, the vehicle controller switches from the wake-up state to the sleep state.

[0106] like Figure 5-6As shown, in the case where the wake-up mode of the vehicle-mounted controller is hard-wired wake-up and network wake-up, if the wake-up instruction of the vehicle-mounted controller is a network management message, the sleep mode is the same as the sleep mode of the vehicle-mounted controller awakened by the network. After detecting that the network management message and other messages in the first message are stopped in sequence, if the wake-up instruction of the vehicle-mounted controller is a hard-wired wake-up signal, and the first message also includes a network management message, it is necessary to first receive the hard-wired sleep signal sent by the HIL device, and then detect that the first message is stopped before switching from the wake-up state to the sleep state, wherein the network management message stop needs to be detected first in the first message.

[0107] The following four specific embodiments are used to illustrate the test process when the wake-up mode of the vehicle controller is hard line wake-up, network wake-up, and hard line wake-up and network wake-up.

[0108] Embodiment 1: Hardwire wake-up test, it is necessary to verify that the hardwire can wake up and sleep the vehicle controller, and the incorrectness of network wake-up;

[0109] In the first step, the HIL device sends a hard-wired wake-up signal to the vehicle controller; the vehicle controller wakes up upon receiving the hard-wired wake-up signal and returns a response message to the HIL device;

[0110] In the second step, if the HIL device receives a response message within a first time period (e.g., within 10 seconds) after sending the hard-line wake-up signal, the HIL device sends a first message required by the controller to the vehicle controller;

[0111] The third step is to send a hard-line sleep signal to the vehicle controller to control the vehicle controller to sleep after continuously sending the first message for a second period of time (for example, 5 seconds), and then stop sending the first message to the vehicle controller and restore the default state.

[0112] Step 4: The HIL device sends a network management message to the vehicle controller; the vehicle controller does not respond after receiving the network management message and continues to be in a dormant state;

[0113] Step 5: If the HIL device does not receive a response message within a first time period (e.g., within 10 seconds) after sending the network management message, it will restore to a default state after a second time period (e.g., after 5 seconds);

[0114] In the sixth step, the HIL device sends a hard-wired wake-up signal to the vehicle controller again for testing. The test process is the same as the first to third steps.

[0115] It should be noted that the input and output signals in this embodiment are external interfaces of the environment model.

[0116] Embodiment 2: Network wake-up test, which needs to verify that the network message can wake up and sleep the vehicle controller, and the incorrectness of hard-wired wake-up;

[0117] In the first step, the HIL device sends a network management message to the vehicle controller; the vehicle controller wakes up when receiving the network management message and returns a response message to the HIL device;

[0118] In the second step, if the HIL device receives a response message within a first time period (e.g., within 10 seconds) after sending the network management message, the HIL device sends a first message required by the controller to the vehicle controller;

[0119] The third step is to stop sending the network management message and the first message to the vehicle controller in sequence after continuously sending the first message for a second period of time (for example, after 5 seconds), control the vehicle controller to sleep, and restore the default state.

[0120] Step 4: The HIL device sends a hard-wired wake-up signal to the vehicle controller; the vehicle controller does not respond after receiving the hard-wired wake-up signal and continues to be in a dormant state;

[0121] Step 5: If the HIL device does not receive a response message within a first time period (e.g., 10 seconds) after sending the hard-line wake-up signal, it will restore to a default state after a second time period (e.g., 5 seconds).

[0122] In the sixth step, the HIL device sends a network management message to the vehicle controller again for testing. The test process is the same as the first to third steps.

[0123] Embodiment 3: Hardwire wakeup test when both hardwire wakeup and network wakeup are available. Since both hardwire and network messages can be used for wakeup, this embodiment only needs to verify hardwire wakeup.

[0124] In the first step, the HIL device sends a hard-wired wake-up signal to the vehicle controller; the vehicle controller wakes up upon receiving the hard-wired wake-up signal and returns a response message to the HIL device;

[0125] In the second step, if the HIL device receives a response message within a first time period (e.g., within 10 seconds) after sending the hard-line wake-up signal, the HIL device sends a first message required by the controller to the vehicle controller;

[0126] The third step is to send a hard-line sleep signal to the vehicle controller to control the vehicle controller to sleep after continuously sending the first message for a second period of time (for example, 5 seconds), and then stop sending the first message to the vehicle controller and restore the default state.

[0127] Embodiment 4: Network wakeup test when both hardwire wakeup and network wakeup are available. Since both hardwire and network messages can be used for wakeup, this embodiment only needs to verify hardwire wakeup.

[0128] In the first step, the HIL device sends a network management message to the vehicle controller; the vehicle controller wakes up when receiving the network management message and returns a response message to the HIL device;

[0129] In the second step, if the HIL device receives a response message within a first time period (e.g., within 10 seconds) after sending the network management message, the HIL device sends a first message required by the controller to the vehicle controller;

[0130] The third step is to stop sending the network management message and the first message to the vehicle controller in sequence after continuously sending the first message for a second period of time (for example, after 5 seconds), control the vehicle controller to sleep, and restore the default state.

[0131] like Figure 8 As shown, an embodiment of the present invention further provides a wake-up test device for a vehicle-mounted controller, which is applied to a HIL device, comprising:

[0132] A first sending module 801 is used to send a wake-up instruction to the vehicle controller according to the wake-up mode of the vehicle controller when it is detected that the vehicle controller is in a dormant state, wherein the wake-up instruction is used to control the vehicle controller to switch from the dormant state to the awakened state, and different wake-up modes correspond to different wake-up instructions;

[0133] A second sending module 802 is used to send a first message to the vehicle controller according to the simulation environment when a response message fed back by the vehicle controller is received within a first time period after sending the wake-up instruction;

[0134] The first control module 803 is used to control the vehicle controller to switch from the awake state to the sleep state after sending the first message to the vehicle controller for a second time period, wherein the vehicle controller with different awakening modes has different corresponding sleep control modes.

[0135] Optionally, the wake-up instruction sent by the first sending module 801 includes a hard-line wake-up signal or a network management message;

[0136] Wherein, the first sending module 801 includes:

[0137] A first sending unit, configured to send the hard-line wake-up signal to the vehicle-mounted controller when the wake-up mode of the vehicle-mounted controller is hard-line wake-up;

[0138] A second sending unit, configured to send the network management message to the vehicle controller when the wake-up mode of the vehicle controller is network wake-up;

[0139] The third sending unit is used to send the hard-line wake-up signal or the network management message to the vehicle-mounted controller when the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up.

[0140] Optionally, the first control module 803 includes:

[0141] A first control unit, configured to control the vehicle-mounted controller to switch from the awakened state to the dormant state by sending a hard-line dormant signal to the vehicle-mounted controller when the wake-up mode of the vehicle-mounted controller is hard-line wake-up;

[0142] A second control unit is used to control the vehicle-mounted controller to switch from the awakened state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle-mounted controller when the wake-up mode of the vehicle-mounted controller is network wake-up and the wake-up instruction includes a network management message.

[0143] The third control unit is used to control the vehicle-mounted controller to switch from the awakened state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle-mounted controller when the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a network management message.

[0144] A fourth control unit is used to control the vehicle-mounted controller to switch from the wake-up state to the sleep state by sending a hard-wire sleep signal to the vehicle-mounted controller and stopping sending the first message to the vehicle-mounted controller when the wake-up mode of the vehicle-mounted controller is hard-wire wake-up and network wake-up, and the wake-up instruction includes a hard-wire wake-up signal.

[0145] Optionally, the device further comprises:

[0146] The third control module is used to send a test instruction to the vehicle controller according to the wake-up method of the vehicle controller when it is detected that the vehicle controller is in a sleep state, wherein the test instruction is used to test whether the vehicle controller is awakened, and the test instruction corresponding to each wake-up method is different from the wake-up instruction.

[0147] It should be noted that the embodiment of the device is a device corresponding to the embodiment of the above method, and all implementation methods in the embodiment of the above method are applicable to the embodiment of the device and can achieve the same technical effect.

[0148] like Fig. 9 As shown, an embodiment of the present invention further provides a wake-up test device for a vehicle-mounted controller, comprising:

[0149] The second control module 901 is used to switch from the sleep state to the wake-up state according to the wake-up instruction sent by the HIL device when receiving the wake-up instruction;

[0150] A third sending module 902, configured to send a response message to the HIL device according to the wake-up instruction;

[0151] A first receiving module 903, configured to receive a first message sent by the HIL device according to the response message;

[0152] The first responding module 904 is configured to respond according to the first message.

[0153] Optionally, the wake-up instruction in the second control module 901 includes a hard-line wake-up signal or a network management message;

[0154] The device also includes:

[0155] A second receiving module, configured to receive a hard-line wake-up signal sent by the HIL device when the wake-up mode of the vehicle-mounted controller is hard-line wake-up;

[0156] A third receiving module, configured to receive a network management message sent by the HIL device when the wake-up mode of the vehicle-mounted controller is network wake-up;

[0157] The fourth receiving module is used to receive the hard-line wake-up signal or the network management message sent by the HIL device when the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up.

[0158] Optionally, the device further comprises:

[0159] A first detection module, configured to detect whether the network management message and the first message are stopped when the wake-up instruction includes a network management message;

[0160] The fourth control module is used to switch from the awake state to the sleep state when it is detected that the network management message and the first message stop being sent one after another.

[0161] The fifth control module is used to receive a hard-line sleep signal sent by the HIL device when the wake-up mode of the vehicle-mounted controller is hard-line wake-up, and switch from the wake-up state to the sleep state according to the hard-line sleep signal.

[0162] The sixth control module is used to receive the hard-wired sleep signal sent by the HIL device and detect whether the first message stops sending when the wake-up mode of the on-board controller is hard-wired wake-up and network wake-up and the wake-up instruction includes a hard-wired wake-up signal; when it is detected that the first message stops sending, switch from the wake-up state to the sleep state.

[0163] It should be noted that the embodiment of the device is a device corresponding to the embodiment of the above method, and all implementation methods in the embodiment of the above method are applicable to the embodiment of the device and can achieve the same technical effect.

[0164] An embodiment of the present invention also provides a network device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the program implements the wake-up test method of the vehicle controller as described in any of the above items, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0165] The embodiment of the present invention further provides a readable storage medium, including: a program is stored on the readable storage medium, and when the program is executed by the processor, the steps of the wake-up test method of the vehicle controller as described in any of the above items are implemented, and the same technical effect can be achieved. In order to avoid repetition, it is not repeated here. Among them, the computer-readable storage medium is such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc.

[0166] An embodiment of the present invention also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the steps of the wake-up test method for the vehicle controller as described in any of the above items are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0167] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0168] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A wake-up test method for a vehicle controller, characterized in that: Applied to hardware-in-the-loop (HIL) equipment, including: When it is detected that the vehicle controller is in a dormant state, a wake-up instruction is sent to the vehicle controller according to the wake-up mode of the vehicle controller, wherein the wake-up instruction is used to control the vehicle controller to switch from the dormant state to the awakened state, and different wake-up modes correspond to different wake-up instructions; In case a response message fed back by the vehicle controller is received within a first time period after sending the wake-up instruction, sending a first message to the vehicle controller according to the simulation environment; After sending the first message to the vehicle controller for a second time period, the vehicle controller is controlled to switch from the awake state to the sleep state, wherein the vehicle controllers with different awakening modes have different corresponding sleep control modes.

2. The wake-up test method of the vehicle controller according to claim 1, characterized in that: The wake-up instruction includes a hard-line wake-up signal or a network management message; Wherein, sending a wake-up instruction to the vehicle-mounted controller according to the wake-up mode of the vehicle-mounted controller includes: When the wake-up mode of the vehicle-mounted controller is hard-line wake-up, sending the hard-line wake-up signal to the vehicle-mounted controller; When the wake-up mode of the vehicle-mounted controller is network wake-up, sending the network management message to the vehicle-mounted controller; When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, the hard-line wake-up signal or the network management message is sent to the vehicle-mounted controller.

3. The wake-up test method of the vehicle controller according to claim 1 or 2, characterized in that: Controlling the vehicle-mounted controller to switch from the awake state to the sleep state includes: In the case where the wake-up mode of the vehicle-mounted controller is hard-line wake-up, controlling the vehicle-mounted controller to switch from the wake-up state to the sleep state by sending a hard-line sleep signal to the vehicle-mounted controller; When the wake-up mode of the vehicle controller is network wake-up and the wake-up instruction includes a network management message, controlling the vehicle controller to switch from the wake-up state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle controller; When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a network management message, controlling the vehicle-mounted controller to switch from the wake-up state to the sleep state by sequentially stopping sending the network management message and the first message to the vehicle-mounted controller; When the wake-up mode of the vehicle controller is hard-line wake-up and network wake-up, and the wake-up instruction includes a hard-line wake-up signal, the vehicle controller is controlled to switch from the wake-up state to the sleep state by sending a hard-line sleep signal to the vehicle controller and stopping sending the first message to the vehicle controller.

4. The wake-up test method of the vehicle controller according to claim 1, characterized in that: The method further comprises: When it is monitored that the vehicle controller is in a sleep state, a test instruction is sent to the vehicle controller according to the wake-up method of the vehicle controller, wherein the test instruction is used to test whether the vehicle controller is awakened, and the test instruction corresponding to each wake-up method is different from the wake-up instruction.

5. A wake-up test method for a vehicle controller, characterized in that: Applied to vehicle controllers, including: When receiving a wake-up instruction sent by the HIL device, switching from the sleep state to the wake-up state according to the wake-up instruction; Sending a response message to the HIL device according to the wake-up instruction; receiving a first message sent by the HIL device according to the response message; Respond according to the first message.

6. The wake-up test method of the vehicle controller according to claim 5, characterized in that: The wake-up instruction includes a hard-line wake-up signal or a network management message; Before switching from the sleep state to the wake-up state according to the wake-up instruction, the method further includes: When the wake-up mode of the vehicle-mounted controller is hard-line wake-up, receiving a hard-line wake-up signal sent by the HIL device; When the wake-up mode of the vehicle-mounted controller is network wake-up, receiving a network management message sent by the HIL device; When the wake-up mode of the vehicle-mounted controller is hard-line wake-up and network wake-up, a hard-line wake-up signal or a network management message sent by the HIL device is received.

7. The wake-up test method of the vehicle controller according to claim 5 or 6, characterized in that: The method further comprises: In the case where the wake-up instruction includes a network management message, detecting whether the network management message and the first message are stopped; in the case where it is detected that the network management message and the first message are stopped in sequence, switching from the wake-up state to the sleep state; In the case where the wake-up mode of the vehicle-mounted controller is hard-line wake-up, receiving a hard-line sleep signal sent by the HIL device, and switching from the wake-up state to the sleep state according to the hard-line sleep signal; When the wake-up mode of the on-board controller is hard-line wake-up and network wake-up and the wake-up instruction includes a hard-line wake-up signal, a hard-line sleep signal sent by the HIL device is received and it is detected whether the first message stops being sent; when it is detected that the first message stops being sent, the wake-up state is switched to the sleep state.

8. A wake-up test device for a vehicle controller, characterized in that: Applied to HIL equipment, including: A first sending module is used to send a wake-up instruction to the vehicle controller according to the wake-up mode of the vehicle controller when it is detected that the vehicle controller is in a dormant state, wherein the wake-up instruction is used to control the vehicle controller to switch from the dormant state to the awakened state, and different wake-up modes correspond to different wake-up instructions; A second sending module is used to send a first message to the vehicle controller according to the simulation environment when receiving a response message fed back by the vehicle controller within a first time period after sending the wake-up instruction; The first control module is used to control the vehicle controller to switch from the awake state to the sleep state after sending the first message to the vehicle controller for a second time period, wherein the vehicle controller with different awakening modes has different corresponding sleep control modes.

9. A wake-up test device for a vehicle controller, characterized in that: include: A second control module is used to switch from the sleep state to the wake-up state according to the wake-up instruction when receiving the wake-up instruction sent by the HIL device; A third sending module, configured to send a response message to the HIL device according to the wake-up instruction; A first receiving module, configured to receive a first message sent by the HIL device according to the response message; The first response module is used to respond according to the first message.

10. A network device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the wake-up test method for the vehicle-mounted controller as described in any one of claims 1 to 4 or implements the wake-up test method for the vehicle-mounted controller as described in any one of claims 5 to 7.

11. A readable storage medium, characterized in that: include: The readable storage medium stores a program, and when the program is executed by the processor, the program implements the steps of the wake-up test method for the vehicle controller as described in any one of claims 1 to 4 or the steps of the wake-up test method for the vehicle controller as described in any one of claims 5 to 7.

12. A computer program product, characterized in that It includes computer instructions, which, when executed by a processor, implement the steps of the wake-up test method for the vehicle controller as described in any one of claims 1 to 4 or the wake-up test method for the vehicle controller as described in any one of claims 5 to 7.

Citation Information

Cited By

  • BMS (Battery Management System) timed awakening method and device and vehicle

    CN119781841A

  • Controller awakening method and device, equipment, medium and program product

    CN119828666A