Electronic control unit abnormality processing method, device, storage medium and electronic equipment

By communicating with the ECU through the host computer, the status values ​​and real-time identification data are obtained and compared, which solves the problem that the existing technology cannot monitor abnormal power failure or reset of the ECU, and realizes timely abnormal judgment and stable operation of the ECU.

CN116300823BActive Publication Date: 2026-01-20WEICHAI POWER CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310318280.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2026-01-20
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

Existing technology cannot effectively monitor abnormal power outages or abnormal resets of the electronic control unit (ECU) during test drives, which can lead to ECU malfunctions.

Method used

The host computer communicates with the ECU to obtain the current status value and cached status value of the ECU's first preset parameter. If the current status value is less than or equal to the cached status value, and/or no communication message is received within a preset time period, the ECU is determined to be abnormal. By comparing the real-time identification data with the reference identification data, it is determined whether the ECU has been abnormally powered off or abnormally reset.

Benefits of technology

It enables timely monitoring of ECU malfunctions, ensuring the normal operation of the ECU, improving the accuracy and reliability of monitoring during test drives, and preventing ECU malfunctions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116300823B_ABST
    Figure CN116300823B_ABST
Patent Text Reader

Abstract

The application provides an electronic control unit abnormality processing method and device, a storage medium and electronic equipment. The method comprises the following steps: firstly, obtaining a current state value and a cache state value of a first preset parameter in an ECU, the current state value being an accumulated value of the first preset parameter from an initial time to a current time, and the cache state value being an accumulated value of the first preset parameter from the initial time to a previous time of the current time; then, in the case that the current state value is less than or equal to the cache state value, and / or in the case that a host computer does not receive a communication message sent by the ECU within a first preset time period, determining that the ECU is abnormal, the ECU abnormality being ECU abnormal power-off or ECU abnormal reset. The application can determine whether the ECU is abnormal in time by diagnosing the state value comparison of the preset parameter and the reception of the communication message sent by the ECU, and solves the problem that there is no effective means to monitor ECU abnormal power-off or ECU abnormal reset in the trial running process in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle test driving, in particular to an electronic control unit (ECU) abnormality processing method, an ECU abnormality processing device, a computer readable storage medium and an electronic device. BACKGROUND

[0002] According to the requirements for vehicle product delivery, various possible faults in the early stage must be detected through test driving, and corresponding measures must be taken in time to ensure the quality of vehicle products. The test driving includes delivery test driving and endurance test driving. For some specific models, the electronic control unit (ECU) abnormal power-off or abnormal reset during test driving is not allowed, otherwise the ECU storage will be abnormal, and the ECU function will be abnormal, so the test driving whole process must be monitored.

[0003] However, the existing scheme cannot correctly monitor the ECU abnormal power-off or ECU abnormal reset. SUMMARY

[0004] The main purpose of the present application is to provide an electronic control unit (ECU) abnormality processing method, an ECU abnormality processing device, a computer readable storage medium and an electronic device, so as to at least solve the problem that there is no effective means to monitor the ECU abnormal power-off or ECU abnormal reset in the prior art.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic control unit (ECU) abnormality processing method is provided, the processing method is applied to an upper computer, the upper computer communicates with the ECU, the ECU is installed on a vehicle, and the ECU is used to control an engine of the vehicle. The method comprises the following steps: obtaining a current state value and a cache state value of a first preset parameter in the ECU, the current state value is an accumulated value of the first preset parameter from an initial time to a current time, the cache state value is an accumulated value of the first preset parameter from the initial time to a last time before the current time, and the first preset parameter comprises at least one of the following: running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine, and driving mileage of the vehicle; in the case that the current state value is less than or equal to the cache state value, and / or in the case that the upper computer does not receive a communication packet sent by the ECU within a first preset time period, it is determined that the ECU is abnormal, and the ECU abnormality is ECU abnormal power-off or ECU abnormal reset.

[0006] Optionally, the method further comprises: in the case that the communication message is received within the first preset time period, preliminarily determining that the ECU is normal, obtaining a preliminary normal result; and finally determining that the ECU is normal according to the preliminary normal result and the current state value being greater than the cached state value.

[0007] Optionally, the method further comprises: in the case that the current state value is greater than the cached state value, updating the latest cached state value as the current state value at the current time.

[0008] Optionally, in the case that the current state value is less than or equal to the cached state value, and / or, in the case that the host computer does not receive the communication message sent by the ECU within the first preset time period after determining that the ECU is abnormal, the method further comprises: obtaining real-time identification data stored in a preset address, and comparing the real-time identification data with reference identification data, the data in the preset address being data that is lost in the case of power failure of the ECU and is not lost in the case of reset of the ECU, and the reference identification data being initially stored in the preset address; in the case that the real-time identification data and the reference identification data are inconsistent, determining that the ECU is abnormally powered off; and in the case that the real-time identification data and the reference identification data are consistent, determining that the ECU is abnormally reset.

[0009] Optionally, the host computer has a visual operation interface, the visual operation interface has a plurality of display regions, the plurality of display regions include a first display region, a second display region, a third display region, and a fourth display region, and the method further comprises: displaying the current state value and the cached state value of the first preset parameter in the first display region; displaying a state value change curve in the second display region, the state value change curve being a curve dynamically formed according to time sequence from a plurality of current state values obtained from the initial time to the current time; displaying a receiving state of the communication message in the third display region, the receiving state of the communication message including a time at which each communication message is received within the first preset time period and a number of the communication messages received; and displaying a first fault code and a second fault code in the fourth display region, the first fault code being used to represent abnormal power-off of the ECU, and the second fault code being used to represent abnormal reset of the ECU.

[0010] Optionally, after determining that the ECU is abnormal, the method further comprises: suspending the obtaining of the current state value and the cached state value of the ECU, and suspending the receiving of the communication message; initializing the ECU and, after the initialization of the ECU is completed, re-determining whether the ECU is abnormal.

[0011] Optionally, the electronic control unit is initialized, including at least one of the following: clearing historical fault information in the host computer, the historical fault information being ECU abnormal power-off information or ECU abnormal reset information, wherein the ECU abnormal power-off information or the ECU abnormal reset information is stored in the host computer in real time in the case of ECU abnormality; determining the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle; sending a connection request information to the ECU, and determining whether a connection confirmation information returned by the ECU is received, and in the case that the connection confirmation information is received, confirming that the ECU and the host computer establish communication.

[0012] According to another aspect of the present application, an electronic control unit abnormality processing device is provided, the device comprising: an acquisition unit configured to acquire a current state value and a cache state value of a first preset parameter in the ECU, the current state value being an accumulated value of the first preset parameter from an initial time to a current time, the cache state value being an accumulated value of the first preset parameter from the initial time to a previous time of the current time, the first preset parameter including at least one of the following: running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine, and driving mileage of the vehicle; an abnormality determination unit configured to determine that the ECU is abnormal in the case that the current state value is less than or equal to the cache state value, and / or, in the case that the host computer does not receive a communication packet sent by the ECU within a first preset time period, the ECU abnormality being ECU abnormal power-off or ECU abnormal reset.

[0013] According to still another aspect of the present application, a computer readable storage medium is provided, the computer readable storage medium comprising a stored program, wherein the computer readable storage medium controls a device where the computer readable storage medium is located to execute any one of the electronic control unit abnormality processing methods when the program is executed.

[0014] According to still another aspect of the present application, an electronic device is provided, the electronic device comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising a program for executing any one of the electronic control unit abnormality processing methods.

[0015] The application discloses an electronic control unit (ECU) abnormality processing method and device, and a mobile terminal. BRIEF DESCRIPTION OF DRAWINGS

[0016] The drawings constituting a part of the specification of the application are used to provide further understanding of the application, the illustrative embodiments of the application and the description thereof are used to explain the application, and do not constitute improper limitation on the application. In the drawings:

[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing an electronic control unit abnormality processing method is shown according to an embodiment of the application;

[0018] Figure 2 A flowchart of an electronic control unit abnormality processing method is shown according to an embodiment of the application;

[0019] Figure 3 A flowchart of a method for determining electronic control unit abnormal power-off or abnormal reset is shown according to an embodiment of the application;

[0020] Figure 4 A flowchart of a visual operation interface display is shown according to an embodiment of the application;

[0021] Figure 5 A flowchart of a host computer initialization is shown according to an embodiment of the application;

[0022] Figure 6 A flowchart of another electronic control unit abnormality processing method is shown according to an embodiment of the application;

[0023] Figure 7A structural block diagram of an electronic control unit abnormality processing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0025] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0027] As introduced in the background, the prior art cannot realize correct monitoring of ECU abnormal power-off or ECU abnormal reset. To solve the problem that there is no effective means to monitor ECU abnormal power-off or ECU abnormal reset during the test run in the prior art, the embodiments of the present application provide an electronic control unit abnormality processing method, an electronic control unit abnormality processing device, a computer readable storage medium and an electronic device.

[0028] The technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the accompanying drawings of the embodiments of the present application.

[0029] The method embodiments provided in the embodiments of the present application can be executed in a host computer or similar computing device. Taking the case of running on a host computer, Figure 1 is a hardware structural block diagram of a host computer of an electronic control unit abnormality processing method according to an embodiment of the present application. As Figure 1 shown, the host computer can include one or more Figure 1The host computer shown in FIG. 1 can include only one processor 102 (the processor 102 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the host computer can further include a transmission device 106 for communication function and an input / output device 108. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the host computer. For example, the host computer can further include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1. Figure 1 For example, the host computer can include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1. Figure 1 For example, the host computer can include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1.

[0030] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the device information display method in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, implements the above-mentioned method. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely disposed relative to the processor 102, which can be connected to the host computer through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The specific examples of the network can include a wireless network provided by a communication provider of the host computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

[0031] In the present embodiment, an electronic control unit abnormality processing method running on a host computer is provided. The processing method is applied to a host computer, and the host computer communicates with an electronic control unit (ECU) installed on a vehicle. The ECU is used to control the engine of the vehicle. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in a different order.

[0032] Figure 2is a flowchart of an electronic control unit abnormality processing method according to an embodiment of the present application. As shown in Figure 2 the method comprises the following steps:

[0033] Step S201: obtaining a current state value and a cache state value of a first preset parameter in the ECU;

[0034] The current state value is the cumulative value of the first preset parameter from an initial time to a current time, the cache state value is the cumulative value of the first preset parameter from the initial time to a previous time of the current time, and the first preset parameter includes at least one of the following: the running time of the ECU, the energy consumption data of the vehicle, the continuous working time of the engine, and the driving mileage of the vehicle.

[0035] Specifically, the electronic control unit is used to control the engine, and real-time communication is performed between the electronic control unit and the upper computer, so that the upper computer monitors the electronic control unit. The first preset parameter is a parameter whose value is constantly accumulated in the electronic control unit during engine operation. Those skilled in the art can select other parameters according to actual needs. As can be seen, different first preset parameters are monitored, different parameters can be selected for monitoring according to actual conditions, and the flexibility and applicability of the abnormality monitoring method are improved.

[0036] Step S202: determining that the ECU is abnormal in the case that the current state value is less than or equal to the cache state value, and / or the upper computer does not receive the communication message sent by the ECU within a first preset time period. The ECU abnormality is abnormal power-off of the ECU or abnormal reset of the ECU.

[0037] Specifically, by obtaining the current state value and the cache state value of the first preset parameter in the ECU and comparing them, it can be effectively detected whether the ECU has abnormal power-off or abnormal reset. By using the communication mode of the upper computer and the ECU, the running state of the ECU can be monitored in real time during the test run, and the normal operation of the ECU is ensured.

[0038] It can be seen that the embodiment of the application provides an electronic control unit abnormality processing method. The processing method is applied to a host computer. The host computer communicates with an electronic control unit (ECU). The ECU is installed on a vehicle. The ECU is used to control an engine of the vehicle. First, a current state value and a cache state value of a first preset parameter in the ECU are acquired. The current state value is an accumulated value of the first preset parameter from an initial time to a current time. The cache state value is an accumulated value of the first preset parameter from the initial time to a previous time of the current time. The first preset parameter includes at least one of the following: running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine, and driving mileage of the vehicle. Then, in a case where the current state value is less than or equal to the cache state value, and / or in a case where the host computer does not receive a communication message sent by the ECU within a first preset time period, it is determined that the ECU is abnormal. The ECU abnormality is that the ECU is abnormally powered off or the ECU is abnormally reset. The application can determine whether the ECU is abnormal in a timely manner by comparing the state values of the preset parameters and / or receiving the communication message sent by the ECU, and solves the problem that there is no effective means to monitor the abnormal power-off of the electronic control unit or the abnormal reset of the electronic control unit in the prior art.

[0039] As a possible implementation manner, the method further includes:

[0040] In a case where the communication message is received within the first preset time period, it is preliminarily determined that the ECU is normal, and a preliminary normal result is obtained.

[0041] Specifically, since it is considered that in the first preset time period, if the communication message sent by the ECU is not received, it cannot be accurately determined that the ECU is abnormal, and there may be a case that the communication between the host computer and the ECU is abnormal, therefore, the preliminary judgment is performed according to the case where the communication message is received within the first preset time period, and the communication between the host computer and the ECU is used, so that the running state of the ECU can be monitored in real time, and the normal running of the ECU is ensured.

[0042] According to the preliminary normal result and the current state value being greater than the cache state value, it is finally determined that the ECU is normal.

[0043] Specifically, whether the ECU is normal is judged according to the comparison between the current state value and the cache state value, so that the state of the ECU can be more accurately judged. It can be seen that in the embodiment of the application, the case where the communication message is received within the first preset time period and the comparison between the current state value and the cache state value are combined to judge whether the ECU is abnormal, so that the accuracy of judging whether the ECU is abnormal can be further improved, and false positives of the ECU being abnormal are avoided.

[0044] As a possible implementation, the method further comprises:

[0045] In the case that the current state value is greater than the cache state value, the latest cache state value is updated as the current state value at the current time.

[0046] Specifically, in the case that the current state value is greater than the cache state value, the latest cache state value is updated as the current state value at the current time, so as to determine the state of the ECU next time. It can be seen that updating the cache state value can ensure that the latest state value is used when the state of the ECU is determined next time, thereby improving the accuracy and reliability of the scheme. By updating the cache state value, the current state of the ECU can be more accurately determined, and false reporting of ECU abnormalities can be avoided.

[0047] Figure 3 is a flowchart of a method for determining an abnormal power-off or abnormal reset of an electronic control unit according to an embodiment of the present application. The method comprises the following steps:

[0048] Step S301: obtaining real-time identification data stored in a preset address, and comparing the real-time identification data with reference identification data, the data in the preset address being data that is lost in the case of power-off of the ECU and is not lost in the case of reset of the ECU, and the reference identification data being initially stored in the preset address;

[0049] Specifically, after each power-on of the ECU, it is first determined whether the real-time identification data stored in the preset address is consistent with the reference identification data. If not, it indicates that the ECU is just powered on, and the real-time identification data stored in the preset address is random. Therefore, the real-time identification data stored in the preset address is modified as the reference identification data. If the ECU abnormality occurs next time, the real-time identification data stored in the preset address is read, and it is determined whether the real-time identification data is consistent with the reference identification data.

[0050] Step S302: in the case that the real-time identification data is not consistent with the reference identification data, it is determined that the ECU is abnormally powered off.

[0051] Specifically, when the ECU is abnormally powered off, the real-time identification data stored in the preset address becomes a random value. At this time, the real-time identification data is not consistent with the reference identification data.

[0052] Step S303: in the case that the real-time identification data is consistent with the reference identification data, it is determined that the ECU is abnormally reset.

[0053] Specifically, when the ECU is abnormally reset, the real-time identification data stored in the preset address is not lost. At this time, the real-time identification data is consistent with the reference identification data.

[0054] Therefore, by comparing the real-time identification data and the reference identification data, the type of ECU abnormality can be accurately determined, and the determination can be made in the case of ECU power failure and reset, etc. The data in the preset address can be lost in the case of ECU power failure, but does not affect the determination of the type of ECU abnormality, has a certain robustness, and improves the accuracy and reliability of the ECU abnormality processing method. In the embodiments of the application, the communication mode of the upper computer and the ECU is also adopted, the running state of the ECU can be monitored in real time, and the type of abnormality is determined by the data stored in the preset address, which has real-time and accuracy.

[0055] Figure 4 is a flowchart of a visual operation interface display according to an embodiment of the application. The method comprises the following steps:

[0056] Step S401: display the current state value and the cache state value of the first preset parameter in the first display area;

[0057] Specifically, the first display area is used to display the current state value and the cache state value of the first preset parameter, so that the test monitoring personnel can understand the running state of the ECU, thereby monitoring whether the ECU has an abnormality.

[0058] Step S402: display the state value change curve in the second display area, the state value change curve being a curve dynamically formed according to the time sequence of the plurality of current state values obtained from the initial time to the current time;

[0059] Specifically, the second display area is used to display the state value change curve, which shows the change trend of the ECU state value through the dynamically formed curve, thereby further enhancing the intuitive feeling and understanding of the test monitoring personnel on the running state of the ECU.

[0060] Step S403: display the receiving state of the communication message in the third display area, the receiving state of the communication message including the time of receiving each communication message and the number of received communication messages in the first preset time period;

[0061] Specifically, the third display area is used to display the receiving state of the communication message, including the number of received messages and the time of message receiving, etc. information, so that the test monitoring personnel can understand the communication state of the ECU and the upper computer, thereby monitoring whether the ECU has an abnormality.

[0062] Step S404: display the first fault code and the second fault code in the fourth display area, the first fault code being used to represent the abnormal power failure of the ECU, and the second fault code being used to represent the abnormal reset of the ECU.

[0063] Specifically, the fourth display area is used to display the first fault code and the second fault code for representing the case of abnormal power-off and abnormal reset of the ECU, so as to facilitate the test monitoring personnel to find the abnormal condition of the ECU in time and to take corresponding processing.

[0064] It can be seen that, through the design of the visual operation interface, the test monitoring personnel can intuitively understand the state and abnormal information of the ECU, and the use experience and operation efficiency of the test monitoring personnel are improved. Through the display of the state value change curve, the test monitoring personnel can more clearly understand the change trend of the ECU state, which helps to find the abnormal condition of the ECU in time. Through the display of the communication message receiving state, the test monitoring personnel can understand the communication state between the ECU and the upper computer in time, which also helps to find the abnormal condition of the ECU in time. Through the representation of the first fault code and the second fault code, the test monitoring personnel can conveniently handle the abnormal condition of the ECU in time, and the stability and reliability of the ECU are improved.

[0065] As a possible implementation manner, after determining that the ECU is abnormal, the method further includes:

[0066] suspending acquisition of the current state value and the cached state value of the ECU, and suspending reception of the communication message;

[0067] Specifically, after determining that the ECU is abnormal, the current state value and the cached state value of the ECU need to be suspended, and the communication message needs to be suspended. This is because in the case of ECU abnormality, the acquired state value and the message may be inaccurate, which will affect the subsequent processing flow.

[0068] initializing the ECU and, after the ECU initialization is completed, re-determining whether the ECU is abnormal.

[0069] Specifically, the ECU is initialized, and after the ECU initialization is completed, whether the ECU is abnormal is re-determined. The ECU initialization refers to restoring the ECU to the initial state, so as to re-judge whether the ECU is abnormal. If the ECU is still abnormal after the ECU initialization, corresponding processing measures need to be taken, and if the ECU has returned to normal, the normal operation flow can be continued.

[0070] It can be seen that, in the case of ECU abnormality, by suspending the acquisition of the state value and the message, inaccurate information can be avoided, and the accuracy and reliability of the subsequent processing flow are ensured. By initializing the ECU and re-determining whether the ECU is abnormal, the abnormal condition of the ECU can be found in time, and corresponding processing measures can be taken, so as to improve the stability and reliability of the ECU.

[0071] Figure 5is a flowchart of a host computer initialization according to an embodiment of the present application. The initialization of the host computer includes at least one of the following steps:

[0072] Step S501: clear the historical fault information in the host computer, the historical fault information being the ECU abnormal power-off information or the ECU abnormal reset information, wherein in the case of ECU abnormality, the ECU abnormal power-off information or the ECU abnormal reset information is stored in the host computer in real time;

[0073] Specifically, the historical fault information in the host computer is cleared, including ECU abnormal power-off information or ECU abnormal reset information. In the case of ECU abnormality, the abnormal information is stored in the host computer in real time, so before the ECU initialization, the historical fault information in the host computer needs to be cleared to ensure that the next ECU abnormality determination can be accurately performed.

[0074] Step S502: determine the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle;

[0075] Specifically, the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle are determined. When determining ECU abnormality, some parameters and time periods need to be preset for determining whether the ECU is abnormal. After the ECU initialization, these parameters and time periods need to be determined again to ensure that the next ECU abnormality determination is more accurate and reliable.

[0076] Step S503: send a connection request information to the ECU, and determine whether the connection confirmation information returned by the ECU is received, and in the case that the connection confirmation information is received, it is confirmed that the ECU and the host computer establish communication.

[0077] Specifically, the connection request information is sent to the ECU, and it is determined whether the connection confirmation information returned by the ECU is received. Before the ECU initialization, communication with the ECU needs to be established to ensure that the ECU has recovered to normal. Sending the connection request information can help confirm whether the ECU is in a normal state, and after receiving the connection confirmation information returned by the ECU, it can be confirmed that the ECU and the host computer have established communication, so as to perform the subsequent operation flow.

[0078] Therefore, by clearing the historical fault information in the host computer, determining the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle, sending the connection request information to the ECU, and determining whether the connection confirmation information returned by the ECU is received, the above three initialization methods can be used in combination to ensure that the host computer can normally run after initialization is completed, realize abnormal monitoring of the ECU, and the host computer monitoring the ECU can be initialized after the ECU appears abnormal, or the initialization of the host computer can be performed before monitoring whether the ECU appears abnormal each time. Of course, those skilled in the art can extend the initialization method of the host computer according to actual needs to make the efficiency of host computer initialization higher and the stability better.

[0079] In order for those skilled in the art to more clearly understand the technical solutions of the present application, the implementation process of the electronic control unit abnormality processing method of the present application will be described in detail below in combination with specific embodiments.

[0080] The present embodiment relates to a specific electronic control unit abnormality processing method, which can first initialize the host computer monitoring the ECU, such as Figure 6 as shown, comprising the following steps:

[0081] Step S1: clearing the historical fault information in the host computer, the historical fault information being the ECU abnormality power-off information or the ECU abnormality reset information, wherein in the case of ECU abnormality, the ECU abnormality power-off information or the ECU abnormality reset information is stored in the host computer in real time;

[0082] Step S2: determining the first preset parameter and the first preset time period used in the current ECU abnormality determination cycle;

[0083] Step S3: sending the connection request information to the ECU, and determining whether the connection confirmation information returned by the ECU is received, and in the case of receiving the connection confirmation information, confirming that the ECU and the host computer establish communication;

[0084] Step S4: obtaining the current state value and the cache state value of the first preset parameter in the ECU, the current state value being the cumulative value of the first preset parameter from the initial time to the current time, and the cache state value being the cumulative value of the preset parameter from the initial time to the last time of the current time, the first preset parameter including at least one of the following: the running time of the ECU, the energy consumption data of the vehicle, the continuous working time of the engine, and the driving mileage of the vehicle;

[0085] Step S5: In the case that the current state value is less than or equal to the cache state value, and / or, the host computer does not receive the communication message sent by the ECU within the first preset time period, it is determined that the ECU is abnormal, and the ECU abnormality is abnormal power-off or abnormal reset of the ECU.

[0086] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in a different order.

[0087] The electronic control unit abnormality processing device provided in the embodiments of the present application can be used to execute the electronic control unit abnormality processing method provided in the embodiments of the present application. The device is used to realize the above embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiments is preferably realized in software, hardware, or a combination of software and hardware can also be realized and conceived.

[0088] The electronic control unit abnormality processing device provided in the embodiments of the present application is described below.

[0089] Figure 7 A structural block diagram of an electronic control unit abnormality processing device according to an embodiment of the present application is shown. As shown in Figure 7 The device includes an acquisition unit 71 and an abnormality determination unit 72.

[0090] The acquisition unit 71 is configured to acquire a current state value and a cache state value of a first preset parameter in the ECU, the current state value being a cumulative value of the first preset parameter from an initial time to a current time, the cache state value being a cumulative value of the first preset parameter from the initial time to a previous time of the current time, and the first preset parameter including at least one of the following: running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine, and driving mileage of the vehicle.

[0091] Specifically, the electronic control unit is used to control the engine, and the electronic control unit communicates with the host computer in real time, so that the host computer monitors the electronic control unit, the first preset parameter is a parameter whose value is continuously accumulated in the electronic control unit during the operation of the engine, and other parameters can be selected by those skilled in the art according to actual needs. It can be seen that, according to the monitoring of different first preset parameters, different parameters can be selected for monitoring according to actual conditions, and the flexibility and applicability of the abnormal monitoring method are improved.

[0092] The abnormality determination unit 72 is configured to determine that the ECU is abnormal in the case that the current state value is less than or equal to the cached state value, and / or the host computer does not receive the communication message sent by the ECU within the first preset time period. The ECU abnormality is abnormal power-off or abnormal reset of the ECU.

[0093] Specifically, by obtaining and comparing the current state value and the cached state value of the first preset parameter in the ECU, the abnormal power-off or abnormal reset of the ECU can be effectively detected. The communication mode of the host computer and the ECU can be used to monitor the running state of the ECU in real time during the test run, and ensure the normal operation of the ECU.

[0094] The electronic control unit abnormality processing device of the present application, the processing device is applied to the host computer, the host computer communicates with the electronic control unit ECU, the ECU is installed on the vehicle, and the ECU is used to control the engine of the vehicle. The device comprises: an acquisition unit and an abnormality determination unit, the acquisition unit is used to obtain the current state value and the cached state value of the first preset parameter in the ECU, the current state value is the cumulative value of the first preset parameter from the initial time to the current time, and the cached state value is the cumulative value of the first preset parameter from the initial time to the last time of the current time. The first preset parameter comprises at least one of the following: the running time of the ECU, the energy consumption data of the vehicle, the continuous working time of the engine, and the driving mileage of the vehicle; the abnormality determination unit is used to determine that the ECU is abnormal in the case that the current state value is less than or equal to the cached state value, and / or the host computer does not receive the communication message sent by the ECU within the first preset time period. The ECU abnormality is abnormal power-off or abnormal reset of the ECU. The device can determine whether the ECU is abnormal in time by diagnosing the state value comparison of the preset parameter and / or receiving the communication message sent by the ECU, and solves the problem that there is no effective means to monitor the abnormal power-off or abnormal reset of the electronic control unit in the test run process in the prior art.

[0095] As a possible implementation manner, the apparatus further comprises a preliminary determination unit and a final determination unit.

[0096] The preliminary determination unit is configured to preliminarily determine that the ECU is normal and obtain a preliminary normal result in a case where the communication message is received within the first preset time period.

[0097] Specifically, since it is considered that, in the first preset time period, if the communication message sent by the ECU is not received, it cannot be accurately determined that the ECU is abnormal, and there may be a case that the communication between the host computer and the ECU is abnormal, therefore, the preliminary judgment is performed according to the case where the communication message is received within the first preset time period, and the communication mode between the host computer and the ECU is adopted, so that the running state of the ECU can be monitored in real time, and the normal running of the ECU is ensured.

[0098] The final determination unit is configured to finally determine that the ECU is normal according to the preliminary normal result and the current state value being greater than the cached state value.

[0099] Specifically, the ECU is judged to be normal or abnormal according to the comparison between the current state value and the cached state value, so that the state of the ECU can be more accurately judged, and it can be seen that, in the embodiment of the application, the case where the communication message is received within the first preset time period is combined with the comparison between the current state value and the cached state value to jointly judge whether the ECU is abnormal, so that the accuracy of judging whether the ECU is abnormal can be further improved, and false reporting of the ECU being abnormal is avoided.

[0100] As a possible implementation manner, the apparatus further comprises an updating unit.

[0101] The updating unit is configured to update the latest cached state value to the current state value at the current time in a case where the current state value is greater than the cached state value.

[0102] Specifically, the latest cached state value is updated to the current state value at the current time in a case where the current state value is greater than the cached state value, so as to judge the state of the ECU next time, and it can be seen that updating the cached state value can ensure that the latest state value is used when the state of the ECU is judged next time, so that the accuracy and reliability of the scheme are improved, and the current state of the ECU can be more accurately judged by updating the cached state value, and false reporting of the ECU being abnormal is avoided.

[0103] As a possible implementation manner, the apparatus further comprises a data acquisition unit, an abnormal power-off confirmation unit and an abnormal reset determination unit.

[0104] The data acquisition unit is configured to acquire real-time identification data stored in a preset address, and compare the real-time identification data with reference identification data, the data in the preset address being data lost in the case of power-off of the ECU and not lost in the case of reset of the ECU, and the reference identification data being initially stored in the preset address;

[0105] Specifically, after each power-on of the ECU, it is first determined whether the real-time identification data stored in the preset address is consistent with the reference identification data. If not, it indicates that the ECU is just powered on, and the real-time identification data stored in the preset address is random. Therefore, the real-time identification data stored in the preset address is modified to the reference identification data. If the abnormal condition of the ECU occurs next time, the real-time identification data stored in the preset address is read, and it is determined whether the real-time identification data is consistent with the reference identification data.

[0106] The abnormal power-off determination unit is configured to determine that the ECU is abnormally powered off in the case that the real-time identification data is inconsistent with the reference identification data.

[0107] Specifically, when the ECU is abnormally powered off, the real-time identification data stored in the preset address becomes a random value. At this time, the real-time identification data is inconsistent with the reference identification data.

[0108] The abnormal reset determination unit is configured to determine that the ECU is abnormally reset in the case that the real-time identification data is consistent with the reference identification data.

[0109] Specifically, when the ECU is abnormally reset, the real-time identification data stored in the preset address is not lost. At this time, the real-time identification data is consistent with the reference identification data.

[0110] Therefore, by comparing the real-time identification data with the reference identification data, the type of ECU abnormality can be accurately determined, and the determination can be made in the case of power-off and reset of the ECU. The data in the preset address can be lost in the case of power-off of the ECU, but does not affect the determination of the type of ECU abnormality, has a certain robustness, and improves the accuracy and reliability of the ECU abnormality processing method. In the embodiment of the application, the host computer and the ECU also communicate, the running state of the ECU can be monitored in real time, and the type of abnormality is determined by the data stored in the preset address, which has real-time and accuracy.

[0111] As a possible implementation manner, the device further comprises a first display unit, a second display unit, a third display unit and a fourth display unit.

[0112] The first display unit is configured to display the current state value and the cache state value of the first preset parameter in the first display area.

[0113] Specifically, the first display area is used to display the current state value and the cache state value of the first preset parameter, so that the test monitoring personnel can understand the running state of the ECU, thereby monitoring whether the ECU is abnormal.

[0114] The second display unit is used to display a state value change curve in the second display area, the state value change curve being a curve dynamically formed according to time sequence of a plurality of current state values obtained from the initial time to the current time.

[0115] Specifically, the second display area is used to display the state value change curve, so that the change trend of the ECU state value is exhibited through the dynamically formed curve, thereby further enhancing the intuitive feeling and understanding of the test monitoring personnel on the running state of the ECU.

[0116] The third display unit is used to display the receiving state of the communication message in the third display area, the receiving state of the communication message including the time of receiving each communication message and the number of the received communication messages in the first preset time period.

[0117] Specifically, the third display area is used to display the receiving state of the communication message, including the number of the received messages and the time of receiving the messages, so that the test monitoring personnel can understand the communication state between the ECU and the upper computer, thereby monitoring whether the ECU is abnormal.

[0118] The fourth display unit is used to display the first fault code and the second fault code in the fourth display area, the first fault code being used to represent the abnormal power-off of the ECU, and the second fault code being used to represent the abnormal reset of the ECU.

[0119] Specifically, the fourth display area is used to display the first fault code and the second fault code, which are used to represent the abnormal power-off and the abnormal reset of the ECU, so that the test monitoring personnel can timely find the abnormal condition of the ECU and perform corresponding processing.

[0120] Therefore, through the design of the visual operation interface, the test monitoring personnel can intuitively understand the state and abnormal information of the ECU, thereby improving the use experience and operation efficiency of the test monitoring personnel. Through the exhibition of the state value change curve, the test monitoring personnel can more clearly understand the change trend of the ECU state, which is helpful to timely find the abnormal condition of the ECU. Through the exhibition of the receiving state of the communication message, the test monitoring personnel can timely understand the communication state between the ECU and the upper computer, which is also helpful to timely find the abnormal condition of the ECU. Through the representation of the first fault code and the second fault code, the test monitoring personnel can timely process the abnormal condition of the ECU, thereby improving the stability and reliability of the ECU.

[0121] As a possible implementation manner, the apparatus further comprises a suspension unit and an initialization unit.

[0122] The suspension unit is configured to suspend acquisition of the current state value of the ECU, the cache state value, and suspension of reception of the communication message.

[0123] Specifically, after determining that the ECU is abnormal, the current state value and the cache state value of the ECU need to be suspended, and the communication message needs to be suspended. This is because in the case of ECU abnormality, the acquired state value and the message may be inaccurate, which will affect the subsequent processing flow.

[0124] The initialization unit is configured to initialize the ECU and, after the ECU is initialized, to re-determine whether the ECU is abnormal.

[0125] Specifically, the ECU is initialized, and after the ECU is initialized, whether the ECU is abnormal is re-determined. The ECU initialization refers to restoring the ECU to an initial state so as to re-judge whether the ECU is abnormal. If the ECU is still abnormal after the ECU is initialized, corresponding processing measures need to be taken, and if the ECU has returned to normal, the normal operation flow can continue.

[0126] Therefore, in the case of ECU abnormality, by suspending the acquisition of the state value and the message, inaccurate information can be avoided, the accuracy and reliability of the subsequent processing flow are ensured, by the ECU initialization and the re-determination of whether the ECU is abnormal, the abnormality of the ECU can be found in time, and corresponding processing measures can be taken, thereby improving the stability and reliability of the ECU.

[0127] As a possible implementation manner, the initialization unit comprises a fault clearing module, a determination module, and a communication determination module.

[0128] The fault clearing module is configured to clear historical fault information in the host computer, the historical fault information being ECU abnormal power-off information or ECU abnormal reset information, wherein in the case of ECU abnormality, the ECU abnormal power-off information or the ECU abnormal reset information is stored in the host computer in real time.

[0129] Specifically, the historical fault information in the host computer is cleared, which includes the ECU abnormal power-off information or the ECU abnormal reset information. In the case of ECU abnormality, the abnormal information is stored in the host computer in real time, so before the ECU is initialized, the historical fault information in the host computer needs to be cleared to ensure that the next ECU abnormality judgment can be accurately performed.

[0130] The determining module is configured to determine the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle.

[0131] Specifically, the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle are determined. When determining the ECU abnormality, some parameters and time periods need to be preset for determining whether the ECU is abnormal. After the ECU is initialized, these parameters and time periods need to be determined again to ensure that the next ECU abnormality determination is more accurate and reliable.

[0132] The communication determining module is configured to send a connection request information to the ECU, determine whether a connection confirmation information returned by the ECU is received, and confirm that the ECU and the host computer establish communication when the connection confirmation information is received.

[0133] Specifically, the connection request information is sent to the ECU, and it is determined whether the connection confirmation information returned by the ECU is received. Before the ECU is initialized, communication with the ECU needs to be established to ensure that the ECU has recovered to normal. Sending the connection request information can help confirm whether the ECU is in a normal state, and after receiving the connection confirmation information returned by the ECU, it can be confirmed that the ECU and the host computer have established communication, so that the subsequent operation process can be performed.

[0134] Therefore, by clearing the historical fault information in the host computer, determining the first preset parameter and the first preset time period used in the next ECU abnormality determination cycle, and sending the connection request information to the ECU and determining whether the connection confirmation information returned by the ECU is received, the above three initialization methods can be used in combination to ensure that the host computer can run normally after initialization, realize the abnormal monitoring of the ECU, and the host computer monitoring the ECU can be initialized after the ECU appears abnormal, or the host computer can be initialized before monitoring whether the ECU appears abnormal each time. Of course, those skilled in the art can extend the initialization method of the host computer according to actual needs to make the efficiency of the host computer initialization higher and the stability better.

[0135] The electronic control unit abnormality processing device includes a processor and a memory, the acquisition unit and the abnormality determination unit are stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory. The modules are located in the same processor; or, the modules are located in different processors in any combination.

[0136] The processor comprises a core, and the core retrieves corresponding program units in the memory.

[0137] The memory can comprise non-permanent memory in a computer readable medium, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM), and the memory comprises at least one memory chip.

[0138] The embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium comprises a stored program, wherein the program controls a device where the computer readable storage medium is located to execute the electronic control unit abnormality processing method when the program is running.

[0139] Specifically, the electronic control unit abnormality processing method comprises:

[0140] Step S201: acquiring a current state value and a cache state value of a first preset parameter in the ECU, the current state value being an accumulated value of the first preset parameter from an initial time to a current time, the cache state value being an accumulated value of the first preset parameter from the initial time to a previous time of the current time, and the first preset parameter comprising at least one of the following: running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine and driving mileage of the vehicle.

[0141] Step S202: determining that the ECU is abnormal in a case that the current state value is less than or equal to the cache state value and / or the host computer does not receive a communication message sent by the ECU within a first preset time period, and the ECU abnormality is abnormal power-off of the ECU or abnormal reset of the ECU.

[0142] Optionally, the method further comprises: in a case that the communication message is received within the first preset time period, preliminarily determining that the ECU is normal to obtain a preliminary normal result; and finally determining that the ECU is normal according to the preliminary normal result and the current state value being greater than the cache state value.

[0143] Optionally, the method further comprises: in a case that the current state value is greater than the cache state value, updating the latest cache state value to the current state value at the current time.

[0144] Optionally, after determining that the ECU is abnormal in the case that the current state value is less than or equal to the cache state value, and / or the host computer does not receive the communication message sent by the ECU within the first preset time period, the method further comprises: obtaining real-time identification data stored in a preset address, and comparing the real-time identification data with reference identification data, the data in the preset address being data that is lost in the case of power failure of the ECU and is not lost in the case of reset of the ECU, and the reference identification data being initially stored in the preset address; in the case that the real-time identification data and the reference identification data are inconsistent, determining that the ECU is abnormally powered off; in the case that the real-time identification data and the reference identification data are consistent, determining that the ECU is abnormally reset.

[0145] Optionally, the host computer has a visual operation interface, the visual operation interface has a plurality of display regions, the plurality of display regions include a first display region, a second display region, a third display region, and a fourth display region, and the method further comprises: displaying the current state value and the cache state value of the first preset parameter in the first display region; displaying a state value change curve in the second display region, the state value change curve being a curve dynamically formed according to time sequence from a plurality of current state values obtained from the initial time to the current time; displaying a receiving state of the communication message in the third display region, the receiving state of the communication message including a time of receiving each communication message within the first preset time period and a number of the communication messages received; and displaying a first fault code and a second fault code in the fourth display region, the first fault code being used to represent abnormal power-off of the ECU, and the second fault code being used to represent abnormal reset of the ECU.

[0146] Optionally, after determining that the ECU is abnormal, the method further comprises: suspending the obtaining of the current state value and the cache state value of the ECU, and suspending the receiving of the communication message; initializing the ECU and, after the initialization of the ECU is completed, re-determining whether the ECU is abnormal.

[0147] Optionally, initializing the electronic control unit includes at least one of the following: clearing historical fault information in the host computer, wherein the historical fault information is ECU abnormal power failure information or ECU abnormal reset information, wherein, in the event of an ECU abnormality, the ECU abnormal power failure information or ECU abnormal reset information is stored in the host computer in real time; determining the first preset parameter and the first preset time period to be used in the next ECU abnormality determination loop; sending connection request information to the ECU, and determining whether connection confirmation information returned by the ECU is received, and confirming that the ECU and the host computer have established communication upon receiving the connection confirmation information.

[0148] This invention provides a processor for running a program, wherein the program executes the electronic control unit exception handling method during runtime.

[0149] Specifically, the methods for handling electronic control unit malfunctions include:

[0150] Step S201: Obtain the current state value and cache state value of the first preset parameter in the ECU. The current state value is the cumulative value of the first preset parameter from the initial time to the current time, and the cache state value is the cumulative value of the preset parameter from the initial time to the previous time. The first preset parameter includes at least one of the following: the running time of the ECU, the energy consumption data of the vehicle, the continuous working time of the engine, and the driving mileage of the vehicle.

[0151] Step S202: If the current state value is less than or equal to the cache state value, and / or the host computer does not receive the communication message sent by the ECU within the first preset time period, the ECU is determined to be abnormal. The ECU abnormality is either an abnormal power failure of the ECU or an abnormal reset of the ECU.

[0152] Optionally, the above method further includes: if the above communication message is received within the first preset time period, preliminarily determining that the above ECU is normal and obtaining a preliminary normal result; and finally determining that the above ECU is normal based on the above preliminary normal result and the above current status value being greater than the above cache status value.

[0153] Optionally, the above method further includes: if the current state value is greater than the cached state value, updating the latest cached state value to the current state value at the current moment.

[0154] Optionally, after determining that the ECU is abnormal when the current state value is less than or equal to the cached state value, and / or when the host computer does not receive a communication message sent by the ECU within a first preset time period, the method further includes: obtaining real-time identification data stored in a preset address, and comparing the real-time identification data with reference identification data, wherein the data in the preset address is data that is lost when the ECU is powered off but not lost when the ECU is reset, and the reference identification data is initially stored in the preset address; if the real-time identification data and the reference identification data are inconsistent, determining that the ECU is abnormally powered off; if the real-time identification data and the reference identification data are consistent, determining that the ECU is abnormally reset.

[0155] Optionally, the host computer has a visual operation interface with multiple display areas, including a first display area, a second display area, a third display area, and a fourth display area. The method further includes: displaying the current status value and the cached status value of the first preset parameter in the first display area; displaying the status value change curve in the second display area, wherein the status value change curve is a curve dynamically formed by multiple current status values ​​obtained from the initial time to the current time in chronological order; displaying the reception status of the communication message in the third display area, wherein the reception status of the communication message includes the time of receiving each communication message and the number of communication messages received within the first preset time period; and displaying a first fault code and a second fault code in the fourth display area, wherein the first fault code is used to indicate abnormal power failure of the ECU and the second fault code is used to indicate abnormal reset of the ECU.

[0156] Optionally, after determining that the ECU is abnormal, the method further includes: pausing the acquisition of the current status value and the cached status value of the ECU, and pausing the reception of the communication messages; initializing the ECU, and after the ECU initialization is completed, re-determining whether the ECU is abnormal.

[0157] Optionally, initializing the electronic control unit includes at least one of the following: clearing historical fault information in the host computer, wherein the historical fault information is ECU abnormal power failure information or ECU abnormal reset information, wherein, in the event of an ECU abnormality, the ECU abnormal power failure information or ECU abnormal reset information is stored in the host computer in real time; determining the first preset parameter and the first preset time period to be used in the next ECU abnormality determination loop; sending connection request information to the ECU, and determining whether connection confirmation information returned by the ECU is received, and confirming that the ECU and the host computer have established communication upon receiving the connection confirmation information.

[0158] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. The device described herein can be a server, PC, PAD, mobile phone, etc. When the processor executes the program, it implements the steps of the above-described electronic control unit exception handling method.

[0159] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program having at least the steps of an electronic control unit exception handling method.

[0160] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0161] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0162] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0163] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0164] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0165] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0166] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0167] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0168] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0169] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0170] 1) The above-mentioned electronic control unit (ECU) abnormality handling method of this application is applied to a host computer. The host computer communicates with the electronic control unit (ECU). The ECU is installed in a vehicle and is used to control the engine of the vehicle. First, the current state value and cached state value of a first preset parameter in the ECU are obtained. The current state value is the cumulative value of the first preset parameter from the initial time to the current time. The cached state value is the cumulative value of the preset parameter from the initial time to the previous time. The first preset parameter includes at least one of the following: the running time of the ECU, the energy consumption data of the vehicle, the continuous working time of the engine, and the mileage of the vehicle. Then, if the current state value is less than or equal to the cached state value, and / or if the host computer does not receive a communication message sent by the ECU within a first preset time period, the ECU is determined to be abnormal. The ECU abnormality is either an abnormal power failure of the ECU or an abnormal reset of the ECU. This application, by comparing the status values ​​of pre-defined diagnostic parameters and / or receiving communication messages sent by the ECU, can promptly determine whether the ECU is abnormal, thus solving the problem in the prior art that there is no effective means to monitor abnormal power failure or abnormal reset of the electronic control unit during the test drive process.

[0171] 2) The above-mentioned electronic control unit (ECU) abnormality handling device of this application is applied to a host computer, which communicates with the ECU. The ECU is installed in a vehicle and is used to control the engine of the vehicle. The device includes: an acquisition unit and an abnormality determination unit. The acquisition unit is used to acquire the current state value and cached state value of a first preset parameter in the ECU. The current state value is the cumulative value of the first preset parameter from the initial time to the current time. The cached state value is the cumulative value of the preset parameter from the initial time to the previous time. The first preset parameter includes at least one of the following: the running time of the ECU, the energy consumption data of the vehicle, the continuous working time of the engine, and the mileage of the vehicle. The abnormality determination unit is used to determine that the ECU is abnormal when the current state value is less than or equal to the cached state value, and / or when the host computer does not receive a communication message sent by the ECU within a first preset time period. The ECU abnormality is either an abnormal power failure of the ECU or an abnormal reset of the ECU. This device can promptly determine whether the ECU is abnormal by comparing the status values ​​of preset diagnostic parameters and / or receiving communication messages sent by the ECU. This solves the problem in the prior art that there is no effective means to monitor abnormal power failure or abnormal reset of the electronic control unit during the test drive process.

[0172] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. An electronic control unit abnormality processing method, the processing method being applied to a host computer, characterized by, The host computer communicates with an electronic control unit (ECU) installed on a vehicle for controlling an engine of the vehicle, and the ECU includes: obtaining a current state value and a cached state value of a first preset parameter in the ECU, the current state value being an accumulated value of the first preset parameter from an initial time to a current time, and the cached state value being an accumulated value of the first preset parameter from the initial time to a previous time of the current time, the first preset parameter including: running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine, and driving mileage of the vehicle; in the case that the current state value is less than or equal to the cached state value, and / or, in the case that the host computer does not receive a communication message sent by the ECU within a first preset time period, determining that the ECU is abnormal, the ECU abnormality being abnormal power-off or abnormal reset of the ECU; The method further comprises: in the case that the communication message is received within the first preset time period, preliminarily determining that the ECU is normal to obtain a preliminary normal result; and finally determining that the ECU is normal according to the preliminary normal result and the current state value being greater than the cached state value; After determining that the ECU is abnormal in the case that the current state value is less than or equal to the cached state value, and / or, in the case that the host computer does not receive a communication message sent by the ECU within a first preset time period, the method further comprises: obtaining real-time identification data stored in a preset address, and comparing the real-time identification data with reference identification data, the data in the preset address being data lost in the case of power-off of the ECU and not lost in the case of reset of the ECU, and the reference identification data being initially stored in the preset address; in the case that the real-time identification data and the reference identification data are inconsistent, determining that the ECU is abnormal power-off; and in the case that the real-time identification data and the reference identification data are consistent, determining that the ECU is abnormal reset.

2. The method of claim 1, wherein, The method further comprises: in the case that the current state value is greater than the cached state value, updating the latest cached state value to the current state value at the current time.

3. The method of claim 1, wherein, The host computer has a visual operation interface, the visual operation interface has a plurality of display regions, the plurality of display regions include a first display region, a second display region, a third display region, and a fourth display region, and the method further comprises: displaying the current state value and the cached state value of the first preset parameter in the first display region; displaying a state value change curve in the second display region, the state value change curve being a curve dynamically formed according to time sequence from a plurality of current state values obtained from the initial time to the current time; displaying a receiving state of the communication message in the third display region, the receiving state of the communication message including a time of receiving each communication message within the first preset time period and a number of the communication messages received; and displaying a state value change curve in the fourth display region, the state value change curve being a curve dynamically formed according to time sequence from a plurality of current state values obtained from the initial time to the current time. displaying a first fault code and a second fault code in the fourth display area, the first fault code being used to represent that the ECU is abnormally powered off, and the second fault code being used to represent that the ECU is abnormally reset.

4. The method of claim 1, wherein, After determining that the ECU is abnormal, the method further comprises: suspending acquisition of the current state value and the cached state value of the ECU, and suspending reception of the communication message; initializing the ECU and re-determining whether the ECU is abnormal after the ECU initialization is completed.

5. The method of claim 4, wherein, initializing the ECU, including at least one of the following: clearing historical fault information in the upper computer, the historical fault information being ECU abnormal power-off information or ECU abnormal reset information, wherein, in the case of ECU abnormality, the ECU abnormal power-off information or the ECU abnormal reset information is stored in the upper computer in real time; determining the first preset parameter and the first preset time period to be used in the next ECU abnormality determination cycle; sending a connection request information to the ECU, and determining whether a connection confirmation information returned by the ECU is received, and in the case that the connection confirmation information is received, confirming that the ECU and the upper computer establish communication.

6. An electronic control unit abnormality processing device, the processing device being applied to a host computer, characterized by comprising: The upper computer communicates with an electronic control unit (ECU) installed on a vehicle, and the ECU is used to control an engine of the vehicle. The device comprises: an acquisition unit configured to acquire a current state value and a cached state value of a first preset parameter in the ECU, the current state value being an accumulated value of the first preset parameter from an initial time to a current time, and the cached state value being an accumulated value of the first preset parameter from the initial time to a previous time of the current time, the first preset parameter including running time of the ECU, energy consumption data of the vehicle, continuous working time of the engine, and driving mileage of the vehicle; an abnormality determination unit configured to determine that the ECU is abnormal in the case that the current state value is less than or equal to the cached state value, and / or, in the case that the upper computer does not receive a communication message sent by the ECU within a first preset time period, the ECU abnormality being ECU abnormal power-off or ECU abnormal reset; the device further comprises a preliminary determination unit and a final determination unit, the preliminary determination unit being configured to preliminarily determine that the ECU is normal in the case that the communication message is received within the first preset time period, to obtain a preliminary normal result, and the final determination unit being configured to finally determine that the ECU is normal according to the preliminary normal result and the current state value being greater than the cached state value. The device also comprises a data acquisition unit, an abnormal power-off confirmation unit and an abnormal reset determination unit. The data acquisition unit is configured to acquire real-time identification data stored in a preset address, and compare the real-time identification data with reference identification data. The data in the preset address is lost in the case of power-off of the ECU and is not lost in the case of reset of the ECU, and the reference identification data is initially stored in the preset address. The abnormal power-off confirmation unit is configured to determine abnormal power-off of the ECU in the case that the real-time identification data and the reference identification data are inconsistent. The abnormal reset determination unit is configured to determine abnormal reset of the ECU in the case that the real-time identification data and the reference identification data are consistent.

7. A computer readable storage medium characterized by The computer readable storage medium comprises a stored program, wherein the program, when executed, controls a device in which the computer readable storage medium is located to perform the electronic control unit abnormality processing method of any one of claims 1 to 5.

8. An electronic device, comprising: comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the electronic control unit abnormality processing method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Reset detection method and device of electronic control unit, equipment and storage medium

    CN114563995A