Reset behavior detection method and device, electronic equipment and storage medium

By sending reset instructions and detection instructions to the ECU, recording the reception time of the response message, and analyzing the specific status of the ECU reset behavior, the problem that the prior art cannot effectively detect the ECU reset state, and the accurate detection and analysis of the ECU reset behavior is achieved.

CN119829379APending Publication Date: 2025-04-15GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411917701.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the field of vehicle technology, the prior art cannot effectively detect the specific status of the reset operation of the electronic control unit (ECU), and can only determine whether the reset command is correctly received through the response of the ECU feedback.

Method used

By sending a reset command to the electronic control unit to be tested, sending a detection command in a preset period, receiving and recording the reception time of the feedback response message, analyzing the reset command sending time and the response message receiving time to determine the specific status of the ECU reset behavior.

Benefits of technology

Detailed analysis and detection of the ECU reset process is realized, the ECU reset behavior can be accurately detected, and reliable technical basis is provided for vehicle maintenance and maintenance, without affecting the normal operation of the ECU.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829379A_ABST
    Figure CN119829379A_ABST
Patent Text Reader

Abstract

The invention provides a reset behavior detection method and device, electronic equipment and a storage medium, and the method comprises the steps: transmitting a reset instruction to a to-be-detected electronic control unit, and periodically transmitting a detection instruction to the to-be-detected electronic control unit according to a preset period; receiving a plurality of response messages fed back by the to-be-tested electronic control unit, and determining receiving time corresponding to the plurality of response messages respectively; according to the sending time of the reset instruction and the receiving time corresponding to the multiple response messages, the reset behavior of the to-be-detected electronic control unit is analyzed, and a reset behavior detection result corresponding to the to-be-detected electronic control unit is obtained. By recording the sending time of the reset instruction and the receiving time of each response message in detail, analysis of different stages in the reset process of the to-be-detected electronic control unit can be realized, the detection result of the reset process of the to-be-detected electronic control unit is obtained, and a reliable technical basis is provided for vehicle maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to a reset behavior detection method, device, electronic device and storage medium. Background Art

[0002] As automotive electronic systems become increasingly complex and intelligent, the number of electronic control units (ECUs) continues to increase. ECUs play a key role in function realization and performance assurance. ECU reset is an important operation. For example, when software fails, such as program crashes, falls into an infinite loop, or data errors occur, the ECU will automatically perform a reset operation to restore normal operation. After the system performs software updates or configuration changes, the ECU also needs to be reset to make the settings effective. However, in the current field of vehicle technology, when resetting the ECU, it can only be determined by the response of the ECU feedback whether the ECU has correctly received the reset instruction, but it is impossible to effectively detect the specific status of the ECU reset operation. Summary of the invention

[0003] The embodiments of the present application provide a reset behavior detection method, device, electronic device and storage medium to solve the problem of how to detect the reset behavior of an ECU.

[0004] In a first aspect, an embodiment of the present application provides a reset behavior detection method, the method comprising:

[0005] Sending a reset instruction to the electronic control unit to be tested, and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period;

[0006] Receiving multiple response messages fed back by the electronic control unit to be tested, and determining the receiving times corresponding to the multiple response messages respectively;

[0007] According to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, the reset behavior of the electronic control unit to be tested is analyzed to obtain the reset behavior detection result corresponding to the electronic control unit to be tested.

[0008] In a second aspect, an embodiment of the present application further provides a reset behavior detection device, the device comprising:

[0009] A sending module, used for sending a reset instruction to the electronic control unit to be tested, and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period;

[0010] A receiving module, used for receiving a plurality of response messages fed back by the electronic control unit to be tested, and determining the receiving times corresponding to the plurality of response messages respectively;

[0011] The result analysis module is used to analyze the reset behavior of the electronic control unit under test according to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, so as to obtain the reset behavior detection result corresponding to the electronic control unit under test.

[0012] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned reset behavior detection method when executed by the processor.

[0013] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned reset behavior detection method is implemented.

[0014] The embodiments of the present application include at least the following technical effects:

[0015] The technical solution of the embodiment of the present application records in detail the sending time of the reset instruction and the receiving time of each response message, thereby realizing the analysis of different stages in the reset process of the electronic control unit to be tested, and obtaining the detection result of the reset process of the electronic control unit to be tested. In addition, the detection process will not interfere with or damage the normal operation of the electronic control unit to be tested. It only analyzes its reset behavior by externally sending instructions and receiving response messages. It can complete the detection task without affecting the original functions and performance of the system, and can accurately detect the reset behavior of the electronic control unit, providing a reliable technical basis for the maintenance and maintenance of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flowchart of a reset behavior detection method provided in an embodiment of the present application;

[0017] Figure 2 is a structural schematic diagram of a reset behavior detection device provided in an embodiment of the present application;

[0018] Figure 3 A block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0020] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0021] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0022] like Figure 1 As shown, an embodiment of the present application provides a reset behavior detection method, the method comprising:

[0023] Step 101: Send a reset instruction to an electronic control unit to be tested, and periodically send a detection instruction to the electronic control unit to be tested according to a preset period.

[0024] First, determine the electronic control unit to be tested, which can be any one of the electronic control units included in the vehicle. The detection device and the electronic device to be tested are connected via a controller area network (CAN) bus communication, and the detection device sends a reset instruction to the electronic control unit to be tested, and the reset instruction is used to trigger the electronic control unit to be tested to enter a reset process. Specifically, the reset instruction can be transmitted via the CAN bus.

[0025] While sending the reset command, the detection device also periodically sends detection commands to the electronic control unit to be tested through the CAN bus according to a preset period.

[0026] In CAN bus communication, the ACK (Acknowledgment) mechanism is used as a mechanism for confirming message reception. When the first ECU sends a target message to the second ECU via the CAN bus, the first ECU will wait for the confirmation message fed back by the second ECU to determine that the target message has been correctly received by the second ECU. Here, the first ECU is the sending node and the second ECU is the receiving node. The confirmation message is realized by the second ECU sending an ACK signal on the CAN bus. In the CAN data frame, the ACK segment is located between the data segment and the cyclic redundancy check (CRC) segment. Specifically, the sending node will send a recessive level (usually 1), and if the receiving node receives the data correctly, it will change it to a dominant level (usually 0). This mechanism is called "recessive to dominant" or "dominant priority". If the data is not received by any node or received incorrectly, the sending node will detect that the bit is a recessive level, indicating that the data has not been confirmed, and it is considered that there may be a problem with the message transmission, which may trigger a retransmission mechanism or error handling.

[0027] The embodiment of the present application periodically sends a detection instruction and receives an ACK signal (i.e., a second affirmative response message) or an error frame (i.e., a failure response message) corresponding to the detection instruction. When the electronic control unit to be tested enters a reset state, its internal resources are used to perform reset-related operations, and it will not be able to respond to the detection instruction, that is, it will not be able to perform ACK filling. At this time, the received response message is a failure response message. When the electronic control unit to be tested has not entered a reset state or has completed the reset, an ACK signal for the detection instruction will be sent to indicate that the detection instruction has been correctly received. For example, before the electronic control unit under test enters the reset state, the detection device sends three detection instructions, namely the first detection instruction, the second detection instruction and the third detection instruction, and receives ACK signals corresponding to the first detection instruction, the second detection instruction and the third detection instruction, respectively. When sending the fourth detection instruction, since the electronic control unit under test has entered the reset state, the detection device cannot obtain the ACK signal corresponding to the fourth detection instruction, and an error frame will be detected. During this period, the detection device will continue to send detection instructions periodically, and error frames will continue to be monitored. Once the electronic control unit under test completes the reset and exits the reset state, ACK filling can be performed normally. At this time, the detection device will be able to receive the ACK signal feedback from the electronic control unit under test.

[0028] Based on this, the detection instruction can be used to detect the current state of the electronic control unit to be tested.

[0029] It should be noted that the detection device can send a detection instruction every 5 ms, and the error of the detection result of the electronic control unit to be tested determined based on this is 10 ms.

[0030] Step 102: receiving a plurality of response messages fed back by the electronic control unit to be tested, and determining the receiving times corresponding to the plurality of response messages respectively.

[0031] For the reset command, when the ECU under test receives the reset command, it will first return a reset command reception confirmation response message to inform the sender (i.e. the detection device) that the reset command has been successfully received and the reset operation is about to be performed. For the detection command, when the ECU under test has not entered the reset state, it will respond to the detection command according to the normal processing flow and return the corresponding confirmation response message. However, when the ECU under test enters the reset state, it will not be able to respond to the detection command because its internal resources are used to perform reset-related operations. At this time, the received response message is a failure response message.

[0032] When receiving a response message, it is also necessary to determine the reception time of each response message, which is usually achieved with the help of a clock module. At the moment of receiving each response message, the current timestamp is recorded so that the reset behavior of the electronic control unit under test can be analyzed based on the time information later.

[0033] Step 103: Analyze the reset behavior of the electronic control unit under test according to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, and obtain a reset behavior detection result corresponding to the electronic control unit under test.

[0034] By comparing the reset instruction sending time with the receiving time of each response message, the reset behavior of the electronic control unit to be tested can be analyzed and the reset behavior detection result can be obtained.

[0035] The reset behavior detection result can be used to determine whether the reset is triggered normally, whether the duration of the reset process is within the expected range, whether the electronic control unit under test can recover and respond normally after the reset, and other information. In addition, the reset behavior detection result can be output in a preset format, such as generating a detailed detection report, which contains the reset start time, end time, information on each key time node in the reset process, and the judgment conclusion on whether the reset behavior is normal, so that technicians can intuitively understand the reset behavior characteristics of the electronic control unit under test, and evaluate the performance and status of the electronic control unit under test or further troubleshoot it accordingly.

[0036] The embodiment of the present application records in detail the sending time of the reset instruction and the receiving time of each response message, thereby realizing the analysis of different stages of the reset process of the electronic control unit to be tested, and obtaining the detection result of the reset process of the electronic control unit to be tested. In addition, the detection process will not interfere with or damage the normal operation of the electronic control unit to be tested. It only analyzes its reset behavior by sending instructions externally and receiving response messages. It can complete the detection task without affecting the original functions and performance of the system, and can accurately detect the reset behavior of the electronic control unit, providing a reliable technical basis for the maintenance and servicing of the vehicle.

[0037] In an optional embodiment of the present application, receiving multiple response messages fed back by the electronic control unit to be tested includes:

[0038] Receiving a first positive response message fed back by the electronic control unit under test in response to the reset instruction;

[0039] Receiving a second positive response message fed back by the electronic control unit under test in response to the detection instruction;

[0040] Receive a failure response message fed back by the electronic control unit to be tested in response to the detection instruction.

[0041] Specifically, after the electronic control unit under test receives the reset instruction, before entering the reset state, it will respond to the reset instruction and feedback a first positive response message to the instruction sender (i.e., the detection device). The first positive response message is used to indicate that the electronic control unit under test has successfully received the reset instruction and has started corresponding reset preparation work inside it, such as suspending the execution of some current non-critical tasks, saving some necessary system status information, etc., that is, the electronic control unit under test has not entered the reset state at this time.

[0042] Since the detection instruction is sent to the electronic control unit under test according to the preset cycle, when the electronic control unit under test does not enter the reset state, a second positive response message will be fed back for the received detection instruction. The second positive response message is used to indicate that the electronic control unit under test can correctly parse the detection instruction and generate feedback information.

[0043] However, when the electronic control unit under test enters the reset state, since its internal resources are largely occupied to perform reset operations (such as reinitializing hardware components, reloading software programs, etc.), it will not be able to respond normally to the detection command at this time, and will feedback a failure response message. This failure response message can be used as a key indicator to determine whether the electronic control unit under test has entered the reset state.

[0044] The above implementation scheme of the present application can realize comprehensive status monitoring of the electronic control unit under test during the entire reset instruction reception and processing process by receiving these three different types of response messages. From the first affirmative response message after receiving the reset instruction, it is possible to understand the initial reception and preparation of the reset instruction by the electronic control unit under test; through the second affirmative response message, it is possible to confirm the normal operating status of the electronic control unit under test before reset and its responsiveness to the detection instruction; and the failure response message indicates the moment when the electronic control unit under test enters the reset state. This comprehensive monitoring helps to gain a deep understanding of the internal workflow and behavior changes of the electronic control unit under test, and is of great value for evaluating the performance and reliability of the electronic control unit under test and diagnosing possible faults.

[0045] In an optional embodiment of the present application, the reset behavior of the electronic control unit under test is analyzed according to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, and the reset behavior detection result corresponding to the electronic control unit under test is obtained, including:

[0046] Determine, according to the reception times respectively corresponding to the multiple response messages, a first reception time when the first affirmative response message is received, a second reception time when the failure response message is first received, and a third reception time corresponding to when the second affirmative response message is received after the failure response message is received;

[0047] The reset behavior of the electronic control unit to be tested is analyzed according to the sending time, the first receiving time, the second receiving time and the third receiving time to obtain a reset behavior detection result corresponding to the electronic control unit to be tested.

[0048] After sending a reset command to the electronic control unit under test, the detection device will pay close attention to the response messages fed back by it. Among them, the time of receiving the first positive response message fed back by the electronic control unit under test to the reset command is determined as the first receiving time. The first positive response message indicates that the electronic control unit under test has successfully received the reset command and started to carry out relevant reset preparations, such as pausing some non-critical tasks being executed, saving necessary system status information, etc. By accurately recording the first receiving time, the response speed of the electronic control unit under test to the reset command can be understood.

[0049] At the same time, when the detection instruction is continuously sent to the electronic control unit under test according to the preset cycle, the time when the failure response message fed back by the electronic control unit under test for the detection instruction is first received is determined as the second receiving time. When the electronic control unit under test enters the reset state, since its internal resources are largely used to perform reset operations (such as reinitializing hardware components, reloading software programs, etc.), it cannot respond normally to the detection instruction and will send a failure response message. The determination of the second receiving time is crucial to determine when the electronic control unit under test begins to enter the reset state, and it is a key time node for analyzing the reset behavior.

[0050] After receiving the failure response message, continue to wait for the response of the electronic control unit under test, and when the second positive response message fed back by the electronic control unit under test to the detection instruction is received again, this time is recorded as the third receiving time. At this time, the electronic control unit under test has completed the reset operation and recovered to a state where it can respond normally to the detection instruction. The third receiving time marks the end of the reset process of the electronic control unit under test and the moment of restoring normal function.

[0051] The reset behavior of the electronic control unit to be tested is analyzed according to the sending time, the first receiving time, the second receiving time and the third receiving time, and a reset behavior detection result corresponding to the electronic control unit to be tested can be obtained.

[0052] According to the sending time, the first receiving time, the second receiving time and the third receiving time, the reset behavior of the electronic control unit to be tested is analyzed, and a reset behavior detection result corresponding to the electronic control unit to be tested can be obtained, including:

[0053] Determine the time interval between the sending time and the first receiving time as the reset instruction response time corresponding to the electronic control unit to be tested;

[0054] Determine the time interval between the first receiving time and the second receiving time as the reset preparation time corresponding to the electronic unit to be tested;

[0055] Determine the time interval between the second receiving time and the third receiving time as the reset operation time corresponding to the electronic unit to be tested;

[0056] The reset instruction response time, the reset preparation time and the reset running time are determined as the reset behavior detection result corresponding to the electronic control unit to be tested.

[0057] Specifically, the time interval between the time of sending the reset command and the first receiving time of receiving the first positive response message fed back by the electronic control unit under test in response to the reset command is determined as the reset command response time corresponding to the electronic control unit under test. The reset command response time reflects the time from sending the reset command to the electronic control unit under test confirming receipt of the command and making a preliminary response.

[0058] The time interval between the first receiving time of receiving the first positive response message and the second receiving time of receiving the first failure response message fed back to the detection instruction is determined as the reset preparation time corresponding to the electronic unit under test. After receiving the reset instruction, the electronic control unit under test will first feedback the first positive response message, indicating that the instruction has been received and start to do preparatory work, such as pausing some tasks, saving relevant status information, etc. When the failure response message begins to be received, it means that the electronic control unit under test has entered the reset state and can no longer respond to the detection instruction normally, so the interval between these two time points is the time for the electronic control unit under test to prepare for reset.

[0059] The time interval between the second receiving time of the first receiving of the failure response message and the third receiving time corresponding to the second positive response message for the detection instruction feedback after the failure response message is received is determined as the reset operation time. This time period covers the whole process of the electronic control unit under test from starting to perform the reset operation (manifested as the failure response message is fed back when the detection instruction cannot be responded to) to completing the reset and restoring normal function (being able to correctly respond to the detection instruction again and send the second positive response message). It intuitively reflects the time consumed by the reset operation of the electronic control unit under test, including the total duration of key reset steps such as hardware initialization, software reloading and initialization. By analyzing the reset duration, it can be determined whether there is an abnormality in the reset process of the electronic control unit under test, such as whether the reset time is too long due to hardware failure, or whether the software reloading process is smooth. If the reset duration exceeds the normal range, it is necessary to further check the hardware and software configuration of the electronic control unit under test to determine whether there is a potential fault point.

[0060] Finally, the reset instruction response time, reset preparation time and reset operation time are integrated as the reset behavior detection result corresponding to the electronic control unit under test. This result comprehensively describes the complete behavioral performance of the electronic control unit under test when facing the reset instruction, from the timeliness of the instruction reception response, to the efficiency of the preparation work, to the time-consuming situation of the reset operation itself, providing detailed and quantitative data basis for the comprehensive evaluation of the reset performance of the electronic control unit under test. Optionally, these data can be presented in the form of a structured report, for example, the reset instruction response time, reset preparation time and reset operation time of a certain electronic control unit are clearly listed, and the evaluation conclusion of whether the reset behavior of the electronic control unit under test is normal and possible problems are given according to the preset standards or reference data of the same type of electronic control units under test.

[0061] The above implementation scheme of the present application can achieve accurate evaluation of the performance of the electronic control unit to be tested by clearly dividing and accurately measuring the reset instruction response time, reset preparation time and reset operation time. In the past, resetting the electronic control unit could only determine whether the reset was successful or roughly understand whether the reset process was abnormal. Now, with the help of these three detailed time parameters, it is possible to conduct in-depth analysis of each stage of the reset process.

[0062] In an optional embodiment of the present application, after determining the reception times respectively corresponding to the multiple response messages, the method further includes:

[0063] Obtaining a sequence of a first receiving time corresponding to the first positive response message and a second receiving time when the failure response message is first received;

[0064] When the sequence indicates that the failure response message received for the first time is earlier than the first affirmative response message, an error prompt message is output.

[0065] In a specific implementation, after determining the first reception time of the first positive response message fed back by the electronic control unit under test to the reset command and the second reception time of the first reception of the failure response message fed back to the detection command, it is necessary to obtain the order of these two times. For example, the first reception time is T1 and the second reception time is T2, and it is determined whether T1 is less than T2, so as to determine the order.

[0066] When the sequence indicates that the first received failure response message precedes the first positive response message, a situation that does not conform to normal logic has occurred, and the detection device will output an error prompt message. For example, the error code and error description are displayed on the display screen of the detection device, such as "ECU reset response sequence error: failure response precedes positive response"; the operator can also be reminded by sound alarms, etc.; at the same time, the error information may also be recorded in the system log file for subsequent viewing and analysis. Such an output mechanism is intended to promptly inform relevant personnel that an abnormal situation has occurred during the detection process and requires further inspection and processing.

[0067] Under normal circumstances, the ECU under test should first receive the reset command and feedback the first positive response message, and then start to feedback the failure response message to the detection command when entering the reset state. If the failure response message appears before the first positive response message, it is likely that there is a serious problem with the internal communication, command processing logic or status monitoring mechanism of the ECU under test.

[0068] The above implementation scheme of the present application can discover some error conditions that may be ignored by strictly checking the time sequence of receiving response messages, avoid erroneous judgment on the reset behavior of the electronic control unit under test due to erroneous detection results, and help ensure the accuracy and reliability of the detection process by timely outputting error prompt information.

[0069] In an optional embodiment of the present application, before sending a reset instruction to the electronic control unit under test and periodically sending a detection instruction to the electronic control unit under test according to a preset period, the method further includes:

[0070] Building a detection system, wherein the detection system includes a detection device and the electronic control unit to be tested;

[0071] A CAN network communication connection is established between the detection device and the electronic control unit to be tested.

[0072] Before performing reset behavior detection on the ECU to be tested, the first task is to build a detection system. This detection system includes a detection device and an ECU to be tested. The detection device can be connected to a PC to control the instructions sent by the detection device to the ECU to be tested through the PC, and to analyze the response instructions received by the detection device. The ECU to be tested is an ECU that needs to be reset behavior detected, such as an ECU that controls various functions of the vehicle engine, transmission, body system, etc.

[0073] The detection equipment can generate reset instructions and detection instructions according to predetermined rules and protocols, and can record the time when the instructions are sent and the time when each response message is received from the electronic control unit under test, so as to conduct a detailed analysis of the reset behavior of the electronic control unit under test. In addition, the PC connected to the detection equipment has certain display or output functions, which are used to present relevant information such as test results and error prompts, so that operators can intuitively understand the progress and status of the test.

[0074] After the detection system is built, a communication connection is established between the detection equipment and the electronic control unit to be tested, and the communication method here can be a CAN communication connection.

[0075] The above implementation scheme of the present application provides a stable and reliable detection environment for the subsequent reset behavior detection of the electronic control unit to be tested by building a detection system and establishing a CAN network communication connection.

[0076] In an optional embodiment of the present application, sending a reset instruction to the electronic control unit to be tested, and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period, includes:

[0077] Based on the CAN network communication connection, the detection device sends the reset instruction and the detection instruction to the electronic device to be tested in the form of CAN messages.

[0078] Specifically, after the detection system is built, the detection device sends a reset instruction to the electronic control unit to be tested and sends a detection instruction according to a preset period, which is achieved in the form of CAN messages.

[0079] When the detection device wants to send reset instructions and detection instructions, it will encapsulate these instructions in the format of CAN messages. After that, the detection device sends the encapsulated CAN messages to the bus through the established CAN communication network.

[0080] The above implementation scheme of the present application sends the detection instruction in the form of a message through the CAN network, and can use the ACK mechanism of the CAN protocol to realize the analysis of different stages of the reset process of the electronic control unit to be tested, and obtain the detection result of the reset process of the electronic control unit to be tested.

[0081] The above describes the reset behavior detection method provided by the embodiment of the present application. The following describes the reset behavior detection device provided by the embodiment of the present application in conjunction with the accompanying drawings.

[0082] like Figure 2 As shown, an embodiment of the present invention further provides a reset behavior detection device, the device comprising:

[0083] The sending module 201 is used to send a reset instruction to the electronic control unit under test, and periodically send a detection instruction to the electronic control unit under test according to a preset period;

[0084] The receiving module 202 is used to receive multiple response messages fed back by the electronic control unit to be tested, and determine the receiving times corresponding to the multiple response messages respectively;

[0085] The result analysis module 203 is used to analyze the reset behavior of the electronic control unit under test according to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, and obtain the reset behavior detection result corresponding to the electronic control unit under test.

[0086] Optionally, the receiving module includes:

[0087] A first receiving submodule, configured to receive a first positive response message fed back by the electronic control unit under test in response to the reset instruction;

[0088] A second receiving submodule, configured to receive a second positive response message fed back by the electronic control unit to be tested in response to the detection instruction;

[0089] The third receiving submodule is used to receive a failure response message fed back by the electronic control unit to be tested in response to the detection instruction.

[0090] Optionally, the result analysis module includes:

[0091] A first determination submodule is used to determine, according to the reception times respectively corresponding to the multiple response messages, a first reception time when the first affirmative response message is received, a second reception time when the failure response message is first received, and a third reception time corresponding to the second affirmative response message received after the failure response message is received;

[0092] The result analysis submodule is used to analyze the reset behavior of the electronic control unit under test according to the sending time, the first receiving time, the second receiving time and the third receiving time, and obtain the reset behavior detection result corresponding to the electronic control unit under test.

[0093] Optionally, the result analysis submodule includes:

[0094] A first determining unit, configured to determine a time interval between the sending time and the first receiving time as a reset instruction response time corresponding to the electronic control unit to be tested;

[0095] a second determining unit, configured to determine a time interval between the first receiving time and the second receiving time as a reset preparation time corresponding to the electronic unit to be tested;

[0096] a third determining unit, configured to determine a time interval between the second receiving time and the third receiving time as a reset operation time corresponding to the electronic unit to be tested;

[0097] The fourth determining unit is used to determine the reset instruction response time, the reset preparation time and the reset running time as the reset behavior detection result corresponding to the electronic control unit to be tested.

[0098] Optionally, after determining the reception times respectively corresponding to the multiple response messages, the apparatus further includes:

[0099] An acquisition module, used for acquiring a sequence of a first receiving time corresponding to the first positive response message and a second receiving time when the failure response message is first received;

[0100] The output module is used to output an error prompt message when the sequence indicates that the failure response message received for the first time is earlier than the first affirmative response message.

[0101] Optionally, before sending a reset instruction to the electronic control unit to be tested and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period, the device further includes:

[0102] A building module, used for building a detection system, wherein the detection system includes a detection device and the electronic control unit to be tested;

[0103] An establishing module is used to establish a CAN network communication connection between the detection device and the electronic control unit to be tested.

[0104] Optionally, the sending module is further used for:

[0105] Based on the CAN network communication connection, the detection device sends the reset instruction and the detection instruction to the electronic device to be tested in the form of CAN messages.

[0106] The reset behavior detection device provided by the present application records in detail the sending time of the reset instruction and the receiving time of each response message, thereby realizing the analysis of different stages in the reset process of the electronic control unit to be tested, and obtaining the detection result of the reset process of the electronic control unit to be tested. In addition, the detection process will not interfere with or damage the normal operation of the electronic control unit to be tested. It only analyzes its reset behavior by externally sending instructions and receiving response messages. It can complete the detection task without affecting the original functions and performance of the system, and can accurately detect the reset behavior of the electronic control unit, providing a reliable technical basis for the maintenance and maintenance of the vehicle.

[0107] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0108] An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned reset behavior detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0109] For example, Figure 3 FIG. 1 shows a schematic diagram of the physical structure of an electronic device. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330, and the processor 310 is used to perform the following steps: send a reset instruction to the electronic control unit to be tested, and periodically send a detection instruction to the electronic control unit to be tested according to a preset period; receive multiple response messages fed back by the electronic control unit to be tested, and determine the receiving time corresponding to the multiple response messages; analyze the reset behavior of the electronic control unit to be tested according to the sending time of the reset instruction and the receiving time corresponding to the multiple response messages, and obtain the reset behavior detection result corresponding to the electronic control unit to be tested. The processor 310 may also execute other schemes in the embodiments of the present application, which will not be further elaborated here.

[0110] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0111] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above reset behavior detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0112] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0114] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0115] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0117] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0118] 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.

[0119] In addition, each functional unit in each embodiment of the present application 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.

[0120] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes 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 described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0121] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A reset behavior detection method, characterized in that: The method comprises: Sending a reset instruction to the electronic control unit to be tested, and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period; Receiving multiple response messages fed back by the electronic control unit to be tested, and determining the receiving times corresponding to the multiple response messages respectively; According to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, the reset behavior of the electronic control unit to be tested is analyzed to obtain the reset behavior detection result corresponding to the electronic control unit to be tested.

2. The reset behavior detection method according to claim 1, characterized in that: Receiving a plurality of response messages fed back by the electronic control unit to be tested, comprising: Receiving a first positive response message fed back by the electronic control unit under test in response to the reset instruction; Receiving a second positive response message fed back by the electronic control unit under test in response to the detection instruction; Receive a failure response message fed back by the electronic control unit to be tested in response to the detection instruction.

3. The reset behavior detection method according to claim 2, characterized in that: According to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, the reset behavior of the electronic control unit to be tested is analyzed to obtain the reset behavior detection result corresponding to the electronic control unit to be tested, including: Determine, according to the reception times respectively corresponding to the multiple response messages, a first reception time when the first affirmative response message is received, a second reception time when the failure response message is first received, and a third reception time corresponding to when the second affirmative response message is received after the failure response message is received; The reset behavior of the electronic control unit to be tested is analyzed according to the sending time, the first receiving time, the second receiving time and the third receiving time to obtain a reset behavior detection result corresponding to the electronic control unit to be tested.

4. The reset behavior detection method according to claim 3, characterized in that: Analyzing the reset behavior of the electronic control unit to be tested according to the sending time, the first receiving time, the second receiving time, and the third receiving time to obtain a reset behavior detection result corresponding to the electronic control unit to be tested, including: Determine the time interval between the sending time and the first receiving time as the reset instruction response time corresponding to the electronic control unit to be tested; Determine the time interval between the first receiving time and the second receiving time as the reset preparation time corresponding to the electronic unit to be tested; Determine the time interval between the second receiving time and the third receiving time as the reset operation time corresponding to the electronic unit to be tested; The reset instruction response time, the reset preparation time and the reset running time are determined as the reset behavior detection result corresponding to the electronic control unit to be tested.

5. The reset behavior detection method according to claim 2, characterized in that: After determining the receiving times respectively corresponding to the multiple response messages, the method further includes: Obtaining a sequence of a first receiving time corresponding to the first positive response message and a second receiving time when the failure response message is first received; When the sequence indicates that the failure response message received for the first time is earlier than the first affirmative response message, an error prompt message is output.

6. The reset behavior detection method according to claim 2, characterized in that: Before sending a reset instruction to the electronic control unit to be tested and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period, the method further includes: Building a detection system, wherein the detection system includes a detection device and the electronic control unit to be tested; A CAN network communication connection is established between the detection device and the electronic control unit to be tested.

7. The reset behavior detection method according to claim 6, characterized in that: Sending a reset instruction to the electronic control unit to be tested, and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period, including: Based on the CAN network communication connection, the detection device sends the reset instruction and the detection instruction to the electronic device to be tested in the form of CAN messages.

8. A reset behavior detection device, characterized in that: include: A sending module, used for sending a reset instruction to the electronic control unit to be tested, and periodically sending a detection instruction to the electronic control unit to be tested according to a preset period; A receiving module, used for receiving a plurality of response messages fed back by the electronic control unit to be tested, and determining the receiving times corresponding to the plurality of response messages respectively; The result analysis module is used to analyze the reset behavior of the electronic control unit under test according to the sending time of the reset instruction and the receiving times corresponding to the multiple response messages, so as to obtain the reset behavior detection result corresponding to the electronic control unit under test.

9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the reset behavior detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the reset behavior detection method according to any one of claims 1 to 7 is implemented.