CN114896103A - Data backup migration method, device and equipment and readable storage medium - Google Patents

Data backup migration method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN114896103A
CN114896103A CN202210574935.5A CN202210574935A CN114896103A CN 114896103 A CN114896103 A CN 114896103A CN 202210574935 A CN202210574935 A CN 202210574935A CN 114896103 A CN114896103 A CN 114896103A
Authority
CN
China
Prior art keywords
vehicle
identification code
recorder
mapping relation
file
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.)
Pending
Application number
CN202210574935.5A
Other languages
Chinese (zh)
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.)
South Sagittarius Integration Co Ltd
Original Assignee
South Sagittarius Integration 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 South Sagittarius Integration Co Ltd filed Critical South Sagittarius Integration Co Ltd
Priority to CN202210574935.5A priority Critical patent/CN114896103A/en
Publication of CN114896103A publication Critical patent/CN114896103A/en
Pending legal-status Critical Current

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
    • 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/1456Hardware arrangements for backup
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention provides a data backup migration method, a device, equipment and a readable storage medium, wherein the data backup migration method comprises the following steps: detecting whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code or not; if the vehicle identification code does not have a mapping relation with the first vehicle running recorder number but has a mapping relation with the second vehicle running recorder number, releasing the second mapping relation between the vehicle identification code and the second vehicle running recorder number, and establishing a first mapping relation between the vehicle identification code and the first vehicle running recorder number; and extracting vehicle parameters and driving record data corresponding to the vehicle identification code from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the first automobile driving recorder number based on the first mapping relation. According to the invention, data entry errors are reduced when the automobile driving recorder is replaced, and historical driving data can be synchronized to be used as the basis for supervision and law enforcement.

Description

Data backup migration method, device and equipment and readable storage medium
Technical Field
The invention relates to the technical field of automobile electronic control, in particular to a data backup migration method, a data backup migration device, data backup migration equipment and a readable storage medium.
Background
The automobile driving recorder is used as a front-loading regulation part, is a necessary condition for the safe on-road driving of special vehicles such as commercial vehicles and the like, is used as a black box of the commercial vehicles, and records driving information such as starting time, ending time, position information, speed information, accident doubt, fatigue driving events, overspeed driving events, turn light signals, parking signals, brake signals and the like in the driving process of the vehicles and parameter information issued by a national freight platform in detail, wherein all the information is usually stored in a local memory of the automobile driving recorder. Particularly, when traffic accidents are handled, the locally stored driving record data can be used as a reliable basis source for law enforcement of the supervision department. The automobile driving recorder is partially defective in function or scrapped in advance due to factors such as design quality, use environment and ineffectiveness of the automobile driving recorder, and needs to be replaced with a new automobile driving recorder. Because the automobile running recorders are installed in different models and different installation parameters of different models, the new recorder can be directly replaced without parameter migration, which can cause the problems that the automobile cannot be on line or the data recording is inaccurate, and the like, before the new automobile running recorder is replaced, the related information of the automobile running recorder installed on the original automobile needs to be recorded into the new recorder in advance.
The traditional method is that professional after-sale engineers find out the relevant information of the vehicle through a vehicle manufacturer, and then manually input the information through the keys of the front panel of the new automobile driving recorder to be installed. The information input mode is not only low in efficiency, but also can cause the problems that equipment cannot be normally on-line due to the fact that information is input by human operation in error, or operation data is abnormal, and the like, and can also cause the problem that historical driving record data information of an original driving recorder cannot be transferred to a new automobile driving recorder, so that data loss is caused, and great inconvenience is brought to law enforcement supervision departments.
Disclosure of Invention
The invention mainly aims to provide a data backup migration method, a data backup migration device, data backup equipment and a readable storage medium, and aims to solve the technical problems that when a new automobile driving recorder is replaced in the prior art, the mode of manually migrating and inputting data is complicated, the efficiency is low and the data backup migration method is unreliable.
In a first aspect, the present invention provides a data backup migration method, where the data backup migration method includes the following steps:
detecting whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code or not;
if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, removing the second mapping relation between the vehicle identification code and the second automobile running recorder number, and establishing a first mapping relation between the vehicle identification code and the first automobile running recorder number;
and extracting vehicle parameters and driving record data corresponding to the vehicle identification code from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the first automobile driving recorder number based on the first mapping relation.
Optionally, after the step of detecting whether the first vehicle travel recorder number has a mapping relationship with the vehicle identification code, the method includes:
if the vehicle identification code and the first automobile running recorder number have a first mapping relation, packaging vehicle parameters and running record data stored by the first automobile running recorder corresponding to the first automobile running recorder number as a target backup file, and calculating to obtain a first MD5 value based on the target backup file;
acquiring a second MD5 value corresponding to a backed-up file of the vehicle identification code in the file backup cloud server;
comparing the first MD5 value to the second MD5 value;
if the first MD5 value is not equal to the second MD5 value, the target backup file and the corresponding first MD5 value are uploaded to the file backup cloud server based on the first mapping relationship, so as to overwrite the backed-up file and the corresponding second MD5 value.
Optionally, after the step of comparing the first MD5 value with the second MD5 value comprises:
if the first MD5 value is equal to the second MD5 value, the backed-up file of the vehicle identification code and the corresponding second MD5 value in the file backup cloud server are not updated.
Optionally, before the step of detecting whether the first vehicle travel recorder number has a mapping relationship with the vehicle identification code, the method includes:
performing authority verification according to a key corresponding to the first automobile driving recorder number;
and after the authority passes the verification, executing the step of detecting whether the first automobile driving recorder number has a mapping relation with the vehicle identification code.
Optionally, if the vehicle id does not have a mapping relationship with the first vehicle running recorder number but has a mapping relationship with the second vehicle running recorder number, the step of removing the second mapping relationship between the vehicle id and the second vehicle running recorder number and establishing the first mapping relationship between the vehicle id and the first vehicle running recorder number includes:
if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, determining whether the information to be verified contained in the request is legal or not when receiving the request of deleting the second mapping relation between the vehicle identification code and the second automobile running recorder number;
and if the information to be verified contained in the request is legal, removing the second mapping relation between the vehicle identification code and the serial number of the second automobile driving recorder, and establishing the first mapping relation between the vehicle identification code and the serial number of the first automobile driving recorder.
Optionally, the vehicle parameters and the driving record data include: the vehicle identification code corresponds to a motor vehicle number plate number, a motor vehicle number plate classification, a motor vehicle type, a provincial domain ID, a city domain ID, network access information, a networking authentication code, a vehicle pulse coefficient and a vehicle driving data record.
In a second aspect, the present invention further provides a data backup migration apparatus, including:
the detection module is used for detecting whether the serial number of the first automobile running recorder has a mapping relation with the vehicle identification code;
the control module is used for removing the second mapping relation between the vehicle identification code and the second automobile running recorder number and establishing a first mapping relation between the vehicle identification code and the first automobile running recorder number if the vehicle identification code does not have the mapping relation with the first automobile running recorder number but has the mapping relation with the second automobile running recorder number;
and the migration module is used for extracting the vehicle parameters and the driving record data corresponding to the vehicle identification codes from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the serial number of the first automobile driving recorder based on the first mapping relation.
Optionally, the data backup and migration apparatus further includes a backup module, configured to:
if the vehicle identification code and the first automobile running recorder number have a first mapping relation, packaging vehicle parameters and running record data stored by the first automobile running recorder corresponding to the first automobile running recorder number as a target backup file, and calculating to obtain a first MD5 value based on the target backup file;
acquiring a second MD5 value corresponding to a backed-up file of the vehicle identification code in the file backup cloud server;
comparing the first MD5 value to the second MD5 value;
if the first MD5 value is not equal to the second MD5 value, the target backup file and the corresponding first MD5 value are uploaded to the file backup cloud server based on the first mapping relationship, so as to overwrite the backed-up file and the corresponding second MD5 value.
Optionally, the backup module is further specifically configured to:
if the first MD5 value is equal to the second MD5 value, the backed-up file of the vehicle identification code and the corresponding second MD5 value in the file backup cloud server are not updated.
Optionally, the data backup and migration apparatus further includes a verification module, configured to:
performing authority verification according to a key corresponding to the first automobile driving recorder number;
and after the authority passes the verification, executing the step of detecting whether the first automobile driving recorder number has a mapping relation with the vehicle identification code.
Optionally, the control module is specifically configured to:
if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, determining whether the information to be verified contained in the request is legal or not when receiving the request of deleting the second mapping relation between the vehicle identification code and the second automobile running recorder number;
and if the information to be verified contained in the request is legal, removing the second mapping relation between the vehicle identification code and the serial number of the second automobile driving recorder, and establishing the first mapping relation between the vehicle identification code and the serial number of the first automobile driving recorder.
Optionally, the vehicle parameters and the driving record data include: the vehicle identification code corresponds to a motor vehicle number plate number, a motor vehicle number plate classification, a motor vehicle type, a provincial domain ID, a city domain ID, network access information, a networking authentication code, a vehicle pulse coefficient and a vehicle driving data record.
In a third aspect, the present invention further provides a data backup and migration device, where the data backup and migration device includes a processor, a memory, and a data backup and migration program stored on the memory and executable by the processor, where the data backup and migration program, when executed by the processor, implements the steps of the data backup and migration method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, where a data backup and migration program is stored on the readable storage medium, where the data backup and migration program, when executed by a processor, implements the steps of the data backup and migration method as described above.
The invention provides a data backup migration method, a device, equipment and a readable storage medium, wherein the data backup migration method comprises the following steps: detecting whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code or not; if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, removing the second mapping relation between the vehicle identification code and the second automobile running recorder number, and establishing a first mapping relation between the vehicle identification code and the first automobile running recorder number; and extracting vehicle parameters and driving record data corresponding to the vehicle identification code from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the first automobile driving recorder number based on the first mapping relation. According to the method and the system, the backup and migration of the corresponding vehicle parameters and the driving record data from the file backup cloud server are efficiently and simply carried out based on the change mapping relation, the risk of data entry errors of the automobile driving recorder is reduced, the cost of after-sale maintenance is reduced, the reliability of historical driving data is improved, and the method and the system can be used as an effective basis for law enforcement.
Drawings
Fig. 1 is a schematic hardware structure diagram of a data backup migration device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating data backup migration according to an embodiment of a data backup migration method of the present invention;
FIG. 3 is a flowchart illustrating a process of authority verification according to an embodiment of the data backup migration method of the present invention;
FIG. 4 is a schematic flow chart illustrating a change of mapping relationships according to an embodiment of a data backup migration method of the present invention;
FIG. 5 is a schematic flow chart illustrating data backup according to an embodiment of the data backup migration method of the present invention;
fig. 6 is a functional module diagram of an embodiment of a data backup and migration apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides a data backup migration device.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a data backup migration apparatus according to an embodiment of the present invention. In this embodiment of the present invention, the data backup and migration apparatus may include a processor 1001 (e.g., a Central processing unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to FIG. 1, the memory 1005 of FIG. 1, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a data backup migration program. The processor 1001 may call a data backup migration program stored in the memory 1005, and execute the data backup migration method provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a data backup migration method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data backup migration method according to an embodiment of the present invention.
In an embodiment of the data backup migration method of the present invention, the data backup migration method includes:
step S10, detecting whether the first automobile driving recorder number has a mapping relation with the vehicle identification code;
in this embodiment, the first vehicle driving recorder is a new vehicle driving recorder, the second vehicle driving recorder is an old vehicle driving recorder, and the vehicle identification code is a vehicle number of the vehicle driving recorder that needs to be replaced. In order to realize that the data of the old automobile driving recorder can be automatically recorded when the new automobile driving recorder is switched by the automobile and complete the data migration, whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code or not needs to be determined firstly so as to judge whether the automobile driving recorder does not have the mapping relation with the vehicle identification code or has the mapping relation with the vehicle identification code. And only on the premise of determining that the mapping relation exists, uploading the local storage data of the automobile driving recorder which is not subjected to the first-time mapping relation and corresponds to the vehicle identification code to a file backup cloud server to complete the backup of the driving data, and importing the storage data in the file backup cloud server into the automobile driving recorder which is subjected to the first-time mapping relation and corresponds to the vehicle identification code to complete the migration of the driving record data backup.
Further, referring to fig. 3, in an embodiment, before step S10, the method includes:
step S01, performing authority verification according to the key corresponding to the first automobile driving recorder number;
and step S02, after the authority verification is passed, executing the step of detecting whether the first automobile driving recorder number has a mapping relation with the vehicle identification code.
In this embodiment, before the step of detecting whether the first vehicle travel recorder number has a mapping relationship with the vehicle identification code, authority verification needs to be performed based on a secret key corresponding to the first vehicle travel recorder number, when the secret key is that the vehicle travel recorder leaves a factory, the tool detection device automatically generates the secret key according to the unique code number of the vehicle travel recorder, and the generated secret key is automatically introduced into the file backup cloud server and the vehicle travel recorder and is used for performing identity verification on the vehicle travel recorder performing data backup and migration, so that data in the file backup cloud server is prevented from being tampered by external equipment with unknown identity. Therefore, after the authority verification is passed, the step of detecting whether the first automobile driving recorder number has the mapping relation with the automobile identification code is executed, and the data in the file backup cloud server cannot be tampered and lost, so that the follow-up analysis and supervision based on the data are influenced.
Step S20, if the vehicle identification code has no mapping relation with the first automobile running recorder number but has mapping relation with the second automobile running recorder number, the second mapping relation between the vehicle identification code and the second automobile running recorder number is released, and a first mapping relation between the vehicle identification code and the first automobile running recorder number is established;
in this embodiment, if the vehicle id does not have a mapping relationship with the first vehicle travel recorder number but has a mapping relationship with the second vehicle travel recorder, it indicates that the vehicle id has a mapping relationship with the old vehicle travel recorder, and at this time, the data stored in the old vehicle travel recorder in the file backup cloud server can be imported into the new vehicle travel recorder after the mapping relationship with the old vehicle travel recorder is first released and then the mapping relationship with the new vehicle travel recorder is established. If the vehicle identification code is monitored not to have a mapping relation with the number of the first automobile running recorder but has a mapping relation with the number of the second automobile running recorder, the second mapping relation between the vehicle identification code and the number of the second automobile running recorder is released, and the first mapping relation between the vehicle identification code and the number of the first automobile running recorder is established. The mapping relation between the vehicle identification code and the vehicle driving recorder is used as a data interaction condition for guaranteeing the vehicle driving recorder and the file backup cloud server, so that data can be interacted in the direction corresponding to the mapping relation, and data error interaction is avoided.
Further, referring to fig. 4, in an embodiment, the step S20 includes:
step S201, if the vehicle identification code does not have a mapping relation with the first vehicle running recorder number but has a mapping relation with the second vehicle running recorder number, when a request for deleting the second mapping relation between the vehicle identification code and the second vehicle running recorder number is received, determining whether the information to be verified contained in the request is legal or not;
step S202, if the information to be verified contained in the request is legal, the second mapping relation between the vehicle identification code and the serial number of the second automobile driving recorder is released, and the first mapping relation between the vehicle identification code and the serial number of the first automobile driving recorder is established.
In this embodiment, if the vehicle id does not have a mapping relationship with the first vehicle travel recorder number but has a mapping relationship with the second vehicle travel recorder number, the mapping relationship with the old vehicle travel recorder needs to be released at this time, and then the mapping relationship with the new vehicle travel recorder needs to be established, so that the data stored in the old vehicle travel recorder in the file backup cloud server can be imported into the new vehicle travel recorder. Before changing the mapping relationship between the vehicle identification code and different automobile driving recorders, it is necessary to determine whether the information to be verified included in the request is legal or not when receiving a request for deleting the second mapping relationship between the vehicle identification code and the serial number of the second automobile driving recorder. And under the condition that the information to be verified contained in the request is legal, the second mapping relation between the vehicle identification code and the serial number of the second automobile driving recorder is removed, and the first mapping relation between the vehicle identification code and the serial number of the first automobile driving recorder is established, so that the mapping relation between the vehicle identification code and different automobile driving recorders cannot be changed randomly by illegal equipment, and the accuracy of data backup and migration is influenced.
Step S30, extracting the vehicle parameters and the driving record data corresponding to the vehicle identification code from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first vehicle driving recorder corresponding to the first vehicle driving recorder number based on the first mapping relationship.
In this embodiment, the first mapping relationship between the vehicle id code and the first vehicle driving recorder number is established only after the second mapping relationship between the vehicle id code and the second vehicle driving recorder number is released. Therefore, before the first mapping relation is established, when the second mapping relation exists, the vehicle parameters and the driving record data corresponding to the vehicle identification codes backed up from the second automobile driving recorder are also stored in the file backup cloud server. After the first mapping relationship is established, the vehicle parameters and the driving record data corresponding to the vehicle identification code can be extracted from the file backup cloud server, and are updated to the first automobile driving recorder corresponding to the first automobile driving recorder number based on the first mapping relationship. The mode of backing up and transferring the corresponding vehicle parameters and the driving record data from the file backup cloud server is simple and efficient, the risk of data entry errors is reduced, the cost of after-sale maintenance is reduced, and historical driving record data can be kept to serve as effective basis for law enforcement.
Further, referring to fig. 5, in an embodiment, after the step S10, the method includes:
step S40, if the vehicle identification code and the first automobile driving recorder number have a first mapping relation, packaging vehicle parameters and driving record data stored by the first automobile driving recorder corresponding to the first automobile driving recorder number as a target backup file, and calculating to obtain a first MD5 value based on the target backup file;
step S50, acquiring a second MD5 value corresponding to the backed-up file of the vehicle identification code in the file backup cloud server;
step S60, comparing the first MD5 value with the second MD5 value;
step S70, if the first MD5 value is not equal to the second MD5 value, uploading the target backup file and the corresponding first MD5 value to the file backup cloud server based on the first mapping relationship, so as to overwrite the backed-up file and the corresponding second MD5 value.
In this embodiment, if it is detected that the first vehicle-driving recorder number has a mapping relationship with the vehicle identification code, it indicates that the first vehicle-driving recorder does not establish a mapping relationship with the vehicle identification code for the first time. Therefore, the vehicle parameters and the driving record data corresponding to the vehicle identification code do not need to be extracted from the file backup cloud server to perform migration of the backup file, but whether newly added vehicle parameters and driving record data exist in the first automobile driving recorder is judged to judge whether the backup file needs to be updated, and the newly added vehicle parameters and the driving record data are also backed up to the file backup cloud server.
Therefore, if the vehicle identification code and the first automobile driving recorder number have the first mapping relation, the vehicle parameters and the driving record data stored by the first automobile driving recorder corresponding to the first automobile driving recorder number are packed to be used as target backup files, and then the backup files of the vehicle identification code in the file backup cloud server are compared with the target backup files to judge whether the backup files in the file backup cloud server need to be updated or not. If the contents of the backed-up file and the target backed-up file are directly compared, the flow and the network bandwidth are occupied when the file contents are more and the file volume is larger. Therefore, in this embodiment, MD5 values of the backed-up file and the target backed-up file are calculated respectively, and then compared based on the MD5 value, which occupies less traffic and network bandwidth, and the speed of comparing files is faster. And performing MD5 verification on each byte in the file to generate a corresponding character until the last byte, so as to obtain an MD5 value corresponding to the whole file. If the MD5 values corresponding to the two files are the same, the contents of the two files are the same.
Thus, after packaging the target backup file, a first MD5 value may be calculated based on the target backup file. And acquiring a second MD5 value corresponding to the backed-up file of the vehicle identification code in the file backup cloud server. And comparing the first MD5 value with the second MD5 value, and if the first MD5 value is not equal to the second MD5 value, indicating that newly added vehicle parameters and running record data exist in the first automobile running recorder at the moment. At this time, the target backup file and the corresponding first MD5 value are uploaded to the file backup cloud server based on the first mapping relationship to overwrite the backed-up file and the corresponding second MD5 value, and update of the vehicle parameters and the driving record data corresponding to the vehicle identification code in the file backup cloud server is completed. The method can ensure that the data contents in the automobile driving recorder and the file backup cloud server are not repeated and omitted, and the accuracy of the backup files is ensured.
Further, in an embodiment, after step S60, the method includes:
if the first MD5 value is equal to the second MD5 value, the backed-up file of the vehicle identification code and the corresponding second MD5 value in the file backup cloud server are not updated.
In this embodiment, if the value of the first MD5 is equal to the value of the second MD5, it indicates that there are no new vehicle parameters and no new driving record data in the first vehicle driving recorder at this time. And at the moment, the backed-up file of the vehicle identification code and the corresponding second MD5 value in the file backup cloud server are not updated.
Further, in an embodiment, the vehicle parameter and the driving record data include: the vehicle identification code corresponds to a motor vehicle number plate number, a motor vehicle number plate classification, a motor vehicle type, a provincial domain ID, a city domain ID, network access information, a networking authentication code, a vehicle pulse coefficient and a vehicle driving data record.
In this embodiment, the vehicle parameters and the driving record data corresponding to the vehicle identification code that need to be obtained from the automobile driving recorder include: the vehicle identification code corresponds to a motor vehicle number plate number, a motor vehicle number plate classification, a motor vehicle type, a provincial domain ID, a city domain ID, network access information, a networking authentication code, a vehicle pulse coefficient and a vehicle driving data record. The attribution and the vehicle type of the vehicle corresponding to the vehicle identification code can be obtained based on the number plate number of the motor vehicle, the motor vehicle number plate classification, the motor vehicle type, the provincial domain ID and the city domain ID. Based on the network access information and the networking authentication code, the access domain name, the port and the access authority parameters of the national freight monitoring platform and the vehicle manufacturer monitoring platform can be obtained. The real vehicle speed of the vehicle can be accurately converted based on the vehicle pulse coefficient, so that the subsequent speed information record in normal running is facilitated. Whether the vehicle has illegal driving behaviors such as fatigue driving or overspeed driving can be obtained based on the vehicle driving data record, and information including the starting time, the ending time, the longitude, the latitude and the like of the illegal driving behaviors such as fatigue driving or overspeed driving can be obtained at the same time, and the information can be used as a reliable law enforcement basis for law enforcement departments.
In this embodiment, a data backup migration method is provided, including: detecting whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code or not; if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, removing the second mapping relation between the vehicle identification code and the second automobile running recorder number, and establishing a first mapping relation between the vehicle identification code and the first automobile running recorder number; and extracting vehicle parameters and driving record data corresponding to the vehicle identification code from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the first automobile driving recorder number based on the first mapping relation. According to the method and the system, the backup and migration of the corresponding vehicle parameters and the driving record data from the file backup cloud server are efficiently and simply carried out based on the change mapping relation, the risk of data entry errors of the automobile driving recorder is reduced, the cost of after-sale maintenance is reduced, the reliability of historical driving data is improved, and the method and the system can be used as an effective basis for law enforcement.
In a third aspect, an embodiment of the present invention further provides a data backup migration apparatus.
Referring to fig. 6, a functional module diagram of an embodiment of a data backup migration apparatus is shown.
In this embodiment, the data backup and migration apparatus includes:
the detection module 10 is used for detecting whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code;
the control module 20 is configured to, if the vehicle identification code does not have a mapping relationship with the first vehicle running recorder number but has a mapping relationship with the second vehicle running recorder number, remove the second mapping relationship between the vehicle identification code and the second vehicle running recorder number, and establish a first mapping relationship between the vehicle identification code and the first vehicle running recorder number;
and the migration module 30 is configured to extract the vehicle parameters and the driving record data corresponding to the vehicle identification code from the file backup cloud server, and update the vehicle parameters and the driving record data to the first vehicle driving recorder corresponding to the first vehicle driving recorder number based on the first mapping relationship.
Further, in an embodiment, the data backup migration apparatus further includes a backup module, configured to:
if the vehicle identification code and the first automobile running recorder number have a first mapping relation, packaging vehicle parameters and running record data stored by the first automobile running recorder corresponding to the first automobile running recorder number as a target backup file, and calculating to obtain a first MD5 value based on the target backup file;
acquiring a second MD5 value corresponding to a backed-up file of the vehicle identification code in the file backup cloud server;
comparing the first MD5 value to the second MD5 value;
if the first MD5 value is not equal to the second MD5 value, the target backup file and the corresponding first MD5 value are uploaded to the file backup cloud server based on the first mapping relationship, so as to overwrite the backed-up file and the corresponding second MD5 value.
Further, in an embodiment, the backup module is further specifically configured to:
if the first MD5 value is equal to the second MD5 value, the backed-up file of the vehicle identification code and the corresponding second MD5 value in the file backup cloud server are not updated.
Optionally, the data backup and migration apparatus further includes a verification module, configured to:
performing authority verification according to a key corresponding to the first automobile driving recorder number;
and after the authority passes the verification, executing the step of detecting whether the first automobile driving recorder number has a mapping relation with the vehicle identification code.
Further, in an embodiment, the control module 20 is specifically configured to:
if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, determining whether the information to be verified contained in the request is legal or not when receiving the request of deleting the second mapping relation between the vehicle identification code and the second automobile running recorder number;
and if the information to be verified contained in the request is legal, removing the second mapping relation between the vehicle identification code and the serial number of the second automobile driving recorder, and establishing the first mapping relation between the vehicle identification code and the serial number of the first automobile driving recorder.
Further, in an embodiment, the vehicle parameters and the driving record data include: the vehicle identification code corresponds to a motor vehicle number plate number, a motor vehicle number plate classification, a motor vehicle type, a provincial domain ID, a city domain ID, network access information, a networking authentication code, a vehicle pulse coefficient and a vehicle driving data record.
The function implementation of each module in the data backup migration apparatus corresponds to each step in the data backup migration method embodiment, and the function and implementation process thereof are not described in detail here.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores a data backup migration program, wherein the data backup migration program, when executed by a processor, implements the steps of the data backup migration method as described above.
The method for implementing the data backup migration program when executed may refer to the embodiments of the data backup migration method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data backup migration method is characterized by comprising the following steps:
detecting whether the serial number of the first automobile driving recorder has a mapping relation with the vehicle identification code or not;
if the vehicle identification code does not have a mapping relation with the first vehicle running recorder number but has a mapping relation with the second vehicle running recorder number, releasing the second mapping relation between the vehicle identification code and the second vehicle running recorder number, and establishing a first mapping relation between the vehicle identification code and the first vehicle running recorder number;
and extracting vehicle parameters and driving record data corresponding to the vehicle identification code from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the first automobile driving recorder number based on the first mapping relation.
2. The data backup migration method according to claim 1, wherein after the step of detecting whether the first vehicle tachograph number has a mapping relationship with the vehicle id, the method comprises:
if the vehicle identification code and the first automobile running recorder number have a first mapping relation, packaging vehicle parameters and running record data stored by the first automobile running recorder corresponding to the first automobile running recorder number as a target backup file, and calculating to obtain a first MD5 value based on the target backup file;
acquiring a second MD5 value corresponding to a backed-up file of the vehicle identification code in the file backup cloud server;
comparing the first MD5 value to the second MD5 value;
if the first MD5 value is not equal to the second MD5 value, the target backup file and the corresponding first MD5 value are uploaded to the file backup cloud server based on the first mapping relationship, so as to overwrite the backed-up file and the corresponding second MD5 value.
3. The data backup migration method of claim 2, wherein after said step of comparing said first MD5 value with said second MD5 value comprises:
if the first MD5 value is equal to the second MD5 value, the backed-up file of the vehicle identification code and the corresponding second MD5 value in the file backup cloud server are not updated.
4. The data backup migration method according to claim 1, wherein before the step of detecting whether the first vehicle tachograph number has a mapping relationship with the vehicle id, the method comprises:
performing authority verification according to a key corresponding to the first automobile driving recorder number;
and after the authority passes the verification, executing the step of detecting whether the first automobile driving recorder number has a mapping relation with the vehicle identification code.
5. The data backup and migration method according to claim 1, wherein the step of removing the second mapping relationship between the vehicle id and the second car tachograph number and establishing the first mapping relationship between the vehicle id and the first car tachograph number, if the vehicle id does not have a mapping relationship with the first car tachograph number but has a mapping relationship with the second car tachograph number, comprises:
if the vehicle identification code does not have a mapping relation with the first automobile running recorder number but has a mapping relation with the second automobile running recorder number, determining whether the information to be verified contained in the request is legal or not when receiving the request of deleting the second mapping relation between the vehicle identification code and the second automobile running recorder number;
and if the information to be verified contained in the request is legal, removing the second mapping relation between the vehicle identification code and the serial number of the second automobile driving recorder, and establishing the first mapping relation between the vehicle identification code and the serial number of the first automobile driving recorder.
6. The data backup migration method according to claim 1, characterized in that: the vehicle parameters and driving record data include: the vehicle identification code corresponds to a motor vehicle number plate number, a motor vehicle number plate classification, a motor vehicle type, a provincial domain ID, a city domain ID, network access information, a networking authentication code, a vehicle pulse coefficient and a vehicle driving data record.
7. A data backup migration apparatus, characterized in that the data backup migration apparatus comprises:
the detection module is used for detecting whether the serial number of the first automobile running recorder has a mapping relation with the vehicle identification code;
the control module is used for removing the second mapping relation between the vehicle identification code and the second automobile running recorder number and establishing a first mapping relation between the vehicle identification code and the first automobile running recorder number if the vehicle identification code does not have the mapping relation with the first automobile running recorder number but has the mapping relation with the second automobile running recorder number;
and the migration module is used for extracting the vehicle parameters and the driving record data corresponding to the vehicle identification codes from the file backup cloud server, and updating the vehicle parameters and the driving record data into a first automobile driving recorder corresponding to the serial number of the first automobile driving recorder based on the first mapping relation.
8. The data backup migration apparatus according to claim 7, further comprising a backup module for:
if the vehicle identification code and the first automobile running recorder number have a first mapping relation, packaging vehicle parameters and running record data stored by the first automobile running recorder corresponding to the first automobile running recorder number as a target backup file, and calculating to obtain a first MD5 value based on the target backup file;
acquiring a second MD5 value corresponding to a backed-up file of the vehicle identification code in the file backup cloud server;
comparing the first MD5 value to the second MD5 value;
if the first MD5 value is not equal to the second MD5 value, the target backup file and the corresponding first MD5 value are uploaded to the file backup cloud server based on the first mapping relationship, so as to overwrite the backed-up file and the corresponding second MD5 value.
9. A data backup migration device, characterized in that the data backup migration device comprises a processor, a memory, and a data backup migration program stored on the memory and executable by the processor, wherein the data backup migration program, when executed by the processor, implements the steps of the data backup migration method according to any one of claims 1 to 6.
10. A readable storage medium having stored thereon a data backup migration program, wherein the data backup migration program, when executed by a processor, implements the steps of the data backup migration method according to any one of claims 1 to 6.
CN202210574935.5A 2022-05-24 2022-05-24 Data backup migration method, device and equipment and readable storage medium Pending CN114896103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210574935.5A CN114896103A (en) 2022-05-24 2022-05-24 Data backup migration method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210574935.5A CN114896103A (en) 2022-05-24 2022-05-24 Data backup migration method, device and equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114896103A true CN114896103A (en) 2022-08-12

Family

ID=82726856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210574935.5A Pending CN114896103A (en) 2022-05-24 2022-05-24 Data backup migration method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114896103A (en)

Similar Documents

Publication Publication Date Title
CN107925600B (en) Security processing method and server
EP3915843A1 (en) Vehicle security monitoring device, method, and program
US20140208306A1 (en) Control system having automatic component software management
CN112367318B (en) Security processing method and computer
CN112134952B (en) Vehicle management system and method based on Internet of vehicles, electronic equipment and storage medium
JP2019125867A (en) Monitoring device, monitoring system and monitoring method
CN113190977A (en) Accident responsibility analysis method and device for automatic driving vehicle
CN113183916B (en) Remote vehicle locking and anti-dismantling method, device, equipment and storage medium
DE112020005954T5 (en) Information processing device, control method and program
US10936461B2 (en) System and method for sequence-based anomaly detection and security enforcement for connected vehicles
KR20160062259A (en) Method, system and computer readable medium for managing abnormal state of vehicle
CN114257450A (en) Method, device and medium for preventing parts from being tampered
CN114896103A (en) Data backup migration method, device and equipment and readable storage medium
CN111145380A (en) Reported data processing method and device adaptive to vehicle-mounted equipment and electronic equipment
EP3680799A1 (en) Method for collecting and managing event data of a vehicle
CN111775698B (en) Vehicle mileage information processing method and device and automobile
CN113273159A (en) Method and system for collecting and managing vehicle generated data
US11968312B2 (en) Apparatus and method for cloud-based vehicle data security management
CN117859128A (en) Vehicle safety analysis device, method, and program therefor
CN116736824A (en) Cloud-based platform server for vehicle DTC data analysis, reporting and response
EP3858807A1 (en) Method and system for managing vehicle generated data
CN114490713A (en) Fault code management method, device, equipment and readable storage medium
JP2023519510A (en) Method and system for collecting and managing vehicle-generated data
CN113240828A (en) WiFi/Bluetooth-based automobile driving recorder checking and checking method and device
CN111145386A (en) Method, equipment and medium for managing vehicle computer data based on block chain

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