Method and device for storing data

A technology for storing data and data, which is applied in the direction of electrical digital data processing, special data processing applications, color TV parts, etc., and can solve permanent data loss, damage index files, and reduce the performance and stability of digital hard disk video recorder systems, etc. problem, to achieve the effect of improving system performance and stability, reducing the amount of lost data, and reducing the amount of data

Active Publication Date: 2013-02-13
HANGZHOU HIKVISION DIGITAL TECH
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] When using the existing method of storing data with a digital hard disk video recorder for data storage, if an abnormal power failure occurs during the recording of the index file, the index file being written will be damaged, and when it is restarted, the abnormal data cannot be corrected. Although the index file damaged by power failure can be operated, another index file without error can be used to find the data file. However, the index file damaged by abnormal power failure cannot be repaired in time, and the data stored in the corresponding data file In the process of writing data after startup, it will be overwritten by the d

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for storing data
  • Method and device for storing data
  • Method and device for storing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

[0056] Figure 2(a) is a flowchart of a method for storing data in the present invention. Now in conjunction with Figure 2(a), the method for storing data of the present invention will be described, specifically as follows:

[0057] Step 20: Determine whether there is an incomplete metadata file after this startup, if not, go to step 22, otherwise go to step 21;

[0058] The metadata file mentioned in the present invention can be an index file used to record data storage addresses, a data file used to record important data, or a file used to record important system information.

[0059] In this step, parity check or data XOR check can be used to detect the integrity of the data stored in the stored metadata file.

[0060] The incomplete metadata file men...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for storing data. The method comprises the steps of: verifying the integrity of the stored metadata file after starting, if incomplete metadata files exist, recovering the incomplete metadata files by using an integrated first backup file or integrated second backup file; writing the received data stream or information stream into the metadata files, and recording the updating times of the metadata files; and backing up the integrated metadata files and the updating times to the first backup file or the second backup file according to a preset backup threshold. The invention also provides a device for storing data. By adopting the method and the device provided by the invention, the performance and stability of the system can be improved, and the data size lost due to unusual power failure is reduced.

Description

Technical field [0001] The invention relates to the field of security and protection, in particular to a method and device for storing data in the field of video surveillance. Background technique [0002] figure 1 Flow chart for the existing method of using digital hard disk video recorder to store data. Now combined figure 1 , Describe the method of using digital hard disk video recorders to store data in the existing video surveillance field, as follows: [0003] Step 100: Format and partition the hard disk; [0004] Step 101: In each partition, create two index files with the same content and N data files with a fixed size of M bytes in advance; [0005] Among them, the index file records data file start time, end time, video clip size, file serial number, data file status and other information; data file status includes three types: unrecorded, recorded, and recording; N and M are both integers greater than 1. . [0006] Step 102: Write the recording start time and recording inf...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N5/781G06F17/30
CPCY02D10/00
Inventor 赵修伟
Owner HANGZHOU HIKVISION DIGITAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products