A control method for NVM data fault diagnosis and processing

By performing multi-level, multi-condition monitoring and verification of NVM data, combined with bench data and adaptive functions, the problem of inaccurate data storage in EEPROM and Flash simulated EEPROM is solved, ensuring the stability of vehicle performance and functions, and providing accurate diagnostic information.

CN117008571BActive Publication Date: 2026-04-17CHONGQING TSINGSHAN IND
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHONGQING TSINGSHAN IND
Filing Date
2023-07-14
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technologies cannot comprehensively consider the actual situation of the vehicle, resulting in inaccurate NVM data stored in EEPROM and Flash emulated EEPROM. This leads to vehicle performance problems such as slow crawling response, starting shock, and shifting jerks during driving, and may even cause the vehicle to fail to start or run away during driving.

Method used

By monitoring NVM data at multiple levels and under multiple operating conditions, employing N data correlation checks and threshold judgments, and combining bench data, vehicle test experience values, and adaptive functions, substitute values ​​S1, S2, and S3 are calculated to ensure the accuracy and effectiveness of NVM data.

Benefits of technology

It ensures data accuracy and vehicle functionality in the event of NVM hardware failure or inaccurate data, provides accurate diagnostic information, and facilitates after-sales maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117008571B_ABST
    Figure CN117008571B_ABST
Patent Text Reader

Abstract

This invention discloses a control method for NVM data fault diagnosis and processing, comprising: 1) initializing NVM data substitution values ​​S1, S2, and S3; 2) setting an NVM data correlation verification threshold, an NVM data threshold, and an NVM fault state setting count threshold; 3) each controller in the vehicle acquires an NVM fault state signal through the underlying NVM fault interface and acquires NVM data through the data storage interface; 4) judging based on the acquired NVM fault state signal, reading N N times through the storage interface, and performing correlation verification and threshold condition judgment; 5) recognizing that the acquired NVM fault state signal has been set, and recording the number of times it has been set; 6) when the vehicle is powered off, re-updating the NVM data and storing the NVM fault code. This invention ensures that in the event of NVM hardware failure or inaccurate NVM data, the authenticity of the identified data can be determined through various methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive electronic control, and specifically to a control method for NVM data fault diagnosis and processing. Background Technology

[0002] With the rapid development of automotive electronic control, the integrated functions of various automotive controllers have increased, and the amount of data that controllers need to store has also increased accordingly. Currently, automotive storage controllers use two methods to store important user information and critical parameters during operation: external EEPROM or Flash simulated EEPROM. This data is called NVM storage data. This function can ensure that the stored data is not lost after the next power-on. These parameters determine the important functions and driving performance of the entire vehicle.

[0003] Although both EEPROM and Flash-simulated EEPROM storage functions have diagnostic capabilities, they only address hardware faults in the controller and address overflows in the storage, without comprehensively considering the actual situation of the entire vehicle. They cannot guarantee whether the stored data after diagnosis meets the current needs of the vehicle. If the stored data is inaccurate, it can cause performance problems such as slow crawling response, starting shock, and shifting jerks during driving. Inaccurate key parameters can even lead to serious functional problems such as the vehicle being unable to start or running away during driving. Summary of the Invention

[0004] This invention provides a control method for NVM data fault diagnosis and processing. This invention ensures that in the event of NVM hardware failure or inaccurate NVM data, the authenticity of the data can be judged and identified through various methods, and an accurate replacement value can be calculated. This ensures the drivability and functionality of the vehicle and provides accurate diagnostic information for after-sales maintenance of the vehicle.

[0005] The technical solutions to the above technical problems are as follows:

[0006] A control method for NVM data fault diagnosis and handling includes the following steps:

[0007] 1) Initialize NVM data substitution values ​​S1, S2, and S3;

[0008] 2) Set the NVM data correlation verification threshold, NVM data threshold, and NVM fault status setting count threshold;

[0009] 3) Each controller in the vehicle obtains NVM fault status signals through the underlying NVM fault interface and obtains NVM data through the data storage interface;

[0010] 4) Based on the obtained NVM fault status signal, the NVM data is read through the storage interface N times, and correlation verification and threshold condition judgment are performed. If both are satisfied, the NVM data is the average of the N NVM data to obtain S4.

[0011] 4-1) When N NVM data fail the correlation check, the NVM data uses the calculated substitute value S1, and the NVM data correlation error fault code is recorded.

[0012] 4-2) If N NVM data fails the threshold condition judgment, the NVM data uses the calculated substitute value S2, and the NVM data exceeds the threshold fault code is recorded.

[0013] 5) If the NVM fault status signal is detected to be set, record the number of times it is set. If the number of times it is set is less than the set number, proceed to step 4; otherwise, calculate the replacement value S3 for the NVM data and record the NVM hardware fault code.

[0014] 6) When the vehicle is powered off, the NVM data and NVM fault codes are re-stored and updated.

[0015] Furthermore, in step 4), the method for calculating S4 by averaging the N NVM data is as follows:

[0016] Calculate the difference between N NVM data sets. If each difference is less than or equal to a pre-set NVM data correlation verification threshold, proceed to step 4-2. Further evaluate the N N NVM data sets sequentially. If each value is within the pre-set NVM data threshold range, output the average value S4 of the N N VM data sets.

[0017] Furthermore, the method for obtaining the substitution value S1 in step 4-1) is as follows:

[0018] If the NVM data values ​​are equal N-2 times out of N times, S1 outputs the values ​​of the equal NVM data; otherwise, S1 outputs the initial value set by S1.

[0019] Furthermore, the method for obtaining the substitution value S2 in step 4-2) is as follows:

[0020] If N-2 out of N data points are within a pre-defined threshold range, S2 outputs the average of the N-2 data points; otherwise, S2 outputs the value stored after the vehicle leaves the production line.

[0021] Furthermore, the substitution value S3 in step 5) is obtained as follows:

[0022] When the number of times the NVM fault state is set is greater than or equal to the preset threshold for the number of times the NVM fault state is set, the adaptive function pre-stored in the controller is triggered to calculate and obtain the most accurate NVM data, which is the value of the adaptive function output by S3.

[0023] Furthermore, the adaptive function learns the actual NVM value based on the actual operating conditions of the vehicle, including speed, vehicle speed, braking, and throttle-related signals.

[0024] The advantages of this invention are:

[0025] 1. The NVM data correlation verification and threshold judgment are performed N times. The alternative values ​​are bench data values, empirical values ​​from whole vehicle testing, and values ​​stored after the whole vehicle leaves the factory, to ensure the validity of the NVM data.

[0026] 2. When NVM hardware fails, the replacement value can be obtained through the vehicle's real-time operating conditions, ensuring the accuracy of NVM data.

[0027] 3. By monitoring and diagnosing NVM data anomalies at multiple levels and under multiple operating conditions, and recording specific NVM-related fault codes, it is convenient for after-sales personnel to carry out maintenance. Attached Figure Description

[0028] Figure 1 This is a flowchart of the present invention. Detailed Implementation

[0029] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0030] like Figure 1 The control method for NVM data fault diagnosis and processing of the present invention includes the following steps:

[0031] 1) Initialize NVM data substitution values ​​S1, S2, and S3.

[0032] 2) Set the NVM data correlation verification threshold, NVM data threshold, and NVM fault status setting number threshold.

[0033] The NVM data correlation verification threshold, NVM data threshold, and NVM fault state setting count threshold are all empirical values. In this embodiment, the motor resolver zero-position value correlation verification threshold is 3, the motor resolver zero-position value threshold is [-5 -5], and the NVM fault state setting count threshold is 4.

[0034] 3) Each controller in the vehicle obtains NVM fault status signals through the underlying NVM fault interface and obtains NVM data through the data storage interface;

[0035] The NVM fault status signal is obtained by the controller through the underlying NVM fault interface.

[0036] The NVM data signal is obtained by the controller through the underlying storage interface.

[0037] In this embodiment, the motor resolver zero position value is obtained from the motor resolver position memory allocated at the underlying level.

[0038] 4) Based on the obtained NVM fault status signal, make a judgment. If it is not set, read N NVM data through the storage interface, perform correlation verification and threshold condition judgment. If both are satisfied, the NVM data is the average of the N NVM data to obtain S4.

[0039] For example, the motor resolver zero position value is read four times through the motor resolver position memory interface, and correlation verification and threshold condition judgment are performed. If both are satisfied, the motor resolver zero position value is obtained by averaging the four motor resolver zero position values ​​to get S4.

[0040] In step 4), the method for calculating S4 by averaging the N NVM data is as follows:

[0041] Calculate the difference between N NVM data sets. If each difference is less than or equal to a pre-set NVM data correlation verification threshold, proceed to step 4-2. Further evaluate the N N NVM data sets sequentially. If each value is within the pre-set NVM data threshold range, output the average value S4 of the N N VM data sets.

[0042] For example, the calculation method for the correlation verification of the zero point of the motor resolver is as follows: the difference between the four zero point values ​​of the motor resolver is calculated. If each difference is less than or equal to the correlation verification threshold of the zero point value of the motor resolver, then step 4-2 is performed. The range of the four zero point values ​​of the motor resolver is further judged in turn. If each value is within the threshold range of the zero point value of the motor resolver [-5 -5], then the average value S4 of the four zero point values ​​of the motor resolver is output.

[0043] 4-1) When N NVM data fail the correlation check, the NVM data uses the calculated substitute value S1, and the NVM data correlation error fault code is recorded. For example: when 4 motor resolver zero-point values ​​fail the correlation check, the 4 motor resolver zero-point values ​​use the substitute value S1, and the motor resolver zero-point value correlation error fault code is recorded.

[0044] The method for obtaining the substitution value S1 in step 4-1) is as follows: if the NVM data values ​​are equal in N-2 out of N trials, S1 outputs the value of the equal NVM data; otherwise, S1 outputs the initial value set by S1. For example, the method for obtaining the substitution value S1 is as follows: if the motor resolver zero position value is equal in 2 out of 4 trials, S1 outputs the equal value; otherwise, S1 outputs the initial value of the motor resolver zero position set by S1.

[0045] The initial value of the motor resolver zero position set in S1 is obtained based on the average value of a large number of bench data.

[0046] 4-2) When N NVM data fail the threshold condition judgment, the NVM data uses the calculated substitute value S2, and the NVM data exceeds the threshold fault code is recorded. For example: when the motor resolver zero position value fails the threshold condition judgment 4 times, the 4 motor resolver zero position values ​​use the substitute value S2, and the motor resolver zero position value exceeds the threshold fault code is recorded.

[0047] In step 4-2), the method for obtaining the substitution value S2 is as follows: if N-2 out of N data points are within a pre-set threshold range, S2 outputs the average of the N-2 data points; otherwise, S2 outputs the value stored after the vehicle leaves the production line. For example, the method for obtaining the substitution value S2 is as follows: if the motor resolver zero-position value is within a pre-set threshold range of [-5 5] in 2 out of 4 data points, S2 outputs the average of the 2 data points; otherwise, S2 outputs the value stored after the vehicle leaves the production line.

[0048] 5) If the NVM fault status signal is detected to be set, record the number of times it is set. If the number of times it is set is less than the set number, proceed to step 4; otherwise, the NVM data uses the calculated substitute value S3 and records the NVM hardware fault code.

[0049] In step 5), the alternative value S3 is obtained as follows: when the number of times the NVM fault state is set is greater than or equal to the preset threshold for the number of times the NVM fault state is set, the adaptive function stored in the controller is triggered, and the most accurate NVM data is calculated and obtained, that is, the value of the adaptive function is output by S3.

[0050] The aforementioned adaptive function learns the actual NVM value based on the actual operating conditions of the vehicle, including the speed, vehicle speed, braking, and throttle-related signals. In other words, it learns the actual motor resolver zero-position adaptive value based on the actual operating conditions of the vehicle, including the speed, vehicle speed, braking, and throttle-related signals.

[0051] 6) When the vehicle is powered off, the NVM data and NVM fault codes are re-stored and updated. For example, when the vehicle is powered off, the motor resolver zero-point value is re-stored and updated, and fault codes related to motor resolver zero-point value, fault codes for motor resolver zero-point value exceeding threshold, and NVM hardware fault codes are stored.

[0052] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications made to the present invention by those skilled in the art without departing from the spirit of the present invention shall fall within the protection scope of the present invention.

Claims

1. A control method for NVM data fault diagnosis and processing, characterized in that, Includes the following steps: 1) Initialize NVM data substitution values ​​S1, S2, and S3; 2) Set the NVM data correlation verification threshold, NVM data threshold, and NVM fault status setting count threshold; 3) Each controller in the vehicle obtains NVM fault status signals through the underlying NVM fault interface and obtains NVM data through the data storage interface; 4) Based on the obtained NVM fault status signal, the NVM data is read through the storage interface N times, and correlation verification and threshold condition judgment are performed. If both are satisfied, the NVM data is the average of the N NVM data to obtain S4. 4-1) When N NVM data fail the correlation check, the NVM data uses the calculated substitute value S1, and the NVM data correlation error fault code is recorded. 4-2) If N NVM data fails the threshold condition judgment, the NVM data uses the calculated substitute value S2, and the NVM data exceeds the threshold fault code is recorded. 5) If the NVM fault status signal is detected to be set, record the number of times it is set. If the number of times it is set is less than the set number, proceed to step 4; otherwise, calculate the replacement value S3 for the NVM data and record the NVM hardware fault code. 6) When the vehicle is powered off, the NVM data and NVM fault codes are re-stored and updated.

2. The control method for NVM data fault diagnosis and processing according to claim 1, characterized in that, In step 4), the method for calculating S4 by averaging the N NVM data is as follows: Calculate the difference between N NVM data sets. If each difference is less than or equal to a pre-set NVM data correlation verification threshold, proceed to step 4-2. Further evaluate the N N NVM data sets sequentially. If each value is within the pre-set NVM data threshold range, output the average value S4 of the N N VM data sets.

3. The control method for NVM data fault diagnosis and processing according to claim 1, characterized in that, The method for obtaining the substitution value S1 in step 4-1) is as follows: If the NVM data values ​​are equal N-2 times out of N times, S1 outputs the values ​​of the equal NVM data; otherwise, S1 outputs the initial value set by S1.

4. The control method for NVM data fault diagnosis and processing according to claim 1, characterized in that, The method for obtaining the substitution value S2 in step 4-2) is as follows: If N-2 out of N data points are within a pre-defined threshold range, S2 outputs the average of the N-2 data points; otherwise, S2 outputs the value stored after the vehicle leaves the production line.

5. The control method for NVM data fault diagnosis and processing according to claim 1, characterized in that, The substitution value S3 in step 5) is obtained as follows: When the number of times the NVM fault state is set is greater than or equal to the preset threshold for the number of times the NVM fault state is set, the adaptive function pre-stored in the controller is triggered to calculate and obtain the most accurate NVM data, which is the value of the adaptive function output by S3.

6. The control method for NVM data fault diagnosis and processing according to claim 5, characterized in that, The aforementioned adaptive function learns the actual NVM value based on the vehicle's actual operating conditions, including speed, vehicle speed, braking, and throttle-related signals.

Citation Information

Patent Citations

  • A method and module for calibrate NVM data of dual clutch transmission

    CN109344007A

  • Operational Status Indicators in an Optical Transceiver Using Dynamic Thresholds

    US20130209088A1