CN102880431B - Local storage method and device capable of implementing high capacity and high reliability - Google Patents
Local storage method and device capable of implementing high capacity and high reliability Download PDFInfo
- Publication number
- CN102880431B CN102880431B CN201210356639.4A CN201210356639A CN102880431B CN 102880431 B CN102880431 B CN 102880431B CN 201210356639 A CN201210356639 A CN 201210356639A CN 102880431 B CN102880431 B CN 102880431B
- Authority
- CN
- China
- Prior art keywords
- hard disk
- data
- processing unit
- central processing
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a local storage method and a local storage device capable of implementing high capacity and high reliability. A power supply supplies power to a central processing unit and FLASH storage equipment and supplies power to a hard disk through a power supply control circuit; the central processing unit is connected with the FLASH storage equipment and the hard disk through data buses; the central processing unit detects a network state and sends a control signal to the power supply control circuit; and the power supply control circuit controls a power supply state of the hard disk. A storage medium comprises the FLASH storage equipment for caching and at least two hard disks. The FLASH storage equipment is used as a cache and can be used for caching data in a hard disk alternative power-on response process; when the hard disks work normally, the cached data are stored in the hard disks, so that the data cannot be lost; furthermore, a plurality of hard disks alternatively execute power-on work, so that a storage scheme can be selected according to a network state and a hard disk state; and the data storage reliability is guaranteed.
Description
Technical field
The present invention relates to a kind of technical field of data storage, specifically, relate to the highly reliable local storage means of a kind of realized Large Copacity that can be applied to the system such as traffic, monitoring and device.
Background technology
In traffic surveillance and control system and other video monitoring systems, often need the memory storage using larger capacity.
For electronic police system, electronic police system is generally installed on traffic intersection, is monitored, by network, video violating the regulations or picture are back to centring system in usual situation by the traffic of camera head to traffic intersection; When unstable networks, the data of camera head collection directly can not be transmitted by network, need that this locality is carried out to data and store, after network stabilization, again the data that this locality stores are sent to centring system by network.Electronic police system requires the memory space that at least can realize 30 days usually, for the jpeg image of 1,200 ten thousand pixels, size is about 1.5M, calculate by 5 track 50,000 images every day, need every day to store 75G data volume, if store 30 days, need 2T space, consider cost, capacity limit, a general mechanical type 3.5 cun of hard disks that use store.But hard disk replaces in power up reads and writes response speed comparatively slowly, be generally 15-30 second, then the data in this period do not have enough time to store and cause the problem of loss of data.
Simultaneously, electronic police system is generally installed on outdoor, due to voltage instability, vibration, high ambient temperature, frequently read and write, work long hours and the extraneous factor such as accident power-off, in addition the not high factor of the own reliability of standard machinery formula hard disk, in bad border, outdoor, often there is the problem such as hard disk corruptions, loss of data, complete monitoring can not be realized to traffic conditions.
Summary of the invention
The invention provides and a kind ofly realize the highly reliable local storage means of Large Copacity, solve existing supervisory system data and store instability and cause the incomplete technical matters of monitor data.
In order to solve the problems of the technologies described above, the present invention is achieved by the following technical solutions:
Realize the local storage means that Large Copacity is highly reliable,
Whether central processing unit Sampling network is stablized;
If network stabilization, then during central processing unit controls real time data and Network Abnormal, the data be stored on hard disk are uploaded to centring system by network, and the data upload in hard disk is complete, and central processing unit controls hard disk power down and cuts out;
If Network Abnormal, detect the state of hard disk; If hard disk is in closed condition, then first stores data in FLASH memory device, start hard disk simultaneously, select the hard disk of optimum condition, close other hard disks, by the data conversion storage of FLASH memory device to the hard disk that powers on, real-time data memory is to the hard disk that powers on; If hard disk is in starting state, select the hard disk of optimum condition, close other hard disks, real-time data memory is to the hard disk that powers on.
Preferably, if hard disk is in closed condition, start after hard disk simultaneously, select the hard disk of optimum condition to be the more hard disk of remaining space.
Preferably, if a hard disk is in starting state, then whether this hard disk is in the determination methods of optimum condition and is: hard disk remaining space can meet storage in 8 hours, and power-on time is less than 8 hours.
Preferably, if at least two hard disks are in starting state, the hard disk of optimum condition is selected to be the more hard disk of remaining space.
The highly reliable local storage means of Large Copacity is realized for above-mentioned, present invention also offers and a kind ofly realize the highly reliable local storage of Large Copacity, described device comprises central processing unit, power supply, power-supplying circuit, FLASH memory device and at least two hard disks; Power supply is powered to central processing unit and FLASH memory device, and is powered to hard disk by power-supplying circuit; Central processing unit is connected with FLASH memory device, hard disk by data bus; Central processing unit Sampling network state also sends and controls signal to power-supplying circuit, and power-supplying circuit controls the power supply state of hard disk.
Preferably, described power supply is linear power supply or stabilized voltage supply.
Preferably, described power-supplying circuit is the on/off control circuit comprising on-off element.
Preferably, described on-off element is MOSFET pipe, relay or controllable silicon.
Preferably, described FLASH memory device comprises SD card, CF card, solid state hard disc, USB flash disk or memory stick.
Compared with prior art, advantage of the present invention and good effect are: storage medium of the present invention comprises FLASH memory device for buffer memory and at least two hard disks, adopt FLASH memory device as buffer memory, can to the advanced row cache of data in hard disk alternately powers on response process, after hard disk normally works, be stored in hard disk by data cached again, ensure that data are not lost.Meanwhile, present invention employs polylith hard disk and alternately work on power, storage scheme can be selected according to network state and disk state, ensure that the reliability that data store.
After reading the detailed description of embodiment of the present invention by reference to the accompanying drawings, the other features and advantages of the invention will become clearly.
Accompanying drawing explanation
Fig. 1 is the theory diagram of the specific embodiment of the invention;
Fig. 2-Fig. 5 is the schematic diagram of specific embodiment of the invention power-supplying circuit;
Fig. 6 is the process flow diagram of the specific embodiment of the invention.
Embodiment
There is hard disk for local storage in existing traffic surveillance and control system and other video monitoring systems and replace in power up that to read and write response speed slower, data in response time do not have enough time store and cause loss of data, and hard disk corruptions loss of data causes the incomplete problem of monitor data.The present invention proposes a kind of highly reliable local storage and method.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in more detail:
Shown in Figure 1, first highly reliable to Large Copacity local storage is introduced: this device comprises central processing unit, power supply, power-supplying circuit, FLASH memory device and at least two hard disks.
Power supply is powered to central processing unit, FLASH memory device and hard disk, and wherein, hard disk is that power supply is powered to hard disk by power-supplying circuit, and central processing unit sends and controls signal to power-supplying circuit, controls conducting and the disconnection of power-supplying circuit.Power supply can design according to the actual requirements, and general linear power supply or the stabilized voltage supply of adopting can realize.
The data management of central processing unit primary responsibility whole system and power management, according to the network state detected, when network stabilization, be sent to centring system by real time data, selects corresponding storage policy to carry out this locality store when Network Abnormal.
Central processing unit is connected with FLASH memory device, hard disk by data bus; Central processing unit Sampling network state also sends and controls signal to power-supplying circuit, and power-supplying circuit controls the power supply state of hard disk.
FLASH memory device is mainly used for buffer memory, can when at Network Abnormal, hard disk does not respond, first by data buffer storage to FLASH memory device, when after hard disk response, central processing unit read the data cached of FLASH memory device and unloading to hard disk.FLASH memory device can adopt the mobile class memory devices such as SD card, CF card, solid state hard disc, USB flash disk, memory stick.
Power-supplying circuit receives the control signal that central processing unit sends, and controls powering on or power-off of hard disk; The on/off control circuit of main employing based on on-off element, wherein, on-off element can adopt MOSFET pipe, relay or controllable silicon etc.
Below for two hard disks, introduce the storage means of the highly reliable local storage of Large Copacity:
As Figure 2-Figure 5, central processing unit controls powering on of two hard disks and power down respectively by power-supplying circuit, POWERHDD1 and POWERHDD2 is respectively two control signals that central processing unit sends, 12V and 5V that can be controlled two hard disks by MOSFET pipe Q11, Q14, Q18, Q21 is powered.
As shown in Figure 6, central processing unit always Sampling network whether stablize:
When network stabilization, central processing unit by the data upload of hard-disc storage that produces during the data of current Real-time Collection and Network Abnormal to centring system, if the data in hard disk have been uploaded complete, then central processing unit has controlled local hard drive storage system power down cut out.
When network occurs abnormal, central processing unit first by data backup in FLASH memory device, detect the duty of hard disk simultaneously, if now working without hard disk, then central processing unit sends and controls signal to power-supplying circuit, switching elements conductive in power-supplying circuit, power supply is powered to hard disk.Central processing unit detects the store status of hard disk, selects the hard disk of optimum condition preferentially to use, closes another road hard disk, then forward the data of FLASH memory device to this and power in hard disk, afterwards by real-time data memory to this hard disk that powers on.
Judge that the system of selection of hard disk optimum condition is: if two hard disk is powered first simultaneously, the hard disk that prioritizing selection remaining space is more; If current existing hard disk is in work, if this hard disk remaining space can meet storage in 8 hours, and power-on time is less than 8 hours and then thinks that present hard discs is in optimum condition.
In sum, the present invention adopts the alternation of many hard disks, and can according to network state and hard disk operational state, flexible selection storage scheme, simultaneously, by the data buffer storage in hard disk response process in FLASH device, can be stored in hard disk by data cached again after hard disk response, ensure that the integrality storing data.Solve current Large Copacity this locality store in the problem of single hard disk instability, for electronic police system, supervisory system provide a kind of local storage scheme of high reliability.
Certainly; above-mentioned explanation is not limitation of the present invention; the present invention is also not limited in above-mentioned citing, the change that those skilled in the art make in essential scope of the present invention, remodeling, interpolation or replacement, also should belong to protection scope of the present invention.
Claims (6)
1. realize the local storage means that Large Copacity is highly reliable, it is characterized in that:
Whether central processing unit Sampling network is stablized;
If network stabilization, then during central processing unit controls real time data and Network Abnormal, the data be stored on hard disk are uploaded to centring system by network, and the data upload in hard disk is complete, and central processing unit controls hard disk power down and cuts out;
If Network Abnormal, detect the state of hard disk; If hard disk is in closed condition, then first stores data in FLASH memory device, start hard disk simultaneously, the hard disk of optimum condition is selected to be the more hard disk of remaining space, close other hard disks, by the data conversion storage of FLASH memory device to the hard disk that powers on, real-time data memory is to the hard disk that powers on; If hard disk is in starting state, select the hard disk of optimum condition, close other hard disks, real-time data memory is to the hard disk that powers on;
The method of the hard disk of selection optimum condition is:
If a hard disk is in starting state, then whether this hard disk is in the determination methods of optimum condition and is: hard disk remaining space can meet storage in 8 hours, and power-on time is less than 8 hours;
If at least two hard disks are in starting state, the hard disk of optimum condition is selected to be the more hard disk of remaining space.
2. realize the local storage that Large Copacity is highly reliable, it is characterized in that: described device comprises central processing unit, power supply, power-supplying circuit, FLASH memory device and at least two hard disks; Power supply is powered to central processing unit and FLASH memory device, and is powered to hard disk by power-supplying circuit; Central processing unit is connected with FLASH memory device, hard disk by data bus; Central processing unit Sampling network state also sends and controls signal to power-supplying circuit, and power-supplying circuit controls the power supply state of hard disk;
Whether central processing unit Sampling network is stablized;
If network stabilization, then during central processing unit controls real time data and Network Abnormal, the data be stored on hard disk are uploaded to centring system by network, and the data upload in hard disk is complete, and central processing unit controls hard disk power down and cuts out;
If Network Abnormal, detect the state of hard disk; If hard disk is in closed condition, then first stores data in FLASH memory device, start hard disk simultaneously, the hard disk of optimum condition is selected to be the more hard disk of remaining space, close other hard disks, by the data conversion storage of FLASH memory device to the hard disk that powers on, real-time data memory is to the hard disk that powers on; If hard disk is in starting state, select the hard disk of optimum condition, close other hard disks, real-time data memory is to the hard disk that powers on;
The method of the hard disk of selection optimum condition is:
If a hard disk is in starting state, then whether this hard disk is in the determination methods of optimum condition and is: hard disk remaining space can meet storage in 8 hours, and power-on time is less than 8 hours;
If at least two hard disks are in starting state, the hard disk of optimum condition is selected to be the more hard disk of remaining space.
3. memory storage according to claim 2, is characterized in that: described power supply is linear power supply or stabilized voltage supply.
4. memory storage according to claim 2, is characterized in that: described power-supplying circuit is the on/off control circuit comprising on-off element.
5. memory storage according to claim 4, is characterized in that: described on-off element is MOSFET pipe, relay or controllable silicon.
6. memory storage according to claim 2, is characterized in that: described FLASH memory device comprises SD card, CF card, solid state hard disc, USB flash disk or memory stick.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210356639.4A CN102880431B (en) | 2012-09-24 | 2012-09-24 | Local storage method and device capable of implementing high capacity and high reliability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210356639.4A CN102880431B (en) | 2012-09-24 | 2012-09-24 | Local storage method and device capable of implementing high capacity and high reliability |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102880431A CN102880431A (en) | 2013-01-16 |
CN102880431B true CN102880431B (en) | 2015-06-03 |
Family
ID=47481779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210356639.4A Active CN102880431B (en) | 2012-09-24 | 2012-09-24 | Local storage method and device capable of implementing high capacity and high reliability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102880431B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298470B (en) * | 2014-09-10 | 2016-04-27 | 腾讯科技(深圳)有限公司 | A kind of method for writing data and device |
CN104965679B (en) * | 2015-07-06 | 2018-09-11 | 北京唯得科技有限公司 | The long-acting storage filing system of Large Volume Data |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3222456B2 (en) * | 1990-07-30 | 2001-10-29 | 株式会社東芝 | Video monitoring system, transmitting device, receiving device, and video monitoring method |
CN101415107A (en) * | 2007-10-19 | 2009-04-22 | 深圳中兴力维技术有限公司 | A kind of reliable multilevel medium storage method |
CN101437134A (en) * | 2008-11-29 | 2009-05-20 | 成都市华为赛门铁克科技有限公司 | Data storage method and system |
CN102375518A (en) * | 2010-08-06 | 2012-03-14 | 董建飞 | Device and method for controlling power supplies of hard disks |
-
2012
- 2012-09-24 CN CN201210356639.4A patent/CN102880431B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102880431A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104215878B (en) | A kind of distribution line fault wave recording device and its failure wave-recording method | |
CN102968360B (en) | There is storage system and the method for N+1 redundancy feature | |
CN101826060A (en) | Method and device for protecting power failure data of solid state disk | |
CN102227131A (en) | Hot backup system of NVR and method thereof | |
CN109857239B (en) | Storage control method and device | |
CN104408109A (en) | Alarm video recording method and device | |
US9258476B2 (en) | Automatic image-capturing system | |
CN102880431B (en) | Local storage method and device capable of implementing high capacity and high reliability | |
CN105100716A (en) | Safe memory cell used for network video monitoring and system thereof | |
CN103605620B (en) | Cluster storage data protective method and device | |
JP6137980B2 (en) | Recording apparatus and control method thereof | |
US8830802B2 (en) | Information recording apparatus, and control method therefor | |
CN103544975B (en) | A kind of guard method of vehicle-mounted hard disks | |
CN103546724A (en) | Network camera collecting-distributing redundancy storage system and storage method thereof | |
CN202838299U (en) | Local-storage device with high-capacity and high-reliability | |
CN202276424U (en) | Monitor centralized storing system | |
CN107957922A (en) | A kind of memory power-off protection method | |
CN202841369U (en) | Video monitoring system with intelligent safe memory cell | |
JP2014175954A (en) | Data recording device, control method thereof, and computer program | |
CN215417536U (en) | Wide-temperature-range vehicle-mounted video data storage system | |
CN203930802U (en) | The electronic equipment of a kind of memory storage and built-in this memory storage | |
JP2006203342A (en) | System for monitoring video image | |
CN102147773A (en) | Method, device and system for managing high-end disk array data | |
CN203520874U (en) | Vibration damping effect-improved vehicle-mounted hard disk video recorder apparatus | |
CN112449091A (en) | Recording apparatus, image pickup apparatus, control method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |