CN102508784A - Data storage method of flash memory card in video monitoring equipment, and system thereof - Google Patents

Data storage method of flash memory card in video monitoring equipment, and system thereof Download PDF

Info

Publication number
CN102508784A
CN102508784A CN2011103410837A CN201110341083A CN102508784A CN 102508784 A CN102508784 A CN 102508784A CN 2011103410837 A CN2011103410837 A CN 2011103410837A CN 201110341083 A CN201110341083 A CN 201110341083A CN 102508784 A CN102508784 A CN 102508784A
Authority
CN
China
Prior art keywords
data
storage
storage block
write
index
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
CN2011103410837A
Other languages
Chinese (zh)
Other versions
CN102508784B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201110341083.7A priority Critical patent/CN102508784B/en
Publication of CN102508784A publication Critical patent/CN102508784A/en
Application granted granted Critical
Publication of CN102508784B publication Critical patent/CN102508784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to video monitoring, and discloses a data storage method of a flash memory card in video monitoring equipment, and a system thereof. With the method, the space utilization rate of the flash memory card is high, video data access efficiency is high, and the stability when files are frequently read and written is high. According to the invention, a storage file comprising an integral number of storage blocks and an index file comprising an index head and index entries are configured in the flash memory card, wherein the size of the file is invariable; the storage blocks are corresponded to the index entries on to one; the index head comprises a read indicator and a write indicator. The method comprises the steps that: according to the index entries, data is circularly written into a current storage block, or a current storage block is covered by the data; according to the information of the current storage block, the index head and the corresponding index entry information are updated.

Description

The date storage method of flash card and system thereof in the video monitoring equipment
Technical field
The present invention relates to field of video monitoring, particularly data storage technology.
Background technology
Flash card is to utilize flash memory technology to reach the storer of storage of electronic information; Generally as storage medium application in small-sized digital products such as digital camera, palm PC, MP3; According to different production manufacturer and different application, flash card comprises SM card, CF card, mmc card, SD card, memory stick, XD card and micro harddisk etc.
Current; When video monitoring equipment carries out data storage; Video monitoring equipment is had the data of storage request each time, flash card all separately a newly-built data files and an index file preserve, one Chinese patent application number discloses a kind of method of data storage device long-time pre-recording for CN200810184014.8; Comprise:, calculate the space of storing the data of pre-recording according to the speed of duration of pre-recording with the data of pre-recording; On non-volatile memory apparatus, obtain the said space that calculates, in said space, set up each data block, and set up the index chained list of the said data block of management at memory headroom; According to the indication of index chained list, the said data of pre-recording are written in the corresponding data block, after receiving trigger message, the said data-switching of pre-recording is video file and is stored on the said memory device.
Inventor of the present invention finds; Above-mentioned date storage method is because the frequent file of creating needs constantly to revise system file data, like file allocation table (File Allocation Table is called for short " FAT ") table; The index chained list perhaps frequently Updates Information in internal memory; Because of the damage of system-critical data district can cause whole flash card storage paralysis, so that the format whole loss of data in back, greatly reduce its stability, the storage space utilization factor is low and manage loaded down with trivial details.
So, demand proposing a kind of stability height, storage space utilization factor height, the simple flash card date storage method of management and system thereof urgently.
Summary of the invention
The object of the present invention is to provide the date storage method and the system thereof of flash card in a kind of video monitoring equipment; Make that the memory headroom utilization factor of flash card is higher; Simultaneously because the storage file static division; It is high to make video data search with storage efficiency, and the protection flash card is difficult for impaired when frequent storage file is read and write, and its stability is stronger.
For solving the problems of the technologies described above; Embodiment of the present invention discloses the date storage method of flash card in a kind of video monitoring equipment; A plurality of storage files and an index file that file size remains unchanged are set in flash card in advance, comprise an indexing head and a plurality of index entry in the index file; Comprise an integer storage block in each storage file, each storage block respectively with index file in each index entry corresponding one by one; Comprise write pointer in the indexing head, point to the index entry of the next storage block that can write;
Method may further comprise the steps:
Begin from the position of write pointers point,, write data to the pairing storage block of each index entry successively according to the order of each index entry in the index file; If write the pairing storage block of last index entry of index file, then write pointer is got back to first index entry of index file;
Upgrade the information of respective index item according to the attribute information of the data that write.
Embodiment of the present invention also discloses the data-storage system of flash card in a kind of video monitoring equipment; A plurality of storage files and an index file that file size remains unchanged are set in flash card in advance, comprise an indexing head and a plurality of index entry in the index file; Comprise an integer storage block in each storage file, each storage block respectively with index file in each index entry corresponding one by one; Comprise write pointer in the indexing head, point to the index entry of the next storage block that can write;
System comprises with lower module:
The circulation writing module is used for beginning from the position of write pointers point, according to the order of each index entry in the index file, writes data to the pairing storage block of each index entry successively; If write the pairing storage block of last index entry of index file, then write pointer is got back to first index entry of index file;
The index upgrade module, the attribute information of the data that are used for writing according to the circulation writing module upgrades the information of respective index item.
Embodiment of the present invention compared with prior art, the key distinction and effect thereof are:
Create an index file and a plurality of storage file that file size remains unchanged in advance, the storage file storage block is unified in the index manages, and the subsequent video data write or cover according to the storage block circulation; Only revise the data division in the storage file; Make that the memory headroom utilization factor of flash card is higher, simultaneously because the storage file static division makes video data search and the storage efficiency height; The protection flash card is difficult for impaired when frequent storage file is read and write, and its stability is stronger.
Further; If the storage file of a written data takies a plurality of index entries continuously, then have only first index entry to contain the index content of this document data, each index entry all is blank afterwards; Write operation that like this can the reduced index item reduces data redundancy.
Further, flash card has living space and is stored file and index file takes, and makes things convenient for the management of flash card storage space.
Further; The pairing storage block of adjacent index entry is physically adjacent, makes the storage of flash card have greater flexibility, and the fashionable completely whole storage file that do not need once to write is write in circulation; It is high that the space covers utilization factor, helps in the field of video monitoring storage to critical data.
Description of drawings
Fig. 1 is the schematic flow sheet of the date storage method of flash card in a kind of video monitoring equipment in the first embodiment of the invention;
Fig. 2 is the data store organisation synoptic diagram of flash card in a kind of video monitoring equipment in the first embodiment of the invention;
Fig. 3 is the schematic flow sheet of the date storage method of flash card in a kind of video monitoring equipment in the second embodiment of the invention;
Fig. 4 be in the second embodiment of the invention in a kind of video monitoring equipment the datacycle of the date storage method of flash card write synoptic diagram;
Fig. 5 be in the second embodiment of the invention in a kind of video monitoring equipment the data of the date storage method of flash card cover and to write synoptic diagram;
Fig. 6 is the structural representation of the data-storage system of flash card in a kind of video monitoring equipment in the third embodiment of the invention;
Fig. 7 is the structural representation of the data-storage system of flash card in a kind of video monitoring equipment in the four embodiment of the invention.
Embodiment
In following narration, many ins and outs have been proposed in order to make the reader understand the application better.But, persons of ordinary skill in the art may appreciate that even without these ins and outs with based on the many variations and the modification of following each embodiment, also can realize each claim of the application technical scheme required for protection.
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
First embodiment of the invention relates to the date storage method of flash card in a kind of video monitoring equipment.Fig. 1 is the schematic flow sheet of the date storage method of flash card in this video monitoring equipment.As shown in Figure 1, specifically, the date storage method of flash card may further comprise the steps in this video monitoring equipment:
In step 101, a plurality of storage files and an index file that file size remains unchanged are set in flash card in advance, comprise an indexing head and a plurality of index entry in the index file.Comprise an integer storage block in each storage file, each storage block respectively with index file in each index entry corresponding one by one.Comprise write pointer in the indexing head, point to the index entry of the next storage block that can write.
In this embodiment, a kind of file that be used to indicate logical record and physical record between the linked list data structure of one-to-one relationship of index file for setting up outside the storage file.
Storage block is one group of several group record that are arranged in continuously in order together, is a data unit of transmitting between primary memory and Input/Output Device or the external storage.Also can be expressed as the least unit in the storage master file.
The one-to-one relationship of storage block and index entry; Promptly when searching a certain storage file; This index entry has comprised the information of this storage block, initial physical addresses and the offset address of this storage block of for example storing these data on flash card, data file size, data type etc.
Create an index file and a plurality of storage file that file size remains unchanged in advance, the storage file storage block is unified in the index manages, and the subsequent video data write or cover according to the storage block circulation; Only revise the data division in the storage file; Make that the memory headroom utilization factor of flash card is higher, simultaneously because the storage file static division makes video data search and the storage efficiency height; The protection flash card is difficult for impaired when frequent storage file is read and write, and its stability is stronger.
In some other embodiments of the present invention, the data that deposit in can be various types of, video data for example, view data of candid photograph or the like.Flash card refers to use the storage card of flash memory (Flash) as storage medium, SD card for example, mmc card, CF card or the like.
After this get into step 102, begin,, write data to the pairing storage block of each index entry successively according to the order of each index entry in the index file from the position of write pointers point.If write the pairing storage block of last index entry of index file, then write pointer is got back to first index entry of index file.The method that the index file that constitutes for each index entry among the present invention has adopted circulation to write.
After this get into step 103, upgrade the information of respective index item, after this process ends according to the attribute information of the data that write.
As a preferred embodiment of the present invention, Fig. 2 is the data store organisation synoptic diagram of flash card in a kind of video monitoring equipment in the first embodiment of the invention;
As shown in Figure 2, this flash card storage space is made up of index file and some storage files.Index file has been deposited global index's header and index entry information two parts content.Indexing head is preserved whole flash card global information, comprises flash card storage file total volume, with data field size, predistribution storage file number, the current overall key message such as pointer that reads or writes; Each index entry is preserved storage size of data, data type and the data search information such as position in storage file.Shown in Figure 2 like this, index file contains an indexing head node and n index entry node.
Each storage file is divided into some storage blocks, can define storage be storage cell minimum in the flash card, and promptly the main control equipment in the video monitoring applies for that at every turn the data space of storing all takies an integer storage block.If a flash card has m onesize storage file, x data block arranged all in each storage file.Suppose each size of data be α kB. then the storable total volume of this storage card be x* α * m/1024 megabyte.And the index entry nodal point number is n=m*x in the index file.
Second embodiment of the invention relates to the date storage method of flash card in a kind of video monitoring equipment.Fig. 3 is the schematic flow sheet of the date storage method of flash card in this video monitoring equipment.
Second embodiment improves on the basis of first embodiment, and main improvements are: also comprise read pointer in the indexing head, point to the index entry of the readable storage block of next data.If the storage file of a written data takies a plurality of index entries continuously, then have only first index entry to contain the index content of this document data, each index entry all is blank afterwards, write operation that like this can the reduced index item reduces data redundancy.The pairing storage block of adjacent index entry is physically adjacent simultaneously, makes the storage of flash card have greater flexibility.All storage spaces of flash card are stored file and index file takes.The pairing storage block of adjacent index entry physically also is adjacent.Read pointer in the indexing head always points to the reference position of first (writing the earliest in other words) data in the whole flash card.And write pointer always points to the current position that can write.In other words, all valid data all be stored in after the read pointer with write pointer before, before the read pointer or write pointer be white space afterwards.Each index entry has formed a circular list, said here before or after with respect to circular list, write pointer is generally after read pointer, only when not having data in the flash card, write pointer just is in same position with read pointer.
As shown in Figure 3, the date storage method of flash card may further comprise the steps in this video monitoring equipment:
Aforementioned 102 write data step, also comprise following 301 to 307 substep:
Calculate the shared storage block of data to be written and count N.
Judge that current flash card remains empty storage block and whether counts L less than N.
If L is not less than N, then begin from write pointer storage block pointed, data to be written are write N storage block in proper order.
If L is less than N; Then at first presetting the storage block sum M of desiring cover data is L, and the data of secondly pointing to read pointer are initial address, and the storage block number that its follow-up integer number of data is shared is added to M; Be greater than or equal to N up to M; Upgrade read pointer simultaneously and point to address and the manipulative indexing skew afterwards of desire cover data, begin from write pointer storage block pointed again, data to be written are write N storage block in proper order.
Upgrade in the step of index entry information aforementioned 103, also comprise following 309 substep:
Upgrade write pointers point N storage block address and the manipulative indexing skew afterwards in the indexing head.
Specifically:
In step 301, calculate the shared storage block of data to be written and count N.
After this get into step 302, judge that current flash card remains empty storage block and whether counts L less than N.
If L is not less than N, then get into step 307; Otherwise, get into step 303.
In step 303, if judge that current flash card remains empty storage block and counts L less than N, then presetting the storage block sum M of desiring cover data is L.
After this get into step 304, pointing to data with read pointer is that start address reads the shared storage block size of next data and is added to M.
After this get into step 305, judge that whether the storage block sum M of desiring cover data is more than or equal to N.
If M more than or equal to N, then gets into step 306; Otherwise, return step 304, pointing to data with read pointer is that start address reads the shared storage block size of next data and is added to M.
In step 306, upgrade read pointer and point to address and the manipulative indexing skew afterwards of desire cover data.
After this get into step 307, the storage block pointed from write pointer begins, and data to be written are write N storage block in proper order.
If the data that write take a plurality of storage blocks continuously, the information of these data of record search in the pairing index entry of first occupied storage block only then.
If the storage file of a written data takies a plurality of index entries continuously, then have only first index entry to contain the index content of this document data, each index entry all is blank afterwards, write operation that like this can the reduced index item reduces data redundancy.Flash card has living space and is stored file and index file takes, and makes things convenient for the management of flash card storage space.The pairing storage block of adjacent index entry is physically adjacent; Make the storage of flash card have greater flexibility; The fashionable completely whole storage file that do not need once to write is write in circulation, and it is high that the space covers utilization factor, helps in the field of video monitoring storage to the critical data frame.
In some other embodiments of the present invention; If the data that write take a plurality of storage blocks continuously; The information of these data of record search in the pairing index entry of first occupied storage block only then, also can be in the corresponding index entry of all or part of occupied storage block the information of these data of record search.
After this get into step 308, upgrade this N storage block manipulative indexing item information.
Index entry can comprise information such as the size, type, offset address of video data file; The storage block that is used for the index search storage file; Indexing head can comprise all storage size of data of being stored on the flash card, take information such as storage size, predistribution video data number, current read pointer, current write pointer; Make things convenient for the flash card access, and spatial coverage is higher.
After this get into step 309, upgrade write pointers point N storage block address and manipulative indexing skew, the after this process ends afterwards in the indexing head.
As a preferred embodiment of the present invention, Fig. 4 be in the second embodiment of the invention in a kind of video monitoring equipment the datacycle of the date storage method of flash card write synoptic diagram; For fear of the ruined risk of system-critical data that frequent establishment or deleted file bring, flash card takes to have allocated in advance the mode of index file and all data files when file system format.Write and only need the data in the revised file during cover data and do not need to create again and size that deleted file is not changed file simultaneously yet follow-up like this, thereby system-critical data do not write renewal again.Read in the read-write pointer of data address from indexing head information of flash card storage.At first from the write pointer of indexing head information, find the offset address of index entry in the initial MBA memory block address that will write and the manipulative indexing file of data to be stored; The synoptic diagram of double data storage as shown in Figure 4; Suppose that data X to be stored needs to use 2 storage blocks through calculating its space size; Then begin data storage to 2 continuous storage blocks from the initial storage block of storage file; Simultaneously, corresponding index entry node deposits key messages such as size that these data take up space, Data Position in.Final updating indexing head information moves to the start address of data storage next time with write pointer, and upgrades other global data information, like the remaining space size, and residue Block quantity etc.Each storage takies several storage blocks and corresponding index entry node.
As a preferred embodiment of the present invention, Fig. 5 be in the second embodiment of the invention in a kind of video monitoring equipment the data of the date storage method of flash card cover and to write synoptic diagram;
Expire when learning that in indexing head information flash card has been write, for example when the read-write hands coincide, when perhaps the remaining space size is not enough to deposit new data, need cover storage.When judgement needs to cover storage; Can search for current write pointer indication index entry nodal information in order; The storage block that the desire that adds up covers when the storage block number that is capped when preparation is counted more than or equal to the required storage block of data to be written, just stops search; And upgrade read pointer and point to the node after the data manipulative indexing item node that last storage block is capped, upgrade in the indexing head information key messages such as remaining space simultaneously.At this moment the flash card remaining space just can satisfy the storage of new data, and new data such as aforementioned manner are stored into flash card.As shown in Figure 5, data storage to be written needs 4 storage blocks, and flash card has not had remaining space, at this moment will search for and cover two index entry nodes and corresponding data thereof, idle 5 storage blocks of flash card.Data to be written have been used 4 storage blocks, also surplus free memory blocks.After covering, write pointers point index entry 27, read pointer points to index entry 28.The free memory blocks number becomes 1 by 0 in the indexing head information.
In some other embodiments of the present invention, flash card has living space and can all be stored file and index file takes, and also can not taken, thereby reserves certain storage space, is used to be stored in file attribute information on the flash card etc.
In some other embodiments of the present invention, the pairing storage block of adjacent index entry physically can be adjacent also can be non-conterminous, when non-conterminous, can carry out multiple index search and search or store data.
Each method embodiment of the present invention all can be realized with modes such as software, hardware, firmwares.No matter the present invention be with software, hardware, or the firmware mode realize; Instruction code can be stored in the storer of computer-accessible of any kind (for example permanent or revisable; Volatibility or non-volatile; Solid-state or non-solid-state, fixing perhaps removable medium or the like).Equally; Storer can for example be programmable logic array (Programmable Array Logic; Abbreviation " PAL "), RAS (Random Access Memory; Abbreviation " RAM "), programmable read only memory (Programmable Read Only Memory is called for short " PROM "), ROM (read-only memory) (Read-Only Memory is called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM; Abbreviation " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc is called for short " DVD ") or the like.
Third embodiment of the invention relates to the data-storage system of flash card in a kind of video monitoring equipment.Fig. 6 is the structural representation of the data-storage system of flash card in this video monitoring equipment.The data-storage system of flash card is provided with a plurality of storage files and index file that file size remains unchanged in advance in this video monitoring equipment in flash card, comprises an indexing head and a plurality of index entry in the index file.Comprise an integer storage block in each storage file, each storage block respectively with index file in each index entry corresponding one by one.Comprise write pointer in the indexing head, point to the index entry of the next storage block that can write.
System comprises with lower module:
The circulation writing module is used for beginning from the position of write pointers point, according to the order of each index entry in the index file, writes data to the pairing storage block of each index entry successively.If write the pairing storage block of last index entry of index file, then write pointer is got back to first index entry of index file.
The index upgrade module, the attribute information of the data that are used for writing according to the circulation writing module upgrades the information of respective index item.
First embodiment is and the corresponding method embodiment of this embodiment, this embodiment can with the enforcement of working in coordination of first embodiment.The correlation technique details of mentioning in first embodiment is still effective in this embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in this embodiment also can be applicable in first embodiment.
Four embodiment of the invention relates to the data-storage system of flash card in a kind of video monitoring equipment.Fig. 7 is the structural representation of the data-storage system of flash card in this video monitoring equipment.
The 4th embodiment improves on the basis of the 3rd embodiment, and main improvements are: specifically:
If the data that write take a plurality of storage blocks continuously, the information of these data of record search in the pairing index entry of first occupied storage block only then.
Also comprise read pointer in the indexing head, point to the index entry of the readable storage block of next data.
The circulation writing module also comprises following submodule:
Calculating sub module is used to calculate the shared storage block of data to be written and counts N.
Judge submodule, be used to judge that current flash card remains empty storage block and counts L and whether count N less than the storage block that calculating sub module calculates.
First writes submodule, is used for judging that L is not less than N if judge submodule, then begins from write pointer storage block pointed, and data to be written are write N storage block in proper order.
Second writes submodule, is used for judging L less than N if judge submodule, and then at first presetting the storage block sum M of desiring cover data is L; Secondly the data of pointing to read pointer are initial address; The storage block number that its follow-up integer number of data is shared is added to M, is greater than or equal to N up to M, upgrades read pointer simultaneously and points to address and the manipulative indexing skew afterwards of desire cover data; Begin from write pointer storage block pointed again, data to be written are write N storage block in proper order.
The index upgrade module also comprises following submodule:
Updating submodule is used for writing submodule or second first and writes after submodule writes N storage block in proper order with data to be written, and write pointers point N storage block address and the manipulative indexing afterwards that upgrades in the indexing head squints.
All storage spaces of flash card are stored file and index file takes.
The pairing storage block of adjacent index entry physically also is adjacent.
Second embodiment is and the corresponding method embodiment of this embodiment, this embodiment can with the enforcement of working in coordination of second embodiment.The correlation technique details of mentioning in second embodiment is still effective in this embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in this embodiment also can be applicable in second embodiment.
Need to prove; Each module of mentioning in each equipment embodiment of the present invention all is a logic module, and physically, a logic module can be a physical module; It also can be the part of a physical module; Can also realize that the physics realization mode of these logic modules itself is not most important with the combination of a plurality of physical modules, the combination of the function that these logic modules realized is the key that just solves technical matters proposed by the invention.In addition, for outstanding innovation part of the present invention, above-mentioned each the equipment embodiment of the present invention will not introduced with solving the not too close module of technical matters relation proposed by the invention, and this does not show that there is not other module in the said equipment embodiment.
Though through reference some preferred implementation of the present invention; The present invention is illustrated and describes; But those of ordinary skill in the art should be understood that and can do various changes to it in form with on the details, and without departing from the spirit and scope of the present invention.

Claims (10)

1. the date storage method of flash card in the video monitoring equipment is characterized in that, a plurality of storage files and an index file that file size remains unchanged are set in flash card in advance, comprises an indexing head and a plurality of index entry in the index file; Comprise an integer storage block in each storage file, each storage block respectively with said index file in each index entry corresponding one by one; Comprise write pointer in the indexing head, point to the index entry of the next storage block that can write;
Said method comprising the steps of:
Begin from the position of said write pointers point,, write data to the pairing storage block of each index entry successively according to the order of each index entry in the said index file; If write the pairing storage block of last index entry of said index file, then said write pointer is got back to first index entry of said index file;
Upgrade the information of respective index item according to the attribute information of the data that write.
2. the date storage method of flash card in the video monitoring equipment according to claim 1; It is characterized in that; If the data of said write take a plurality of storage blocks continuously, then only in the pairing index entry of first occupied storage block, write down the information of these data.
3. the date storage method of flash card is characterized in that in the video monitoring equipment according to claim 1, also comprises read pointer in the indexing head, points to the index entry of the readable storage block of next data;
In the step of said write data, also comprise following substep:
Calculate the shared storage block of data to be written and count N;
Judge that current flash card remains empty storage block and whether counts L less than said N;
If L is not less than N, then begin from said write pointer storage block pointed, said data to be written are write N storage block in proper order;
If L is less than N; Then at first presetting the storage block sum M of desiring cover data is L, and the data of secondly pointing to said read pointer are initial address, and the storage block number that its follow-up integer number of data is shared is added to M; Be greater than or equal to said N up to M; Upgrade said read pointer simultaneously and point to address and the manipulative indexing skew afterwards of said desire cover data, begin from said write pointer storage block pointed again, said data to be written are write N storage block in proper order;
In the step of said renewal index entry information, also comprise following substep:
Upgrade the said N of write pointers point storage block address and the manipulative indexing skew afterwards in the said indexing head.
4. the date storage method of flash card is characterized in that in the video monitoring equipment according to claim 3, and all storage spaces of said flash card are taken by said storage file and index file.
5. according to the date storage method of flash card in each described video monitoring equipment in the claim 1 to 4, it is characterized in that the pairing storage block of adjacent index entry physically also is adjacent.
6. the data-storage system of flash card in the video monitoring equipment is characterized in that, a plurality of storage files and an index file that file size remains unchanged are set in flash card in advance, comprises an indexing head and a plurality of index entry in the index file; Comprise an integer storage block in each storage file, each storage block respectively with said index file in each index entry corresponding one by one; Comprise write pointer in the indexing head, point to the index entry of the next storage block that can write;
Said system comprises with lower module:
The circulation writing module is used for beginning from the position of said write pointers point, according to the order of each index entry in the said index file, writes data to the pairing storage block of each index entry successively; If write the pairing storage block of last index entry of said index file, then said write pointer is got back to first index entry of said index file;
The index upgrade module, the attribute information of the data that are used for writing according to said circulation writing module upgrades the information of respective index item.
7. the data-storage system of flash card in the video monitoring equipment according to claim 6; It is characterized in that; If the data of said write take a plurality of storage blocks continuously, then only in the pairing index entry of first occupied storage block, write down the information of these data.
8. the data-storage system of flash card is characterized in that in the video monitoring equipment according to claim 6, also comprises read pointer in the indexing head, points to the index entry of the readable storage block of next data;
Said circulation writing module also comprises following submodule:
Calculating sub module is used to calculate the shared storage block of data to be written and counts N;
Judge submodule, be used to judge that current flash card remains empty storage block and counts L and whether count N less than the storage block that said calculating sub module calculates;
First writes submodule, is used for then beginning from said write pointer storage block pointed if said judgement submodule judges that L is not less than N, and said data to be written are write N storage block in proper order;
Second writes submodule; Be used for if said judgement submodule judges that L is less than N; Then at first presetting the storage block sum M of desiring cover data is L, and the data of secondly pointing to said read pointer are initial address, and the storage block number that its follow-up integer number of data is shared is added to M; Be greater than or equal to said N up to M; Upgrade said read pointer simultaneously and point to address and the manipulative indexing skew afterwards of said desire cover data, begin from said write pointer storage block pointed again, said data to be written are write N storage block in proper order;
Said index upgrade module also comprises following submodule:
Updating submodule; Be used for writing submodule or second said first and write after submodule writes N storage block in proper order with said data to be written, the said N of write pointers point storage block address and the manipulative indexing afterwards that upgrades in the said indexing head squints.
9. the data-storage system of flash card is characterized in that in the video monitoring equipment according to claim 8, and all storage spaces of said flash card are taken by said storage file and index file.
10. according to the data-storage system of flash card in each described video monitoring equipment in the claim 6 to 9, it is characterized in that the pairing storage block of adjacent index entry physically also is adjacent.
CN201110341083.7A 2011-11-02 2011-11-02 Data storage method of flash memory card in video monitoring equipment, and system thereof Active CN102508784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110341083.7A CN102508784B (en) 2011-11-02 2011-11-02 Data storage method of flash memory card in video monitoring equipment, and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110341083.7A CN102508784B (en) 2011-11-02 2011-11-02 Data storage method of flash memory card in video monitoring equipment, and system thereof

Publications (2)

Publication Number Publication Date
CN102508784A true CN102508784A (en) 2012-06-20
CN102508784B CN102508784B (en) 2015-01-07

Family

ID=46220875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110341083.7A Active CN102508784B (en) 2011-11-02 2011-11-02 Data storage method of flash memory card in video monitoring equipment, and system thereof

Country Status (1)

Country Link
CN (1) CN102508784B (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051977A (en) * 2013-01-11 2013-04-17 乐视网信息技术(北京)股份有限公司 Method for processing p2p (peer-to-peer) cache data
CN103268266A (en) * 2013-01-04 2013-08-28 苏州懿源宏达知识产权代理有限公司 Method for verifying and storing flash memory
CN103544124A (en) * 2012-07-16 2014-01-29 上海塞尚通信技术有限公司 Access method of Nand Flash memorizer
CN104461917A (en) * 2014-12-05 2015-03-25 宁波新尚智能电气有限公司 Nor Flash-based regional cycle storage method
CN104699727A (en) * 2014-01-15 2015-06-10 杭州海康威视数字技术股份有限公司 Data storage method and device
WO2015192452A1 (en) * 2014-06-17 2015-12-23 深圳市中兴微电子技术有限公司 Header compression method, decompression method and device
CN105389376A (en) * 2015-11-18 2016-03-09 武汉微创光电股份有限公司 Contiguous block based non-fragmentation multimedia data storage method and system
CN105468642A (en) * 2014-09-09 2016-04-06 杭州海康威视数字技术股份有限公司 Data storage method and apparatus
CN106294213A (en) * 2016-08-02 2017-01-04 芯启源电子科技有限公司 Storage device, electronic equipment and buffer management method
CN106293532A (en) * 2016-08-10 2017-01-04 广东佳禾声学科技有限公司 A kind of Flash data storage method
CN107391388A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 A kind of method and apparatus that data storage is carried out based on instant messaging
CN107506308A (en) * 2017-06-30 2017-12-22 杭州旗捷科技有限公司 A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment
CN107562766A (en) * 2016-07-01 2018-01-09 杭州海康威视数字技术股份有限公司 A kind of data file wiring method, apparatus and system
CN107861891A (en) * 2017-11-14 2018-03-30 郑州天迈科技股份有限公司 Audio/video data access method for public transport vehicle-mounted hard disk
CN108228095A (en) * 2017-12-15 2018-06-29 中国航空工业集团公司西安飞行自动控制研究所 A kind of method that real time information record is carried out based on Flash
CN109002399A (en) * 2018-07-09 2018-12-14 北京智芯微电子科技有限公司 The method of embedded device logout
CN109634919A (en) * 2018-10-16 2019-04-16 西北铁道电子股份有限公司 A kind of file management system
CN109783321A (en) * 2019-01-24 2019-05-21 深圳市景阳信息技术有限公司 Monitoring data management method, device, terminal device
CN110008179A (en) * 2019-04-02 2019-07-12 深圳创维汽车智能有限公司 File memory method, automobile data recorder and readable storage medium storing program for executing
CN110767304A (en) * 2019-09-25 2020-02-07 广东宝莱特医用科技股份有限公司 Method and device for circularly storing data for hemodialysis device
CN111125427A (en) * 2019-12-26 2020-05-08 浪潮电子信息产业股份有限公司 Video file reading method and device, electronic equipment and medium
WO2020102955A1 (en) * 2018-11-20 2020-05-28 浙江宇视科技有限公司 Monitoring video storage method and apparatus, and video storage device
CN111382122A (en) * 2020-03-11 2020-07-07 杭州涂鸦信息技术有限公司 File management system and method for multi-channel network camera sub-equipment
CN113127415A (en) * 2019-12-31 2021-07-16 浙江宇视科技有限公司 Method, device, medium and electronic equipment for processing real-time stream file
CN114153399A (en) * 2021-12-07 2022-03-08 四川云从天府人工智能科技有限公司 Data storage method, device, control device and medium of storage system
CN117453632A (en) * 2023-12-25 2024-01-26 杭州计算机外部设备研究所(中国电子科技集团公司第五十二研究所) Data storage method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070186032A1 (en) * 2005-08-03 2007-08-09 Sinclair Alan W Flash Memory Systems With Direct Data File Storage Utilizing Data Consolidation and Garbage Collection
CN101034346A (en) * 2006-03-10 2007-09-12 北京佳讯飞鸿电气有限责任公司 Date storage method for circulating queue
CN101266573A (en) * 2008-04-29 2008-09-17 中国船舶重工集团公司第七〇九研究所 Covering allowable flash memory even wearing circulating queue technology
CN101727398A (en) * 2008-10-31 2010-06-09 西安奇维测控科技有限公司 Methods for realizing storage and reduction of management data of flash controller by information serialization
CN102063379A (en) * 2010-12-28 2011-05-18 天津市亚安科技电子有限公司 Data storage method of FLASH memory
CN102117297A (en) * 2009-12-31 2011-07-06 华为技术有限公司 Streaming media file processing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070186032A1 (en) * 2005-08-03 2007-08-09 Sinclair Alan W Flash Memory Systems With Direct Data File Storage Utilizing Data Consolidation and Garbage Collection
CN101034346A (en) * 2006-03-10 2007-09-12 北京佳讯飞鸿电气有限责任公司 Date storage method for circulating queue
CN101266573A (en) * 2008-04-29 2008-09-17 中国船舶重工集团公司第七〇九研究所 Covering allowable flash memory even wearing circulating queue technology
CN101727398A (en) * 2008-10-31 2010-06-09 西安奇维测控科技有限公司 Methods for realizing storage and reduction of management data of flash controller by information serialization
CN102117297A (en) * 2009-12-31 2011-07-06 华为技术有限公司 Streaming media file processing method, device and system
CN102063379A (en) * 2010-12-28 2011-05-18 天津市亚安科技电子有限公司 Data storage method of FLASH memory

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544124A (en) * 2012-07-16 2014-01-29 上海塞尚通信技术有限公司 Access method of Nand Flash memorizer
CN103544124B (en) * 2012-07-16 2018-01-19 上海塞尚通信技术有限公司 The access method of Nand flash storages
CN103268266A (en) * 2013-01-04 2013-08-28 苏州懿源宏达知识产权代理有限公司 Method for verifying and storing flash memory
CN103051977A (en) * 2013-01-11 2013-04-17 乐视网信息技术(北京)股份有限公司 Method for processing p2p (peer-to-peer) cache data
CN104699727B (en) * 2014-01-15 2017-12-22 杭州海康威视数字技术股份有限公司 A kind of date storage method and device
CN104699727A (en) * 2014-01-15 2015-06-10 杭州海康威视数字技术股份有限公司 Data storage method and device
WO2015192452A1 (en) * 2014-06-17 2015-12-23 深圳市中兴微电子技术有限公司 Header compression method, decompression method and device
CN105208596A (en) * 2014-06-17 2015-12-30 中兴通讯股份有限公司 Header compression method, decompression method and device
CN105468642A (en) * 2014-09-09 2016-04-06 杭州海康威视数字技术股份有限公司 Data storage method and apparatus
CN104461917A (en) * 2014-12-05 2015-03-25 宁波新尚智能电气有限公司 Nor Flash-based regional cycle storage method
CN105389376A (en) * 2015-11-18 2016-03-09 武汉微创光电股份有限公司 Contiguous block based non-fragmentation multimedia data storage method and system
CN105389376B (en) * 2015-11-18 2020-01-03 武汉微创光电股份有限公司 Fragmentation-free multimedia data storage method and system based on continuous blocks
CN107391388A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 A kind of method and apparatus that data storage is carried out based on instant messaging
CN107562766A (en) * 2016-07-01 2018-01-09 杭州海康威视数字技术股份有限公司 A kind of data file wiring method, apparatus and system
CN106294213A (en) * 2016-08-02 2017-01-04 芯启源电子科技有限公司 Storage device, electronic equipment and buffer management method
CN106294213B (en) * 2016-08-02 2019-07-16 芯启源电子科技有限公司 Storage device, electronic equipment and buffer management method
CN106293532A (en) * 2016-08-10 2017-01-04 广东佳禾声学科技有限公司 A kind of Flash data storage method
CN107506308A (en) * 2017-06-30 2017-12-22 杭州旗捷科技有限公司 A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment
CN107861891A (en) * 2017-11-14 2018-03-30 郑州天迈科技股份有限公司 Audio/video data access method for public transport vehicle-mounted hard disk
CN108228095A (en) * 2017-12-15 2018-06-29 中国航空工业集团公司西安飞行自动控制研究所 A kind of method that real time information record is carried out based on Flash
CN108228095B (en) * 2017-12-15 2021-02-09 中国航空工业集团公司西安飞行自动控制研究所 Method for recording real-time information based on Flash
CN109002399A (en) * 2018-07-09 2018-12-14 北京智芯微电子科技有限公司 The method of embedded device logout
CN109002399B (en) * 2018-07-09 2021-05-18 北京智芯微电子科技有限公司 Method for recording embedded equipment event
CN109634919A (en) * 2018-10-16 2019-04-16 西北铁道电子股份有限公司 A kind of file management system
WO2020102955A1 (en) * 2018-11-20 2020-05-28 浙江宇视科技有限公司 Monitoring video storage method and apparatus, and video storage device
CN109783321B (en) * 2019-01-24 2022-09-23 深圳市景阳信息技术有限公司 Monitoring data management method and device and terminal equipment
CN109783321A (en) * 2019-01-24 2019-05-21 深圳市景阳信息技术有限公司 Monitoring data management method, device, terminal device
CN110008179B (en) * 2019-04-02 2023-06-16 深圳创维汽车智能有限公司 File storage method, automobile data recorder and readable storage medium
CN110008179A (en) * 2019-04-02 2019-07-12 深圳创维汽车智能有限公司 File memory method, automobile data recorder and readable storage medium storing program for executing
CN110767304A (en) * 2019-09-25 2020-02-07 广东宝莱特医用科技股份有限公司 Method and device for circularly storing data for hemodialysis device
CN111125427A (en) * 2019-12-26 2020-05-08 浪潮电子信息产业股份有限公司 Video file reading method and device, electronic equipment and medium
CN113127415A (en) * 2019-12-31 2021-07-16 浙江宇视科技有限公司 Method, device, medium and electronic equipment for processing real-time stream file
CN113127415B (en) * 2019-12-31 2024-02-27 浙江宇视科技有限公司 Real-time stream file processing method, device, medium and electronic equipment
CN111382122A (en) * 2020-03-11 2020-07-07 杭州涂鸦信息技术有限公司 File management system and method for multi-channel network camera sub-equipment
CN111382122B (en) * 2020-03-11 2024-01-30 杭州涂鸦信息技术有限公司 File management system and method for multi-path network camera sub-equipment
CN114153399A (en) * 2021-12-07 2022-03-08 四川云从天府人工智能科技有限公司 Data storage method, device, control device and medium of storage system
CN114153399B (en) * 2021-12-07 2023-10-20 四川云从天府人工智能科技有限公司 Data storage method, device, control device and medium of storage system
CN117453632A (en) * 2023-12-25 2024-01-26 杭州计算机外部设备研究所(中国电子科技集团公司第五十二研究所) Data storage method and device
CN117453632B (en) * 2023-12-25 2024-04-12 杭州计算机外部设备研究所(中国电子科技集团公司第五十二研究所) Data storage method and device

Also Published As

Publication number Publication date
CN102508784B (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN102508784A (en) Data storage method of flash memory card in video monitoring equipment, and system thereof
US7673105B2 (en) Managing memory pages
CN102541983B (en) Method for synchronously caching by multiple clients in distributed file system
CN100541455C (en) Reduce page or leaf in the system of use demand paging technique and replace a time method and an equipment
CN102158349B (en) A kind of log management apparatus and method
US11314689B2 (en) Method, apparatus, and computer program product for indexing a file
CN101916290B (en) Managing method of internal memory database and device
CN104115133A (en) Data migration for composite non-volatile storage device
CN101692252B (en) Method for distributing and reclaiming idle blocks of file
CN103246616A (en) Global shared cache replacement method for realizing long-short cycle access frequency
CN104011689A (en) Nonvolatile memory wear management
CN103996412A (en) Power-fail protection method applied to intelligent-card nonvolatile memories
CN116010299B (en) Data processing method, device, equipment and readable storage medium
CN111708894B (en) Knowledge graph creation method
CN104504076A (en) Method for implementing distributed caching with high concurrency and high space utilization rate
CN110781016A (en) Data processing method, device, equipment and medium
CN103473258A (en) Cloud storage file system
CN108647278B (en) File management method and system
CN102203737B (en) Method and device for multithread to access multiple copies
CN115079957B (en) Request processing method, device, controller, equipment and storage medium
KR101465426B1 (en) Extent mapping flash device
CN108664578B (en) File circulating storage method and system
JP2013196155A (en) Memory system
CN112068948B (en) Data hashing method, readable storage medium and electronic device
CN109634514B (en) Method and system for reading and writing data of chip memory

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