CN108664355B - Backup system and backup method thereof - Google Patents

Backup system and backup method thereof Download PDF

Info

Publication number
CN108664355B
CN108664355B CN201810293457.4A CN201810293457A CN108664355B CN 108664355 B CN108664355 B CN 108664355B CN 201810293457 A CN201810293457 A CN 201810293457A CN 108664355 B CN108664355 B CN 108664355B
Authority
CN
China
Prior art keywords
backup
data
area
marker
calibrated
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
CN201810293457.4A
Other languages
Chinese (zh)
Other versions
CN108664355A (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.)
Zebred Network Technology Co Ltd
Original Assignee
Zebred Network Technology 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 Zebred Network Technology Co Ltd filed Critical Zebred Network Technology Co Ltd
Priority to CN201810293457.4A priority Critical patent/CN108664355B/en
Publication of CN108664355A publication Critical patent/CN108664355A/en
Application granted granted Critical
Publication of CN108664355B publication Critical patent/CN108664355B/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/1458Management of the backup or restore process

Abstract

A backup system comprises a calibration area setting module, a marker, an identification module and a writing module, wherein the calibration area setting module sets the calibration area as at least two backup areas, wherein the original calibration data exists in one backup area, the marker marks the backup area where the original calibration data exists, the identification module identifies the backup area marked by the marker, the writing module writes the data to be calibrated into other backup areas, and updates the marker, so that the marker marks the backup area where the calibration data is just backed up.

Description

Backup system and backup method thereof
Technical Field
The invention relates to the field of automobile calibration, in particular to a backup system and a backup method thereof, and further relates to a backup system and a backup method thereof for preventing the loss of the original calibration data which is used currently due to the interruption of the backup.
Background
The automobile calibration technology mainly aims at the process of optimizing various control parameters of various control units in an automobile. For example, the calibration optimization of parameter data such as NHV, stability of operation, thermal damage, gearbox, electronic components (ECU, etc.), air conditioner, brake, material, automobile body, etc., for example, the calibration data of parameters such as vehicle color, automobile type, vehicle-mounted air conditioner type, etc., makes the driving experience more optimized.
Usually, the calibration data of the calibration of the vehicle is stored in an external memory (NorFlash), and the user needs to re-backup the new calibration data in the external memory every time the calibration is performed. However, due to the regular characteristic of Nor flash, before writing data, all the currently stored data inside the Nor flash needs to be erased before writing new content.
Therefore, inevitably, when writing a datum to be calibrated to the external memory, the backup is suspended if the backup process is suddenly interrupted, for example, the power supply is insufficient, or the power plug is suddenly dropped. At this time, the data stored in the external memory before is erased and completely lost, and the data to be calibrated is not written into the external memory due to power failure, so that the data in the external memory is completely lost, the automobile can not be used by calibration data, and the automobile machine of the automobile has a serious phenomenon of incapability of starting, and the driving experience of a user is influenced.
Disclosure of Invention
An object of the present invention is to provide a backup system and a backup method thereof, which are suitable for writing a datum to be calibrated into an external memory (Nor Flash) during calibration of an automobile, so that the automobile still has the calibration datum available when the calibration datum is failed to be backed up, and the automobile can still operate normally.
Another object of the present invention is to provide a backup system and a backup method thereof, which can prevent the loss of the original calibration data that has been used currently due to a backup interruption, such as a sudden power failure during the backup process, so that the original calibration data can still be used by the vehicle when the backup of the calibration data fails.
Another object of the present invention is to provide a backup system and a backup method thereof, which can reduce the serious influence of data loss caused by power failure in the middle of writing the data to be calibrated into the external memory.
Another objective of the present invention is to provide a backup system and a backup method thereof, which will not erase the original calibration data that is currently used when the data to be calibrated is written into the external memory.
Another objective of the present invention is to provide a backup system and a backup method thereof, which can write the data to be calibrated into a designated area of the external memory.
Another objective of the present invention is to provide a backup system and a backup method thereof, which can divide the calibration area into a plurality of backup areas and write the data to be calibrated into one of the backup areas.
Another object of the present invention is to provide a backup system and a backup method thereof, which can identify the backup areas where the new and old calibration data respectively exist, and write the data to be calibrated into the backup areas where the old calibration data exists.
Another objective of the present invention is to provide a backup system and a backup method thereof, which backup modified sub-data first when the power is insufficient for backup, and the unmodified sub-data does not need to be backed up.
Another objective of the present invention is to provide a backup system and a backup method thereof, which can combine the modified sub-data and the currently stored original calibration data to reconstruct the data to be calibrated, so as to prevent data loss.
According to an aspect of the present invention, the present invention further provides a backup system for writing a calibration data to be calibrated into a calibration area of an external memory and retaining the original calibration data that is currently used, comprising:
a calibration area setting module, which sets the calibration area as at least two backup areas, wherein the original calibration data exists in one of the backup areas;
a marker;
an identification module; and
and the identification module identifies the backup area marked by the marker, and the writing module writes the data to be calibrated into other backup areas.
The identification module reads the set of mark values, identifies the backup area where the original calibration data exists according to the updating degree of the old and new degree, and then the writing module writes the data to be calibrated into the backup area marked by the old mark value and updates the old mark value.
Wherein the marker is updated while writing.
The calibration area setting module sets the calibration area as a first backup area and a second backup area, the identification module reads the marker and identifies which of the first backup area and the second backup area the area where the original calibration data exists, if the area where the original calibration data exists is the first backup area, the writing module writes the data to be calibrated into the second backup area and updates the marker, otherwise, the writing module writes the data to be calibrated into the first backup area and updates the marker.
In some embodiments, the marker includes a first marker value and a second marker value, where the first marker value marks the first backup area, and the second marker value marks the second backup area, where the identifying module reads the first marker value and the second marker value, and identifies which of the first marker value and the second marker value was last updated, if the first marker value was last updated, the writing module writes the data to be calibrated into the second backup area, and updates the second marker value, and if not, the writing module writes the data to be calibrated into the first backup area, and updates the first marker value.
According to an embodiment of the present invention, the portable terminal further includes an electric quantity analysis module and a sub-data positioning module, wherein the electric quantity analysis module analyzes that the remaining electric quantity is insufficient for backup, the sub-data positioning module positions modified data in the data to be calibrated, and the writing module writes the modified data into the other area.
And the electric quantity analysis module analyzes that the residual electric quantity is too low to write the modified data, abandons backup and prompts a user to perform backup after charging.
The difference between the first and second flag values is D, and the first and second flag values are updated by increasing the value of the number X, where X is greater than D.
The first flag value and the second flag value are respectively a set of values in a fixed location of the first backup area and the second backup area, or a set of values in a fixed area separately provided in the calibration area.
The system also comprises a data set modeling module, when the electric quantity is sufficient, the data set modeling module combines the modified subdata and the original calibration data to reconstruct the data to be calibrated, and the writing module writes the reconstructed data to be calibrated into the backup area.
According to another aspect of the present invention, the present invention further provides a backup method, which includes the following steps:
A. setting a calibration area as at least two backup areas, wherein an original calibration data is stored in one backup area;
B. a marker marks the backup area where the original calibration data exists; and
C. and reading the marker, identifying the backup area where the original calibration data exists, and writing data to be calibrated into other backup areas.
It also includes a step D of updating the marker to mark the backup area to which the calibration data was last written.
In step a, the calibration area is set as a first backup area and a second backup area, in step B, the marker includes a first marker value and a second marker value, where the first marker value marks the first backup area, and the second marker value marks the second backup area, in step C, the last updated one of the first marker value and the second marker value is read and identified, if the first marker value is the first marker value, the data to be calibrated is written into the second backup area, and the first marker value is updated, and if the second marker value is the second marker value, the data to be calibrated is written into the first backup area, and the second marker value is updated.
The first flag value and the second flag value are respectively a set of values in a fixed location of the first backup area and the second backup area, or a set of values in a fixed area separately provided in the calibration area.
The difference between the first and second flag values is D, and the first and second flag values are updated by increasing the value of the number X, where X is greater than D.
Before step C, analyzing the residual capacity shortage backup requirement, positioning the modified subdata in the data to be calibrated, and in step C, writing the modified subdata in the data to be calibrated into the other areas.
And when the residual electric quantity is too low to write the modified data, giving up the backup and prompting the user to perform the backup after charging.
Drawings
Fig. 1 is a schematic block diagram of a backup system for backing up a second backup area according to a preferred embodiment of the present invention.
Fig. 2 is a schematic block diagram of a backup system backing up to a first backup area according to a preferred embodiment of the present invention.
Fig. 3 is a flowchart illustrating a backup method of the backup system according to a preferred embodiment of the present invention.
Fig. 4 is a flowchart illustrating a backup system selecting one of the backup areas for backup according to a preferred embodiment of the present invention.
FIG. 5 is a flow chart illustrating a backup process of the backup system for the modified sub-data according to the current power level according to a preferred embodiment of the present invention.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that in the present disclosure, the terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings for ease of description and simplicity of description, and do not indicate or imply that the referenced devices or components must be in a particular orientation, constructed and operated in a particular orientation, and thus the above terms are not to be construed as limiting the present invention.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
The invention provides a backup system and a backup method thereof, which are suitable for writing data to be calibrated into an external memory (Nor Flash) in automobile calibration, and can ensure that the automobile still has calibration data to use when the backup of the calibration data fails so that the automobile still can normally run. For example, the original calibration data that has been used currently is prevented from being lost due to backup interruption, such as sudden power failure during the backup process, so that the automobile can still use the original calibration data.
In the automobile calibration, the original calibration data is stored in the external memory, the original calibration data is a data parameter currently used by the automobile, and the automobile calibration is to change the data parameter currently used by the automobile, namely the original calibration data, into the data to be calibrated so as to improve the main use of the automobile for marking, such as various driving data of automobile color, automobile type, air conditioner type and the like. The backup system can write the data to be calibrated into the external memory to complete the calibration of the automobile, and the original calibration data cannot be erased. That is to say, when the data to be calibrated is backed up, the original calibration data still exists and cannot be erased, and then when the calibration process is interrupted suddenly, such as power failure, and the calibration process is stopped, so that the calibration fails, the automobile can still use the original calibration data, and the automobile cannot be started or driven due to the loss of data parameters.
It should be noted that the data to be calibrated may be edited by the user in the central control system of the vehicle, or may be from an external data repository, such as a usb disk, a mobile phone, or a computer, or may be downloaded over the network, that is, the user downloads the data to be calibrated at the cloud.
Fig. 1 to 5 show a backup system 100 according to a preferred embodiment of the present invention, which includes a calibration area setting module 10, a marker 20, an identification module 30, and a writing module 40, wherein the calibration area setting module 10 sets the calibration area 200 as at least two backup areas, in which the original calibration data exists in one of the backup areas. Preferably, the calibration area setting module 10 equally divides the calibration area 200 into a plurality of backup areas according to the memory size of the external memory, and divides the original calibration data into one of the backup areas. The marker 20 marks the backup area where the original calibration data exists, and the identification module 30 can read and identify the marker 20 and identify the backup area marked by the marker 20, i.e. identify the backup area where the original calibration data exists. The writing module 40 writes the data to be calibrated into other backup areas instead of the backup area where the original calibration data exists. That is to say, after the backup area where the original calibration data exists is identified, the writing module 40 writes the data to be calibrated into another backup area, which may be a next backup area of the backup area where the original calibration data exists, so as to keep the backup area where the original calibration data exists unchanged, i.e., the original calibration data cannot be erased.
As shown in fig. 3, the backup method includes the following steps:
A. setting the calibration area 200 as at least two backup areas, wherein the original calibration data is stored in one of the backup areas;
B. the marker 20 marks the backup area where the original calibration data exists; and
C. reading the marker 20 and identifying the backup area where the original calibration data exists, and writing the data to be calibrated into other backup areas.
D. The marker 20 is updated to mark the backup area to which calibration data was last written.
It should be noted that the marker 20 may be a set of numerical values stored in a fixed position of one of the areas of the calibration area 200, so that the identification module 30 can always read the marker 20 at the fixed position, and recognize the backup area and other backup areas where the original calibration data exists by identifying the numerical values, so that the writing module 40 can smoothly write the data to be calibrated into the other backup areas. That is, the calibration area may be divided into three, four or more backup areas, wherein the original calibration data exists in one of the backup areas, the data to be calibrated may be written into one of the other backup areas, and the marker 20 may be fixedly stored in the backup area that exists with the original calibration data and the data to be calibrated, or may be separately stored in the other backup areas.
In other words, the markers 20 respectively mark the existing backup areas of the new calibration data (i.e. the original calibration data) and the old calibration data (the calibration data calibrated before calibrating the original calibration data) currently being used, the existing backup areas of the new and old calibration data are identified by the identification module 30, and then the writing module 40 writes the data to be calibrated into the existing backup areas of the old calibration data, while the original calibration data is retained. Meanwhile, when writing the calibration data to be calibrated, the writing module 40 will update the marker 20 to mark the backup area where the calibration data to be calibrated exists as a new backup area, and the backup area where the original calibration data exists is an old backup area, so that the calibration data currently being used will be retained each time the calibration data is backed up.
And, whenever the writing module 40 writes the data to be calibrated in another backup area, the writing module 40 updates the marker 20, and updates the marker 20 to the backup area marked with the data to be calibrated, and further when the data to be calibrated is backed up again, the marker 20 still marks the currently used calibration data, so that the writing module 40 writes the data to be calibrated in another backup area again. That is to say, when the calibration data is backed up each time, the backup area of the original calibration data currently used by the vehicle is always not written into the data to be calibrated by the writing module 40, that is, the original calibration data is always stored.
In this embodiment, the calibration area setting module 10 sets the calibration area 200 as a first backup area 201 and a second backup area 202, and the marker 20 marks one of the backup areas where the original calibration data exists, such as the first backup area 201, that is, the original calibration data exists in the first backup area 201. The identifying module 30 can identify that the area where the original calibration data exists is the first backup area 201, and then the writing module 30 writes the data to be calibrated into the second backup area 202, and updates the marker 20, so that the marker 20 marks the second backup area 202. When the calibration data is backed up again, the writing module 40 writes the new calibration data into the first backup area 201 and updates the marker 20 according to the existence of the currently used calibration data marked by the updated marker 20 in the second backup area 202, and so on, so that the original calibration data can be always kept in each backup of the calibration data. Even if the writing of the data to be calibrated is interrupted suddenly, for example, power is off, the writing module 40 erases the backup area where the original calibration data is not stored, and the backup area where the original calibration data is stored is still intact, so that the serious influence of data loss caused by power failure in midway when the data to be calibrated is written into the external memory can be reduced.
As shown in fig. 1 and fig. 2, in the present embodiment, the marker 20 includes a first marker value 21 and a second marker value 22, where the first marker value 21 marks the first backup area 201, and the second marker value 22 marks the second backup area 202. Preferably, the first mark value 21 is a set of values of a fixed position of the first backup area 201, and the second mark value 22 is a set of data of a fixed position of the second backup area 202, so that the first mark value 21 and the second mark value 22 can be updated without loss, and the identification module 30 can easily read the first mark value 21 and the second mark value 22. Of course, a fixed area may be separately disposed in the calibration area 200, and the first flag value 21 and the second flag value 22 may also be a set of values existing in the fixed area in the calibration area 200 and respectively correspond to the first backup area 201 and the second backup area 202.
By reading the first flag value 21 and the second flag value 22, the identification module 30 identifies which of the first flag value 21 and the second flag value 22 was updated last time, if the first flag value 21 was updated last time, the writing module 40 writes the to-be-calibrated data into the second backup area 202, and updates the second flag value 22, so that when the calibration data is backed up again, the identification module 30 identifies that the second flag value 22 was updated last time, and the writing module 40 writes new calibration data into the first backup area 201, and if not, the writing module 40 writes the to-be-calibrated data into the first backup area 201, and updates the first flag value 21.
As shown in fig. 4, the backup method is as follows, in step a, the calibration area 200 is set as a first backup area 201 and the second backup area 202, in step B, the marker 20 includes the first marker value 21 and the second marker value 22, wherein the first marker value 21 marks the first backup area 201, and the second marker value 22 marks the second backup area 202, in step C, it is read and identified which of the first marker value 21 and the second marker value 22 was updated last time, if the first marker value 21 is used, the data to be calibrated is written into the second backup area 202, and the first marker value 21 is updated, if the second marker value 22 is used, the data to be calibrated is written into the first backup area 201, and the second marker value 22 is updated.
It should be noted that, the difference between the first flag value 21 and the second flag value 22 is D, the number of updating the first flag value 21 or the second flag value 22 may be increased by a number value X, where X is greater than D, that is, the number of updating the first flag value 21 or the second flag value 22 is increased by X each time the first flag value 21 or the second flag value 22 is updated, so that the sizes of the first flag value 21 and the second flag value 22 can be sequentially alternated after each updating, and the identification module 30 reads the values of the first flag value 21 and the second flag value 22, compares the values, and identifies which flag value is updated last time according to the value, thereby identifying the backup area where the original calibration data exists. Of course, in this embodiment, this is only an example effect, and the backup area where the original calibration data exists may also be determined according to other identification manners.
For example, if the first backup area 201 contains the original calibration data (number 1) and the first marker value 21, and the second backup area 202 contains the original calibration data (number 2) and the first marker value 22, the first marker value 21 of the first backup area 201 is initially 1, the second marker value 22 of the second backup area 202 is 0, and the update increment value X is 2. When calibrating again, the data to be calibrated (number 3) is calibrated to the second backup area 202, and the second mark value 21 of the second backup area 202 is updated to 2, at this time, the second mark value 22 of the second backup area 202 is 1 greater than the first mark value 21 of the first backup area 201, so that when the calibration data (number 3) is used, the data is read from the second backup area, that is, the newly calibrated calibration data is used. When calibrating again, calibrating data (number 4) to be calibrated is calibrated to the first backup area 201, and the first flag value 21 of the first backup area 201 is updated to 3, at this time, the value of the first flag value 21 of the first backup area 201 is greater than the value of the second flag value 22 of the second backup area 202 by 1, so that later, when new calibrating data is used, reading from the first backup area 201; and so on.
For example, when the to-be-calibrated data is backed up, if the identification module 30 identifies that the value of the first flag value 21 is greater than the value of the second flag value 22, it determines that the original calibrated data exists in the first backup area 201, and the writing module 40 writes the to-be-calibrated data into the second backup area 202, and increases the value of the second flag value 22 by X. That is to say, when the writing module 40 is suddenly powered off when the data to be calibrated is written into the second backup area 202, backup is terminated, and due to the writing rule of NOR Flash, all the data in the second backup area 202 is erased before being written, but the original calibration data in the first backup area 201 still exists, so that the automobile can still use the original calibration data to ensure normal operation, and further, the serious influence of complete data loss caused by sudden power off is reduced.
Correspondingly, after the data to be calibrated is backed up to the first backup area 201 and the first mark value 21 is updated, and the numerical values are compared, the central control system of the automobile reads the data to be calibrated in the first backup area 201 marked by the first mark value 21 and applies the data to the automobile, so that the automobile can operate according to the data to be calibrated. When the power is suddenly cut off and the backup process is stopped, the data to be calibrated is not backed up in the first backup area 201, the first calibration data is not updated, and after the comparison of the values, the central control system of the automobile reads the original calibration data marked by the second mark value 22 in the second backup area and applies the original calibration data to the automobile, so that the automobile can operate according to the original calibration data.
As shown in fig. 5, the backup system 100 further includes an electric quantity analysis module 50 and a sub-data positioning module 60, when the data to be calibrated is backed up in one of the backup areas, such as the first backup area 201, wherein the electric quantity analysis module 50 can analyze that the remaining electric quantity of the vehicle is insufficient for backup, and at this time, backup is interrupted due to insufficient electric quantity, the sub-data positioning module 60 positions modified sub-data in the data to be calibrated by comparing the difference between the data to be calibrated and the original calibration data in the second backup area 202, and the writing module 40 writes the modified sub-data in the first backup area 201, while the unmodified data does not need to be written, and further does not need too much electric quantity.
That is to say, after the power is off, the modified data is already stored in the first backup area 201, and then after the vehicle is fully charged, the user can find the modified data, and then, in combination with the original backup data, the data to be calibrated can be quickly constructed, so as to ensure that the complete data to be calibrated is written again. In other words, when the power is insufficient, the writing module 40 writes the modified sub-data first, and the unmodified data does not need to be written into the first backup area 201, so as to reasonably use the remaining power, and when the power is sufficient, the user can combine the modified data and the original calibration data to reconstruct the data to be calibrated, and further can continue to write the data to be calibrated in the first backup area 201.
For example, the data to be calibrated includes a set of sub-parameter data of vehicle color, vehicle type, NHV, stability, thermal damage, transmission, electronic components (ECU, etc.), air conditioner, brake, material, vehicle body, etc., wherein the parameter data of vehicle color, vehicle type, and air conditioner type is modified sub-data, i.e., is different from the original calibration data. The subdata positioning module 60 positions the modified subdata by comparing the original calibration data, the writing module 40 writes the data parameters of the vehicle color, the vehicle type and the air conditioner type into the first backup area 201, and after the electric quantity is full, the user can still establish the complete data to be calibrated.
Of course, the power analysis module 50 can also analyze that when the remaining power is too low and is not enough to write the modified data, it will give up the backup and prompt the user to perform the backup after charging.
Preferably, the system further comprises a data creating module, when the electric quantity is insufficient, the writing module 40 only writes the modified sub-data into one of the backup areas, and after the electric quantity is sufficient, the data creating module combines the original backup area and the modified sub-data existing in the other backup area to create the data to be calibrated, and the writing module 40 writes the re-created data to be calibrated into the backup area where the modified sub-data exists. For example, when the amount of electricity is insufficient and all calibration data is written in, and the writing module 40 writes only the modified sub-data in the first backup area 201 in advance, and the electricity analysis module 50 analyzes that the amount of electricity is sufficient, the data set modeling module combines the modified sub-data existing in the first backup area 201 and the original calibration data existing in the second backup area 202, so as to reconstruct the data to be calibrated, and the writing module 40 writes the data to be calibrated in the first backup area 201 again, without manually constructing the calibration data by a user, and meanwhile, the modified data is prevented from being lost.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are given by way of example only and are not limiting of the invention. The objects of the invention have been fully and effectively accomplished. The functional and structural principles of the present invention have been shown and described in the examples, and any variations or modifications of the embodiments of the present invention may be made without departing from the principles.

Claims (19)

1. A backup system for writing a calibration data to be calibrated into a calibration area of an external memory and retaining the original calibration data that is currently used, comprising:
a calibration area setting module, which sets the calibration area as at least two backup areas, wherein the original calibration data exists in one of the backup areas;
a marker;
an identification module; and
a writing module, wherein the marker marks the backup area where the original calibration data exists, the identification module identifies the backup area marked by the marker, and the writing module writes the data to be calibrated into other backup areas;
the calibration area setting module sets the calibration area as a first backup area and a second backup area, the identification module reads the marker and identifies which of the first backup area and the second backup area the marked area of the marker is, if the existing area of the original calibration data is the first backup area, the writing module writes the data to be calibrated into the second backup area and updates the marker, otherwise, the writing module writes the data to be calibrated into the first backup area and updates the marker;
the calibration data is data of various control parameters of each control unit in the automobile during automobile calibration.
2. The backup system of claim 1, wherein the writing module writes the calibration data to be calibrated and updates the marker so that the marker marks an area where the calibration data just backed up exists.
3. The backup system of claim 1, wherein the marker comprises a set of marker values respectively corresponding to each backup area marked in the calibration area, wherein the identification module reads the set of marker values and identifies the backup area where the original calibration data exists according to the degree of updating, and then the writing module writes the data to be calibrated into the backup area marked by the old marker value and updates the old marker value.
4. The backup system of claim 3, wherein the marker comprises a first marker value and a second marker value, wherein the first marker value marks the first backup area, and the second marker value marks the second backup area, wherein the identification module reads the first marker value and the second marker value, and identifies which of the first marker value and the second marker value was last updated, if the first marker value was last updated, the writing module writes the data to be calibrated into the second backup area, and updates the second marker value, and if not, the writing module writes the data to be calibrated into the first backup area, and updates the first marker value.
5. The backup system according to any one of claims 1 to 4, further comprising a power analysis module and a sub-data positioning module, wherein the power analysis module analyzes that the remaining power is insufficient for backup, the sub-data positioning module positions the modified sub-data in the data to be calibrated, and the writing module writes the modified sub-data into the backup area to be written.
6. The backup system of claim 5, wherein the power analysis module analyzes that the remaining power is too low to write the modified data, abandons the backup, and prompts the user to perform the backup after charging.
7. The backup system of claim 6, further comprising a data organization module, when the power is sufficient, wherein the data organization module combines the modified sub-data and the original calibration data to reconstruct the data to be calibrated, and the writing module writes the reconstructed data to be calibrated into the backup area.
8. The backup system of claim 4, wherein the difference in the number of the first marker value and the second marker value is D, and the first marker value and the second marker value are updated by increasing the number value by an amount X, wherein X is greater than D.
9. The backup system of claim 8, wherein the difference D is 1 and the increment value X is 2.
10. The backup system of claim 4, wherein the first and second marker values are a set of values in a fixed location of the first and second backup areas, respectively, or a set of values in a fixed area separately located in the calibration area.
11. A backup method, comprising the steps of:
A. setting a calibration area as at least two backup areas, wherein an original calibration data is stored in one backup area;
B. a marker marks the backup area where the original calibration data exists; and
C. reading the marker, identifying the backup area where the original calibration data exists, and writing data to be calibrated into other backup areas;
in step a, setting the calibration area as a first backup area and a second backup area, in step C, reading and identifying which of the first backup area or the second backup area the area marked by the marker is, if the area where the original calibration data exists is the first backup area, writing the data to be calibrated into the second backup area by a writing module, and updating the marker, and if the area where the original calibration data exists is the second backup area, writing the data to be calibrated into the first backup area by the writing module, and updating the marker;
the calibration data is data of various control parameters of each control unit in the automobile during automobile calibration.
12. A backup method according to claim 11, further comprising a step D of updating the marker to mark the backup area to which calibration data has just been written.
13. The backup method according to claim 11, wherein in step B, the marker comprises a first marker value and a second marker value, wherein the first marker value marks the first backup area, the second marker value marks the second backup area, in step C, which of the first marker value and the second marker value was last updated is read and identified, and if the first marker value is present, the data to be calibrated is written into the second backup area, and the first marker value is updated, and if the second marker value is present, the data to be calibrated is written into the first backup area, and the second marker value is updated.
14. The backup method of claim 13, wherein the first and second flag values are a set of values in a fixed location of the first and second backup areas, respectively, or a set of values in a fixed area separately provided in the calibration area.
15. The backup method of claim 13, wherein the difference between the number of the first marker value and the second marker value is D, and the first marker value and the second marker value are updated by increasing the number value X, wherein X is greater than D.
16. The backup method of claim 15, wherein the difference D is 1 and the increment value X is 2.
17. The backup method as claimed in claim 11, wherein before step C, the modified sub-data in the data to be calibrated is located by analyzing the data with insufficient remaining power, and in step C, the modified sub-data in the data to be calibrated is written into the backup area to be written.
18. The backup method of claim 17, wherein when the remaining power is too low to write the modified data, the backup is abandoned and the user is prompted to charge and then backup.
19. The backup method of claim 17, when the amount of power is sufficient, combining the modified sub-data and the original calibration data, reconstructing the data to be calibrated, and writing the reconstructed data to be calibrated into the backup area.
CN201810293457.4A 2018-03-30 2018-03-30 Backup system and backup method thereof Active CN108664355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810293457.4A CN108664355B (en) 2018-03-30 2018-03-30 Backup system and backup method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810293457.4A CN108664355B (en) 2018-03-30 2018-03-30 Backup system and backup method thereof

Publications (2)

Publication Number Publication Date
CN108664355A CN108664355A (en) 2018-10-16
CN108664355B true CN108664355B (en) 2022-03-08

Family

ID=63782136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810293457.4A Active CN108664355B (en) 2018-03-30 2018-03-30 Backup system and backup method thereof

Country Status (1)

Country Link
CN (1) CN108664355B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114720096B (en) * 2022-03-30 2023-03-28 奇瑞汽车股份有限公司 Method and device for determining calibration parameters of head-up display and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102072736A (en) * 2009-11-20 2011-05-25 上海德科电子仪表有限公司 Method for using flash memory in automobile instrument
CN105260270A (en) * 2015-11-11 2016-01-20 恒宝股份有限公司 Flash storage space dynamic recovery method and device
CN107239411A (en) * 2017-06-06 2017-10-10 上汽通用汽车有限公司 A kind of Vehicle Controller EMS memory management process and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102072736A (en) * 2009-11-20 2011-05-25 上海德科电子仪表有限公司 Method for using flash memory in automobile instrument
CN105260270A (en) * 2015-11-11 2016-01-20 恒宝股份有限公司 Flash storage space dynamic recovery method and device
CN107239411A (en) * 2017-06-06 2017-10-10 上汽通用汽车有限公司 A kind of Vehicle Controller EMS memory management process and system

Also Published As

Publication number Publication date
CN108664355A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN109358892B (en) Software version upgrading method and device
CN103914393B (en) MCU-based (microprogrammed control unit-based) non-loss FLASH storage update method
CN103678144B (en) Data storage device and flash memory control method
US9582416B2 (en) Data erasing method, memory control circuit unit and memory storage apparatus
US9329992B2 (en) Data storage device and flash memory control method
US20100077135A1 (en) Memory wear leveling method, system and device
CN103324507A (en) Method and apparatus for updating terminal preset application program
CN107239411B (en) Memory management method and system for vehicle-mounted controller
EP0833252B1 (en) Memory management method for portable terminal
CN103106143A (en) Solid storing device and logic-to-entity corresponding table establishment method thereof
CN105988722A (en) Data storage method and embedded system
CN103744712A (en) Method and device for updating application program
CN104347118A (en) System and Method to Emulate Electrically Erasable Programmable Read-Only Memory
CN108664355B (en) Backup system and backup method thereof
CN107992268B (en) Bad block marking method and related device
CN105988950B (en) Storage management method, memorizer control circuit unit and memory storage apparatus
CN106897092A (en) A kind of remote software upgrade method and controller
US8321626B2 (en) Management of configuration data using persistent memories requiring block-wise erase before rewriting
CN106814968A (en) Storage management method and system and its memory storage apparatus
CN101131649A (en) Updating speed improving method for read-only memory of device with flash memory
US20120079231A1 (en) Data writing method, memory controller, and memory storage apparatus
CN101299190B (en) Software upgrading method, system and built-in equipment of read-only file system
CN103730099A (en) Backlight intensity adjusting method and electronic device
CN116185563A (en) Software simulation algorithm based on vehicle-gauge microcontroller data flash memory
EP1503268A3 (en) Machine post-launch configuration and option upgrade with master key

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