CN113268205A - Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment - Google Patents

Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment Download PDF

Info

Publication number
CN113268205A
CN113268205A CN202110593658.8A CN202110593658A CN113268205A CN 113268205 A CN113268205 A CN 113268205A CN 202110593658 A CN202110593658 A CN 202110593658A CN 113268205 A CN113268205 A CN 113268205A
Authority
CN
China
Prior art keywords
state
vehicle
solid
storage medium
backed
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.)
Granted
Application number
CN202110593658.8A
Other languages
Chinese (zh)
Other versions
CN113268205B (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.)
Hisense Group Holding Co Ltd
Original Assignee
Hisense Group Holding 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 Hisense Group Holding Co Ltd filed Critical Hisense Group Holding Co Ltd
Priority to CN202110593658.8A priority Critical patent/CN113268205B/en
Publication of CN113268205A publication Critical patent/CN113268205A/en
Application granted granted Critical
Publication of CN113268205B publication Critical patent/CN113268205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • 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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • G06F3/0641De-duplication techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The application provides a vehicle-mounted data storage method, a device and vehicle-mounted electronic equipment, which relate to the technical field of data storage, and the method comprises the following steps: the method comprises the steps that vehicle-mounted data of a target vehicle acquired in real time are stored in a first solid-state storage medium, and the state of the vehicle-mounted data is set to be a state to be backed up; and if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in a to-be-backed-up state to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the to-be-backed-up state to the backed-up state. This application can compromise low-cost and strong shock resistance, satisfies the storage demand of large capacity vehicle carried data.

Description

Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment
Technical Field
The present disclosure relates to the field of data storage, and in particular, to a method and an apparatus for storing vehicle-mounted data, and a vehicle-mounted electronic device.
Background
The on-vehicle electronic device in the vehicle can acquire on-vehicle data generated in real time, such as video data, vehicle travel data, and the like, and then requires a large-capacity storage device to store the generated large amount of on-vehicle data.
At present, some vehicle-mounted electronic devices store vehicle-mounted data by using a large-capacity mechanical hard disk, but in the driving process of a vehicle, the mechanical hard disk is easily damaged by the influence of vehicle vibration, the shock resistance is poor, and the requirements of the vehicle-mounted electronic devices on the stability and the reliability of a storage device are difficult to meet. Other vehicle-mounted electronic devices adopt a large-capacity solid state disk to store vehicle-mounted data, and although the solid state disk is good in shock resistance, the solid state disk is high in cost and not suitable for large-scale implementation.
Disclosure of Invention
The application provides a vehicle-mounted data storage method and device and vehicle-mounted electronic equipment, which are used for considering low cost and strong shock resistance and meeting the storage requirement of large-capacity vehicle-mounted data.
The embodiment of the application provides the following specific technical scheme:
in a first aspect, an embodiment of the present application provides a vehicle-mounted data storage method, which is applied to a vehicle-mounted electronic device, where the vehicle-mounted electronic device includes a first solid-state storage medium and a mechanical hard disk, and a capacity of the mechanical hard disk is greater than a capacity of the first solid-state storage medium, and the method includes:
storing the vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium, and setting the state of the vehicle-mounted data as a state to be backed up;
if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the state to be backed up to a backed up state.
In the embodiment of the application, vehicle-mounted data acquired in real time are firstly stored in a first solid-state storage medium, then the vehicle-mounted data to be backed up in the first solid-state storage medium is backed up to a mechanical hard disk in a vehicle stop state, and the mechanical hard disk works in the vehicle stop state, so that the mechanical hard disk cannot be influenced by vehicle vibration, and the requirements of vehicle-mounted electronic equipment on the stability and reliability of a storage device are met; moreover, the mechanical hard disk can have a large capacity, and the first solid-state storage medium can have a smaller capacity, so that the cost is lower compared with the case of only adopting a large-capacity solid-state hard disk. Therefore, the embodiment of the application can give consideration to low cost and shock resistance, and meets the storage requirement of high-capacity vehicle-mounted data.
In some exemplary embodiments, the in-vehicle electronic device includes a second solid-state storage medium having a capacity smaller than that of the first solid-state storage medium; the method further comprises the following steps:
if the vehicle-mounted data of the target vehicle acquired in real time comprises preset key data, storing the preset key data to the first solid-state storage medium, storing the preset key data to the second solid-state storage medium, and setting the state of the preset key data as the state to be backed up;
if the target vehicle is detected to be in a stop state and the first solid-state storage medium is invalid, controlling the mechanical hard disk to start working, backing up the preset key data in the second solid-state storage medium in the state to be backed up into the mechanical hard disk, and changing the state of the preset key data which is backed up into the mechanical hard disk from the state to be backed up into a backed up state.
Through the embodiment, the preset key data are stored in the first solid-state storage medium and the second solid-state storage medium at the same time, and the second solid-state storage medium can have a small capacity, so that when the first solid-state storage medium fails, the preset key data to be backed up in the second solid-state storage medium can be backed up to the mechanical hard disk, the loss of the preset key data is prevented, and the safety of the vehicle-mounted data is improved.
In some exemplary embodiments, the method further comprises:
if the target vehicle is detected to be in a stop state and the first solid-state storage medium normally works, controlling the mechanical hard disk to start working, backing up the preset key data in the first solid-state storage medium in the state to be backed up into the mechanical hard disk, changing the state of the preset key data backed up into the mechanical hard disk from the state to be backed up into a backed up state, and changing the state of the corresponding preset key data in the second solid-state storage medium from the state to be backed up into a state without backup.
Through the above embodiment, in the case that the preset key data is stored in the first solid-state storage medium and the second solid-state storage medium at the same time, after the preset key data to be backed up in the first solid-state storage medium is backed up in the mechanical hard disk, the corresponding preset key data in the second solid-state storage medium is changed from the state to be backed up to the state without backup, so as to prevent repeated backup.
In some exemplary embodiments, the method further comprises:
in the process of backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, if the target vehicle is detected to be changed from a stop state to a motion state, stopping the backup and controlling the mechanical hard disk to stop working; or
And if the vehicle-mounted data in the first solid-state storage medium in the state to be backed up is completely backed up in the mechanical hard disk, controlling the mechanical hard disk to stop working.
Through the embodiment, the mechanical hard disk can be ensured to work only in the vehicle stop state, and the mechanical hard disk is prevented from being damaged due to the influence of vehicle vibration; or the mechanical hard disk is ensured to work only when data backup is needed under the stop state of the target vehicle, so that the resource consumption is saved.
In some exemplary embodiments, the method further comprises:
and if the storage space of the first solid-state storage medium is full, deleting the vehicle-mounted data in the backup state in the first solid-state storage medium.
In the above-described embodiment, when the storage space of the first solid-state storage medium is full, the vehicle-mounted data that has been backed up is deleted so as to store the newly generated vehicle-mounted data.
In some exemplary embodiments, the storing the on-board data of the target vehicle acquired in real time into the first solid-state storage medium includes:
if the target vehicle is detected to be in a motion state, storing vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium;
the method further comprises the following steps:
and if the target vehicle is detected to be in a stop state, storing the vehicle-mounted data of the target vehicle acquired in real time into the mechanical hard disk.
In the above embodiment, when the target vehicle is in a moving state, the vehicle-mounted data generated in real time may be stored in the first solid-state storage medium, and when the target vehicle is in a stopped state, the vehicle-mounted data generated in real time may be directly stored in the mechanical hard disk, which may reduce backup and save resource consumption.
In some exemplary embodiments, the moving state and the stopped state of the target vehicle are determined by:
acquiring the state of the target vehicle;
if the state of the target vehicle is a moving state and the time length of the target vehicle in the moving state exceeds a first set threshold value, determining that the target vehicle is in the moving state;
and if the state of the target vehicle is a motion stop state and the time length in the motion stop state exceeds a second set threshold value, determining that the target vehicle is in the stop state.
Through the above-described embodiments, the moving state and the stopped state of the target vehicle can be accurately determined.
In a second aspect, an embodiment of the present application provides an on-vehicle data storage apparatus, including a first solid-state storage medium and a mechanical hard disk, where a capacity of the mechanical hard disk is greater than a capacity of the first solid-state storage medium;
the first solid-state storage medium is used for storing vehicle-mounted data of a target vehicle acquired in real time and setting the state of the vehicle-mounted data as a state to be backed up;
the mechanical hard disk is used for backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up when the target vehicle is in a stop state;
the first solid-state storage medium is further configured to change the state of the vehicle-mounted data that has been backed up in the mechanical hard disk from the state to be backed up to a backed up state.
In some exemplary embodiments, the apparatus further comprises a second solid-state storage medium having a capacity less than the capacity of the first solid-state storage medium;
the second solid-state storage medium is used for storing preset key data in the vehicle-mounted data of the target vehicle acquired in real time and setting the state of the preset key data as the state to be backed up;
the first solid-state storage medium is further used for storing preset key data in the vehicle-mounted data of the target vehicle acquired in real time and setting the state of the preset key data as the state to be backed up;
the mechanical hard disk is further used for backing up preset key data in the second solid-state storage medium in the state to be backed up when the target vehicle is in a stop state and the first solid-state storage medium fails;
the second solid-state storage medium is further configured to change the state of the preset critical data that has been backed up in the mechanical hard disk from the state to be backed up to a backed up state.
In some exemplary embodiments, the mechanical hard disk is further configured to backup preset critical data in the first solid-state storage medium in the state to be backed up when the target vehicle is in a stopped state and the first solid-state storage medium normally works;
the first solid-state storage medium is further configured to change the state of the preset key data that has been backed up in the mechanical hard disk from the state to be backed up to a backed up state;
the second solid-state storage medium is further configured to change the state of the corresponding preset critical data from the state to be backed up to a state without backup; the corresponding preset key data corresponds to the preset key data in the backed-up state in the first solid-state storage medium.
In some exemplary embodiments, the mechanical hard disk is further configured to:
in the process of backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up, if the target vehicle is changed from a stop state to a motion state, stopping the backup and stopping working; or
And if all the vehicle-mounted data in the state to be backed up in the first solid-state storage medium are backed up, stopping working.
In some exemplary embodiments, the first solid-state storage medium is further configured to:
and if the storage space is full, deleting the vehicle-mounted data in the backup state.
In some exemplary embodiments, the first solid-state storage medium is further configured to store the vehicle-mounted data of the target vehicle acquired in real time while the target vehicle is in a moving state;
the mechanical hard disk is also used for storing vehicle-mounted data of the target vehicle acquired in real time when the target vehicle is in a stop state.
In a third aspect, an embodiment of the present application provides a vehicle-mounted electronic device, including a first solid-state storage medium, a mechanical hard disk, and a processor; the capacity of the mechanical hard disk is larger than that of the first solid-state storage medium;
the processor is configured to perform the steps of:
storing the vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium, and setting the state of the vehicle-mounted data as a state to be backed up;
if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the state to be backed up to a backed up state.
In some exemplary embodiments, further comprising a second solid-state storage medium having a capacity less than the capacity of the first solid-state storage medium;
the processor is further configured to perform the steps of:
if the vehicle-mounted data of the target vehicle acquired in real time comprises preset key data, storing the preset key data to the first solid-state storage medium, storing the preset key data to the second solid-state storage medium, and setting the state of the preset key data as the state to be backed up;
if the target vehicle is detected to be in a stop state and the first solid-state storage medium is invalid, controlling the mechanical hard disk to start working, backing up the preset key data in the second solid-state storage medium in the state to be backed up into the mechanical hard disk, and changing the state of the preset key data which is backed up into the mechanical hard disk from the state to be backed up into a backed up state.
In some exemplary embodiments, the processor is further configured to perform the steps of:
if the target vehicle is detected to be in a stop state and the first solid-state storage medium normally works, controlling the mechanical hard disk to start working, backing up the preset key data in the first solid-state storage medium in the state to be backed up into the mechanical hard disk, changing the state of the preset key data backed up into the mechanical hard disk from the state to be backed up into a backed up state, and changing the state of the corresponding preset key data in the second solid-state storage medium from the state to be backed up into a state without backup.
In some exemplary embodiments, the processor is further configured to perform the steps of:
in the process of backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, if the target vehicle is detected to be changed from a stop state to a motion state, stopping the backup and controlling the mechanical hard disk to stop working; or
And if the vehicle-mounted data in the first solid-state storage medium in the state to be backed up is completely backed up in the mechanical hard disk, controlling the mechanical hard disk to stop working.
In some exemplary embodiments, the processor is further configured to perform the steps of:
and if the storage space of the first solid-state storage medium is full, deleting the vehicle-mounted data in the backup state in the first solid-state storage medium.
In some exemplary embodiments, the processor is further configured to perform the steps of:
if the target vehicle is detected to be in a motion state, storing vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium;
and if the target vehicle is detected to be in a stop state, storing the vehicle-mounted data of the target vehicle acquired in real time into the mechanical hard disk.
In some exemplary embodiments, the processor is further configured to perform the steps of:
acquiring the state of the target vehicle;
if the state of the target vehicle is a moving state and the time length of the target vehicle in the moving state exceeds a first set threshold value, determining that the target vehicle is in the moving state;
and if the state of the target vehicle is a motion stop state and the time length in the motion stop state exceeds a second set threshold value, determining that the target vehicle is in the stop state.
The technical effect brought by any one implementation manner of the second aspect to the third aspect may be referred to the technical effect brought by the corresponding implementation manner in the first aspect, and is not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a mechanical hard disk provided in an embodiment of the present application;
FIG. 2 is a flowchart of a vehicle data storage method provided in an embodiment of the present application;
FIG. 3 is a schematic data storage diagram of a first solid-state storage medium provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a data backup provided in an embodiment of the present application;
FIG. 5 is a flow chart of another method for storing vehicle data provided in the embodiments of the present application;
FIG. 6 is a flow chart of yet another method for storing data on a vehicle provided in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an on-board data storage device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an in-vehicle electronic device provided in an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
At present, some vehicle-mounted electronic devices store vehicle-mounted data by using a large-capacity mechanical hard disk, but in the driving process of a vehicle, the mechanical hard disk is easily damaged by the influence of vehicle vibration, the shock resistance is poor, and the requirements of the vehicle-mounted electronic devices on the stability and the reliability of a storage device are difficult to meet. Other vehicle-mounted electronic devices adopt a large-capacity solid state disk to store vehicle-mounted data, and although the solid state disk is good in shock resistance, the solid state disk is high in cost and not suitable for large-scale implementation.
The physical structure of the mechanical hard disk is shown in fig. 1, and the working principle is as follows: the main shaft 1 drives the magnetic disc 2 to rotate at a high speed, and the magnetic head 1 induces or changes the magnetism of different positions of the magnetic disc 2, thereby realizing the reading and writing of data. It should be noted that the magnetic head 1 does not directly contact the magnetic disk 2 rotating at a high speed, and the magnetic disk 2 is not scratched and the magnetic head 3 is not damaged. The main reason for the poor shock resistance of the mechanical hard disk is that the magnetic head 3 is suspended on the magnetic disk 2 rotating at a high speed in the upper electrical working state, and once a large shock occurs, the magnetic head 3 is temporarily deformed, so that the magnetic head 3 is in direct contact with the magnetic disk 2 rotating at a high speed to cause irreversible physical damage.
In the embodiment of the present application, it is considered that when the mechanical hard disk is in the power-off non-operating state, the magnetic head 3 will stop at the magnetic head parking area 4 (also referred to as start-stop area), and even if a large shock occurs, the magnetic head 3 will not directly contact the magnetic disk 2. Therefore, when the mechanical hard disk is in a power-off non-working state, the anti-seismic performance of the mechanical hard disk is far higher than that of the mechanical hard disk in a power-on working state. In view of this, an embodiment of the present application provides a vehicle-mounted data storage method and a vehicle-mounted electronic device, where vehicle-mounted data acquired in real time is first stored in a first solid-state storage medium, and then the vehicle-mounted data to be backed up in the first solid-state storage medium is backed up in a mechanical hard disk in a vehicle stop state, and since the mechanical hard disk operates in the vehicle stop state, the mechanical hard disk is not affected by vehicle vibration, and requirements of the vehicle-mounted electronic device on stability and reliability of a storage device are met; moreover, the mechanical hard disk can have a large capacity, and the first solid-state storage medium can have a smaller capacity, so that the cost is lower compared with the case of only adopting a large-capacity solid-state hard disk. Therefore, the embodiment of the application can give consideration to low cost and strong shock resistance, and meets the storage requirement of large-capacity vehicle-mounted data.
The following describes the vehicle-mounted data storage method of the present application in detail with reference to the accompanying drawings and specific embodiments.
The vehicle-mounted data storage method provided by the embodiment of the application can be applied to vehicle-mounted electronic equipment, such as vehicle-mounted computers, vehicle-mounted monitoring terminals and the like. The vehicle-mounted electronic equipment comprises a first solid-state storage medium and a mechanical hard disk, wherein the capacity of the mechanical hard disk is larger than that of the first solid-state storage medium. For example, the mechanical hard disk may have a large capacity, and the first solid-state storage medium may have a medium capacity, which may be selected according to needs, and is not limited herein.
Referring to fig. 2, a vehicle-mounted data storage method provided in an embodiment of the present application may include the following steps:
step S201, storing the vehicle-mounted data of the target vehicle acquired in real time into a first solid-state storage medium, and setting the state of the vehicle-mounted data as a state to be backed up.
The on-board data of the target vehicle may include various real-time generated data such as vehicle driving data, monitored video data, and the like, for example, the vehicle driving data includes vehicle own data such as speed, position, and failure data. The first solid-state storage medium may be a solid-state hard disk, a nand flash recorder, a Secure Digital Card (SD), an emmc (embedded Multi Media Card), and the like, which is not limited herein.
The states of the vehicle-mounted data may include a state to be backed up, a state without backup, and the like, for example, the state to be backed up, and the state without backup may be represented by a backup flag bit, as shown in fig. 3, for example, in the first solid-state storage medium, a backup flag bit of the data to be backed up is a first state value, and represents the state to be backed up; the backup flag bit of the data which does not need to be backed up or is backed up is a second state value, and represents a backed-up state or a non-backup state.
The vehicle-mounted data of the target vehicle acquired in real time may be acquired in a vehicle moving state or in a vehicle stop state.
In some optional embodiments, the vehicle-mounted data acquired in real time in the vehicle moving state and the vehicle stopping state can be stored in the first solid-state storage medium.
In other alternative embodiments, the vehicle-mounted data acquired in real time in the vehicle moving state may be stored in the first solid-state storage medium, and the vehicle-mounted data acquired in real time in the vehicle stopping state may be stored in the mechanical hard disk. At this time, the step S201 may include:
and if the target vehicle is detected to be in a motion state, storing the vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium.
Further, if the target vehicle is detected to be in a stop state, vehicle-mounted data of the target vehicle acquired in real time is stored in the mechanical hard disk.
By the embodiment, when the target vehicle is in a moving state, the vehicle-mounted data generated in real time can be stored in the first solid-state storage medium, and when the target vehicle is in a stopping state, the vehicle-mounted data generated in real time can be directly stored in the mechanical hard disk, so that backup can be reduced, and resource consumption can be saved.
Step S202, if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in a state to be backed up to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the state to be backed up to a backed up state.
It can be understood that when the vehicle is in motion, the mechanical hard disk is in a power-off and work-stopping state. If the target vehicle is detected to be in a stop state, the backup condition of the mechanical hard disk can be determined to be met, at the moment, the mechanical hard disk is electrified, the mechanical hard disk is initialized, and the mechanical hard disk is placed in an electrified working state. And then, whether the vehicle-mounted data in the state to be backed up exists in the first solid-state storage medium can be searched, if so, the mechanical hard disk is controlled to start working, and the vehicle-mounted data in the state to be backed up in the first solid-state storage medium is backed up to the mechanical hard disk.
For example, the backup status of the vehicle-mounted data is further represented by the backup flag bit, as shown in fig. 4, in the first solid-state storage medium, the vehicle-mounted data whose backup flag bit is the first status value includes data 1, data 2, data 3, and data 4, when it is detected that the target vehicle is in a stopped state, the mechanical hard disk is controlled to start to operate, data backup is performed, the data 1, data 2, data 3, and data 4 in the first solid-state storage medium are backed up to the mechanical hard disk, and then the backup flag bits of the data 1, data 2, data 3, and data 4 in the first solid-state storage medium are all changed from the first status value to the second status value, so that the situation that the vehicle-mounted data which has been backed up is backed up again at the next backup can be avoided.
In the embodiment of the application, the vehicle-mounted data acquired in real time are firstly stored in the first solid-state storage medium, and the first solid-state storage medium is strong in anti-seismic performance, so that the reliability and stability of data storage can be guaranteed in a vehicle motion state. Then, under the vehicle stop state, backing up the vehicle-mounted data to be backed up in the first solid-state storage medium to the mechanical hard disk, wherein the mechanical hard disk does not be influenced by vehicle vibration because the mechanical hard disk works under the vehicle stop state, and the requirements of vehicle-mounted electronic equipment on the stability and reliability of the storage device are met; moreover, the mechanical hard disk can have a large capacity, and the first solid-state storage medium can have a smaller capacity, so that the cost is lower compared with the case of only adopting a large-capacity solid-state hard disk. Therefore, the embodiment of the application can give consideration to low cost and strong shock resistance, and meets the storage requirement of large-capacity vehicle-mounted data.
In some exemplary embodiments, the in-vehicle electronic device may further include a second solid-state storage medium having a capacity smaller than that of the first solid-state storage medium; the second solid-state storage medium may be a solid-state hard disk, a NANDFlash burner, a transflash (tf) card, an emmc (embedded Multi Media card), or the like, and specifically, the second solid-state storage medium may have a small capacity.
The embodiment of the application can further comprise the following steps:
A. and if the vehicle-mounted data of the target vehicle acquired in real time comprises preset key data, storing the preset key data to the first solid-state storage medium, storing the preset key data to the second solid-state storage medium, and setting the state of the preset key data as a to-be-backed-up state.
The preset key data may be determined according to a preset rule, for example, the preset key data may be video data. Optionally, taking the video data as an example, if the vehicle-mounted data acquired in real time includes the video data, the video data may be compressed into data in two formats, where the data in one format has a higher resolution and a higher code rate, and the data in the other format has a lower resolution and a lower code rate, the data with the higher resolution and the higher code rate is stored in the first solid-state storage medium, the data with the lower resolution and the lower code rate is stored in the second solid-state storage medium, and the state of the stored video data is set to be the state to be backed up.
B. If the target vehicle is detected to be in a stop state and the first solid-state storage medium is invalid, the mechanical hard disk is controlled to start working, preset key data in the second solid-state storage medium in a to-be-backed-up state are backed up in the mechanical hard disk, and the state of the preset key data which is backed up in the mechanical hard disk is changed from the to-be-backed-up state to a backed-up state.
In the step, it is detected that the target vehicle is in a stopped state, which indicates that the backup condition of the mechanical hard disk is satisfied, at this time, if the first solid-state storage medium fails, that is, the first solid-state storage medium cannot normally work, whether preset critical data in a state to be backed up exists in the second solid-state storage medium can be continuously searched, if the preset critical data exists, the preset critical data in the state to be backed up in the second solid-state storage medium is backed up in the mechanical hard disk, and the backup state of the preset critical data is modified to be a backed up state.
Through the embodiment, the preset key data are stored in the first solid-state storage medium and the second solid-state storage medium at the same time, and the second solid-state storage medium can have a small capacity, so that when the first solid-state storage medium fails, the preset key data to be backed up in the second solid-state storage medium can be backed up to the mechanical hard disk, the loss of the preset key data is prevented, and the safety of the vehicle-mounted data is improved.
Further, under the condition that the preset key data acquired in real time are stored in the first solid-state storage medium and the second solid-state storage medium at the same time, if the target vehicle is detected to be in a stop state and the first solid-state storage medium works normally, the mechanical hard disk is controlled to start working, the preset key data in the state to be backed up in the first solid-state storage medium are backed up in the mechanical hard disk, the state of the preset key data backed up in the mechanical hard disk is changed from the state to be backed up into a state to be backed up, and the state of the corresponding preset key data in the second solid-state storage medium is changed from the state to be backed up into a state without being backed up.
Specifically, preset key data in a first solid-state storage medium in a state to be backed up are backed up to the mechanical hard disk, and meanwhile, other vehicle-mounted data in the first solid-state storage medium in the state to be backed up are backed up to the mechanical hard disk.
Since the same preset key data is stored in the first solid-state storage medium and the second solid-state storage medium, after the preset key data to be backed up in the first solid-state storage medium is backed up in the mechanical hard disk, in order to prevent repeated backup, the preset key data in the second solid-state storage medium, which is the same as the preset key data backed up in the first solid-state storage medium, may be changed from the state to be backed up to the state without backup, and the state without backup may use the same backup flag bit as the state with backup.
In some exemplary embodiments, in step S202, in the process of backing up the vehicle-mounted data in the first solid-state storage medium to be backed up to the mechanical hard disk, if it is detected that the target vehicle changes from a stop state to a moving state, stopping the backup, and controlling the mechanical hard disk to stop working; or if all the vehicle-mounted data in the first solid-state storage medium in the state to be backed up are backed up in the mechanical hard disk, controlling the mechanical hard disk to stop working.
Through the embodiment, the mechanical hard disk can be ensured to work only in the vehicle stop state, and the mechanical hard disk is prevented from being damaged due to the influence of vehicle vibration; or the mechanical hard disk is ensured to work only when data backup is needed under the stop state of the target vehicle, so that the resource consumption is saved.
Similarly, in the step B, in the process of backing up the preset key data in the second solid-state storage medium in the state to be backed up to the mechanical hard disk, if it is detected that the target vehicle is changed from the stop state to the moving state, stopping the backup, and controlling the mechanical hard disk to stop working; or if all the preset key data in the second solid-state storage medium in the state to be backed up are backed up in the mechanical hard disk, controlling the mechanical hard disk to stop working.
In some exemplary embodiments, the first solid-state storage medium may be in a loop coverage manner, that is, after the storage space of the first solid-state storage medium is full, if new vehicle-mounted data is generated, the vehicle-mounted data in the first solid-state storage medium in the backup state is deleted, and then the newly generated vehicle-mounted data is stored in the first solid-state storage medium.
Similarly, the second solid-state storage medium storage mode may also be a loop override.
In some exemplary embodiments, the moving state and the stopped state of the target vehicle may be determined by:
a. acquiring the state of a target vehicle;
in this step, the state of the target vehicle may include a moving state and a motionless state. The state of the target vehicle may be detected by a motion detection sensor, which may be a speed sensor, for example.
b. And if the state of the target vehicle is the moving state and the time length of the target vehicle in the moving state exceeds a first set threshold value, determining that the target vehicle is in the moving state.
Wherein, the first setting threshold value can be set according to the requirement.
c. And if the state of the target vehicle is a motion stop state and the time length of the motion stop state exceeds a second set threshold value, determining that the target vehicle is in a stop state.
Wherein, the second setting threshold value can be set according to the requirement.
For example, if the state of the target vehicle is detected by a speed sensor, when the detected speed value is greater than 0km/h and the duration exceeds a first set threshold (e.g., 10 seconds), the vehicle may be considered to be in motion; when the speed value is 0km/h and the duration exceeds a second set threshold (e.g. 5 minutes), the vehicle may be considered to be in a stopped state.
Through the above-described embodiments, the moving state and the stopped state of the target vehicle can be accurately determined.
It is to be noted that a position sensor, an acceleration sensor, or the like may be used to detect whether or not the target vehicle is in a moving state. For example, the moving distance of the vehicle in unit time is judged according to the position of the target vehicle, and whether the vehicle is in a moving state is confirmed; and determining whether the vehicle is in a moving state or not by judging the acceleration of the vehicle on the forward direction shaft. In addition, the CAN bus of the target vehicle CAN be accessed through the CAN interface, and the speed information or the mileage information of the target vehicle CAN be directly acquired so as to determine whether the target vehicle is in a motion state.
A vehicle-mounted data storage method provided by the embodiment of the present application is described below with reference to fig. 5.
Illustratively, the first solid-state storage medium is a solid-state disk, the vehicle-mounted electronic device includes a solid-state disk and a mechanical hard disk, and the vehicle-mounted data storage method may include the following steps:
step S501, the mechanical hard disk is in a normal state, is in a power-off non-working state, the solid state hard disk is in a working state, and vehicle-mounted data generated in real time are stored in the solid state hard disk;
step S502, judging whether the backup condition of the mechanical hard disk is met; if yes, executing step S503, otherwise, executing step S502 in a circulating manner;
specifically, if the target vehicle is detected to be in a stopped state, the backup condition of the mechanical hard disk is satisfied; if the target vehicle is detected to be in a moving state, the backup condition of the mechanical hard disk is not met.
Step S503, electrifying the mechanical hard disk;
step S504, backing up vehicle-mounted data which needs to be backed up to the mechanical hard disk in the solid state disk;
step S505, the backup is finished or interrupted;
step S506, after the mechanical hard disk is powered off, waits for a certain time (e.g., 10 minutes), and returns to step S502 to perform the loop detection.
Another vehicle-mounted data storage method provided by the embodiment of the present application is described below with reference to fig. 6.
Illustratively, the first solid-state storage medium is exemplified by a solid-state disk, the second solid-state storage medium is exemplified by a small-capacity solid-state disk (hereinafter referred to as Msata disk), the vehicle-mounted electronic device includes a solid-state disk, a Msata disk and a mechanical hard disk, and the vehicle-mounted data storage method may include the following steps:
step S601, the mechanical hard disk is in a normal state and is in a power-off non-working state, the Mdata disk is in a working state, the solid state disk is in a working state, and vehicle-mounted data generated in real time are stored in the solid state disk;
step S602, judging whether the backup condition of the mechanical hard disk is satisfied, if so, executing step S603, otherwise, executing step S602 circularly;
specifically, if the target vehicle is detected to be in a stopped state, the backup condition of the mechanical hard disk is satisfied; if the target vehicle is detected to be in a moving state, the backup condition of the mechanical hard disk is not met.
Step S603, electrifying the mechanical hard disk;
step S604, judging whether the solid state disk is in failure or invalid, if so, executing step S606, otherwise, executing step S605;
step S605, backing up the vehicle-mounted data to be backed up in the solid state disk to the mechanical hard disk;
step S606, backing up preset key data to be backed up in the Mdata disk to a mechanical hard disk;
step S607, the backup is completed or interrupted;
in step S608, after the mechanical hard disk is powered off, the process returns to step S602 to perform loop detection after waiting for a certain time (e.g., 10 minutes).
Based on the same inventive concept, the embodiment of the present application provides a vehicle-mounted data storage device, and the principle of solving the problem of the vehicle-mounted data storage device is similar to that of the vehicle-mounted storage method of the embodiment, so that the implementation of the vehicle-mounted data storage device can refer to the implementation of the vehicle-mounted storage method, and repeated details are not repeated.
Referring to fig. 7, the in-vehicle data storage device 70 includes a first solid-state storage medium 71 and a mechanical hard disk 72, and the capacity of the mechanical hard disk 72 is larger than that of the first solid-state storage medium 71.
The first solid-state storage medium 71 is used for storing vehicle-mounted data of a target vehicle acquired in real time and setting the state of the vehicle-mounted data as a state to be backed up;
the mechanical hard disk 72 is used for backing up vehicle-mounted data in a state to be backed up in the first solid-state storage medium when the target vehicle is in a stop state;
the first solid-state storage medium 71 is also used for changing the state of the vehicle-mounted data which is backed up to the mechanical hard disk 72 from the state to be backed up to the backed up state.
In some exemplary embodiments, the apparatus further comprises a second solid-state storage medium 73, the capacity of the second solid-state storage medium 73 being smaller than the capacity of the first solid-state storage medium 71;
the second solid-state storage medium 73 is used for storing preset key data in the vehicle-mounted data of the target vehicle acquired in real time and setting the state of the preset key data as a to-be-backed-up state;
the first solid-state storage medium 72 is further configured to store preset key data in the vehicle-mounted data of the target vehicle acquired in real time, and set a state of the preset key data as a to-be-backed-up state;
the mechanical hard disk 72 is further configured to backup preset critical data in a state to be backed up in the second solid-state storage medium 73 when the target vehicle is in a stopped state and the first solid-state storage medium 71 fails;
the second solid-state storage medium 73 is further configured to change the state of the preset critical data that has been backed up in the mechanical hard disk 72 from the state to be backed up to the backed up state.
In some exemplary embodiments, the mechanical hard disk 72 is further configured to backup preset critical data in the first solid-state storage medium 71 in a state to be backed up when the target vehicle is in a stopped state and the first solid-state storage medium 71 works normally;
the first solid-state storage medium 71 is further configured to change the state of the preset critical data that has been backed up in the mechanical hard disk 72 from a state to be backed up to a backed up state;
the second solid-state storage medium 73 is further configured to change the state of the corresponding preset critical data from a state to be backed up to a state without backup; the corresponding preset key data corresponds to the preset key data in the backup state in the first solid-state storage medium.
In some exemplary embodiments, the mechanical hard disk 72 is further configured to:
in the process of backing up the vehicle-mounted data in the first solid-state storage medium 71 in the state to be backed up, if the target vehicle is changed from the stop state to the motion state, stopping the backup and stopping the work; or
And if all the vehicle-mounted data in the state to be backed up in the first solid-state storage medium 71 are backed up, stopping the operation.
In some exemplary embodiments, the first solid-state storage medium 71 is further configured to:
and if the storage space is full, deleting the vehicle-mounted data in the backup state.
In some exemplary embodiments, the first solid-state storage medium 71 is further configured to store vehicle-mounted data of the target vehicle acquired in real time while the target vehicle is in a moving state;
and the mechanical hard disk 72 is also used for storing vehicle-mounted data of the target vehicle acquired in real time when the target vehicle is in a stop state.
Based on the same inventive concept, the embodiment of the present application provides a vehicle-mounted electronic device, and the principle of the vehicle-mounted electronic device to solve the problem is similar to the vehicle-mounted storage method of the embodiment, so that the implementation of the vehicle-mounted electronic device may refer to the implementation of the vehicle-mounted storage method, and repeated details are not repeated.
Referring to fig. 8, the in-vehicle electronic apparatus 80 includes a first solid-state storage medium 81, a mechanical hard disk 82, and a processor 83; wherein, the capacity of the mechanical hard disk 82 is larger than that of the first solid-state storage medium;
the processor 83 may include one or more Central Processing Units (CPUs), or digital processing units (dsp units), among others.
The processor 83 is configured to perform the following steps:
the method comprises the steps that vehicle-mounted data of a target vehicle acquired in real time are stored in a first solid-state storage medium, and the state of the vehicle-mounted data is set to be a state to be backed up;
and if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in a to-be-backed-up state to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the to-be-backed-up state to the backed-up state.
In some exemplary embodiments, a second solid-state storage medium 84 is further included, the capacity of the second solid-state storage medium 84 being less than the capacity of the first solid-state storage medium 81;
the processor 83 is further configured to perform the following steps:
if the vehicle-mounted data of the target vehicle acquired in real time comprises preset key data, storing the preset key data to a first solid-state storage medium, storing the preset key data to a second solid-state storage medium, and setting the state of the preset key data as a to-be-backed-up state;
if the target vehicle is detected to be in a stop state and the first solid-state storage medium is invalid, the mechanical hard disk is controlled to start working, preset key data in the second solid-state storage medium in a to-be-backed-up state are backed up in the mechanical hard disk, and the state of the preset key data which is backed up in the mechanical hard disk is changed from the to-be-backed-up state to a backed-up state.
The specific connection media among the first solid-state storage medium 81, the mechanical hard disk 82, the second solid-state storage medium 84, and the processor 11 are not limited in the embodiments of the present application. In fig. 8, the first solid-state storage medium 81, the mechanical hard disk 82, the second solid-state storage medium 84, and the processor 11 are connected by a bus 85, which is merely illustrative and not meant to be limiting. The bus 85 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one line is shown in FIG. 8, but this does not represent only one bus or one type of bus.
In some exemplary embodiments, the processor 83 is further configured to perform the following steps:
if the target vehicle is detected to be in a stop state and the first solid-state storage medium works normally, the mechanical hard disk is controlled to start working, preset key data in the first solid-state storage medium in a to-be-backed-up state are backed up in the mechanical hard disk, the state of the preset key data backed up in the mechanical hard disk is changed from the to-be-backed-up state to a backed-up state, and the state of corresponding preset key data in the second solid-state storage medium is changed from the to-be-backed-up state to a non-to-be-backed-up state.
In some exemplary embodiments, the processor 83 is further configured to perform the following steps:
in the process of backing up the vehicle-mounted data in the first solid-state storage medium in the state of waiting for backup to the mechanical hard disk, if the target vehicle is detected to be changed from the stop state to the motion state, stopping the backup and controlling the mechanical hard disk to stop working; or
And if the vehicle-mounted data in the first solid-state storage medium in the state of waiting for backup are completely backed up in the mechanical hard disk, controlling the mechanical hard disk to stop working.
In some exemplary embodiments, the processor 83 is further configured to perform the following steps:
and if the storage space of the first solid-state storage medium is full, deleting the vehicle-mounted data in the backup state in the first solid-state storage medium.
In some exemplary embodiments, the processor 83 is further configured to perform the following steps:
if the target vehicle is detected to be in a motion state, storing vehicle-mounted data of the target vehicle acquired in real time into a first solid-state storage medium;
and if the target vehicle is detected to be in a stop state, storing the vehicle-mounted data of the target vehicle acquired in real time into the mechanical hard disk.
In some exemplary embodiments, the processor 83 is further configured to perform the following steps:
acquiring the state of a target vehicle;
if the state of the target vehicle is a moving state and the time length of the target vehicle in the moving state exceeds a first set threshold value, determining that the target vehicle is in the moving state;
and if the state of the target vehicle is a motion stop state and the time length of the motion stop state exceeds a second set threshold value, determining that the target vehicle is in a stop state.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A vehicle-mounted data storage method is applied to vehicle-mounted electronic equipment, wherein the vehicle-mounted electronic equipment comprises a first solid-state storage medium and a mechanical hard disk, and the capacity of the mechanical hard disk is greater than that of the first solid-state storage medium, and the method comprises the following steps:
storing the vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium, and setting the state of the vehicle-mounted data as a state to be backed up;
if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the state to be backed up to a backed up state.
2. The method according to claim 1, wherein the in-vehicle electronic device comprises a second solid-state storage medium having a capacity smaller than a capacity of the first solid-state storage medium; the method further comprises the following steps:
if the vehicle-mounted data of the target vehicle acquired in real time comprises preset key data, storing the preset key data to the first solid-state storage medium, storing the preset key data to the second solid-state storage medium, and setting the state of the preset key data as the state to be backed up;
if the target vehicle is detected to be in a stop state and the first solid-state storage medium is invalid, controlling the mechanical hard disk to start working, backing up the preset key data in the second solid-state storage medium in the state to be backed up into the mechanical hard disk, and changing the state of the preset key data which is backed up into the mechanical hard disk from the state to be backed up into a backed up state.
3. The method of claim 2, further comprising:
if the target vehicle is detected to be in a stop state and the first solid-state storage medium normally works, controlling the mechanical hard disk to start working, backing up the preset key data in the first solid-state storage medium in the state to be backed up into the mechanical hard disk, changing the state of the preset key data backed up into the mechanical hard disk from the state to be backed up into a backed up state, and changing the state of the corresponding preset key data in the second solid-state storage medium from the state to be backed up into a state without backup.
4. The method of claim 1, further comprising:
in the process of backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, if the target vehicle is detected to be changed from a stop state to a motion state, stopping the backup and controlling the mechanical hard disk to stop working; or
And if the vehicle-mounted data in the first solid-state storage medium in the state to be backed up is completely backed up in the mechanical hard disk, controlling the mechanical hard disk to stop working.
5. The method of claim 1, further comprising:
and if the storage space of the first solid-state storage medium is full, deleting the vehicle-mounted data in the backup state in the first solid-state storage medium.
6. The method of claim 1, wherein storing the on-board data of the target vehicle obtained in real-time into the first solid-state storage medium comprises:
if the target vehicle is detected to be in a motion state, storing vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium;
the method further comprises the following steps:
and if the target vehicle is detected to be in a stop state, storing the vehicle-mounted data of the target vehicle acquired in real time into the mechanical hard disk.
7. The method according to any one of claims 1 to 6, characterized in that the moving state and the stopped state of the target vehicle are determined by:
acquiring the state of the target vehicle;
if the state of the target vehicle is a moving state and the time length of the target vehicle in the moving state exceeds a first set threshold value, determining that the target vehicle is in the moving state;
and if the state of the target vehicle is a motion stop state and the time length in the motion stop state exceeds a second set threshold value, determining that the target vehicle is in the stop state.
8. The vehicle-mounted data storage device is characterized by comprising a first solid-state storage medium and a mechanical hard disk, wherein the capacity of the mechanical hard disk is greater than that of the first solid-state storage medium;
the first solid-state storage medium is used for storing vehicle-mounted data of the target vehicle acquired in real time and setting the state of the vehicle-mounted data as a state to be backed up;
the mechanical hard disk is used for backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up when the target vehicle is in a stop state;
the first solid-state storage medium is further configured to change the state of the vehicle-mounted data that has been backed up in the mechanical hard disk from the state to be backed up to a backed up state.
9. The vehicle-mounted electronic equipment is characterized by comprising a first solid-state storage medium, a mechanical hard disk and a processor; the capacity of the mechanical hard disk is larger than that of the first solid-state storage medium;
the processor is configured to:
storing the vehicle-mounted data of the target vehicle acquired in real time into the first solid-state storage medium, and setting the state of the vehicle-mounted data as a state to be backed up;
if the target vehicle is detected to be in a stop state, controlling the mechanical hard disk to start working, backing up the vehicle-mounted data in the first solid-state storage medium in the state to be backed up to the mechanical hard disk, and changing the state of the vehicle-mounted data in the first solid-state storage medium, which is backed up to the mechanical hard disk, from the state to be backed up to a backed up state.
10. The apparatus of claim 9, further comprising a second solid-state storage medium having a capacity less than the capacity of the first solid-state storage medium;
the processor is further configured to:
if the vehicle-mounted data of the target vehicle acquired in real time comprises preset key data, storing the preset key data to the first solid-state storage medium, storing the preset key data to the second solid-state storage medium, and setting the state of the preset key data as the state to be backed up;
if the target vehicle is detected to be in a stop state and the first solid-state storage medium is invalid, controlling the mechanical hard disk to start working, backing up the preset key data in the second solid-state storage medium in the state to be backed up into the mechanical hard disk, and changing the state of the preset key data which is backed up into the mechanical hard disk from the state to be backed up into a backed up state.
CN202110593658.8A 2021-05-28 2021-05-28 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment Active CN113268205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110593658.8A CN113268205B (en) 2021-05-28 2021-05-28 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110593658.8A CN113268205B (en) 2021-05-28 2021-05-28 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment

Publications (2)

Publication Number Publication Date
CN113268205A true CN113268205A (en) 2021-08-17
CN113268205B CN113268205B (en) 2023-02-03

Family

ID=77233424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110593658.8A Active CN113268205B (en) 2021-05-28 2021-05-28 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment

Country Status (1)

Country Link
CN (1) CN113268205B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220959A (en) * 2022-05-25 2022-10-21 广州汽车集团股份有限公司 Data backup method and system and vehicle

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855163A (en) * 2011-06-27 2013-01-02 华为软件技术有限公司 Memory database hot-standby method and host
CN103455390A (en) * 2013-08-29 2013-12-18 上海铁路通信有限公司 Double-medium redundant storage system applicable to vehicle operating environment, and applications thereof
CN103632411A (en) * 2012-08-23 2014-03-12 中国电信股份有限公司 Storage method and device for vehicle-carried data
CN104574571A (en) * 2015-02-06 2015-04-29 成都市科虹电子有限公司 Traffic safety recorder
CN105893183A (en) * 2016-03-30 2016-08-24 苏州美天网络科技有限公司 Method for protecting data of hard disks
CN106528638A (en) * 2016-10-12 2017-03-22 广东欧珀移动通信有限公司 Method for deleting backup data, and mobile terminal
US20170115897A1 (en) * 2015-10-22 2017-04-27 International Business Machines Corporation Shifting wearout of storage disks
CN108076317A (en) * 2016-11-17 2018-05-25 杭州海康威视数字技术股份有限公司 Video data storage method and system, video cut-in method and node
CN109447048A (en) * 2018-12-25 2019-03-08 苏州闪驰数控***集成有限公司 A kind of artificial intelligence early warning system
CN110275800A (en) * 2019-06-20 2019-09-24 深圳忆联信息***有限公司 SSD Data Physical backup method, device, computer equipment and storage medium
CN110674539A (en) * 2019-09-09 2020-01-10 浙江大华技术股份有限公司 Hard disk protection device, method and system
CN110809874A (en) * 2018-08-24 2020-02-18 深圳市大疆创新科技有限公司 Data synchronization method and system, movable platform and readable storage medium
CN111062066A (en) * 2019-11-04 2020-04-24 湖南源科创新科技有限公司 Method for preventing data loss of solid state disk and data storage system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855163A (en) * 2011-06-27 2013-01-02 华为软件技术有限公司 Memory database hot-standby method and host
CN103632411A (en) * 2012-08-23 2014-03-12 中国电信股份有限公司 Storage method and device for vehicle-carried data
CN103455390A (en) * 2013-08-29 2013-12-18 上海铁路通信有限公司 Double-medium redundant storage system applicable to vehicle operating environment, and applications thereof
CN104574571A (en) * 2015-02-06 2015-04-29 成都市科虹电子有限公司 Traffic safety recorder
US20170115897A1 (en) * 2015-10-22 2017-04-27 International Business Machines Corporation Shifting wearout of storage disks
CN105893183A (en) * 2016-03-30 2016-08-24 苏州美天网络科技有限公司 Method for protecting data of hard disks
CN106528638A (en) * 2016-10-12 2017-03-22 广东欧珀移动通信有限公司 Method for deleting backup data, and mobile terminal
CN108076317A (en) * 2016-11-17 2018-05-25 杭州海康威视数字技术股份有限公司 Video data storage method and system, video cut-in method and node
CN110809874A (en) * 2018-08-24 2020-02-18 深圳市大疆创新科技有限公司 Data synchronization method and system, movable platform and readable storage medium
CN109447048A (en) * 2018-12-25 2019-03-08 苏州闪驰数控***集成有限公司 A kind of artificial intelligence early warning system
CN110275800A (en) * 2019-06-20 2019-09-24 深圳忆联信息***有限公司 SSD Data Physical backup method, device, computer equipment and storage medium
CN110674539A (en) * 2019-09-09 2020-01-10 浙江大华技术股份有限公司 Hard disk protection device, method and system
CN111062066A (en) * 2019-11-04 2020-04-24 湖南源科创新科技有限公司 Method for preventing data loss of solid state disk and data storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220959A (en) * 2022-05-25 2022-10-21 广州汽车集团股份有限公司 Data backup method and system and vehicle

Also Published As

Publication number Publication date
CN113268205B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
US10248627B2 (en) Method for storing image of vehicle black box
EP3306477B1 (en) Storage device and block storage method based on the storage device
KR20070047336A (en) Volatile storage based power loss recovery mechanism
US10127114B2 (en) Method of file system design and failure recovery with non-volatile memory
CN113268205B (en) Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment
CN103632411A (en) Storage method and device for vehicle-carried data
CN106682162A (en) Log management method and device
CN104216796A (en) Data backup and recovery method and electronic device
CN105988726A (en) Storage device and method for processing power disable signal
CN107943605B (en) Memory card processing method and device
CN108255576A (en) Live migration of virtual machine abnormality eliminating method, device and storage medium
CN108958643B (en) Data storage device and operation method thereof
CN113064558A (en) Data storage method and device
CN111581171A (en) Log processing method and device, computing equipment and medium
CN112130760A (en) Data writing method, device and medium based on True CDP
US20190121568A1 (en) Method, device, and computer program for managing a storage region of a controller of a transportation vehicle
CN102025758A (en) Method, device and system fore recovering data copy in distributed system
CN108170375B (en) Overrun protection method and device in distributed storage system
CN107851053A (en) For the method and apparatus for the damage for managing flash memory contents
CN106254806A (en) A kind of Video data guard method and device
CN107315598A (en) A kind of system recovery method and device
CN114489509A (en) Video storage method and device of automobile data recorder, electronic equipment and storage medium
CN109102839A (en) A kind of bad block labeling method, device, equipment and readable storage medium storing program for executing
US20180081796A1 (en) Data Storage Device and Data Writing Method Thereof
CN108874318A (en) The data reconstruction method and solid state hard disk of solid state hard disk

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