CN107688509B - Backup method and system for automobile mileage data - Google Patents

Backup method and system for automobile mileage data Download PDF

Info

Publication number
CN107688509B
CN107688509B CN201710719634.6A CN201710719634A CN107688509B CN 107688509 B CN107688509 B CN 107688509B CN 201710719634 A CN201710719634 A CN 201710719634A CN 107688509 B CN107688509 B CN 107688509B
Authority
CN
China
Prior art keywords
mileage
backup
comparison result
automobile
strategy
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
CN201710719634.6A
Other languages
Chinese (zh)
Other versions
CN107688509A (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.)
BAIC Motor Co Ltd
Original Assignee
BAIC Motor 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 BAIC Motor Co Ltd filed Critical BAIC Motor Co Ltd
Priority to CN201710719634.6A priority Critical patent/CN107688509B/en
Publication of CN107688509A publication Critical patent/CN107688509A/en
Application granted granted Critical
Publication of CN107688509B publication Critical patent/CN107688509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a backup method and a backup system for automobile mileage data, and relates to an automobile electronic technology. The method comprises the following steps: acquiring a first mileage published by a combination instrument in an automobile and a second mileage stored by an automobile body controller in the automobile; determining a mileage backup strategy according to the first mileage number, the second mileage number and a difference value between the first mileage number and the second mileage number; and judging whether to perform backup operation on the mileage data stored in the automobile body controller according to the mileage backup strategy. The method comprises the steps of determining a mileage backup strategy, judging whether to perform backup operation on mileage data stored in the automobile body controller according to the mileage backup strategy, and specifically, if determining that the operation corresponding to the mileage backup strategy is not performed, performing the corresponding backup operation according to the mileage backup strategy, thereby ensuring that the mileage backup operation is effectively performed and ensuring the accuracy and the effectiveness of a mileage backup value.

Description

Backup method and system for automobile mileage data
Technical Field
The invention relates to an automobile electronic technology, in particular to a backup method and a backup system for automobile mileage data.
Background
In recent years, the automobile industry has been developed at a high speed, and the updating of automobiles is also intensified. Following the principle of economy and material benefit, the second-hand vehicle is gradually accepted by the consumers. As is well known, the automobile mileage value is an important value for automobile value evaluation and also an important evaluation index for used automobile transaction. In order to ensure the fairness of the transaction, each host factory also pays great attention to the functionality and irreparability of mileage backup.
The vehicle running total mileage value backup storage generally adopts a master-slave principle, wherein a master side is an integrated instrument ICM, a slave side is a vehicle body controller BCM, namely the integrated instrument ICM is used as the master side to calculate and release (display) the total mileage value, and the BCM is used as an auxiliary backup storage unit. At present, when a storage battery is powered off, an integrated instrument ICM is replaced or a vehicle body controller BCM is replaced, and numerical values stored by the BCM and the ICM are asymmetric, an automobile usually directly executes numerical value backup operation according to preset storage rules, and in the backup process, when backup fails due to faults and the like, the correctness and the effectiveness of backup data are difficult to guarantee.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the backup method and the backup system for the automobile mileage data, which can ensure the accuracy and the effectiveness of the mileage backup numerical value.
The first aspect of the invention provides a backup method of automobile mileage data, comprising the following steps:
acquiring a first mileage published by a combination instrument in an automobile and a second mileage stored by an automobile body controller in the automobile;
determining a mileage backup strategy according to the first mileage number, the second mileage number and a difference value between the first mileage number and the second mileage number;
and judging whether to perform backup operation on the mileage data stored in the automobile body controller according to the mileage backup strategy.
Further, the determining a mileage backup strategy according to the first mileage number, the second mileage number, and a difference between the first mileage number and the second mileage number includes:
comparing the first mileage sent by the combination instrument with a preset mileage critical value to determine a first comparison result;
comparing a second mileage stored by the automobile body controller with the mileage critical value to determine a second comparison result;
comparing the difference value of the first mileage and the second mileage with zero to determine a third comparison result;
comparing the difference value with a preset difference value critical value to determine a fourth comparison result, wherein the difference value critical value is not equal to zero;
and searching a corresponding mileage backup strategy in a preset database according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
Further, according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result, searching a corresponding mileage backup strategy in a preset database, including:
determining a plurality of corresponding first test items in the database according to the first mileage numerical value, the second mileage numerical value, the mileage critical value, the difference value critical value and zero;
determining a plurality of effective test items in all the test items, wherein each effective test item is preset with a corresponding backup strategy;
and searching the mileage backup strategy according to a plurality of effective test items.
Further, searching for the mileage backup strategy according to the plurality of valid test items includes:
determining a target valid test item which is matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result in the plurality of valid test items;
and determining the backup strategy corresponding to the target effective test item as the mileage backup strategy.
Further judging whether to perform backup operation on the mileage data stored in the automobile body controller according to the mileage backup strategy, wherein the backup operation comprises the following steps:
if the mileage backup strategy comprises a re-backup instruction, re-backing up a second mileage stored in the automobile body controller into a first mileage issued by the combination meter according to the re-backup instruction; or,
and if the mileage backup strategy comprises a backup keeping instruction, keeping the mileage data stored in the automobile body controller as a second mileage according to the backup keeping instruction.
Another aspect of the present invention provides a backup system of mileage data of a vehicle, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first mileage published by a combination instrument in the automobile and a second mileage stored by an automobile body controller in the automobile;
the processing unit is used for determining a mileage backup strategy according to the first mileage number, the second mileage number and a difference value between the first mileage number and the second mileage number;
and the backup unit is used for judging whether to carry out backup operation on the mileage data stored in the automobile body controller according to the mileage backup strategy.
Further, the first processing unit includes:
the first comparison module is used for comparing the first mileage sent by the combination meter with a preset mileage critical value to determine a first comparison result;
the second comparison module is used for comparing a second mileage stored by the automobile body controller with the mileage critical value to determine a second comparison result;
the third comparison module is used for comparing the difference value of the first mileage and the second mileage with zero to determine a third comparison result;
the fourth comparison module is used for comparing the difference value with a preset difference value critical value to determine a fourth comparison result, wherein the difference value critical value is not equal to zero;
and the searching module is used for searching a corresponding mileage backup strategy in a preset database according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
Further, the search module is further configured to:
determining a plurality of corresponding first test items in the database according to the first mileage numerical value, the second mileage numerical value, the mileage critical value, the difference value critical value and zero;
determining a plurality of effective test items in all the test items, wherein each effective test item is preset with a corresponding backup strategy;
and searching the mileage backup strategy according to a plurality of effective test items.
Further, the lookup module is configured to:
determining a target valid test item which is matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result in the plurality of valid test items;
and determining the backup strategy corresponding to the target effective test item as the mileage backup strategy.
Further, the backup unit is configured to:
if the mileage backup strategy comprises a re-backup instruction, re-backing up a second mileage stored in the automobile body controller into a first mileage issued by the combination meter according to the re-backup instruction; or,
and if the mileage backup strategy comprises a backup keeping instruction, keeping the mileage data stored in the automobile body controller as a second mileage according to the backup keeping instruction.
According to the backup method and the backup system for the automobile mileage data, a mileage backup strategy is determined according to a first mileage number sent by a combination instrument, a second mileage number stored by an automobile body controller and a difference value between the first mileage number and the second mileage number, and whether the mileage data stored in the automobile body controller is subjected to a re-backup operation or not is judged according to the mileage backup strategy, so that the effective execution of the mileage backup operation is ensured, and the accuracy and the effectiveness of a mileage backup numerical value are ensured.
Drawings
FIG. 1 is a schematic flow chart illustrating an embodiment of a backup method for mileage data of an automobile according to the present invention;
FIG. 2 is a flowchart illustrating a method for backing up mileage data of an automobile according to another embodiment of the present invention;
FIG. 3a and FIG. 3b are schematic diagrams illustrating a distribution path of a first test item according to another embodiment of the backup method for mileage data of an automobile;
FIG. 4 is a schematic structural diagram of an embodiment of a backup system for vehicle mileage data according to the present invention;
fig. 5 is a schematic structural diagram of another embodiment of the backup system for the automobile mileage data according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
It should be noted that the terms "first" and "second" in the description of the present invention are used merely for convenience in describing different components, and are not to be construed as indicating or implying a sequential relationship, relative importance, or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Fig. 1 is a flowchart illustrating an embodiment of a backup method for mileage data of an automobile according to the present invention.
Referring to fig. 1, the present embodiment provides a method for backing up mileage data of an automobile, including:
s101, acquiring a first mileage issued by a combination instrument in an automobile and a second mileage stored by an automobile body controller in the automobile;
wherein the first mileage is the maximum mileage in the combination meter ICM, and the second mileage is the current mileage in the body controller BCM; the combination meter ICM serves as a master for calculating and issuing (displaying) the total mileage value, and the vehicle body controller BCM serves as a slave, that is, an auxiliary backup storage unit for backing up the value sent by the ICM.
S102, determining a mileage backup strategy according to the first mileage, the second mileage and a difference value between the first mileage and the second mileage;
specifically, after the first mileage number and the second mileage number are obtained, the first mileage number and the second mileage number may be compared, a first threshold value is set for a difference between the first mileage number and the second mileage number, the difference value is compared with the first threshold value, and a corresponding backup policy is searched according to a comparison condition; and setting a corresponding mileage backup strategy for each comparison condition in advance through statistics of the comparison condition.
S103, judging whether to perform backup operation on the mileage data stored in the automobile body controller according to the mileage backup strategy.
In this embodiment, a specific implementation process of determining whether to perform a backup operation on the mileage data stored in the vehicle body controller according to the mileage backup policy is not limited, and a person skilled in the art may set the backup operation according to a specific design requirement, for example, may first detect whether to perform an operation corresponding to the mileage backup policy; and if the operation corresponding to the mileage backup strategy is determined not to be executed, executing the corresponding backup operation according to the mileage backup strategy.
Specifically, the mileage backup strategy may include: when the first mileage, the second mileage and the difference value between the first mileage and the second mileage meet a first preset condition, the BCM backs up the first mileage sent by the ICM, and at this time, whether the BCM backs up the first mileage sent by the ICM or not can be detected, that is, whether the second mileage of the current mileage of the BCM is the same as the first mileage or not is detected, if so, the BCM indicates that the BCM has backed up the first mileage sent by the ICM, and if not, the BCM is controlled to execute the operation of backing up the first mileage sent by the ICM.
The mileage policy may further include: when the first mileage, the second mileage, and the difference between the two satisfy a second preset condition, the ICM displays "ODO ERROR" and specifies whether to backup the first mileage value sent by the ICM by the BCM. Alternatively, the mileage policy may further include: when the first mileage number, the second mileage number and the difference value of the first mileage number and the second mileage number meet a second preset condition, the ICM displays ODO ERROR, the BCM sends the second mileage number stored by the BCM to the ICM, and the ICM determines whether to backup the second mileage value sent by the ICM.
Certainly, the mileage backup policy is not limited to this, and this embodiment is only an example, and a person skilled in the art may set the mileage backup policy according to actual needs. In addition, the first threshold, the first preset condition and the second preset condition are not specifically limited in this embodiment, and those skilled in the art can set the threshold according to actual needs.
According to the backup method for the automobile mileage data, a mileage backup strategy is determined according to a first mileage number sent by a combination meter, a second mileage number stored by an automobile body controller and a difference value between the first mileage number and the second mileage number, and whether the mileage data stored in the automobile body controller is subjected to a re-backup operation or not is judged according to the mileage backup strategy, so that the effective execution of the mileage backup operation is ensured, and the accuracy and the effectiveness of a mileage backup value are ensured.
Further, determining a mileage backup strategy according to the first mileage, the second mileage and a difference between the first mileage and the second mileage, comprising:
comparing the first mileage sent by the combination instrument with a preset mileage critical value to determine a first comparison result;
comparing the second mileage stored by the automobile body controller with the mileage critical value to determine a second comparison result;
comparing the difference value of the first mileage and the second mileage with zero to determine a third comparison result;
comparing the difference value with a preset difference value critical value to determine a fourth comparison result, wherein the difference value critical value is not equal to zero;
and searching a corresponding mileage backup strategy in a preset database according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
In this embodiment, the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result are counted in advance, the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result are combined, and a corresponding mileage backup strategy is set for each combination situation to cover all situations that need to be tested when the first mileage number and the second mileage number are asymmetric.
FIG. 2 is a flowchart illustrating a method for backing up mileage data of an automobile according to another embodiment of the present invention;
fig. 3a and 3b are schematic diagrams illustrating distribution paths of a first test item in another embodiment of the backup method for the mileage data of the automobile according to the present invention.
Referring to fig. 2 to 3b, the method for backing up mileage data of an automobile according to the present embodiment searches a corresponding mileage backup policy in a preset database according to a first comparison result, a second comparison result, a third comparison result, and a fourth comparison result, and may further include:
s201, determining a plurality of corresponding test items in the database according to the first mileage numerical value, the second mileage numerical value, the mileage critical value, the difference value critical value and 0;
s202, determining a plurality of effective test items in all the test items, wherein each effective test item is preset with a corresponding backup strategy;
s203, searching the mileage backup strategy according to the effective test items.
Further, finding the mileage backup policy according to the plurality of valid test items may include:
determining a target valid test item which is matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result in the plurality of valid test items;
and determining the backup strategy corresponding to the target effective test item as the mileage backup strategy.
Specifically, a first mileage transmitted by the combination meter may be compared with a preset mileage critical value to determine a first comparison result;
comparing the second mileage stored by the automobile body controller with the mileage critical value to determine a second comparison result;
comparing the difference value of the first mileage and the second mileage with zero to determine a third comparison result;
comparing the difference value with a preset difference value critical value to determine a fourth comparison result;
and determining the target effective test items matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result, and determining the backup strategy corresponding to the matched target effective test items as a mileage backup strategy.
After determining the mileage backup strategy, determining whether to perform a backup operation on the mileage data stored in the vehicle body controller according to the mileage backup strategy may include:
if the mileage backup strategy comprises a re-backup instruction, re-backing up a second mileage stored in the automobile body controller into a first mileage issued by the combination meter according to the re-backup instruction; or,
and if the mileage backup strategy comprises a backup keeping instruction, keeping the mileage data stored in the automobile body controller as a second mileage according to the backup keeping instruction.
Specifically, whether an operation corresponding to the mileage backup policy has been performed may be detected; if the operation corresponding to the mileage backup strategy is determined not to be executed, the corresponding backup operation is executed according to the mileage backup strategy, and if the operation corresponding to the mileage backup strategy is determined to be executed, data keeping processing can be executed.
In the embodiment, the mileage critical value is set as the difference critical value, the first mileage number, the second mileage number and the mileage critical value are respectively compared, the difference value of the first mileage number and the second mileage number is respectively compared with the difference critical value and zero, each comparison result which possibly occurs is analyzed, and the determined effective test item can cover all conditions which need to be tested when the first mileage number and the second mileage number are asymmetric, so that the accuracy, the effectiveness and the safety of the mileage value are ensured; in addition, the comprehensiveness of the mileage backup strategy can be guaranteed, and logic is omitted.
After the mileage critical value and/or the difference critical value is updated or reset each time, the first test item needs to be determined again, and a valid test item is determined from the first test item according to the logical relationship, that is, steps S201 and S202 need to be executed; in the subsequent testing process, as long as the mileage critical value and the difference critical value are not changed, the first comparison result, the second comparison result, the third comparison result and the fourth comparison result can be directly matched with the valid test items, that is, the step S203 is directly executed, so that the matching efficiency is greatly improved.
The test method may also receive updated settings for the mileage threshold and/or the difference threshold. For example, after the first mileage reaches the second threshold, the sum of the mileage critical values is receivedAnd/or the difference threshold value is updated. Specifically, the mileage critical value may be set according to bytes corresponding to the first mileage number and/or the second mileage number, and the mileage critical value may be 28n-1, wherein n is an integer greater than 0, for example: the mileage critical value can be 255, 65535, etc.; the difference critical value can be set according to actual needs, and can be positive or negative. At this time, when comparing the first mileage number and the second mileage number with the mileage threshold, if the first mileage number and the second mileage number are kilometer values, the first mileage number and the second mileage number need to be converted, for example, into binary numbers.
In this embodiment, let I be the first mileage transmitted by the combination meter, let B be the second mileage stored by the vehicle body controller, let C be the mileage threshold value of I and B, let D be the difference between I and B (D ═ I-B), and let X be the difference threshold value of D. The first test item may be determined by combining the test technologies of the median partition and the boundary value analysis in the test theory, and specifically, by referring to the distribution path diagrams shown in fig. 3a and fig. 3b, as shown in table 1.
TABLE 1 first test item and its effectiveness
Figure BDA0001384657440000081
Figure BDA0001384657440000091
Figure BDA0001384657440000101
Figure BDA0001384657440000111
Wherein, according to the logical relationship, I > B, D < 0; II, I < B, D > 0; (iii) I ═ B, D > 0; d < 0; i is greater than B, D is 0; sixthly, I < B, D is 0; the first test item matching the above 6 types is invalid, and the remaining 36 test items are valid test items, each of which is shown in table 2.
TABLE 2 available test items
Figure BDA0001384657440000112
Figure BDA0001384657440000121
Next, a backup method of the car mileage data provided in this embodiment will be described by way of example. Assuming that C is 255 and X is 80(X >0), each valid test item is as shown in table 3.
Table 3 valid test items when C is 255 and X is 80
Figure BDA0001384657440000122
Figure BDA0001384657440000131
Taking valid test item 1(I >255, B >255, D >0, D >80) in Table 3 as an example:
the mileage backup policy specifies a first mileage I sent by the BCM backup ICM at that time when I >255, B >255, D ═ I-B >0, and D ═ I-B > 80.
Then, the condition of the valid test item test is that when I >255, B >255, D >0, and D >80, the BCM is checked whether to backup the first mileage sent by the ICM, that is, whether a value corresponding to I exists in the BCM is detected; if the first mileage number exists, the BCM represents that the first mileage number sent by the ICM is backed up, and if the first mileage number does not exist, the BCM is controlled to execute the operation of backing up the first mileage number sent by the ICM.
Taking the valid test entry 16(I <255, B >255, D <0, D <80) in Table 3 as an example:
when I <255, B >255, D is I-B <0, and D is I-B >80, the mileage backup strategy specifies that the ICM displays ODOERROR at the moment, and specifies that the ICM sends a first mileage, namely I, to the BCM, and the BCM judges the backup I or B; wherein ODO marks location 1 for every 10km increase in mileage value.
Then, the test item tests for the case when I <255, B <255, D >0, D <80, checks whether the ICM shows ODOERROR, and checks whether the ICM sends the first mileage to the BCM.
Or when I <255, B >255, D is I-B <0, and D is I-B >80, the mileage backup strategy specifies that the ICM displays ODO ERROR at the moment, and specifies that the BCM sends a second mileage, namely B, to the ICM, and the ICM judges the backup I or B.
For example, the specific process of determining backup I or B may be: when I is less than 255, backing up a B value; when I is larger than or equal to 255, the value of I is backed up. Of course, the determination process is not limited to this, and this embodiment is merely an example, and specifically, the determination process may be set according to actual needs.
In this embodiment, each valid test item covers all situations that need to be tested when the first mileage number and the second mileage number are asymmetric, so as to ensure the correctness, validity and safety of the mileage backup value; in addition, the comprehensiveness of the mileage backup strategy can be guaranteed, and logic is omitted.
The embodiment also provides a backup system of the automobile mileage data, which is used for executing the backup method of the automobile mileage data in the embodiment; the functions and implementation processes of the functional modules in this embodiment are the same as or similar to those of the corresponding steps in the foregoing embodiments.
Fig. 4 is a schematic structural diagram of an embodiment of the backup system for the automobile mileage data according to the present invention.
Referring to fig. 4, the system for backing up mileage data of an automobile specifically includes:
the acquiring unit 100 is configured to acquire a first mileage published by a combination meter in an automobile and a second mileage stored by a body controller in the automobile;
the first mileage is the maximum mileage in the combination meter ICM, and the second mileage is the current mileage in the body controller BCM.
The processing unit 200 is configured to determine a mileage backup strategy according to the first mileage, the second mileage, and a difference between the first mileage and the second mileage;
specifically, after the first mileage number and the second mileage number are obtained, the first mileage number and the second mileage number may be compared, a first threshold value is set for a difference between the first mileage number and the second mileage number, the difference value is compared with the first threshold value, and a corresponding backup policy is searched according to a comparison condition; and setting a corresponding mileage backup strategy for each comparison condition in advance through statistics of the comparison condition.
A backup unit 300, configured to determine whether to perform a backup operation on the mileage data stored in the vehicle body controller according to the mileage backup policy
Specifically, the mileage backup strategy may include: when the first mileage, the second mileage and the difference value between the first mileage and the second mileage meet a first preset condition, the BCM backs up the first mileage sent by the ICM, and at this time, whether the BCM backs up the first mileage sent by the ICM or not can be detected, that is, whether the second mileage of the current mileage of the BCM is the same as the first mileage or not is detected, if so, the BCM indicates that the BCM has backed up the first mileage sent by the ICM, and if not, the BCM is controlled to execute the operation of backing up the first mileage sent by the ICM.
The mileage policy may further include: when the first mileage, the second mileage, and the difference between the two satisfy a second preset condition, the ICM displays "ODO ERROR" and specifies whether to backup the first mileage value sent by the ICM by the BCM. Alternatively, the mileage policy may further include: when the first mileage number, the second mileage number and the difference value of the first mileage number and the second mileage number meet a second preset condition, the ICM displays ODO ERROR, the BCM sends the second mileage number stored by the BCM to the ICM, and the ICM determines whether to backup the second mileage value sent by the ICM.
Wherein ODO (Total odometer) represents the total mileage and records the total mileage value of the vehicle; ERROR indicates an ERROR. The ICM indicates "ODO ERROR", which indicates that there is an I ERROR in the ICM.
Certainly, the mileage backup policy is not limited to this, and this embodiment is only an example, and a person skilled in the art may set the mileage backup policy according to actual needs. In addition, the first threshold, the first preset condition and the second preset condition are not specifically limited in this embodiment, and those skilled in the art can set the threshold according to actual needs.
In the backup system for the automobile mileage data provided by this embodiment, a mileage backup strategy is determined according to the first mileage number sent by the combination meter, the second mileage number stored by the automobile body controller, and the difference between the first mileage number and the second mileage number, and whether to perform a backup operation on the mileage data stored in the automobile body controller again is determined according to the mileage backup strategy, so that the mileage backup operation is effectively performed, and the accuracy and the validity of the mileage backup value are ensured.
Fig. 5 is a schematic structural diagram of another embodiment of the backup system for the automobile mileage data according to the present invention.
Referring to fig. 5, further, the processing unit 200 includes:
the first comparison module 210 is configured to compare the first mileage sent by the combination meter with a preset mileage critical value, and determine a first comparison result;
the second comparison module 220 is configured to compare the second mileage stored by the vehicle body controller with the mileage critical value, and determine a second comparison result;
a third comparison module 230, configured to compare a difference between the first mileage number and the second mileage number with zero, and determine a third comparison result;
a fourth comparing module 240, configured to compare the difference value with a preset difference threshold value, and determine a fourth comparison result, where the difference threshold value is not equal to zero;
and the searching module 250 is configured to search a corresponding mileage backup strategy in a preset database according to the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result.
In this embodiment, the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result are counted in advance, the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result are combined, and a corresponding backup policy is set for each combination situation to cover all situations that need to be tested when the first mileage and the second mileage are asymmetric.
The searching module 250 in the backup system of the automobile mileage data is further configured to:
determining a plurality of corresponding first test items in the database according to the first mileage numerical value, the second mileage numerical value, the mileage critical value, the difference value critical value and zero;
determining a plurality of effective test items in all the test items, wherein each effective test item is preset with a corresponding backup strategy;
and searching the mileage backup strategy according to a plurality of effective test items.
Accordingly, the lookup module 250 is specifically configured to: determining a target valid test item which is matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result in the plurality of valid test items; and determining the backup strategy corresponding to the target effective test item as the mileage backup strategy.
In this embodiment, after the mileage critical value and/or the difference critical value is updated or reset each time, the first test item needs to be determined again, and an effective test item is determined from the first test item according to the logical relationship.
Further, when the backup unit 300 in this embodiment determines whether to perform a backup operation on the mileage data stored in the vehicle body controller according to the mileage backup policy, the backup unit may specifically be configured to: if the mileage backup strategy comprises a re-backup instruction, re-backing up a second mileage stored in the automobile body controller into a first mileage issued by the combination meter according to the re-backup instruction; or if the mileage backup strategy comprises a backup keeping instruction, keeping the mileage data stored in the automobile body controller as a second mileage according to the backup keeping instruction.
The test method may also receive updated settings for the mileage threshold and/or the difference threshold. For example, when the first mileage reaches the second threshold, an update of the mileage threshold and/or the difference threshold is received. Specifically, the mileage critical value may be set according to bytes corresponding to the first mileage number and/or the second mileage number, and the mileage critical value may be 28n-1, wherein n is an integer greater than 0, for example: the mileage critical value can be 255, 65535, etc.; the difference critical value can be set according to actual needs, and can be positive or negative.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A backup method of automobile mileage data is characterized by comprising the following steps:
acquiring a first mileage published by a combination instrument in an automobile and a second mileage stored by an automobile body controller in the automobile;
determining a mileage backup strategy according to the first mileage number, the second mileage number and a difference value between the first mileage number and the second mileage number;
judging whether to perform backup operation on the mileage data stored in the automobile body controller again according to the mileage backup strategy;
wherein the determining a mileage backup strategy according to the first mileage, the second mileage and the difference between the first mileage and the second mileage comprises:
comparing the first mileage sent by the combination instrument with a preset mileage critical value to determine a first comparison result;
comparing a second mileage stored by the automobile body controller with the mileage critical value to determine a second comparison result;
comparing the difference value of the first mileage and the second mileage with zero to determine a third comparison result;
comparing the difference value with a preset difference value critical value to determine a fourth comparison result, wherein the difference value critical value is not equal to zero;
searching a corresponding mileage backup strategy in a preset database according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result;
the searching for the corresponding mileage backup strategy in the preset database according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result includes:
determining a plurality of corresponding test items in the database according to the first mileage numerical value, the second mileage numerical value, the mileage critical value, the difference value critical value and zero;
determining a plurality of effective test items in all the test items, wherein each effective test item is preset with a corresponding backup strategy;
and searching the mileage backup strategy according to a plurality of effective test items.
2. The method for backing up mileage data of an automobile according to claim 1, wherein searching for the mileage backup policy according to the plurality of valid test items comprises:
determining a target valid test item which is matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result in the plurality of valid test items;
and determining the backup strategy corresponding to the target effective test item as the mileage backup strategy.
3. The method for backing up mileage data of an automobile according to claim 1 or 2, wherein determining whether to perform a backup operation on mileage data stored in the automobile body controller according to the mileage backup policy comprises:
if the mileage backup strategy comprises a re-backup instruction, re-backing up a second mileage stored in the automobile body controller into a first mileage issued by the combination meter according to the re-backup instruction; or,
and if the mileage backup strategy comprises a backup keeping instruction, keeping the mileage data stored in the automobile body controller as a second mileage according to the backup keeping instruction.
4. A backup system for automotive mileage data, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first mileage published by a combination instrument in the automobile and a second mileage stored by an automobile body controller in the automobile;
the processing unit is used for determining a mileage backup strategy according to the first mileage number, the second mileage number and a difference value between the first mileage number and the second mileage number;
the backup unit is used for judging whether to carry out backup operation on the mileage data stored in the automobile body controller according to the mileage backup strategy;
wherein the processing unit comprises:
the first comparison module is used for comparing the first mileage sent by the combination meter with a preset mileage critical value to determine a first comparison result;
the second comparison module is used for comparing a second mileage stored by the automobile body controller with the mileage critical value to determine a second comparison result;
the third comparison module is used for comparing the difference value of the first mileage and the second mileage with zero to determine a third comparison result;
the fourth comparison module is used for comparing the difference value with a preset difference value critical value to determine a fourth comparison result, wherein the difference value critical value is not equal to zero;
the searching module is used for searching a corresponding mileage backup strategy in a preset database according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result;
wherein the search module is further configured to:
determining a plurality of corresponding test items in the database according to the first mileage numerical value, the second mileage numerical value, the mileage critical value, the difference value critical value and zero;
determining a plurality of effective test items in all the test items, wherein each effective test item is preset with a corresponding backup strategy;
and searching the mileage backup strategy according to a plurality of effective test items.
5. The backup system of automotive mileage data of claim 4, wherein the lookup module is configured to:
determining a target valid test item which is matched with the first comparison result, the second comparison result, the third comparison result and the fourth comparison result in the plurality of valid test items;
and determining the backup strategy corresponding to the target effective test item as the mileage backup strategy.
6. The system for backing up automobile mileage data as claimed in claim 4 or 5, wherein the backup unit is configured to:
if the mileage backup strategy comprises a re-backup instruction, re-backing up a second mileage stored in the automobile body controller into a first mileage issued by the combination meter according to the re-backup instruction; or,
and if the mileage backup strategy comprises a backup keeping instruction, keeping the mileage data stored in the automobile body controller as a second mileage according to the backup keeping instruction.
CN201710719634.6A 2017-08-21 2017-08-21 Backup method and system for automobile mileage data Active CN107688509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710719634.6A CN107688509B (en) 2017-08-21 2017-08-21 Backup method and system for automobile mileage data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710719634.6A CN107688509B (en) 2017-08-21 2017-08-21 Backup method and system for automobile mileage data

Publications (2)

Publication Number Publication Date
CN107688509A CN107688509A (en) 2018-02-13
CN107688509B true CN107688509B (en) 2020-08-21

Family

ID=61153511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710719634.6A Active CN107688509B (en) 2017-08-21 2017-08-21 Backup method and system for automobile mileage data

Country Status (1)

Country Link
CN (1) CN107688509B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377193B (en) * 2018-03-09 2021-06-15 北京汽车集团越野车有限公司 Mileage backup method and device, vehicle and control equipment
CN110912964A (en) * 2019-10-23 2020-03-24 中国第一汽车股份有限公司 Vehicle mileage backup system, method, device, electronic equipment and medium
CN111862387A (en) * 2020-07-15 2020-10-30 广州智鹏车联网科技有限公司 Method and device for storing total mileage of vehicle instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484280A (en) * 2014-12-25 2015-04-01 重庆邮电大学 Automobile mileage access system
CN105083240A (en) * 2015-02-05 2015-11-25 南京理工大学 Vehicle brake system with backup mode
CN105109427A (en) * 2015-08-24 2015-12-02 华晨汽车集团控股有限公司 Backup method of automobile mileage
CN105868914A (en) * 2016-04-08 2016-08-17 交通运输部公路科学研究所 Cloud management system and management method of automobile electronic health archive

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4411808B2 (en) * 2001-07-25 2010-02-10 株式会社デンソー Electronic odometer for automobile
CN102717764B (en) * 2012-06-20 2015-02-25 北京汽车股份有限公司 Backup device, instrument device and automobile
CN102833348A (en) * 2012-09-11 2012-12-19 济南优耐特汽车电子有限公司 Synchronization method of mileage data of vehicle
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
CN106248102A (en) * 2016-07-13 2016-12-21 东风汽车公司 Running car total kilometrage in instrument keeps system and method
CN106487588A (en) * 2016-10-17 2017-03-08 北京汽车研究总院有限公司 A kind of speedometer for automobile backup method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484280A (en) * 2014-12-25 2015-04-01 重庆邮电大学 Automobile mileage access system
CN105083240A (en) * 2015-02-05 2015-11-25 南京理工大学 Vehicle brake system with backup mode
CN105109427A (en) * 2015-08-24 2015-12-02 华晨汽车集团控股有限公司 Backup method of automobile mileage
CN105868914A (en) * 2016-04-08 2016-08-17 交通运输部公路科学研究所 Cloud management system and management method of automobile electronic health archive

Also Published As

Publication number Publication date
CN107688509A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN107688509B (en) Backup method and system for automobile mileage data
US9846202B2 (en) Degradation estimation method for high voltage battery
EP2690423B1 (en) Vehicle data analysis apparatus, vehicle data analysis method, and defect diagnosis apparatus
US10853936B2 (en) Failed vehicle estimation system, failed vehicle estimation method and computer-readable non-transitory storage medium
CN112816885A (en) Battery abnormity detection method and device, electronic equipment and storage medium
CN107229238B (en) The method for arbitrating the conflict output in redundancy control system
CN111289911A (en) SOC estimation method and device based on battery and electronic equipment
CN108931739A (en) The determination method, apparatus and automobile of battery system SOC estimation error
CN110015141A (en) A kind of calculation method and equipment of electric car residue course continuation mileage
CN102645341A (en) Method and system for detecting health condition of motor vehicle
Imparato et al. A comparative study of static analysis tools for AUTOSAR automotive software components development
CN106354117A (en) Determining the source of a ground offset in a controller area network
CN111896264B (en) Method and device for generating test working condition of range extender engine and electronic equipment
US11906594B2 (en) Method for estimating internal resistance of secondary battery and anomaly detection system of secondary battery
CN112345869A (en) Automobile electronic equipment testing method and system, electronic equipment and storage medium
CN113065669A (en) Vehicle spot check method, terminal and readable storage medium
CN110281710B (en) Identification method, device, equipment and storage medium of tire pressure sensor
CN110579708A (en) Battery capacity identification method and device, computing equipment and computer storage medium
CN112874528B (en) Vehicle speed determination method, vehicle speed determination device, vehicle-mounted terminal and storage medium
CN112950030B (en) Residual error assessment method and device for electric automobile, electronic equipment and storage medium
CN111984676B (en) Method and device for determining damage of internal parts of vehicle
CN117197921A (en) Method and device for determining average hydrogen consumption of automobile, electronic equipment and storage medium
CN114114040A (en) SOC correction method and device for battery pack and computer equipment
CN112859805A (en) Engine controller online diagnosis method and related device
CN112416748A (en) Method for testing a system in compliance with requirements

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