Supercharge Your Innovation With Domain-Expert AI Agents!

Method for storing odometry data of automobile in EEPROM

A technology for car mileage and data, which is applied in the direction of protecting storage content from loss, memory address/allocation/relocation, etc. It can solve problems such as long flashing time, unrecoverable, and affecting program operating efficiency, so as to improve operating efficiency and time The effect of shortening

Active Publication Date: 2013-09-18
AEROSPACE HI TECH HLDG GROUP
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The invention solves the problem that the existing mileage data storage method of the EEPROM in the automobile meter cannot verify the data, and once the data is changed or lost due to environmental interference, it cannot be recovered. It takes a long time to affect the efficiency of program operation; and then provides a storage method for car mileage data in EEPROM

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for storing odometry data of automobile in EEPROM
  • Method for storing odometry data of automobile in EEPROM
  • Method for storing odometry data of automobile in EEPROM

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for storing odometry data of an automobile in an EEPROM belongs to the technical field of storing in the EEPROM. The method solves the problems that a conventional method for storing the odometry data in the EEPROM of a motormeter cannot verify the data, once the data is affected by environmental disturbance to be changed or lost, the data cannot be recovered; and the brush writing time is long to affect the operating efficiency of a program. The method comprises the following steps: Mod is set as an integer after diving a to-be-stored data by 16; whether a remainder after dividing the to-be-stored data by 16 is zero or not is judged; if the remainder is not zero, the Mod equals to the Mod plus 1; a value of a data storage address offset Addr which equals to a remainder after dividing (the to-be-stored data minus 1) by 16 is obtained; the Mod is stored in a storage address which is ensured by Addr+AddrBase; AddrBase is a base address, and a storage address for first data; after the storing is finished, the data Temp in the Addr+AddrBase is read; and the data is read and judged, if written data is inconsistent with the read data, a storage data exception processing is conducted. The method stores the odometry data to 16 addresses, wherein the brush written time of each unit is 62500 which is 6.3% of the durable time of each unit.

Description

technical field [0001] The invention relates to a method for storing automobile mileage data in an EEPROM, and belongs to the technical field of EEPROM storage. Background technique [0002] The mileage data on the car instrument is very important to the user. Once the mileage data is lost or inaccurate, it will have a great impact on the maintenance and after-sales quality assurance of the vehicle. With the rapid development of automotive electronic technology, the traditional mechanical Mileage counting has been replaced by electronic mileage counting. For electronic meters, the mileage data is stored in the EEPROM inside the meter. The EEPROM is affected by the number of flashing times and the external electromagnetic environment, which may cause data loss or damage to the storage unit. . The commonly used EEPROM data storage is mostly to open up a fixed unit in the EEPROM, and then open a new unit for storage after the set number of times is stored, so as to avoid the i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/02G06F12/16
Inventor 于金泳魏丽娜王大伟臧军望张志远邓春云王博玉
Owner AEROSPACE HI TECH HLDG GROUP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More