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

By receiving network management messages sent by the controller to be tested in the test device, the simulation controller is automatically controlled to enter the network wake-up state, which solves the problem of low state conversion efficiency caused by manual operations in the prior art, and realizes automatic wake-up and efficient testing.

CN119828666APending Publication Date: 2025-04-15CHONGQING CHANGAN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510102370.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the prior art, the simulation controller is controlled by the staff to enter the network wake-up state, resulting in the low state conversion efficiency of the simulation controller.

Method used

By receiving network management messages sent by the controller to be tested in the test device, the simulation controller that has not entered the network wake-up state enters the network wake-up state, realizes automatic wake-up and improves the state conversion efficiency.

Benefits of technology

The simulation controller can be awakened without manual operation, which improves the state conversion efficiency and ensures that the controller to be tested and the simulation controller are in the network wake-up state, ensuring the smooth progress of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119828666A_ABST
    Figure CN119828666A_ABST
Patent Text Reader

Abstract

The invention relates to a controller awakening method and device, equipment, a medium and a program product, and the method comprises the steps: controlling a to-be-awakened simulation controller which does not enter a network awakening state to enter the network awakening state after a test device receives a network management message sent by a test controller, and enabling the to-be-awakened simulation controller to enter the network awakening state; the to-be-tested controller and the simulation controller are both in the network wake-up state, so that it is ensured that the test is carried out smoothly, manual wake-up is not needed, and the state conversion efficiency of the simulation controller is improved. Besides, the to-be-tested controller periodically sends the network management message in the network wakeup state, so that when the to-be-tested controller is in the network wakeup state, the simulation control controller can be kept in the network wakeup state, and even if the simulation control controller enters the network dormant state due to other factors, the simulation control controller can enter the network wakeup state again in time. Only the simulation controller to be awakened is controlled to enter the network awakening state, and the state conversion efficiency can be further improved.
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 controller awakening method, device, equipment, medium and program product. Background Art

[0002] With the continuous development of science and technology, vehicles have more and more functions, and there are more and more controllers in vehicles responsible for realizing various vehicle functions. In order to ensure the safety of vehicle operation, the controller needs to be tested before the vehicle is offline. When testing each controller to be tested, in order to ensure the accuracy of the test, it is necessary to use the test equipment to simulate at least one simulation controller, and combine the simulation controller to test the controller to be tested.

[0003] In the prior art, during the test process, some test items require that both the controller to be tested and the simulation controller are in the network wake-up state. However, the wake-up source can only make the controller to be tested enter the network wake-up state, and cannot directly make the simulation controller enter the network wake-up state. The staff can only operate the test equipment to control the simulation controller to enter the network wake-up state from the network sleep state.

[0004] In summary, in the prior art, the staff controls the simulation controller to enter the network wake-up state, resulting in low state conversion efficiency of the simulation controller. Summary of the invention

[0005] One of the purposes of the present invention is to provide a controller wake-up method to solve the problem of low state change efficiency of the simulation controller caused by the staff controlling the simulation controller to enter the network wake-up state in the prior art; the second purpose is to provide a controller wake-up device; the third purpose is to provide a test equipment; the fourth purpose is to provide a storage medium; the fifth purpose is to provide a program product.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0007] In a first aspect, the present invention provides a controller wake-up method, which is applied to a test device, wherein the test device is connected to a controller to be tested via a target network communication, and the method comprises:

[0008] If a network management message sent by the controller to be tested through the target network is received, a simulation controller to be awakened that has not entered the network awakening state is determined; the controller to be tested sends a network management message with a preset first time length as a period in the network awakening state;

[0009] Each of the simulation controllers to be awakened is controlled to enter a network awakening state.

[0010] Further, the network management message includes a wake-up mode identifier, and the wake-up mode identifier is used to indicate immediate wake-up or delayed wake-up;

[0011] Before controlling each of the to-be-awakened simulation controllers to enter a network awakening state, the method further includes:

[0012] Determining whether the wake-up mode identifier in the network management message indicates immediate wake-up;

[0013] The step of controlling each of the to-be-awakened simulation controllers to enter a network awakening state includes:

[0014] If the wake-up mode identifier in the network management message indicates immediate wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state.

[0015] Furthermore, the method further comprises:

[0016] If the wake-up mode identifier in the network management message indicates delayed wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state after a preset second time period.

[0017] Further, the controller to be tested does not send a network management message in a network dormant state, and the method further includes:

[0018] Setting the timing duration of the target timer in the test device to a preset third duration, wherein the preset third duration is greater than the preset first duration;

[0019] The target timer is used to control all simulation controllers to enter a network dormant state after a timing period.

[0020] Furthermore, the target network is a controller area network (CAN).

[0021] Furthermore, the method further comprises:

[0022] Determining a first number of simulated controllers entering a network wake-up state and a second number of all simulated controllers;

[0023] A wake-up report is generated according to the first number and the second number.

[0024] Furthermore, the method further comprises:

[0025] Determining a third number of simulation controllers that enter a network sleep state and a second number of all simulation controllers;

[0026] A dormancy report is generated based on the third number and the second number.

[0027] In a second aspect, the present invention provides a controller wake-up device, comprising:

[0028] The processing module is used to determine the simulated controller to be awakened that has not entered the network awakening state if a network management message is received from the controller to be tested through the target network; the controller to be tested sends the network management message with a preset first time length as a period in the network awakening state;

[0029] The control module is used to control each of the simulation controllers to be awakened to enter a network awakening state.

[0030] Further, the network management message includes a wake-up mode identifier, and the wake-up mode identifier is used to indicate immediate wake-up or delayed wake-up; the control module is further used to:

[0031] Determining whether the wake-up mode identifier in the network management message indicates immediate wake-up;

[0032] If the wake-up mode identifier in the network management message indicates immediate wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state.

[0033] Furthermore, the control module is also used for:

[0034] If the wake-up mode identifier in the network management message indicates delayed wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state after a preset second time period.

[0035] Furthermore, the controller to be tested does not send a network management message in a network dormant state, and the processing module is further used to:

[0036] Setting the timing duration of the target timer in the test device to a preset third duration, wherein the preset third duration is greater than the preset first duration;

[0037] The target timer is used to control all simulation controllers to enter a network dormant state after a timing period.

[0038] Furthermore, the target network is a controller area network (CAN).

[0039] Furthermore, the processing module is also used for:

[0040] Determining a first number of simulated controllers entering a network wake-up state and a second number of all simulated controllers;

[0041] A wake-up report is generated according to the first number and the second number.

[0042] Furthermore, the processing module is also used for:

[0043] Determining a third number of simulation controllers that enter a network sleep state and a second number of all simulation controllers;

[0044] A dormancy report is generated based on the third number and the second number.

[0045] In a third aspect, the present invention provides a testing device, comprising:

[0046] Processor, memory, communication interface;

[0047] The memory is used to store executable instructions of the processor;

[0048] The processor is configured to execute the controller wake-up method described in any one of the first aspects by executing the executable instructions.

[0049] In a fourth aspect, the present invention provides a readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the controller wake-up method described in any one of the first aspects.

[0050] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, wherein the computer program, when executed by a processor, is used to implement the controller wake-up method described in any one of the first aspects.

[0051] Beneficial effects of the present invention:

[0052] (1) This application improves the state change efficiency by controlling the simulated controller to be awakened that has not entered the network awakening state to enter the network awakening state after receiving the network management message sent by the controller to be tested, without manual awakening;

[0053] (2) The present application enables the controller to be tested to send network management messages at a preset first time period in the network wake-up state, so that the test equipment will control the simulated controller to be awakened to enter the network wake-up state at every preset first time period, thereby ensuring that when the controller to be tested is in the network wake-up state, the simulated controller can maintain the network wake-up state, thereby ensuring the smooth progress of the controller test. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0055] Figure 1 Schematic diagram of the test system architecture provided for this application Figure 1 ;

[0056] Figure 2 Schematic diagram of the test system architecture provided for this application Figure 2 ;

[0057] Figure 3 A flowchart of a controller wake-up method according to a first embodiment of the present invention;

[0058] Figure 4 A flowchart of a second embodiment of the controller wake-up method provided in the present application;

[0059] Figure 5 A schematic diagram of the structure of an embodiment of a controller wake-up device provided in the present application;

[0060] Figure 6 A schematic diagram of the structure of a test device provided in this application.

[0061] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0062] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0063] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0064] With the development of technology, various vehicle controllers have emerged to achieve different vehicle functions. Before the vehicle rolls off the assembly line, the controller needs to be tested to avoid problems after the vehicle rolls off the assembly line. When testing each controller to be tested, in order to ensure the accuracy of the test, it is necessary to use the test equipment to simulate at least one simulation controller, and then test the controller to be tested in combination with the simulation controller.

[0065] In the prior art, during the testing process, some test items require that both the controller to be tested and the simulation controller are in the network wake-up state. However, the wake-up source can only make the controller to be tested enter the network wake-up state, and cannot directly make the simulation controller enter the network wake-up state. The staff can only operate the test equipment to control the simulation controller from the network sleep state to the network wake-up state. Therefore, it will cause the problem of low state change efficiency of the simulation controller.

[0066] In view of the problems existing in the prior art, the inventors discovered during the process of studying the controller wake-up method that, since the controller to be tested can send network management messages in the network wake-up state, the test device and the controller to be tested can be connected through the target network communication, and the controller to be tested periodically sends network management messages in the network wake-up state. The test device can receive the network management message through the target network, and each time the network management message is received, the simulation controller is controlled to enter the network wake-up state. Not only can the simulation controller be woken up without manual work, thereby improving the state change efficiency, but also the periodic sending of network management messages by the controller to be tested ensures that the simulation controller can maintain the network wake-up state. Based on the above-mentioned inventive concept, the controller wake-up scheme in this application is designed.

[0067] The following is an example of an application scenario of the controller wake-up method provided in this application.

[0068] Exemplarily, in this application scenario, the vehicle is tested on the controller to be tested before it goes offline to test whether there is a problem with the controller to be tested, and the test is implemented by a test system.

[0069] For example, Figure 1 Schematic diagram of the test system architecture provided for this application Figure 1 ,like Figure 1 As shown, the test system includes a controller to be tested 11, a test device 12 and a host computer 13. The test device 12 is connected to the controller to be tested 11 via a target network communication, and the test device 12 is connected to the host computer 13 via a communication cable.

[0070] The staff uses the host computer 11 to write a test script, and then the host computer 11 runs the test script, loads the test program in the test device 12, and the test device 12 simulates at least one simulation controller, and then runs the test program to implement the test.

[0071] In a test project, both the controller to be tested 11 and the simulation controller are required to be in a network wake-up state. After the wake-up source wakes up the controller to be tested 11, that is, after the controller to be tested 11 receives the wake-up message sent by the wake-up source, it enters the network wake-up state, and then sends network management messages through the target network with a preset first time period as a period.

[0072] It should be noted that the preset first duration may be 0.5 seconds, 1 second, 2 seconds, etc. The embodiment of the present application does not limit the preset first duration, and it may be determined according to actual conditions.

[0073] If the test device 12 receives the network management message sent by the controller to be tested 11, it means that the controller to be tested 11 has entered the network wake-up state. In order to smoothly carry out subsequent tests, the simulated controller to be awakened that has not entered the network wake-up state is determined from all simulated controllers.

[0074] Then the test device 12 controls each simulation controller to be awakened to enter the network awakening state.

[0075] At this time, the controller to be tested 11 and the simulation controller are both in the network awakening state, and the test can continue.

[0076] It should be noted that the controller to be tested may be a controller composed of multiple sub-controllers, and the test device may be connected to the sub-controllers via a switching device. Figure 2 Schematic diagram of the test system architecture provided for this application Figure 2 ,like Figure 2 As shown, the test system includes a controller to be tested 21, a test device 22, a host computer 23 and a switching device 24. The controller to be tested 21 includes multiple sub-controllers (only three sub-controllers are shown in the figure), and the sub-controllers are connected to each other in communication, one of the sub-controllers is connected to the switching device 24, the test device 22 is connected to the switching device 24 through a target network communication connection, and the test device 22 is connected to the host computer 23 through a communication cable.

[0077] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the various devices included in the scenario. In the specific application of the solution, it can be set according to actual needs.

[0078] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0079] Figure 3 This is a flow chart of the controller wake-up method embodiment 1 provided in the present application. The present application embodiment describes the situation where the test device wakes up the simulation controller according to the network management message sent by the controller to be tested. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 3 As shown, the controller wake-up method specifically includes the following steps:

[0080] S301: If a network management message is received from the controller to be tested via the target network, a simulated controller to be awakened that has not entered a network awakening state is determined.

[0081] The test device is connected to the controller to be tested through the target network communication. After entering the network wake-up state, the controller to be tested sends a network management message with a preset first time period as a period to wake up the simulation controller. That is, in the network wake-up state, a network management message is sent once every preset first time period.

[0082] In this step, after the controller to be tested sends a network management message through the target network, the test device can receive the network management message through the target network, indicating that the controller to be tested is in the network wake-up state. In order to ensure that both the controller to be tested and the simulation controller are in the network wake-up state, it is necessary to first determine the to-be-awakened simulation controller that has not entered the network wake-up state from all simulation controllers.

[0083] Since each simulation controller has a network status parameter for indicating whether the network status of the simulation controller is a network awakening state or a network dormant state, the simulation controller whose network status parameter indicates that the network status of the simulation controller is a network dormant state can be used as the simulation controller to be awakened.

[0084] Exemplarily, when the network status parameter is 0, it indicates that the network status of the simulation controller is a network sleep status; when the network status parameter is 1, it indicates that the network status of the simulation controller is a network wake-up status.

[0085] It should be noted that the target network can be a controller area network (CAN), Ethernet, in-vehicle network (IVN), local interconnect network (LIN), etc. The embodiment of the present application does not limit the target network and can be determined according to actual conditions.

[0086] S302: Control each simulation controller to be awakened to enter a network awakening state.

[0087] In this step, after the test device determines the simulation controller to be awakened, it controls each simulation controller to be awakened to enter the network awakening state, that is, the network state parameter of the simulation controller to be awakened is updated to a network state parameter indicating that the network state of the simulation controller is the network awakening state.

[0088] It should be noted that, after the awakened simulation controller enters the network awakening state, the first time length may be preset as a period to send a network management message through the target network.

[0089] It should be noted that, in order to prevent the simulation controller from being missed and not being awakened, the test device can control all simulation controllers to enter the network awakening state after receiving the network management message.

[0090] It should be noted that after the test device is powered on, the simulation controller will be initialized, and the simulation controller can modify the network status only after initialization. Therefore, after receiving the network management message, the test device can determine the simulation controller to be awakened that has not entered the network wake-up state after the preset initialization time, and then control each simulation controller to be awakened to enter the network wake-up state to ensure that the simulation controller can enter the network wake-up state. The preset initialization time can be 0.5 seconds, 1 second, 2 seconds, 3 seconds, etc. The embodiment of the present application does not limit the preset initialization time, and can be determined according to actual conditions.

[0091] It should be noted that after the test device controls each simulated controller to be awakened to enter the network wake-up state, since the test device or the simulated controller may have an abnormality, the simulated controller to be awakened may fail to enter the network wake-up state, so a wake-up report can be generated to determine whether there is an abnormality in the test device or the simulated controller.

[0092] The test device determines the first number of simulation controllers that enter the network wake-up state, and the second number of all simulation controllers; and then generates a wake-up report based on the first number and the second number. That is, a blank wake-up report is first generated, and then the first number and the second number are added to the wake-up report. Then the wake-up report is output, and when the staff finds that the first number is less than the second number, it can be determined that there is an abnormality in the test device or the simulation controller, and the test device and the simulation controller are repaired. When the staff finds that the first number is equal to the second number, it can be determined that there is no abnormality in the test device or the simulation controller.

[0093] A wake-up test result indicating whether there is a wake-up abnormality can also be generated, and the wake-up test result can be added to the wake-up report. If the test device determines that the first number is less than the second number, a wake-up test result indicating that there is a wake-up abnormality is generated; if the test device determines that the first number is equal to the second number, a wake-up test result indicating that there is no wake-up abnormality is generated. When the staff finds that the wake-up test result indicates that there is a wake-up abnormality, it can determine that there is an abnormality in the test device or the simulation controller, and repair the test device and the simulation controller. When the staff finds that the wake-up test result indicates that there is no wake-up abnormality, it can determine that there is no abnormality in the test device or the simulation controller.

[0094] The controller wake-up method provided in this embodiment controls the simulated controller to be awakened, which has not entered the network wake-up state, to enter the network wake-up state after the test device receives the network management message sent by the test controller, so that both the controller to be tested and the simulated controller are in the network wake-up state to ensure that the test proceeds smoothly without manual wake-up, thereby improving the state change efficiency of the simulated controller. In addition, the controller to be tested periodically sends network management messages in the network wake-up state, so that when the controller to be tested is in the network wake-up state, the simulated controller can remain in the network wake-up state, and even if it enters the network sleep state due to other factors, it can re-enter the network wake-up state in time. Only controlling the simulated controller to be awakened to enter the network wake-up state can also further improve the state change efficiency.

[0095] Figure 4 This is a flow chart of the controller wake-up method embodiment 2 provided in the present application. Based on the above embodiment, the present application embodiment describes the situation in which the test device controls the simulated controller to be awakened to enter the network wake-up state according to the wake-up method identifier in the network management message. Figure 4 As shown, the controller wake-up method specifically includes the following steps:

[0096] S401: Determine whether the wake-up mode identifier in the network management message indicates immediate wake-up; if the wake-up mode identifier in the network management message indicates immediate wake-up, execute step S402; if the wake-up mode identifier in the network management message indicates delayed wake-up, execute step S403.

[0097] In some test items, the simulation controller needs to wake up immediately after the controller under test enters the network wake-up state. For example, the controller under test is responsible for unlocking the vehicle, and the simulation controller is responsible for turning on the steering wheel heating, turning on the seat heating, etc. The functions that the controller is responsible for can only be realized in the network wake-up state, so the simulation controller needs to be woken up immediately after the controller under test enters the network wake-up state.

[0098] In some test items, the simulation controller needs to be delayed to wake up after the controller to be tested enters the network wake-up state. For example, the controller to be tested is responsible for closing the car door, and the simulation controller is responsible for starting the vehicle. After the controller to be tested enters the network wake-up state, the car door can be closed. After the car door is closed, the simulation controller enters the network wake-up state, and then the simulation controller starts the vehicle. By delaying the wake-up of the simulation controller, the car door can be ensured to be in the closed state, so that the vehicle can start normally.

[0099] Therefore, the network management message sent by the controller to be tested may include a wake-up mode identifier, and the wake-up mode identifier is used to indicate immediate wake-up or delayed wake-up.

[0100] In this step, after the test device determines the simulation controller to be awakened, in order to determine the awakening method, it is necessary to determine whether the awakening method identifier in the network management message indicates immediate awakening.

[0101] S402: Control each simulation controller to be awakened to enter a network awakening state.

[0102] In this step, if the test device determines that the wake-up mode identifier in the network management message indicates immediate wake-up, then each simulation controller to be awakened is immediately controlled to enter a network wake-up state.

[0103] S403: After the preset second time period, each simulation controller to be awakened is controlled to enter a network awakening state.

[0104] In this step, if the test device determines that the wake-up mode identifier in the network management message indicates delayed wake-up, then after a preset second time period, each simulation controller to be awakened is controlled to enter a network wake-up state.

[0105] It should be noted that the preset second time length can be 500 milliseconds, 1 second, 2 seconds, 5 seconds, 10 seconds, etc. The embodiment of the present application does not limit the preset second time length and can be determined according to actual conditions.

[0106] The controller wake-up method provided in this embodiment determines the wake-up mode according to the wake-up mode identifier included in the network message, and then controls the simulated controller to be awakened to enter the network wake-up state according to the wake-up mode, which can meet the test requirements and ensure the smooth progress of the test.

[0107] The following describes a third embodiment of the controller wake-up method provided by the present application, in which a test device controls a simulation controller to enter a network sleep state after the controller to be tested enters a network sleep state.

[0108] During the test process, some test items require that both the controller to be tested and the simulation controller are in network sleep state, so it is necessary to control the simulation controller to enter the network sleep state after the controller to be tested enters the network sleep state.

[0109] There is a target timer in the test device. The target timer is a program running in the test device. The target timer has a corresponding execution event. The execution event of the target timer is: when the timing reaches the timing duration, all simulation controllers are controlled to enter the network sleep state. The function of the target timer is to control all simulation controllers to enter the network sleep state after the timing duration.

[0110] The target timer can be set for the timing duration. Each time the timing duration is set, the target timer will be reset. That is, after the timing duration is set, the timing will be restarted. When the timing reaches the duration, all simulation controllers will be controlled to enter the network sleep state.

[0111] After controlling each simulation controller to be awakened to enter the network awakening state, the test device sets the timing duration of the target timer to the preset third duration.

[0112] It should be noted that the preset third duration is greater than the preset first duration, and the preset third duration may be 1 second, 2 seconds, 4 seconds, 5 seconds, etc. The embodiment of the present application does not limit the preset third duration, and it may be determined according to actual conditions.

[0113] The controller to be tested sends network management messages at a preset first duration period in the network wake-up state, so the test device will set the timing duration of the target timer at each preset first duration, that is, the target timer will be reset once at each preset first duration, and the target timer will start again. Since the preset third duration is greater than the preset first duration, the target timer will be reset each time it fails to reach the preset third duration, and the simulation controller will not be controlled to enter the network sleep state. That is, when the controller to be tested is in the network wake-up state, the simulation controller will also be in the network wake-up state.

[0114] Since the controller to be tested does not send network management messages in the network sleep state, when the device to be tested changes from the network wake-up state to the network sleep state, after the test device receives the network management message for the last time and then resets the target timer, the timing will reach the preset third time length, and the target timer controls all simulation controllers to enter the network sleep state. That is, the network state parameters of the simulation controller are updated to indicate that the network state of the simulation controller is the network sleep state.

[0115] It should be noted that after the simulation controller is awakened and enters the network dormant state, the sending of network management messages may also be stopped.

[0116] It should be noted that after the test device controls the simulated controller to be awakened to enter the network sleep state, since the test device or the simulated controller may have an abnormality, the simulated controller to be awakened may fail to enter the network sleep state, so a sleep report can be generated to determine whether there is an abnormality in the test device or the simulated controller.

[0117] The test device determines the third number of simulation controllers that have entered the network sleep state, and the second number of all simulation controllers; and then generates a sleep report based on the third number and the second number. That is, a blank sleep report is first generated, and then the third number and the second number are added to the sleep report. Then the sleep report is output, and when the staff finds that the third number is less than the second number, it can be determined that there is an abnormality in the test device or the simulation controller, and the test device and the simulation controller are repaired. When the staff finds that the third number is equal to the second number, it can be determined that there is no abnormality in the test device or the simulation controller.

[0118] A sleep test result indicating whether there is a sleep abnormality can also be generated, and the sleep test result can be added to the sleep report. If the test device determines that the third number is less than the second number, a sleep test result indicating that there is a sleep abnormality is generated; if the test device determines that the third number is equal to the second number, a wake-up test result indicating that there is no sleep abnormality is generated. When the staff finds that the sleep test result indicates that there is a sleep abnormality, they can determine that there is an abnormality in the test device or the simulation controller, and repair the test device and the simulation controller. When the staff finds that the sleep test result indicates that there is no sleep abnormality, they can determine that there is no abnormality in the test device or the simulation controller.

[0119] The controller wake-up method provided in this embodiment resets the target timer after each simulated controller to be awakened enters the network wake-up state, so that after the controller to be tested enters the network sleep state, the test device controls the simulated controller to enter the network sleep state, thereby ensuring smooth testing.

[0120] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0121] Figure 5 This is a schematic diagram of the structure of the controller wake-up device embodiment provided by the present application; the device can be integrated into the test device in the above method embodiment, or can be implemented by the test device in the above method embodiment. Figure 5 As shown, the controller awakening device 50 includes:

[0122] The processing module 51 is used to determine the simulated controller to be awakened that has not entered the network awakening state if a network management message is received from the controller to be tested through the target network; the controller to be tested sends the network management message with a preset first time length as a period in the network awakening state;

[0123] The control module 52 is used to control each of the simulation controllers to be awakened to enter a network awakening state.

[0124] Further, the network management message includes a wake-up mode identifier, and the wake-up mode identifier is used to indicate immediate wake-up or delayed wake-up;

[0125] Before controlling each of the to-be-awakened simulation controllers to enter the network awakening state, the processing module 51 is further configured to determine whether the awakening mode identifier in the network management message indicates immediate awakening;

[0126] The control module 52 is specifically configured to control each of the simulation controllers to be awakened to enter a network awakening state if the awakening mode identifier in the network management message indicates immediate awakening.

[0127] Furthermore, the control module 52 is further configured to:

[0128] If the wake-up mode identifier in the network management message indicates delayed wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state after a preset second time period.

[0129] Furthermore, the controller to be tested does not send a network management message in the network dormant state, and the processing module 51 is further used to:

[0130] Setting the timing duration of the target timer in the test device to a preset third duration, wherein the preset third duration is greater than the preset first duration;

[0131] The control module 52 is further configured to execute the following process through the target timer:

[0132] After the timing period, all simulation controllers are controlled to enter the network sleep state.

[0133] Furthermore, the target network is CAN.

[0134] Furthermore, the processing module 51 is also used for:

[0135] Determining a first number of simulated controllers entering a network wake-up state and a second number of all simulated controllers;

[0136] A wake-up report is generated according to the first number and the second number.

[0137] Furthermore, the processing module 51 is also used for:

[0138] Determining a third number of simulation controllers that enter a network sleep state and a second number of all simulation controllers;

[0139] A dormancy report is generated based on the third number and the second number.

[0140] The controller wake-up device provided in the embodiment is used to execute the technical solution in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.

[0141] Figure 6 This is a schematic diagram of the structure of a test device provided in this application. Figure 6 As shown, the test device 60 includes:

[0142] Processor 61, memory 62, and communication interface 63;

[0143] The memory 62 is used to store executable instructions of the processor 61;

[0144] The processor 61 is configured to execute the technical solution of the test device in any of the aforementioned method embodiments by executing the executable instructions.

[0145] Optionally, the memory 62 may be independent or integrated with the processor 61 .

[0146] Optionally, when the memory 62 is a device independent of the processor 61, the test device 60 may further include:

[0147] The bus 64 , the memory 62 and the communication interface 63 are connected to the processor 61 via the bus 64 and communicate with each other. The communication interface 63 is used to communicate with other devices.

[0148] Optionally, the communication interface 63 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0149] The bus 64 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0150] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0151] The testing device is used to execute the technical solution of the testing device in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0152] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.

[0153] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.

[0154] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0155] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0156] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

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

[0158] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0159] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0160] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0161] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A controller wake-up method, characterized in that: Applied to a test device, the test device is connected to a controller to be tested via a target network communication, the method comprising: If a network management message sent by the controller to be tested through the target network is received, a simulation controller to be awakened that has not entered the network awakening state is determined; the controller to be tested sends a network management message with a preset first time length as a period in the network awakening state; Each of the simulation controllers to be awakened is controlled to enter a network awakening state.

2. The method according to claim 1, characterized in that The network management message includes a wake-up mode identifier, where the wake-up mode identifier is used to indicate immediate wake-up or delayed wake-up; Before controlling each of the to-be-awakened simulation controllers to enter a network awakening state, the method further includes: Determining whether the wake-up mode identifier in the network management message indicates immediate wake-up; The step of controlling each of the to-be-awakened simulation controllers to enter a network awakening state includes: If the wake-up mode identifier in the network management message indicates immediate wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state.

3. The method according to claim 2, characterized in that The method further comprises: If the wake-up mode identifier in the network management message indicates delayed wake-up, each of the simulation controllers to be awakened is controlled to enter a network wake-up state after a preset second time period.

4. The method according to any one of claims 1 to 3, characterized in that: The controller to be tested does not send a network management message in a network dormant state, and the method further includes: Setting the timing duration of the target timer in the test device to a preset third duration, wherein the preset third duration is greater than the preset first duration; The target timer is used to control all simulation controllers to enter a network dormant state after a timing period.

5. The method according to claim 1, characterized in that The target network is a controller area network (CAN).

6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Determining a first number of simulated controllers entering a network wake-up state and a second number of all simulated controllers; A wake-up report is generated according to the first number and the second number.

7. The method according to claim 4, characterized in that The method further comprises: Determining a third number of simulation controllers that enter a network sleep state and a second number of all simulation controllers; A dormancy report is generated based on the third number and the second number.

8. A controller wake-up device, characterized in that: include: A processing module, configured to determine a simulated controller to be awakened that has not entered a network awakening state if a network management message is received from the controller to be tested via a target network; The controller to be tested sends a network management message in a network wake-up state with a preset first time length as a period; The control module is used to control each of the simulation controllers to be awakened to enter a network awakening state.

9. A testing device, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; The processor is configured to execute the controller wake-up method according to any one of claims 1 to 7 by executing the executable instructions.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the controller wake-up method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that It comprises a computer program, which is used to implement the controller wake-up method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Wake-up method and device of electronic equipment, electronic equipment and readable storage medium

    CN117369888A

  • Network management automation test method and device of domain controller, vehicle and medium

    CN118631692A

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

    CN118732653A

  • Function test system, method and device for vehicle domain controller

    CN118732658A

  • Vehicle wakeup method, domain controller, system, medium and product

    CN118770092A