Automobile power system ECU abnormal reset post-processing method, device and equipment and storage medium
By reading the reset flag value and determining the historical reset information, the ECU of the vehicle power system is controlled to return to the pre-reset state, solving the power interruption problem caused by the abnormal reset of the ECU, ensuring the continuity of the vehicle power output and driving safety.
Patent Information
- Application Number
- CN202411392667.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-02-07
AI Technical Summary
The abnormal reset of the ECU of the automotive power system leads to power interruption, affecting driving safety and evaluation of the OEM.
By reading the reset flag bit value, historical reset information is determined. When an abnormal reset is found, the control ECU returns to the pre-reset state and performs a set process to ensure the continuity of vehicle power output.
After the ECU is abnormally reset, power interruption can be avoided, the vehicle can be ensured to operate normally, driving safety can be improved, and negative evaluations of the OEM can be reduced.
Smart Images

Figure CN119396624A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a post-processing method, device, equipment and storage medium for abnormal reset of an ECU of an automobile power system. Background Art
[0002] The stability of the ECU in the automotive power system is related to the safety of the driver and passengers. A sudden abnormal reset of the ECU during driving will cause power interruption. Especially at high speeds, an abnormal ECU reset will cause the vehicle to lose power, which will seriously affect the safety of the driver and passengers and bring negative reviews to the OEM.
[0003] At present, the processing logic after software reset is mostly software initialization restart. There will be power interruption. After the abnormal reset of ECU in traditional fuel vehicles, the ignition needs to be restarted to start the engine; the reset will cause great trouble to the driver and make it impossible to drive the vehicle normally.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for post-processing abnormal reset of an automobile power system ECU, aiming to solve the technical problem of power interruption caused by abnormal reset of the vehicle.
[0006] To achieve the above object, the present invention provides a post-processing method for abnormal reset of an automobile power system ECU, the post-processing method for abnormal reset of an automobile power system ECU comprising the following steps:
[0007] When the ECU is powered on, a reset flag value is read, wherein the reset flag value is stored via a preset memory address;
[0008] Determine historical reset information according to the reset flag value;
[0009] When the historical reset information is an abnormal reset, controlling the ECU to restore to a state before the reset to obtain a reset result;
[0010] The ECU is reset according to the reset result.
[0011] In one embodiment, when the historical reset information is an abnormal reset, the step of controlling the ECU to return to a state before the reset comprises:
[0012] When the historical reset information is an abnormal reset, obtaining an internal value of the ECU before the abnormal reset according to the reset flag value;
[0013] The ECU is controlled to return to a state before the reset based on the internal value.
[0014] In one embodiment, the step of controlling the ECU to return to a state before the reset based on the internal value comprises:
[0015] determining sensor data, control parameters and state variables based on the internal quantity values;
[0016] Updating the system variables of the ECU using the sensor data to obtain updated system variables;
[0017] configuring the control algorithm of the ECU by using the control parameters to obtain a configured control algorithm;
[0018] Restoring the system state of the ECU through the state variables to obtain an initial system state;
[0019] Performing correctness verification by updating the system variables, the configuration control algorithm, and the initial system state;
[0020] When the correctness verification of the ECU is passed, it is determined that the ECU is restored to a state before the reset.
[0021] In one embodiment, the step of performing a setting process on the ECU according to the reset result includes:
[0022] When the reset result is that the ECU is in an abnormal reset state, setting the reset flag value to a first preset value;
[0023] The internal value of the ECU in the abnormal reset state is obtained, the internal value in the abnormal reset state is stored in the preset memory address, and abnormal reset information is fed back.
[0024] In one embodiment, the step of performing a setting process on the ECU according to the reset result further includes:
[0025] When the reset result is that the ECU is in a normal reset state, the reset flag value is set to a second preset value, wherein the first preset value is smaller than the second preset value.
[0026] In one embodiment, the step of controlling the ECU to return to a state before the reset based on the internal value further includes:
[0027] When the internal value is missing, the missing value in the time series data is predicted by a prediction model to reconstruct the sensor data, control parameters and state variables that were not saved before the abnormal reset of the ECU.
[0028] In one embodiment, after the step of determining the historical reset information according to the reset flag value, the method further includes:
[0029] When the historical reset information is a normal reset, the reset flag value is set to a first preset value.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also proposes a post-processing device for abnormal reset of an ECU of an automobile power system, the device comprising:
[0031] An information acquisition module, used for reading a reset flag value when the ECU is powered on, wherein the reset flag value is stored via a preset memory address;
[0032] An information analysis module, used to determine historical reset information according to the reset flag value;
[0033] The reset module is used to control the ECU to be restored to a state before the reset when the historical reset information is an abnormal reset, and obtain a reset result; and perform a reset process on the ECU according to the reset result.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also proposes a vehicle power system ECU abnormal reset post-processing device, the device comprising: a memory, a processor and a vehicle power system ECU abnormal reset post-processing program stored in the memory and executable on the processor, the vehicle power system ECU abnormal reset post-processing program being configured to implement the steps of the vehicle power system ECU abnormal reset post-processing method as described above.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the automobile power system ECU abnormal reset post-processing method as described above.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which is stored a vehicle power system ECU abnormal reset post-processing program, and when the vehicle power system ECU abnormal reset post-processing program is executed by a processor, the steps of the vehicle power system ECU abnormal reset post-processing method as described above are implemented.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] When the ECU is powered on, the reset flag value is read, where the reset flag value is stored through a preset memory address; historical reset information is determined based on the reset flag value; when the historical reset information is an abnormal reset, the ECU is controlled to be restored to the state before the reset to obtain the reset result; the ECU is set based on the reset result to solve the power interruption problem after the abnormal reset of the ECU. After the abnormal reset, the vehicle can still ensure normal power output, avoiding the phenomenon of vehicle power interruption, thereby avoiding the problem of the vehicle breaking down during driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A flowchart diagram of a first embodiment of a post-processing method for abnormal reset of an ECU in a vehicle power system of the present application;
[0042] Figure 2 A structural block diagram of the first embodiment of the method for post-processing abnormal reset of an ECU of an automobile power system of the present application;
[0043] Figure 3 A flowchart diagram of a second embodiment of a post-processing method for abnormal reset of an ECU in a vehicle power system of the present application;
[0044] Figure 4 A flowchart diagram of a third embodiment of the post-processing method for abnormal reset of an ECU of an automobile power system of the present application;
[0045] Figure 5 This is a schematic diagram of the module structure of the device for post-processing abnormal reset of the ECU of the automobile power system according to the embodiment of the present application;
[0046] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the automobile power system ECU abnormal reset post-processing method in the embodiment of the present application.
[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an abnormal reset post-processing device for an automobile power system ECU, etc. The following takes an abnormal reset post-processing device for an automobile power system ECU as an example to illustrate this embodiment and the following embodiments.
[0051] Based on this, the embodiment of the present application provides a post-processing method for abnormal reset of an automobile power system ECU, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the post-processing method for abnormal reset of the automobile power system ECU of the present application.
[0052] In this embodiment, the automobile power system ECU abnormal reset post-processing method includes steps S10 to S40:
[0053] Step S10, when the ECU is powered on, reading the reset flag value, wherein the reset flag value is stored via a preset memory address;
[0054] It should be noted that this strategy sets a dedicated memory address for storing reset flag information, that is, a preset memory address.
[0055] This address segment is a code segment independent of the app and boot; both the boot and the app can read and write, and the value will only change when the software operates the read and write, which means that no matter how the App or Boot is updated or replaced, this address and its content will not be affected.
[0056] It should be understood that ECU power-on refers to the process in which the vehicle's electronic control unit (Engine Control Unit, ECU for short) receives power and begins to start. When the ECU is powered on, it will perform a self-test process, which is part of the startup sequence.
[0057] It is understandable that the reset flag can be used to indicate whether the system has undergone a reset operation, so that the software can determine the system status at startup and perform corresponding initialization or recovery operations. When the system is designed, a specific memory address or address segment is reserved specifically for storing the reset flag. This address is usually initialized when the system starts and remains valid throughout the system operation.
[0058] Step S20, determining historical reset information according to the reset flag value;
[0059] In the specific implementation, when the ECU is reset normally, the reset flag value is set to 1, and then the value is read each time it is initialized. If it is 1, it means it is a normal reset. After reading, the value is set to 0. If 0 is read during initialization, it is considered that the ECU has been abnormally powered off / reset last time.
[0060] It should be understood that the historical reset information is the reset flag value stored at the preset memory address after the last reset.
[0061] Step S30, when the historical reset information is an abnormal reset, the ECU is controlled to be restored to the state before the reset, and a reset result is obtained;
[0062] It should be noted that an abnormal reset refers to a reset caused by a fault, power failure or other unexpected events.
[0063] When the reset flag value is 0, the historical reset information is an abnormal reset.
[0064] It should be understood that by executing the recovery strategy, the system will record the results of the reset. This may include confirmation of successful recovery to the pre-reset state, or provide an error code or status information if a complete recovery is not possible.
[0065] The method of controlling the ECU to be restored to the state before the reset may include software reloading the internal value of the ECU before the reset to restore the state before the reset.
[0066] Furthermore, the step S30 further includes:
[0067] When internal values are missing, the missing values in the time series data are predicted by the prediction model to reconstruct the sensor data, control parameters, and state variables that were not saved before the abnormal reset of the ECU.
[0068] It should be noted that sensor data refers to the raw measurement values collected by various sensors on the vehicle; control parameters refer to the setting values calculated by the ECU based on sensor data to adjust vehicle performance; state variables describe the current state of the vehicle system, which can be directly measured or calculated by the ECU. In the ECU, sensor data, control parameters and state variables are interrelated and together constitute a closed-loop system for vehicle control and monitoring. Sensor data provides input information, control parameters are output instructions of the ECU, and state variables are the intermediate results of system feedback, which are used for further decision-making and adjustment of the ECU.
[0069] In the specific implementation, first collect and organize time series data, including historical readings of sensor data, control parameters, and state variables. To handle missing values, interpolation, moving average, or other filling methods can be used to estimate missing data points. If the sampling frequency of the data is inconsistent or needs to be adjusted, the time interval of the data can be unified by resampling. For example, all data can be converted to a frequency in seconds, minutes, or hours. This strategy can use a time series prediction model and use a training data set to train the time series prediction model. During the training process, the model parameters or structure can be continuously adjusted to optimize the prediction performance of the model. The final tuned model is used to predict the missing time series data, thereby reconstructing the data of the ECU before the abnormal reset.
[0070] Step S40, performing a reset process on the ECU according to the reset result.
[0071] It should be noted that the reset result is when the ECU is powered off / reset normally; the software sets the reset flag to 1;
[0072] When the reset result is abnormal ECU power-off / abnormal reset, the software sets the reset flag to 0.
[0073] The setting process is to set the reset flag position of the ECU to 1 or to set the reset flag position of the ECU to 0.
[0074] It should be understood that the entire resetting process from abnormal reset to restarting operation takes only 100 to 200ms, and the driver will not feel the power interruption when the ECU abnormally resets during driving; but at this time the instrument will feedback the abnormal reset information, reminding the driver that the vehicle has a fault, and actively stop the car to check the fault.
[0075] like Figure 2 As shown, Figure 2 The flowchart is a processing method for abnormal reset of the automotive power system ECU. After the ECU is powered on or started, the reset flag value is read to obtain the last reset information. When the last reset information is 1, it is determined that the last reset was a normal reset. At this time, the reset flag value is set to 0, and the control software starts running normally. When the last reset information is 0, it is determined that the last reset was an abnormal reset. At this time, the control ECU reloads the internal values before the reset and runs, and feeds back the abnormal reset information. When the ECU reloads the internal values before the reset and runs, the ECU is reset normally, and the reset flag value is set to 1. When the ECU reloads the internal values before the reset and runs, the ECU is reset abnormally, the reset flag value is set to 0, and the internal values of the ECU at the reset time are stored.
[0076] This embodiment provides a post-processing method for abnormal reset of an automobile power system ECU. When the ECU is powered on, the reset flag value is read, wherein the reset flag value is stored through a preset memory address; historical reset information is determined according to the reset flag value; when the historical reset information is an abnormal reset, the ECU is controlled to be restored to a state before the reset to obtain a reset result; the ECU is set according to the reset result to solve the power interruption problem after the abnormal reset of the ECU. After the abnormal reset, the vehicle can still ensure normal power output, avoiding the phenomenon of vehicle power interruption, thereby avoiding the problem of the vehicle breaking down during driving.
[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , step S30, including steps S301-S302:
[0078] Step S301, when the historical reset information is an abnormal reset, obtaining the internal value of the ECU before the abnormal reset according to the reset flag value;
[0079] It should be understood that internal values refer to the values of key parameters and states used to control and monitor various vehicle systems within the ECU. These values are obtained based on sensor input, control algorithm calculation, and system state feedback. They are essential for the ECU to make correct decisions and control; they include at least sensor data, control parameters, and state variables.
[0080] In the specific implementation, if an abnormal reset occurred during the last reset, this value will not be written (this value is 0 at this time). When the historical reset information is read during power-on initialization, 0 will be read, and it will be considered that the ECU had an abnormal reset last time, and then the internal values before the ECU reset will be obtained.
[0081] Further, when the historical reset information is a normal reset, the reset flag value is set to a first preset value.
[0082] It should be understood that the first preset value is 0, which serves to indicate that the ECU is powered off / reset normally, and the software sets the reset flag position to 0.
[0083] In a specific implementation, if the ECU is reset normally during the last reset, the reset flag value is set to 0, and then the system is initialized to run normally.
[0084] Step S302: Control the ECU to return to a state before the reset based on the internal value.
[0085] In the specific implementation, the internal values of the ECU before reset are reloaded to restore the state before reset, and at the same time, error feedback reset information is given to avoid power interruption during vehicle driving, which may endanger the safety of the driver and passengers.
[0086] Furthermore, the step S302 includes:
[0087] Determine sensor data, control parameters and state variables based on internal quantities;
[0088] The system variables of the ECU are updated through the sensor data to obtain updated system variables;
[0089] The control algorithm of the ECU is configured through control parameters to obtain a configured control algorithm;
[0090] Restore the system state of the ECU through the state variables to obtain the initial system state;
[0091] Correctness verification is performed by updating system variables, configuring control algorithms, and initializing system states;
[0092] When the correctness verification of the ECU is passed, it is determined that the ECU is restored to the state before the reset.
[0093] In the specific implementation, the system variables of the ECU, such as temperature, pressure, speed, etc., are updated through sensor data to reflect the vehicle status before reset; the control algorithm of the ECU is configured using control parameters to ensure that the algorithm can be correctly executed according to the status before reset; the system status of the ECU is restored through state variables, including but not limited to engine speed, throttle position, fuel injection amount, etc.; the correctness of the updated system variables, the configured control algorithm and the restored system status is verified to ensure that the ECU can work as expected; if the correctness verification passes, it is confirmed that the ECU has been successfully restored to the state before reset.
[0094] This embodiment provides a post-processing method for abnormal reset of an automobile power system ECU. When the historical reset information is an abnormal reset, the internal value of the ECU before the abnormal reset is obtained according to the reset flag value; based on the internal value, the ECU is controlled to be restored to the state before the reset. This process ensures that the ECU can be restored to the previous state as much as possible after experiencing an abnormal reset, thereby reducing the impact on vehicle performance and improving driving safety.
[0095] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 4 , step S40, including steps S401 to S403:
[0096] Step S401, when the reset result is that the ECU is in an abnormal reset state, the reset flag value is set to a first preset value;
[0097] It should be understood that at this time, in the second embodiment, the ECU is controlled to be restored to the state before the reset based on the internal value, and the ECU is still abnormally powered off or reset, at which time the software sets the reset flag position to 0;
[0098] In the specific implementation, when the ECU is abnormally powered off / reset, the software sets the reset flag to 0 and stores the internal value of the ECU at the time of reset, in order to record the values of various parameters of the power system before the reset.
[0099] Step S402, obtaining the internal value of the ECU in the abnormal reset state, storing the internal value in the abnormal reset state to a preset memory address, and feeding back abnormal reset information;
[0100] It should be noted that when the ECU detects an abnormal reset, the system needs to capture the current internal state, including sensor data, control parameters, and state variables. These data can be obtained by reading the ECU's memory and registers.
[0101] It should be understood that after an abnormal reset occurs, the ECU can feedback abnormal reset information through the diagnostic interface. This can be achieved by sending a specific diagnostic response code, such as using service 0x11 (ECU reset service) in the ISO 14229-1 standard to notify the diagnostic tool that the ECU has been reset.
[0102] Step S403: when the reset result is that the ECU is in a normal reset state, the reset flag value is set to a second preset value, wherein the first preset value is smaller than the second preset value.
[0103] It should be noted that a normal reset may be a reset caused by software update, system restart or user request.
[0104] It should be understood that the second preset value is 1, which serves to indicate that in the second embodiment, the ECU is controlled to be restored to a state before reset based on the internal value, and the software sets the reset flag to 1.
[0105] The present embodiment provides a post-processing method for abnormal reset of an automobile power system ECU. When the reset result is that the ECU is in an abnormal reset state, the reset flag value is set to a first preset value; the internal value of the ECU in the abnormal reset state is obtained, the internal value in the abnormal reset state is stored in a preset memory address, and abnormal reset information is fed back; when the reset result is that the ECU is in a normal reset state, the reset flag value is set to a second preset value, wherein the first preset value is less than the second preset value. By setting the reset flag value, a clear indication is provided to the ECU, indicating its reset status and the subsequent actions to be taken. The ECU can manage the reset process more effectively and ensure the stability and reliability of the vehicle system.
[0106] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the post-processing method of abnormal reset of the automobile power system ECU of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0107] This application also provides a post-processing device for abnormal reset of ECU of automobile power system, please refer to Figure 5 , the automobile power system ECU abnormal reset post-processing device comprises:
[0108] The information acquisition module 10 is used to read the reset flag value when the ECU is powered on, wherein the reset flag value is stored via a preset memory address;
[0109] An information analysis module 20, used to determine historical reset information according to the reset flag value;
[0110] The reset module 30 is used to control the ECU to recover to the state before the reset when the historical reset information is an abnormal reset, and obtain the reset result; and perform a reset process on the ECU according to the reset result.
[0111] The automobile power system ECU abnormal reset post-processing device provided by the present application adopts the automobile power system ECU abnormal reset post-processing method in the above embodiment, which can solve the technical problem of power interruption caused by abnormal reset of the vehicle. Compared with the prior art, the beneficial effects of the automobile power system ECU abnormal reset post-processing device provided by the present application are the same as the beneficial effects of the automobile power system ECU abnormal reset post-processing method provided by the above embodiment, and the other technical features of the automobile power system ECU abnormal reset post-processing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0112] In one embodiment, the reset module 30 is further used to obtain the internal value of the ECU before the abnormal reset according to the reset flag value when the historical reset information is an abnormal reset;
[0113] Based on the internal value, the ECU is controlled to return to the state before reset.
[0114] In one embodiment, the reset module 30 is further used to determine sensor data, control parameters and state variables according to the internal value;
[0115] The system variables of the ECU are updated through the sensor data to obtain updated system variables;
[0116] The control algorithm of the ECU is configured through control parameters to obtain a configured control algorithm;
[0117] Restore the system state of the ECU through the state variables to obtain the initial system state;
[0118] Correctness verification is performed by updating system variables, configuring control algorithms, and initializing system states;
[0119] When the correctness verification of the ECU is passed, it is determined that the ECU is restored to the state before the reset.
[0120] In one embodiment, the reset module 30 is further configured to set the reset flag value to a first preset value when the reset result indicates that the ECU is in an abnormal reset state;
[0121] The internal value of the ECU in the abnormal reset state is obtained, the internal value in the abnormal reset state is stored in a preset memory address, and the abnormal reset information is fed back.
[0122] In one embodiment, the reset module 30 is further configured to set the reset flag value to a second preset value when the reset result is that the ECU is in a normal reset state, wherein the first preset value is smaller than the second preset value.
[0123] In one embodiment, the reset module 30 is also used to predict the missing values in the time series data through a prediction model when there are missing internal values, so as to reconstruct the sensor data, control parameters and state variables that were not saved before the abnormal reset of the ECU.
[0124] In one embodiment, the information analysis module 20 is further configured to set the reset flag value to a first preset value when the historical reset information is a normal reset.
[0125] The present application provides an automobile power system ECU abnormal reset post-processing device, and the automobile power system ECU abnormal reset post-processing device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automobile power system ECU abnormal reset post-processing method in the above-mentioned embodiment one.
[0126] Reference below Figure 6 , which shows a schematic diagram of the structure of an automobile power system ECU abnormal reset post-processing device suitable for implementing the embodiment of the present application. The automobile power system ECU abnormal reset post-processing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The automobile power system ECU abnormal reset post-processing device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0127] like Figure 6 As shown, the automobile power system ECU abnormal reset post-processing device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in a read-only memory (ROM: Read Only Memory) 1002 or the program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the automobile power system ECU abnormal reset post-processing device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the automotive power system ECU abnormal reset post-processing device to communicate wirelessly or wired with other devices to exchange data. Although the automotive power system ECU abnormal reset post-processing device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0128] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0129] The automobile power system ECU abnormal reset post-processing device provided by the present application adopts the automobile power system ECU abnormal reset post-processing method in the above embodiment, which can solve the technical problem of power interruption caused by abnormal reset of the vehicle. Compared with the prior art, the beneficial effects of the automobile power system ECU abnormal reset post-processing device provided by the present application are the same as the beneficial effects of the automobile power system ECU abnormal reset post-processing method provided by the above embodiment, and the other technical features of the automobile power system ECU abnormal reset post-processing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0130] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0132] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the automobile power system ECU abnormal reset post-processing method in the above-mentioned embodiment.
[0133] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0134] The computer-readable storage medium may be included in the automobile power system ECU abnormal reset post-processing device; or may exist independently without being assembled into the automobile power system ECU abnormal reset post-processing device.
[0135] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the automobile power system ECU abnormal reset post-processing device, the automobile power system ECU abnormal reset post-processing device: when the ECU is powered on, read the reset flag value, wherein the reset flag value is stored through a preset memory address; determine the historical reset information according to the reset flag value; when the historical reset information is an abnormal reset, control the ECU to restore to the state before the reset to obtain the reset result; and perform setting processing on the ECU according to the reset result.
[0136] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0138] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0139] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned automobile power system ECU abnormal reset post-processing method, and can solve the technical problem of power interruption caused by abnormal vehicle reset. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the automobile power system ECU abnormal reset post-processing method provided by the above-mentioned embodiment, and will not be repeated here.
[0140] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned automobile power system ECU abnormal reset post-processing method.
[0141] The computer program product provided by the present application can solve the technical problem of power interruption caused by abnormal vehicle reset. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the post-abnormal reset processing method of the automobile power system ECU provided by the above embodiment, which will not be repeated here.
[0142] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A post-processing method for abnormal reset of an automobile power system ECU, characterized in that: The automobile power system ECU abnormal reset post-processing method comprises the following steps: When the ECU is powered on, a reset flag value is read, wherein the reset flag value is stored via a preset memory address; Determine historical reset information according to the reset flag value; When the historical reset information is an abnormal reset, controlling the ECU to restore to a state before the reset to obtain a reset result; The ECU is reset according to the reset result.
2. The automobile power system ECU abnormal reset post-processing method according to claim 1, characterized in that: The step of controlling the ECU to return to a state before the reset when the historical reset information is an abnormal reset comprises: When the historical reset information is an abnormal reset, obtaining an internal value of the ECU before the abnormal reset according to the reset flag value; The ECU is controlled to return to a state before the reset based on the internal value.
3. The automobile power system ECU abnormal reset post-processing method as claimed in claim 2, characterized in that: The step of controlling the ECU to return to a state before resetting based on the internal value comprises: determining sensor data, control parameters and state variables based on the internal quantity values; Updating the system variables of the ECU using the sensor data to obtain updated system variables; configuring the control algorithm of the ECU by using the control parameters to obtain a configured control algorithm; Restoring the system state of the ECU through the state variables to obtain an initial system state; Performing correctness verification by updating the system variables, the configuration control algorithm, and the initial system state; When the correctness verification of the ECU is passed, it is determined that the ECU is restored to a state before the reset.
4. The automobile power system ECU abnormal reset post-processing method according to claim 1, characterized in that: The step of performing a setting process on the ECU according to the reset result comprises: When the reset result is that the ECU is in an abnormal reset state, setting the reset flag value to a first preset value; The internal value of the ECU in the abnormal reset state is obtained, the internal value in the abnormal reset state is stored in the preset memory address, and abnormal reset information is fed back.
5. The automobile power system ECU abnormal reset post-processing method according to claim 1, characterized in that: The step of performing a setting process on the ECU according to the reset result further includes: When the reset result is that the ECU is in a normal reset state, the reset flag value is set to a second preset value, wherein the first preset value is smaller than the second preset value.
6. The automobile power system ECU abnormal reset post-processing method according to claim 1, characterized in that: The step of controlling the ECU to return to a state before the reset based on the internal value further includes: When the internal value is missing, the missing value in the time series data is predicted by a prediction model to reconstruct the sensor data, control parameters and state variables that were not saved before the abnormal reset of the ECU.
7. The automobile power system ECU abnormal reset post-processing method according to claim 1, characterized in that: After the step of determining the historical reset information according to the reset flag value, the method further includes: When the historical reset information is a normal reset, the reset flag value is set to a first preset value.
8. A post-processing device for abnormal reset of ECU in automobile power system, characterized in that: The device comprises: An information acquisition module, used for reading a reset flag value when the ECU is powered on, wherein the reset flag value is stored via a preset memory address; An information analysis module, used to determine historical reset information according to the reset flag value; The reset module is used to control the ECU to be restored to a state before the reset when the historical reset information is an abnormal reset, and obtain a reset result; and perform a reset process on the ECU according to the reset result.
9. A post-processing device for abnormal reset of ECU in automobile power system, characterized in that: The device includes: a memory, a processor, and a vehicle power system ECU abnormal reset post-processing program stored in the memory and executable on the processor, wherein the vehicle power system ECU abnormal reset post-processing program is configured to implement the steps of the vehicle power system ECU abnormal reset post-processing method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a post-processing program for abnormal reset of an automobile power system ECU. When the post-processing program for abnormal reset of an automobile power system ECU is executed by a processor, the steps of the post-processing method for abnormal reset of an automobile power system ECU as described in any one of claims 1 to 7 are implemented.