CN113849338B - Combined instrument total mileage storage device and method - Google Patents

Combined instrument total mileage storage device and method Download PDF

Info

Publication number
CN113849338B
CN113849338B CN202111147632.7A CN202111147632A CN113849338B CN 113849338 B CN113849338 B CN 113849338B CN 202111147632 A CN202111147632 A CN 202111147632A CN 113849338 B CN113849338 B CN 113849338B
Authority
CN
China
Prior art keywords
total mileage
storage
odo
mileage
partition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111147632.7A
Other languages
Chinese (zh)
Other versions
CN113849338A (en
Inventor
蔡艳波
张仁泉
曹辉
鞠甜甜
徐萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Group Co Ltd
Original Assignee
Dongfeng Motor Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Group Co Ltd filed Critical Dongfeng Motor Group Co Ltd
Priority to CN202111147632.7A priority Critical patent/CN113849338B/en
Publication of CN113849338A publication Critical patent/CN113849338A/en
Application granted granted Critical
Publication of CN113849338B publication Critical patent/CN113849338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Measurement Of Distances Traversed On The Ground (AREA)

Abstract

The invention discloses a total mileage storage device of a combination instrument, which comprises an EEPROM, wherein the EEPROM is provided with n subareas, and each subarea is used for storing: the total mileage ODO, a CRC check code corresponding to the value of the total mileage ODO, and the number of errors M read or written. When the method is used for storing, the total mileage ODO and the CRC check code corresponding to the value of the total mileage ODO are stored at the same time, and the total mileage ODO is checked by using the CRC check code when the method is used for reading; and no storage and reading operations are performed on partitions where the number of errors M exceeds a certain value. The invention improves the reliability of the total mileage ODO data.

Description

Combined instrument total mileage storage device and method
Technical Field
The invention relates to the field of total mileage storage of vehicles, in particular to a total mileage storage device and method of a combination instrument.
Background
The combination meter is an important part for a driver to acquire vehicle information, the driver can acquire the vehicle speed, the rotating speed, the total mileage and alarm information of various vehicles through the combination meter, and the driver can perform the next operation on the vehicles according to the information acquired by the combination meter. The total mileage is an important information in the combination instrument, and has the characteristics of accuracy, reliability and uniqueness, and a user can judge when to maintain according to the total mileage; with the gradual rise of the automobile second-hand market, the importance of the total mileage is further improved, the reliability of the total mileage requirement is very high, and the total mileage requirement cannot be lost, hopped and tampered in the whole life cycle of the vehicle. For the above reasons, a method of storing the total mileage in the combination meter is very important.
Disclosure of Invention
The invention aims to provide a total mileage storage device and method for a combination instrument, so as to improve the accuracy and reliability of total mileage data.
In order to solve the technical problems, the invention provides a technical scheme that: a combined instrument total mileage storage method, in which total mileage is stored in an EEPROM provided with n partitions each for storing: the method comprises the steps of totalizing mileage ODO, CRC check codes corresponding to the value of the totalized mileage ODO and the number M of errors of reading or writing, wherein the storage steps are as follows:
s1, when a vehicle turns from IGN_ON to IGN_OFF or runs for k kilometers in the running process of the vehicle, storing the current total mileage ODO and the corresponding CRC check code;
s2, if the storage fails in the storage process, adding 1 to the error number M in the partition with the storage failure, and storing the next partition, wherein the partition with the error number M being more than or equal to M is not stored; if the error times M of all the partitions in one storage operation meet M more than or equal to M, outputting a storage failure signal; if the storage is successful in the storage process, the error times M in the partition with the storage failure are zeroed;
the reading steps are as follows:
r1, when BAT is powered on, reading the total mileage ODO and CRC check codes stored in all the partitions, carrying out correctness check on the corresponding total mileage ODO by utilizing each CRC check code, then outputting the maximum value in all the correct total mileage ODO, and adding 1 to the error times M of the partitions which are failed in the correctness check;
r2, when the vehicle is IGN_ON, directly reading the total mileage ODO in the memory.
M=5 according to the above scheme.
In the above scheme, k=1.
A cluster total mileage storage device, the device comprising an EEPROM provided with n partitions, wherein each partition is for storing: the total mileage ODO, a CRC check code corresponding to the value of the total mileage ODO, and the number of errors M read or written.
In the above scheme, n=5.
An automobile stores the total mileage ODO by using the combination meter total mileage storage method described above.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the cluster total mileage storage method as described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the cluster total mileage storage method as described above.
The beneficial effects of the invention are as follows: by dividing the EEPROM into a plurality of partitions, each partition performs independent storage and reading operation, and the improvement of the storage and reading fault tolerance rate is realized on the basis of not changing original hardware.
Further, by synchronously storing the CRC check code associated with the total mileage ODO in the storage process and carrying out CRC check on the total mileage ODO in the reading process, the accuracy of the read total mileage ODO is improved.
Drawings
FIG. 1 is a flow chart of a total mileage storage according to an embodiment of the present invention;
FIG. 2 is a flow chart of the aggregate mileage reading and storing according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present disclosure. It will be apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without the need for inventive faculty, are within the scope of the present disclosure, based on the described embodiments of the present disclosure.
Referring to fig. 1 and 2, a total mileage storage method of a combination meter includes the following storage steps:
s1, when a vehicle turns from IGN_ON to IGN_OFF or the vehicle runs for 1 km each time under a certain vehicle speed condition, storing the current total mileage ODO and a corresponding CRC check code;
s2, if the storage fails in the storage process, adding 1 to the error number M in the partition with the storage failure, and storing the next partition, wherein the partition with the error number M being more than or equal to 5 is not stored; if the error times M of all the partitions in one storage operation meet M more than or equal to 5, outputting a storage failure signal; if the storage is successful in the storage process, the error times M in the partition with the storage failure are zeroed;
the reading steps are as follows:
r1, when BAT is powered on, reading the total mileage ODO and CRC check codes stored in all the partitions, carrying out correctness check on the corresponding total mileage ODO by utilizing each CRC check code, then outputting the maximum value in all the correct total mileage ODO, and adding 1 to the error times M of the partitions which are failed in the correctness check;
r2, when the vehicle is IGN_ON, directly reading the total mileage ODO in the memory.
A cluster total mileage storage device, the device comprising an EEPROM provided with 5 partitions, wherein each partition is for storing: the total mileage ODO, a CRC check code corresponding to the value of the total mileage ODO, and the number of errors M read or written.
Partition and storage information is as follows:
first partition Second partition Third partition Fourth partition Fifth partition
ODO 1 ODO 2 ODO 3 ODO 4 ODO 5
CRC 1 CRC 2 CRC 3 CRC 4 CRC 5
M 1 M 2 M 3 M 4 M 4
An automobile stores the total mileage ODO by using the combination meter total mileage storage method described above.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the cluster total mileage storage method as described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the cluster total mileage storage method as described above.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (8)

1. A total mileage storage method of a combination instrument is characterized in that: in the method, the total mileage is stored in an EEPROM, and the EEPROM is provided with n partitions, wherein each partition is used for storing: the method comprises the steps of totalizing mileage ODO, CRC check codes corresponding to the value of the totalized mileage ODO and the number M of errors of reading or writing, wherein the storage steps are as follows:
s1, when a vehicle turns from IGN_ON to IGN_OFF or runs for k kilometers in the running process of the vehicle, storing the current total mileage ODO and the corresponding CRC check code;
s2, if the storage fails in the storage process, adding 1 to the error number M in the partition with the storage failure, and storing the next partition, wherein the partition with the error number M being more than or equal to M is not stored; if the error times M of all the partitions in one storage operation meet M more than or equal to M, outputting a storage failure signal; if the storage is successful in the storage process, the error times M in the partition with the storage failure are zeroed;
the reading steps are as follows:
r1, when BAT is powered on, reading the total mileage ODO and CRC check codes stored in all the partitions, carrying out correctness check on the corresponding total mileage ODO by utilizing each CRC check code, then outputting the maximum value in all the correct total mileage ODO, and adding 1 to the error times M of the partitions which are failed in the correctness check;
r2, when the vehicle is IGN_ON, directly reading the total mileage ODO in the memory.
2. The combination meter total mileage storage method of claim 1, wherein: m=5.
3. The combination meter total mileage storage method of claim 1, wherein: k=1.
4. A combination meter total mileage storage apparatus for realizing the combination meter total mileage storage method according to any one of claims 1 to 3, wherein: the device comprises an EEPROM provided with n partitions, each of which is intended to store: the total mileage ODO, a CRC check code corresponding to the value of the total mileage ODO, and the number of errors M read or written.
5. The combination meter total mileage storage apparatus of claim 4, wherein: n=5.
6. An automobile, characterized in that: the storage of the total mileage ODO is performed using the combination meter total mileage storage method according to any one of claims 1 to 3.
7. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized by: the processor, when executing the computer program, implements the steps of the method for storing total mileage of a combination meter according to any one of claims 1 to 3.
8. A computer-readable storage medium having stored thereon a computer program, characterized by: the computer program when executed by a processor implements the steps of the cluster total mileage storage method according to any one of claims 1 to 3.
CN202111147632.7A 2021-09-29 2021-09-29 Combined instrument total mileage storage device and method Active CN113849338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111147632.7A CN113849338B (en) 2021-09-29 2021-09-29 Combined instrument total mileage storage device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111147632.7A CN113849338B (en) 2021-09-29 2021-09-29 Combined instrument total mileage storage device and method

Publications (2)

Publication Number Publication Date
CN113849338A CN113849338A (en) 2021-12-28
CN113849338B true CN113849338B (en) 2024-03-01

Family

ID=78976926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111147632.7A Active CN113849338B (en) 2021-09-29 2021-09-29 Combined instrument total mileage storage device and method

Country Status (1)

Country Link
CN (1) CN113849338B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043722A (en) * 2010-12-30 2011-05-04 重庆长安汽车股份有限公司 Automobile total mileage storage method
CN103353754A (en) * 2013-06-28 2013-10-16 惠州市德赛西威汽车电子有限公司 Production method for automobile instrument
CN104978534A (en) * 2014-04-11 2015-10-14 大陆汽车车身电子系统(芜湖)有限公司 Method and system for preventing vehicle mileage tampering
CN105868120A (en) * 2016-03-24 2016-08-17 航天科技控股集团股份有限公司 A data storage method based on substitution of FLASH in a chip for EEPROM
CN106485807A (en) * 2015-08-28 2017-03-08 比亚迪股份有限公司 Vehicle and the traveling total kilometrage storage method for which and system
CN110733443A (en) * 2019-10-14 2020-01-31 广州维思车用部件有限公司 Vehicle-based instrument data processing method and device
CN110979007A (en) * 2019-11-27 2020-04-10 江铃汽车股份有限公司 Automobile mileage tamper-proofing method and system
CN112100184A (en) * 2020-10-26 2020-12-18 上海擎感智能科技有限公司 Vehicle total mileage data storage method and computer storage medium
CN112277844A (en) * 2020-09-29 2021-01-29 北汽福田汽车股份有限公司 Mileage backup method and device and vehicle
CN112527207A (en) * 2020-12-18 2021-03-19 深圳市元征科技股份有限公司 Method and device for storing data in EEPROM
CN112667433A (en) * 2021-01-27 2021-04-16 安徽天健环保车辆部件有限公司 Data verification and deviation correction method for mileage of automobile instrument

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10222141A1 (en) * 2002-05-17 2003-11-27 Bayerische Motoren Werke Ag Wireless transmission of vehicle data involves storing data in memory medium or providing for later readout at start of journey, carrying out changes and/or additions to data at end of journey
US9361739B2 (en) * 2012-02-23 2016-06-07 GM Global Technology Operations LLC Odometer monitoring and redundant storage system
GB2549149B (en) * 2016-04-08 2018-06-27 Melman Emanuel Vehicle mileage verification system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043722A (en) * 2010-12-30 2011-05-04 重庆长安汽车股份有限公司 Automobile total mileage storage method
CN103353754A (en) * 2013-06-28 2013-10-16 惠州市德赛西威汽车电子有限公司 Production method for automobile instrument
CN104978534A (en) * 2014-04-11 2015-10-14 大陆汽车车身电子系统(芜湖)有限公司 Method and system for preventing vehicle mileage tampering
CN106485807A (en) * 2015-08-28 2017-03-08 比亚迪股份有限公司 Vehicle and the traveling total kilometrage storage method for which and system
CN105868120A (en) * 2016-03-24 2016-08-17 航天科技控股集团股份有限公司 A data storage method based on substitution of FLASH in a chip for EEPROM
CN110733443A (en) * 2019-10-14 2020-01-31 广州维思车用部件有限公司 Vehicle-based instrument data processing method and device
CN110979007A (en) * 2019-11-27 2020-04-10 江铃汽车股份有限公司 Automobile mileage tamper-proofing method and system
CN112277844A (en) * 2020-09-29 2021-01-29 北汽福田汽车股份有限公司 Mileage backup method and device and vehicle
CN112100184A (en) * 2020-10-26 2020-12-18 上海擎感智能科技有限公司 Vehicle total mileage data storage method and computer storage medium
CN112527207A (en) * 2020-12-18 2021-03-19 深圳市元征科技股份有限公司 Method and device for storing data in EEPROM
CN112667433A (en) * 2021-01-27 2021-04-16 安徽天健环保车辆部件有限公司 Data verification and deviation correction method for mileage of automobile instrument

Also Published As

Publication number Publication date
CN113849338A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
CN104376877B (en) The circuit device and method of wrong identification are carried out to the permanent error in memory
CN110413439B (en) Method, apparatus and computer readable medium for detecting incomplete writing of data
CN104978534A (en) Method and system for preventing vehicle mileage tampering
US8566672B2 (en) Selective checkbit modification for error correction
CN107820606A (en) Memory array and link error correction in low power memory subsystem
CN109840162B (en) Memory device and method of operating the same
CN101477481A (en) Automatic error correction system and method
CN112100184A (en) Vehicle total mileage data storage method and computer storage medium
CN113978316B (en) Calculation method, device and storage medium for cruising mileage
CN111522684A (en) Method and device for simultaneously correcting soft and hard errors of phase change memory
CN113849338B (en) Combined instrument total mileage storage device and method
CN103309814B (en) The storage means of odometry data of automobile in EEPROM
CN105868120A (en) A data storage method based on substitution of FLASH in a chip for EEPROM
CN116072206B (en) Method and device for testing flash memory error number, electronic equipment and storage medium
CN109215726A (en) Method for testing memory and its memory device
CN102043683B (en) Smart card and method for operating data in smart card memory
CN105005513A (en) Detection and fault-tolerant device and method for cache multi-digit data upset errors
CN112277841B (en) Vehicle type configuration identification method, vehicle control method, driving computer and vehicle
CN109271275A (en) Bad block marking method, device, equipment and medium in solid state disk
CN115827304A (en) System and method for checking on-chip high-speed bus data
CN112380059B (en) Method and system for storing mileage information of vehicle instrument
US20130158973A1 (en) Parity error detection verification
CN117011961A (en) Automobile instrument total mileage storage method, reading method, device, equipment and medium
US10605611B2 (en) Navigation device and traffic information matching method thereof
CN115001623B (en) Method and device for checking vehicle-mounted electronic map data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant