The storage method of automobile mileage data in eeprom
A technology for car mileage and data storage. It is applied in the direction of protecting storage content from loss, memory address/allocation/relocation, etc. It can solve problems such as unrecoverable, long flashing time, and affecting program operating efficiency, shortening the time to achieve, and improving The effect of operating efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach 1
[0019] Specific implementation mode one: as figure 1 Shown, the specific process of the storage method of a kind of automobile mileage data described in the present embodiment in EEPROM is:
[0020] Step 1. Set Mod as an integer after dividing the stored data (vehicle mileage data) by 16;
[0021] Step 2. Determine whether the remainder after dividing the stored data by 16 is zero, if it is not zero (that is, the stored data cannot be divisible by 16), then execute step 3; if it is zero (that is, the stored data can be divisible by 16), then execute Step four;
[0022] Step 3, Mod=Mod+1;
[0023] Step 4, obtain the value of the data storage address offset Addr, Addr is equal to the remainder after dividing (stored data-1) by 16;
[0024] Step 5. Store Mod in the storage address determined by Addr+AddrBase; here AddrBase is the base address, which is the storage address of the first data;
[0025] Step 6. After the storage is completed, read the data Temp in the Addr+AddrBa...
specific Embodiment approach 2
[0028] Specific implementation mode two: as figure 1 and figure 2 As shown, in this embodiment, the storage data exception processing in step 7 is to distinguish whether the EEPROM unit is damaged or is disturbed to cause read and write errors, and 8 read and write judgments are added in the storage data exception processing flow. If the writing fails, it is considered that the EEPROM unit is damaged, and a continuous 16 EEPROM units need to be re-opened to store the mileage in the new unit; the specific process is:
[0029] Step 1, i=0
[0030] Step 2. Store the Mod in the Addr+AddrBase storage address;
[0031] Step 3. Read the data Temp in the Addr+AddrBase address;
[0032] Step 4. Determine whether the written data Mod is consistent with the read data Temp, if yes, perform step 10; otherwise, perform step 5;
[0033] Step 5, increase the value of i;
[0034] Step 6. Determine whether i is less than 8, if so, return to step 2; otherwise, execute step 7;
[0035] Ste...
specific Embodiment approach 3
[0040] Specific implementation mode three: as image 3 As shown, the method described in this embodiment also includes step nine, the step of reading data verification, and its specific process is as follows:
[0041] Step nine (1), with AddrBase as the starting address, read 16 data;
[0042] Step nine (2), the data of step nine (1) is carried out the inconsistency point quantity statistics;
[0043] Step nine (3), judge whether the number of inconsistent points is greater than 1, if so, execute step nine (4), otherwise execute step nine (5);
[0044] Step 9 (4), use the data of the largest consistent point as a valid number, and check the data in other positions;
[0045] Step 9 (5), add up 16 data to obtain the total mileage data, and end the step of reading data verification.
[0046] Other steps are the same as those in Embodiment 1 or 2.
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com