CN108563403A - A kind of bus date storage method and device - Google Patents
A kind of bus date storage method and device Download PDFInfo
- Publication number
- CN108563403A CN108563403A CN201810288284.7A CN201810288284A CN108563403A CN 108563403 A CN108563403 A CN 108563403A CN 201810288284 A CN201810288284 A CN 201810288284A CN 108563403 A CN108563403 A CN 108563403A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- mechanical hard
- data
- bus
- bus data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
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)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The application embodiment discloses a kind of bus date storage method and device, wherein bus data storage device includes:Shock detection unit, dedicated file system, data temporary storage location and mechanical hard disk;Wherein, the shock detection unit determines the shock levels in current bus driving process for acquiring the vibration signal in public transit vehicle driving process using the vibration signal;And control command is sent to the dedicated file system according to the shock levels;The dedicated file system, for stopping the mechanical hard disk read-write capability according to the control command and resetting the magnetic head of mechanical hard disk to dwell regions;Or the mechanical hard disk is reactivated according to the control command;The data temporary storage location, for storing public transport car data according to data write request;And it will not be preserved when the mechanical hard disk is in running order to the data conversion storage on the mechanical hard disk to mechanical hard disk.
Description
Technical Field
The application relates to the technical field of data processing, in particular to a bus data storage method and device.
Background
Modern intelligent terminal equipment becomes an indispensable configuration in urban buses, and is widely applied to vehicle-mounted intelligent terminals as a mechanical hard disk for large-capacity data storage, such as vehicle-mounted monitoring video content storage, vehicle-mounted running data storage and the like.
Because of the characteristics of mechanical vibration, frequent starting and flameout and the like generated during the operation of buses, the existing intelligent terminal only adopts a physical method to perform damping treatment on a mechanical hard disk, the mode reduces the failure rate of the hard disk to a certain extent, but because of the working characteristics of the mechanical hard disk, the floating height of the read-write magnetic head and the disk is only a few microns when in work, when the vibration strength or frequency reaches a certain value, the mechanical hard disk read-write head can scratch the disk, so that the hard disk is physically damaged and data is wrong, and meanwhile, the data is accidentally lost due to frequent startup and flameout, since the regular vibration of the bus from the engine and the sudden vibration caused by the road are inevitable during the running process of the bus, meanwhile, flameout and frequent starting of the bus in the running process are inevitable, so that a scheme is needed for solving the problems of correctly storing bus data and protecting the mechanical hard disk of the bus.
Disclosure of Invention
The embodiment of the application aims to provide a bus data storage method and device, and solves the technical problem of how to realize complete storage of bus data under the condition of protecting a bus mechanical hard disk.
In order to achieve the above object, an embodiment of the present application provides a bus data storage device, including:
the system comprises a vibration detection unit, a special file system, a data temporary storage unit and a mechanical hard disk; wherein,
the vibration detection unit is used for acquiring a vibration signal in the running process of the bus and determining the vibration level of the current bus in the running process by using the vibration signal; sending a control command to the special file system according to the vibration level;
the special file system is used for stopping the reading and writing functions of the mechanical hard disk and resetting a magnetic head of the mechanical hard disk to a staying area according to the control command; or the mechanical hard disk is restarted according to the control command;
the data temporary storage unit is used for storing bus data according to a data writing request; and when the mechanical hard disk is in a working state, transferring the data which is not stored in the mechanical hard disk to the mechanical hard disk.
Preferably, the data temporary storage unit includes: the device comprises a temporary controller, a Nand-flash memory and a static random access memory;
the static random access memory is used for storing bus data according to a data writing request, verifying whether the stored bus data are synchronously stored in the mechanical hard disk, transferring the bus data which are not stored in the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in a working state, and clearing the transferred bus data; and the cached bus data is transferred to the Nand-flash memory under the condition of system power failure;
the Nand-flash memory is used for acquiring the cached bus data from the static random access memory under the condition of system power failure and under the action of electric energy provided by the standby power supply, and storing the bus data according to a data writing request; after the system is powered on, the stored bus data is transferred to the static random access memory, and meanwhile, the bus data is cleared from the Nand-flash memory;
the temporary controller is used for transferring data which are not stored in the mechanical hard disk in the static random access memory to the Nand-flash memory under the condition of system power failure, and starting the Nand-flash memory to be used for storing bus data; and transferring the data in the Nand-flash memory into the static random access memory under the condition that the system recovers power utilization, and starting the static random access memory to be used for storing the bus data.
Preferably, the method further comprises the following steps: a standby power supply; wherein,
and the standby power supply is used for providing power supply support for the data temporary storage unit when the main power supply of the bus is disconnected due to flameout of the bus, so that the bus data which is stored in the static random access memory and is not stored in the mechanical hard disk is transferred to the Nand-flash memory.
Preferably, the vibration detection unit is further used for acquiring a vibration signal in the driving process of the bus and determining the vibration level in the driving process of the bus by using the vibration signal; when the current vibration level is higher than a set upper limit threshold value, driving the special file system to stop the reading and writing functions of the mechanical hard disk and reset a magnetic head of the mechanical hard disk to a staying area; and driving the special file system when the current vibration level is lower than a lower threshold value so as to restart the mechanical hard disk.
In order to achieve the above object, an embodiment of the present application further provides a method for storing bus data, where the bus data storage is implemented based on a vibration detection unit, a special file system, a data temporary storage unit, and a mechanical hard disk; wherein,
the vibration detection unit acquires a vibration signal in the running process of the bus and determines the vibration level in the running process of the bus at present by using the vibration signal; sending a control command to the special file system according to the vibration level;
the special file system stops the reading and writing functions of the mechanical hard disk according to the control command and resets a magnetic head of the mechanical hard disk to a staying area; or the mechanical hard disk is restarted according to the control command;
the data temporary storage unit stores bus data according to the data writing request; and when the mechanical hard disk is in a working state, transferring the data which is not stored in the mechanical hard disk to the mechanical hard disk.
Preferably, the step of transferring the data that is not saved on the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in the working state includes:
the static random access memory stores bus data according to a data writing request, checks whether the stored bus data are synchronously stored in the mechanical hard disk, transfers the bus data which are not stored in the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in a working state, and simultaneously removes the transferred bus data; and the cached bus data is transferred to the Nand-flash memory under the condition of system power failure;
under the condition that the Nand-flash memory system is powered off and under the action of electric energy provided by the standby power supply, obtaining cached bus data from the static random access memory, and storing the bus data according to a data writing request; after the system is powered on, the stored bus data is transferred to the static random access memory, and meanwhile, the bus data is cleared from the Nand-flash memory;
under the condition that a temporary controller system is powered off, transferring data which are not stored in the mechanical hard disk in the static random access memory to the Nand-flash memory, and starting the Nand-flash memory to be used for storing bus data; and transferring the data in the Nand-flash memory into the static random access memory under the condition that the system recovers power utilization, and starting the static random access memory to be used for storing the bus data.
Preferably, the method further comprises the following steps:
when the main power supply of the bus is disconnected due to flameout of the bus, the data temporary storage unit is provided with power supply support through a standby power supply, so that bus data which are stored in the static random access memory and not stored in the mechanical hard disk are transferred to the Nand-flash memory.
Preferably, the step of sending a control command to the dedicated file system according to the shock level includes:
when the current vibration level is higher than a set upper limit threshold value, driving the special file system to stop the reading and writing functions of the mechanical hard disk and reset a magnetic head of the mechanical hard disk to a staying area; and driving the special file system when the current vibration level is lower than a lower threshold value so as to restart the mechanical hard disk.
It is thus clear that, compare with prior art, this technical scheme combines bus vibrations condition and data temporary storage unit to realize the protection to the mechanical hard disk and realize the data storage during the mechanical hard disk protection, prevents because the mechanical hard disk trouble and the data loss problem that bus sudden vibration leads to. Meanwhile, the scheme is compatible with the existing vehicle intelligent terminal equipment, and the maintenance cost and the modification cost of the vehicle equipment can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, 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 vehicle-mounted mechanical hard disk damping device;
FIG. 2 is a schematic diagram of an electronic hard disk;
fig. 3 is a schematic diagram of a bus data storage device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a data temporary storage unit in the bus data storage device;
fig. 5 is a second schematic diagram of a bus data storage device according to an embodiment of the present application;
fig. 6 is a flowchart of a bus data storage method according to 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 of the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application shall fall within the scope of protection of the present application.
In order to solve the technical problem of how to realize complete storage of bus data under the condition of protecting the mechanical hard disk of the bus, the conventional prior art is firstly analyzed. Fig. 1 is a schematic structural diagram of a hard disk damping device of a vehicle-mounted machine. The damping device comprises two sets of side damping units arranged between the inner left side and the outer right side and between the inner left side and the outer left side of the shell, each set of side damping unit comprises a damping rubber fixing metal support and damping rubber, and the damping principle of the damping device is that the damping characteristics of the damping rubber are utilized to absorb the vibration energy of a vehicle to a certain extent. When a vehicle is driven on a road surface, in addition to a random road surface, an impact road surface such as a speed bump, a road surface bump and pit, a railroad crossing, a road surface joint, or the like, which is generally called an impact road surface, is occasionally encountered, and is characterized in that the impact is large and the impact is generated at a sufficiently long interval so that the vibration of the vehicle is sufficiently attenuated before the next impact. The severe impact from the road surface is transmitted to the human body through the tires, the suspension, the vehicle body, and the seat, and causes bounce of the suspension and the vehicle body.
For the technicians in the field, a simple physical shock absorption method is effective and good in absorbability to low-intensity high-frequency shock, but sudden high-intensity shock in the driving process of the bus is easily caused by physical damage of hard disk sectors through repeated tests, so that the purpose of really protecting the mechanical hard disk of the bus cannot be achieved. And a single physical shock absorption does not account for data loss due to sudden power loss from the vehicle power supply when shut down.
Fig. 2 is a schematic diagram of an electronic hard disk. The scheme of solving the safety and integrity of bus data storage by adopting an electronic hard disk to replace a mechanical hard disk is characterized in that the natural shock resistance of the electronic hard disk can really well deal with various shocks generated in the driving process of a bus, the electronic hard disk is composed of an SATA bridge and a NANDFLASH group, and the electronic hard disk adopts a parallel storage strategy in order to improve the reading and writing speed, namely, one data group is decomposed into a plurality of parts which are written into a plurality of NAND FLASH devices simultaneously. The electronic hard disk has good anti-vibration performance because of no mechanical parts.
The natural advantage of the electronic hard disk is that the mechanical hard disk is incomparable, but the electronic hard disk has practical problems in the application of the bus, and the storage capacity of the common bus is between 2T and 4T and the price of the electronic hard disk of the upper T level is very high because the video information is stored in the modern bus-mounted storage and needs to be stored for 6 months according to the requirement of the ministry of public security. On the other hand, due to the electronic hard disk storage data strategy, once one unit in the storage array is damaged, all data cannot be recovered, and a great risk is brought to the storage requirement of the fully monitored vehicle-mounted video. In the storage strategy of the mechanical hard disk, even if one sector is damaged, only a small part of the content is lost, and the damage of the integral data cannot be caused.
Therefore, the large-capacity electronic hard disk is not highly applicable in bus-mounted applications.
Based on the analysis of the two conventional technical schemes, the technical scheme of high-stability data storage with the mechanical hard disk as the main data storage medium is provided according to the driving characteristics of the bus, the mechanical hard disk is protected by adopting an active anti-vibration technology, the integrity of data storage is realized by combining a standby power supply and an electronic data storage medium, and the data storage incompleteness caused by data loss and frequent starting flameout due to vehicle driving vibration is avoided.
According to the working principle of the technical scheme, as shown in fig. 3, a schematic diagram of a bus data storage device is provided. The method comprises the following steps:
the system comprises a vibration detection unit, a special file system, a data temporary storage unit and a mechanical hard disk; wherein,
the vibration detection unit is used for acquiring a vibration signal in the running process of the bus and determining the vibration level of the current bus in the running process by using the vibration signal; and sending a control command to the special file system according to the vibration level.
In the embodiment, the vibration detection unit acquires a vibration signal in the driving process of the bus through the vibration sensor. And processing the vibration signal by adopting a conventional data processing chip to determine the vibration level of the current bus in the driving process. When the current vibration level is higher than a set upper limit threshold value, driving the special file system to stop the reading and writing functions of the mechanical hard disk and reset a magnetic head of the mechanical hard disk to a staying area; and driving the special file system when the current vibration level is lower than a lower threshold value so as to restart the mechanical hard disk.
In the technical scheme, in order to prevent shaking, when the vibration level is less than or equal to the upper limit threshold and more than or equal to the lower limit threshold, if the mechanical hard disk is in a working state, the bus data are synchronously stored by the mechanical hard disk and the data temporary storage unit, and when the mechanical hard disk does not store the corresponding bus data, the data stored by the data temporary storage unit are transferred to the mechanical hard disk. If the mechanical hard disk is not in the working state, the bus data are stored by the data temporary storage unit until the mechanical hard disk restores to the working state, and the bus data which are not stored in the mechanical hard disk in the data temporary storage unit are transferred to the mechanical hard disk.
The special file system is used for stopping the reading and writing functions of the mechanical hard disk and resetting a magnetic head of the mechanical hard disk to a staying area according to the control command; or the mechanical hard disk is restarted according to the control command.
In this embodiment, when the vibration level is higher than the set upper threshold, the dedicated file system stops the reading and writing of the mechanical hard disk and resets the magnetic head of the mechanical hard disk to the stay area, so as to protect the mechanical hard disk. If a data writing request exists during the pause of the mechanical hard disk, writing data into the data temporary storage unit until the grade of the vibration detection is lower than the lower limit threshold value, restarting the mechanical hard disk, and synchronizing the data of the temporary storage area into the mechanical hard disk, thereby realizing the complete storage of the bus data under the condition of protecting the bus mechanical hard disk.
The data temporary storage unit is used for storing bus data according to a data writing request; and when the mechanical hard disk is in a working state, transferring the data which is not stored in the mechanical hard disk to the mechanical hard disk.
Fig. 4 is a schematic diagram of a data temporary storage unit in the bus data storage device. The data temporary storage unit comprises: a temporary memory controller, a Nand-flash memory and a static random access memory.
The static random access memory is used for storing bus data according to a data writing request, verifying whether the stored bus data are synchronously stored in the mechanical hard disk, transferring the bus data which are not stored in the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in a working state, and clearing the transferred bus data; and the cached bus data is transferred to the Nand-flash memory under the condition of system power failure;
the Nand-flash memory is used for acquiring the cached bus data from the static random access memory under the condition of system power failure and under the action of electric energy provided by the standby power supply, and storing the bus data according to a data writing request; after the system is powered on, the stored bus data is transferred to the static random access memory, and meanwhile, the bus data is cleared from the Nand-flash memory;
the temporary controller is used for transferring data which are not stored in the mechanical hard disk in the static random access memory to the Nand-flash memory under the condition of system power failure, and starting the Nand-flash memory to be used for storing bus data; and transferring the data in the Nand-flash memory into the static random access memory under the condition that the system recovers power utilization, and starting the static random access memory to be used for storing the bus data.
In this embodiment, the SRAM is a static random access memory, which has a very fast data access speed, but the data is not stored after power failure, and the SRAM is mainly used to temporarily store bus data in synchronization with the mechanical hard disk. That is, the SRAM always stores the bus data regardless of whether the magnetic head of the mechanical hard disk is reset to the stay area. Once the mechanical hard disk is available, the data in the SRAM which is not stored in the mechanical hard disk is transferred to the mechanical hard disk. After the data is confirmed to be successfully stored in the mechanical hard disk, the synchronous data block in the SRAM is released. When the system is powered off, the SRAM and the Nand-flash have extremely low power consumption, so that a certain power can be provided by the standby power supply, the data blocks which are not stored on the mechanical hard disk in the SRAM are timely stored in the Nand-flash, and the Nand-flash memory is started to replace the SRAM to continue caching the bus data. When the system is powered on again, the data in the Nand-flash is read out and transferred to the SRAM, and the read data in the Nand-flash is cleared.
Fig. 5 is a schematic diagram of a second bus data storage device according to an embodiment of the present invention. On the basis of FIG. 3, a standby power supply is also included; wherein,
and the standby power supply is used for providing power supply support for the data temporary storage unit when the main power supply of the bus is disconnected due to flameout of the bus, so that the bus data which is stored in the static random access memory and is not stored in the mechanical hard disk is transferred to the Nand-flash memory.
In the embodiment, the data temporary storage unit is designed by adopting a NAND-Flash + SRAM structure and is provided with a standby power supply mechanism, when a bus is flamed out to cause the disconnection of a main power supply of the bus, the standby power supply supports the bus to write a database which is not stored in the SRAM into the NAND-Flash, and the related index table is normally updated, so that the bus data can be completely stored when the bus is powered off, and the structural integrity of the stored data is ensured.
As shown in fig. 6, a flowchart of a bus data storage method provided in the embodiment of the present application is shown. The bus data storage is realized based on a vibration detection unit, a special file system, a data temporary storage unit and a mechanical hard disk; wherein,
step 601): the vibration detection unit acquires a vibration signal in the running process of the bus and determines the vibration level in the running process of the bus at present by using the vibration signal; sending a control command to the special file system according to the vibration level;
step 602): the special file system stops the reading and writing functions of the mechanical hard disk according to the control command and resets a magnetic head of the mechanical hard disk to a staying area; or the mechanical hard disk is restarted according to the control command;
step 603): the data temporary storage unit stores bus data according to the data writing request; and when the mechanical hard disk is in a working state, transferring the data which is not stored in the mechanical hard disk to the mechanical hard disk.
In this embodiment, the step of transferring, to the mechanical hard disk, data that is not stored in the mechanical hard disk when the mechanical hard disk is in the operating state includes:
the static random access memory stores bus data according to a data writing request, checks whether the stored bus data are synchronously stored in the mechanical hard disk, transfers the bus data which are not stored in the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in a working state, and simultaneously removes the transferred bus data; and the cached bus data is transferred to the Nand-flash memory under the condition of system power failure;
under the condition that the Nand-flash memory system is powered off and under the action of electric energy provided by the standby power supply, obtaining cached bus data from the static random access memory, and storing the bus data according to a data writing request; after the system is powered on, the stored bus data is transferred to the static random access memory, and meanwhile, the bus data is cleared from the Nand-flash memory;
under the condition that a temporary controller system is powered off, transferring data which are not stored in the mechanical hard disk in the static random access memory to the Nand-flash memory, and starting the Nand-flash memory to be used for storing bus data; and transferring the data in the Nand-flash memory into the static random access memory under the condition that the system recovers power utilization, and starting the static random access memory to be used for storing the bus data.
In this embodiment, the method further includes:
when the main power supply of the bus is disconnected due to flameout of the bus, the data temporary storage unit is provided with power supply support through a standby power supply, so that bus data which are stored in the static random access memory and not stored in the mechanical hard disk are transferred to the Nand-flash memory.
In this embodiment, the step of sending a control command to the dedicated file system according to the vibration level includes:
when the current vibration level is higher than a set upper limit threshold value, driving the special file system to stop the reading and writing functions of the mechanical hard disk and reset a magnetic head of the mechanical hard disk to a staying area; and driving the special file system when the current vibration level is lower than a lower threshold value so as to restart the mechanical hard disk.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), Lava, Lola, HDL, PALASM, rhyd (Hardware Description Language), and vhjhddl (Hardware Description Language), which is currently used in most popular version-version Language (Hardware Description Language). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
Those skilled in the art will also appreciate that, in addition to implementing a client, server as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the client, server are in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a client, server may be considered as a hardware component, and the means included therein for implementing various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the client, reference may be made to the introduction of the embodiments of the method described above for a comparative explanation.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Although the present application has been described in terms of embodiments, those of ordinary skill in the art will recognize that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.
Claims (8)
1. A bus data storage device, comprising:
the system comprises a vibration detection unit, a special file system, a data temporary storage unit and a mechanical hard disk; wherein,
the vibration detection unit is used for acquiring a vibration signal in the running process of the bus and determining the vibration level of the current bus in the running process by using the vibration signal; sending a control command to the special file system according to the vibration level;
the special file system is used for stopping the reading and writing functions of the mechanical hard disk and resetting a magnetic head of the mechanical hard disk to a staying area according to the control command; or the mechanical hard disk is restarted according to the control command;
the data temporary storage unit is used for storing bus data according to a data writing request; and when the mechanical hard disk is in a working state, transferring the data which is not stored in the mechanical hard disk to the mechanical hard disk.
2. The apparatus of claim 1, wherein the data staging unit comprises: the device comprises a temporary controller, a Nand-flash memory and a static random access memory;
the static random access memory is used for storing bus data according to a data writing request, verifying whether the stored bus data are synchronously stored in the mechanical hard disk, transferring the bus data which are not stored in the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in a working state, and clearing the transferred bus data; and the cached bus data is transferred to the Nand-flash memory under the condition of system power failure;
the Nand-flash memory is used for acquiring the cached bus data from the static random access memory under the condition of system power failure and under the action of electric energy provided by a standby power supply, and storing the bus data according to a data writing request; after the system is powered on, the stored bus data is transferred to the static random access memory, and meanwhile, the bus data is cleared from the Nand-flash memory;
the temporary controller is used for transferring data which are not stored in the mechanical hard disk in the static random access memory to the Nand-flash memory under the condition of system power failure, and starting the Nand-flash memory to be used for storing bus data; and transferring the data in the Nand-flash memory into the static random access memory under the condition that the system recovers power utilization, and starting the static random access memory to be used for storing the bus data.
3. The apparatus of claim 2, further comprising: a standby power supply; wherein,
and the standby power supply is used for providing power supply support for the data temporary storage unit when the main power supply of the bus is disconnected due to flameout of the bus, so that the bus data which is stored in the static random access memory and is not stored in the mechanical hard disk is transferred to the Nand-flash memory.
4. The device of claim 1, wherein the vibration detection unit is further configured to collect a vibration signal during the driving process of the bus, and determine the vibration level of the current bus during the driving process by using the vibration signal; when the current vibration level is higher than a set upper limit threshold value, driving the special file system to stop the reading and writing functions of the mechanical hard disk and reset a magnetic head of the mechanical hard disk to a staying area; and driving the special file system when the current vibration level is lower than a lower threshold value so as to restart the mechanical hard disk.
5. A bus data storage method is characterized in that the bus data storage is realized based on a vibration detection unit, a special file system, a data temporary storage unit and a mechanical hard disk; wherein,
the vibration detection unit acquires a vibration signal in the running process of the bus and determines the vibration level in the running process of the bus at present by using the vibration signal; sending a control command to the special file system according to the vibration level;
the special file system stops the reading and writing functions of the mechanical hard disk according to the control command and resets a magnetic head of the mechanical hard disk to a staying area; or the mechanical hard disk is restarted according to the control command;
the data temporary storage unit stores bus data according to the data writing request; and when the mechanical hard disk is in a working state, transferring the data which is not stored in the mechanical hard disk to the mechanical hard disk.
6. The method of claim 5, wherein the step of unloading data not saved to the mechanical hard disk while the mechanical hard disk is in the operational state comprises:
the static random access memory stores bus data according to a data writing request, checks whether the stored bus data are synchronously stored in the mechanical hard disk, transfers the bus data which are not stored in the mechanical hard disk to the mechanical hard disk when the mechanical hard disk is in a working state, and simultaneously removes the transferred bus data; and the cached bus data is transferred to the Nand-flash memory under the condition of system power failure;
under the condition that the Nand-flash memory system is powered off and under the action of electric energy provided by a standby power supply, obtaining cached bus data from the static random access memory, and storing the bus data according to a data writing request; after the system is powered on, the stored bus data is transferred to the static random access memory, and meanwhile, the bus data is cleared from the Nand-flash memory;
under the condition that a temporary controller system is powered off, transferring data which are not stored in the mechanical hard disk in the static random access memory to the Nand-flash memory, and starting the Nand-flash memory to be used for storing bus data; and transferring the data in the Nand-flash memory into the static random access memory under the condition that the system recovers power utilization, and starting the static random access memory to be used for storing the bus data.
7. The method of claim 5, further comprising:
when the main power supply of the bus is disconnected due to flameout of the bus, the standby power supply is used for providing power supply support for the data temporary storage unit, so that bus data which are stored in the static random access memory and are not stored in the mechanical hard disk are transferred to the Nand-flash memory.
8. The method of claim 5, wherein sending a control command to the dedicated file system based on the shock level comprises:
when the current vibration level is higher than a set upper limit threshold value, driving the special file system to stop the reading and writing functions of the mechanical hard disk and reset a magnetic head of the mechanical hard disk to a staying area; and driving the special file system when the current vibration level is lower than a lower threshold value so as to restart the mechanical hard disk.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810288284.7A CN108563403A (en) | 2018-04-03 | 2018-04-03 | A kind of bus date storage method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810288284.7A CN108563403A (en) | 2018-04-03 | 2018-04-03 | A kind of bus date storage method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108563403A true CN108563403A (en) | 2018-09-21 |
Family
ID=63533965
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810288284.7A Pending CN108563403A (en) | 2018-04-03 | 2018-04-03 | A kind of bus date storage method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108563403A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110515554A (en) * | 2019-08-22 | 2019-11-29 | 联想(北京)有限公司 | Content wiring method, content write-in device and electronic equipment |
| CN116382576A (en) * | 2023-03-17 | 2023-07-04 | 平头哥(上海)半导体技术有限公司 | Storage control chip, solid state disk and related method |
| CN120469560A (en) * | 2025-07-11 | 2025-08-12 | 上海聚珀科技有限公司 | File protection method and system based on external power supply power failure monitoring |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101465128A (en) * | 2008-12-25 | 2009-06-24 | 浙江大华技术股份有限公司 | Method for protecting hard disk of vehicle-mounted hard disk videocorder |
| CN101552032A (en) * | 2008-12-12 | 2009-10-07 | 深圳市晶凯电子技术有限公司 | Method and device for constructing a high-speed solid state memory disc by using higher-capacity DRAM to join in flash memory medium management |
| JP2011134417A (en) * | 2009-12-25 | 2011-07-07 | Clarion Co Ltd | Onboard device |
| CN103839567A (en) * | 2012-11-27 | 2014-06-04 | 深圳中兴力维技术有限公司 | Method and device for improving performance of vehicle-mounted DVR and vehicle-mounted DVR |
| CN103970485A (en) * | 2014-04-28 | 2014-08-06 | 无锡云动科技发展有限公司 | Nonvolatile memory extending device, memory array and computer device |
| CN105023600A (en) * | 2014-04-28 | 2015-11-04 | 厦门雅迅网络股份有限公司 | Vehicle-mounted hard disk shake-proof method based on road condition forecast |
| CN108279989A (en) * | 2017-12-13 | 2018-07-13 | 北京中电万联科技股份有限公司 | Vehicle-mounted critical data method for secure storing and its system |
-
2018
- 2018-04-03 CN CN201810288284.7A patent/CN108563403A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101552032A (en) * | 2008-12-12 | 2009-10-07 | 深圳市晶凯电子技术有限公司 | Method and device for constructing a high-speed solid state memory disc by using higher-capacity DRAM to join in flash memory medium management |
| CN101465128A (en) * | 2008-12-25 | 2009-06-24 | 浙江大华技术股份有限公司 | Method for protecting hard disk of vehicle-mounted hard disk videocorder |
| JP2011134417A (en) * | 2009-12-25 | 2011-07-07 | Clarion Co Ltd | Onboard device |
| CN103839567A (en) * | 2012-11-27 | 2014-06-04 | 深圳中兴力维技术有限公司 | Method and device for improving performance of vehicle-mounted DVR and vehicle-mounted DVR |
| CN103970485A (en) * | 2014-04-28 | 2014-08-06 | 无锡云动科技发展有限公司 | Nonvolatile memory extending device, memory array and computer device |
| CN105023600A (en) * | 2014-04-28 | 2015-11-04 | 厦门雅迅网络股份有限公司 | Vehicle-mounted hard disk shake-proof method based on road condition forecast |
| CN108279989A (en) * | 2017-12-13 | 2018-07-13 | 北京中电万联科技股份有限公司 | Vehicle-mounted critical data method for secure storing and its system |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110515554A (en) * | 2019-08-22 | 2019-11-29 | 联想(北京)有限公司 | Content wiring method, content write-in device and electronic equipment |
| CN116382576A (en) * | 2023-03-17 | 2023-07-04 | 平头哥(上海)半导体技术有限公司 | Storage control chip, solid state disk and related method |
| CN116382576B (en) * | 2023-03-17 | 2024-02-27 | 平头哥(上海)半导体技术有限公司 | Storage control chip, solid state disk and related method |
| CN120469560A (en) * | 2025-07-11 | 2025-08-12 | 上海聚珀科技有限公司 | File protection method and system based on external power supply power failure monitoring |
| CN120469560B (en) * | 2025-07-11 | 2025-09-19 | 上海聚珀科技有限公司 | File protection method and system based on external power supply power failure monitoring |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108563403A (en) | A kind of bus date storage method and device | |
| US12093140B2 (en) | Data recovery method, apparatus, and solid state drive | |
| US7984325B2 (en) | Storage control device, data recovery device, and storage system | |
| US5787242A (en) | Method and apparatus for treatment of deferred write data for a dead raid device | |
| WO2012140695A1 (en) | Storage control apparatus and error correction method | |
| US9690642B2 (en) | Salvaging event trace information in power loss interruption scenarios | |
| CN1300696C (en) | Memory controller and data storage method | |
| CN100349127C (en) | Embedded system data back-up device and method | |
| US9588565B1 (en) | Method and apparatus for data protection on embedded flash devices during power loss events | |
| US20070245080A1 (en) | Disk array device and data processing method thereof | |
| US20070168624A1 (en) | Increased storage capacity for solid state disks using data compression | |
| KR20120093869A (en) | Apparatus, system, and method for power reduction management in a storage device | |
| CN101796494A (en) | Scaleable and maintainable solid state drive | |
| JP7060789B2 (en) | Electronic systems, information processing equipment and control methods | |
| CN100474271C (en) | Multi-level buffering type memory system and method therefor | |
| US20150378858A1 (en) | Storage system and memory device fault recovery method | |
| WO2015101051A1 (en) | Method and apparatus for improving reliability of solid state disk | |
| CN105630700A (en) | Storage system with second-level cache structure and reading/writing method | |
| CN103455390A (en) | Double-medium redundant storage system applicable to vehicle operating environment, and applications thereof | |
| CN108279989B (en) | Vehicle-mounted key data safe storage method and system thereof | |
| CN119311496A (en) | A hot-swap test method and system for NVMe solid-state hard disks | |
| CN103389923B (en) | Random access memory access bus ECC calibration equipment | |
| CN103064800A (en) | Power failure protection system and implementation method thereof | |
| US20120278528A1 (en) | Iimplementing storage adapter with enhanced flash backed dram management | |
| CN104020963A (en) | Method and device for preventing misjudgment of hard disk read-write errors |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |
|
| RJ01 | Rejection of invention patent application after publication |