CN1614688A - Monitoring data file processing method and hard disk inspecting method based on hard disk - Google Patents
Monitoring data file processing method and hard disk inspecting method based on hard disk Download PDFInfo
- Publication number
- CN1614688A CN1614688A CN 200410025760 CN200410025760A CN1614688A CN 1614688 A CN1614688 A CN 1614688A CN 200410025760 CN200410025760 CN 200410025760 CN 200410025760 A CN200410025760 A CN 200410025760A CN 1614688 A CN1614688 A CN 1614688A
- Authority
- CN
- China
- Prior art keywords
- monitor data
- data file
- hard disk
- storage
- file
- 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
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A detection and process method of monitoring data file based on hardware includes setting up storage format for monitoring data file, storing the file, generating normal data and priority level data, detecting hardware on fixed time, carrying out priority level data index at time of monitoring data file being refreshed and then writing in new monitoring data file.
Description
Technical field
The present invention relates to digital supervision technology, relate in particular to the method for in digital monitor system, the monitor data file of being stored in the hard disk effectively being handled according to the priority of monitor data file based on hard disk.The invention belongs to the electronic equipment class.
Background technology
Made full use of the advantage of computer technology, image Compression technology and multimedia technology based on the digital monitor system of hard disk, made it embody a concentrated reflection of digitizing and networked two great development trend in the current monitoring field.Because digital monitor system not only has the good ratio of performance to price, but also has the good network advantage, just progressively replace traditional simulation monitoring technology, be widely used in various Industry Control, building monitoring, bank's security, storage monitoring, spot dispatch and multiple occasions such as various video conference and long-distance education.
Find by literature search, disclosed a kind of automatic monitored control system in the utility model patent of " the remote multi-media automatic monitored control system " of people such as Zhang Yundong application (on Dec 9th, 2002 application and on February 11st, 2003 are open, Chinese patent publication number No.2603578).Disclosed system can obtain the information of image or sound automatically and can carry out data transmission automatically when alarm condition takes place.Yet this system fails to disclose the management method that hard disk is counted the monitor data file in the self-checking system.
As everyone knows, at present, employed digital monitor system has possessed the multiple spot of realizing emphasis occasion or key area the deploy to ensure effective monitoring and control of illegal activities function and the performance of monitoring simultaneously in various occasions, and unit can realize 16 to 32 the tunnel even the more monitoring of real-time video and audio frequency multichannel the time at most.Yet, according to existing Flame Image Process and compress technique, for example, the compression coding technology of MPEG-4, single-frame images is about 2KB-4KB, the formed data capacity of per hour depositing is about 180MB-720MB after the compressed coding of image, and according to different warning settings and image compression encoding situation, the deposit data capacity of every day is about 3GB-120GB.This shows, exist at the data capacity of depositing like this under the situation of big great disparity just to possess the file management method of monitor data.
Yet, the mode of circulation management is adopted in file management in the hard disk supervisory system at present mostly, it promptly is benchmark with time, when hard disk has been filled with the monitor data file, just delete the file that forms the earliest in time automatically, file with up-to-date formation deposits on the hard drive space that just has been available simultaneously, to reach the circulation storage in hard-disc storage space.Obviously, the document management mode of this monitor data can't be distinguished the value or the importance of deposit data file at all, can only finish in the system monitor data file delete simply and write storage.But, in actual applications, the time regular meeting appear at the data content of being deposited in a certain period and have different value or importance.Therefore, concerning a condition and the digital monitor system under the state that is in automatic control, just wishing can be under limited data space capacity (although hard disk of the vast capacity that has adopted), and energy automatic storage as much as possible and preservation have the monitor data that higher monitoring is worth.For example, in general, in the supervisory system of building sub-district, from the angle of safety and protection monitoring, in one day monitor data, often can be much larger than the deposit data content of the abnormal conditions that occurred daytime to the monitoring value or the importance of the deposit data content of the abnormal conditions that occurred night.In the supervisory system of banking system, the monitoring value of the deposit data content under the different condition or importance can be much larger than the value or the importance of the deposit data under the static situation; Or the like.That is to say that the deposit data content that the emergency situations that need monitor is produced when taking place can have higher monitoring and be worth, by contrast, will be much smaller in the monitoring value of the deposit data content of not reporting to the police generation or reporting to the police not serious.Therefore, only determine according to the generation time of deposit data file whether the deletion of a monitoring file obviously can not be adapted at preserving as far as possible under the limited hard disc storage capacity demand of the monitor data file with higher monitoring value.Especially, in multichannel (16 tunnel-32 tunnel, even multichannel more) in the hard disk supervisory system, have the various warning associatings characteristics of monitoring simultaneously, its monitor data amount very big (often being referred to as mass data), and the memory capacity space of hard disk is limited than data volume all the time, and monitor data is filled with hard disk (even if vast capacity hard disk) soon often.In this case, just must judge more accurately the memory priority level of the monitor data of being deposited in the digital monitor system based on hard disk, and according to the memory priority level of monitor data is carried out automatic deletion, covering and the reservation of file successively, so that under the condition of limited hard disc data capacity, effective preservation of monitor data file and effective use of hard disk are provided, thereby further improve the performance and the use value of hard disk digital monitor system.
Summary of the invention
One of technical issues that need to address of the present invention are to provide a kind of disposal route of data file of the digital monitor system based on hard disk, thus to overcome prior art because can only be benchmark with time, be confined to cycle detection, monitor data and can't characterize monitoring content and be worth and cause and can't distinguish, lose easily important monitor message and can not efficiently utilize the defectives such as the finite space of hard disk different importance monitoring contents.
Technical method at above-mentioned technical matters comprises step:
1), creates the file of monitor data file according to the monitor data file memory format;
2) acquisition monitoring data, and according to storage format the monitor data file is saved on the hard disk;
3) general information and the memory priority level information of extraction and preservation monitor data file;
4) regularly hard disk is detected, whether satisfy the storage of new monitor data file with the residual memory space of confirming hard disk; Can satisfy the storage of new monitor data file as the remaining space of hard disk, then return the 2nd) step, otherwise then continue next step;
The memory priority level information of the monitor data file that is produced when 5) regularly detecting according to hard disk, successively from low past high deletion one by one monitor data file in the past, can satisfy the storage demand that writes new monitor data file until the hard disk residual memory space, wherein, in the deletion processing procedure of monitor data file based on priority, the pairing memory priority level of each monitor data file changes its memory priority value of series along with the transition of time,, generate priority update information that is.
Earlier principle of the present invention is described.Monitor data file based on the multi-path digital supervisory system of hard disk can be divided into two parts: part is the monitor data content from each monitoring client, and another part is the message part corresponding to the monitor data content.Monitor data and data message are stored in respectively in two zoness of different in hard disc data storehouse, the zone of storage monitor data can be referred to as the data file zone, and the zone of storing data information is referred to as the data message zone.The storage format of monitor data file in the data area is tree-shaped file.When storage file, under initial fdisk (this subregion logically be next subregion of system's place subregion), be the tree-shaped file of a monitor data of sign establishment at first with time.All real-time monitor datas can defined the filename form deposit in the file of having created, wherein the form of being named of monitor data file can be in real time: date Hour Minute Second place, and the system time of temporal information wherein when to be exactly this document generate, the title of this monitor data file has constituted the general information of this monitor data file.Therefore, the general information of described monitor data file can comprise the when and where of each monitoring file, and the time comprises year, month, day, hour, min, second etc.Based on foregoing description, in storage monitor data file, not only produce the general information that characterizes this monitor data document creation when and where, also produce the various factors of the storage value that characterizes this monitor data file, embody the precedence information of the monitoring value and significance of this monitor data file.This precedence information can comprise control model, for example, manual video recording pattern, warning video recording pattern and timing video recording pattern, manually video recording is the video recording of artificially being opened or closing according to monitored object by the user, usually this video recording has higher monitoring value, and it should have higher storage and value for preservation.Report to the police video recording usually by the video recording that alert event excited and started, and the video recording of reporting to the police also has higher monitoring often and is worth, and often wherein most of monitor data content should have higher storage and value for preservation.Regularly video recording generally is the video recording of the set time period being opened or closing according to the user by supervisory system, than the manual video recording and the video recording of reporting to the police, this monitoring of regularly recording a video is worth has bigger changeability, so the value of its storage and preservation depends primarily on the content of video recording data.Usually can decide the storage of this monitor data file to be worth and its value for preservation according to the data volume of the data of regularly recording a video.
The associated storage precedence information that can extract and produce each monitor data file according to the producing method and the condition of monitor data file.The memory priority level of monitor data file can adopt following formula to calculate:
PRI=1-(R
n1×M
n2×F
n3×T
n4×H
n5) (1)
In the formula: PRI represents monitor data file storage priority, and just the priority of monitor data is characterizing the time span tolerance that the monitor data file need be preserved; This parameter also is to determine that when hard disk detects a monitor data file need continue the parameter of reserving degree simultaneously; R, M, F, T, H can be defined as the parameter of the storage value of this monitor data file of various signs, according to the most common monitoring content, can be the infrared alarm parameter as R, its meaning be in this monitoring file production process (file is from producing to the whole process of closing that is filled with) when comprising infrared alarm to the influence of this monitoring File Privilege; In like manner, M can be the motion alarm parameter, and its meaning is to the influence of the memory priority level of file when motion alarm occurring; F can be the smog alarm parameter, and its meaning is to the influence of the memory priority level of file when smog alarm occurring; T can be the temperature alarming parameter, be expressed as when grade too high or too low for temperature occurring and send temperature alarming when unusual influence to the memory priority level of file, H can for the humidity alarm parameters just when the warning that the variation that humidity occurs causes to the influence of the memory priority level of file, above-mentioned parameter numerical value can define its numerical value according to the character of alert event by the user; And n1, n2, n3, n4 and n5 are respectively the number of times of the represented warning of each parameter of R, M, F, T and H of correspondence in a monitoring file.
PRI memory priority level information and other general information of file (document creation time, file path etc.) of calculating the monitor data file that obtains according to formula (1) write the data message zone in the hard disc data storehouse in the lump, in order to the usefulness of retrieval.In various practical applications, various parameter meanings such as R, M, F, T and H can be adjusted with the application scenario according to actual needs to some extent, and their pairing alert events also change the influence degree of the memory priority level of monitor data file thereupon to some extent.And, because the type of alarm that the practical situations practical application is adopted can be incomplete same, so the application of formula (1) also can have popularity, the setting of number of parameters is not restricted to above-mentioned condition, can increase or reduce by various different requirements.
In document handling method based on retrieval, deletion and the covering of the monitor data file of priority, wherein, the variation of its memory priority value of series will take place along with the variation of time in the pairing memory priority level of each monitor data file, be the variation of PRI value, the recursion update calculation formula of monitor data File Privilege is:
In the formula: PRI
OldFor the monitoring document data bank upgrades the PRI value of each file before, and PPI
NewBe the PRI value of database after upgrading; Of paramount importance in this formula is parametric t, wherein t
1Be the current time in system, t
0Be the document creation time, can before upgrading, obtain in the pairing PRI field the database, and T represent sense cycle;
The generation of parameter is intended to show that the priority separately of monitor data file should reduce with the passing of time and constantly, and its degree that reduces also should be in time growth and increase gradually, this computing formula can effectively prevent in the process of retrieval and deletion monitor data file under special circumstances when All Files PRI value is all identical and the deletion action to DISK to Image that causes, because the time that each monitor data file produces is different, the degree of its change can be not just the same yet.
Another technical matters of solution required for the present invention is to provide a kind of hard disk detection method after above-mentioned monitor data file with priority characteristic is set up.
Technical scheme at above-mentioned technical matters may further comprise the steps:
1. enter the hard disk testing process;
2. determine the memory capacity space of the required hard disk of storage monitor data file according to the monitor data file flow and the ratio of the size of set monitor data file;
3. obtain the partition holding remaining space in hard disk;
4. judge that whether the hard disk remaining space is greater than required storage space;
5., carried out for the 12nd step, if less than required storage space then carry out next step if the hard disk remaining space is greater than required storage space;
6. obtain the remaining space of other partition holdings in the hard disk;
7. judge that whether the hard disk remaining space is greater than required storage space;
8., carried out for the 12nd step, if less than required storage space then carry out next step if the hard disk remaining space is greater than required storage space;
9. judge whether to have detected all data storage subregions;
10. if do not detected all data storage subregions, then change the partition holding drive, then then carried out for the 6th step, obtain the remaining space of the partition holding in the hard disk that changes behind the drive, if detected all data storage subregions, then carry out next step;
11. according to the computing formula and the priority factor time shift recursion update calculation equation of monitor data file storage priority factor, the minimum monitor data file of deletion priority, priority factor produce formula and are: PRI=1-(R
N1* M
N2* F
N3* T
N4* H
N5), wherein PRI represents the priority of monitor data, R, M, F, T, H are for being various alarm parameters, and n1, n2, n3, n4 and n5 are respectively the corresponding represented alarm times of each parameter of R, M, F, T and H in a monitoring file, and priority factor time shift recursion update calculation formula is:
PRI
OldFor the monitoring document data bank upgrades the PRI value of each file before, PRI
NewBe the PRI value of database after upgrading, t
1Be the current time in system, t
0Be the document creation time, T represents sense cycle;
Write as subregion 12. determine the monitor data file, waited for that hard disk detects next time.
The invention has the beneficial effects as follows: compared with prior art, this method can be at the mass memory of digital monitor system audio-video monitoring data and under the relatively limited reality of system disk capacity (being the vast capacity hard disk), realize the optimization intelligent management of hard disk monitor data file according to the memory priority level of the set monitor data of monitor data file, solved effectively in the existing digital monitor system all deposit data are all put on an equal footing and only carried out same treatment and can't carry out individual character and handle, thereby fail effectively to be retained in most worthy in the identical time cycle and really need the problem of the monitor data file that the long period keeps.This method can be set the priority of specific file according to the demand of monitoring, and have the higher monitor data representation of file of priority and can have the privilege of preserving the long period, otherwise, have the lower representation of file of priority and only have short characteristic of holding time.The priority setting of monitor data file can provide the relative storage of monitor data file to be worth effectively, and can utilize the characteristic and the function of this priority, when guaranteeing to preserve the costly monitor data of storage as much as possible, strengthen video time, prolong the system monitoring time, thereby realize optimization intelligent management the monitor data file of hard disk supervisory system.This method also can realize the management of monitor data file effectively according to the information of monitor data File Privilege, thereby under the situation in limited hard disc storage capacity space, preserve the costly monitor data of storage as much as possible, thereby more effectively improve the utilization factor of hard disk, with the optimization intelligent management of the monitor data file of realizing the hard disk supervisory system.
Description of drawings
Fig. 1 is according to the process flow figure of one embodiment of the invention based on the monitor data file of memory priority level;
Fig. 2 is the tree-like storage form of monitor data file according to an embodiment of the invention;
Fig. 3 is the Database field table of monitor data file according to an embodiment of the invention;
Fig. 4 is according to the method flow diagram of one embodiment of the invention execution based on the hard disk detection of monitor data file storage priority.
Fig. 5 is for writing the method flow diagram of new monitor data file after based on the original monitor data file of memory priority level information deletion again according to one embodiment of the invention;
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is elaborated.Going through of following examples only is owing to deepen further understanding of the present invention, be not the present invention is limited to following
In the scope of embodiment.
As Fig. 1, shown the foundation and the disposal route of monitor data file.When setting up the monitor data file for the first time, under initial fdisk, be the tree-shaped file that sign is created a monitor data at first with time, acquisition monitoring data then, and according to storage format the monitor data file is saved on the hard disk.As Fig. 2, the storage format that has shown the monitor data file that has memory priority level information according to the present invention, detailed process is promptly: when the digital monitor system (not shown) collects monitor data, according to monitoring mode (for example, manually, warning and automatic mode) and the setting and the requirement of alert event, monitor data is sent to processing unit (not shown) in the digital monitor system with the form of packet, and enters into the storage operation of monitor data file.According to the time, place and the various alert event that produce with monitor data that from supervision packet, are obtained relevant information produce the store path of this monitor data file, for example, in embodiments of the present invention, with the time is that folder name is created a big file, and to create with the month below this big file be the file of folder name again, and then to create one more again below the month file be the file of folder name with the date, and also creating with the place code name below the date file is the file of folder name.All real-time monitor datas are just deposited in the file of being created with the filename form of defined, wherein the form of being named of monitor data file is in real time: date Hour Minute Second place, and the system time of temporal information wherein when to be exactly this document generate, the title of this monitor data file has constituted the general information of this monitor data file.For example, in the present embodiment, but the monitor data file called after 200306142030A that produced 20: 30 on the 14th June in 2003 at place A; But 20: 30 on the 14th June in 2003 is number 20: 30 monitor data file called after 200306142030n in place n generation on ground, shown in the right figure among Fig. 2.In the multi-path monitoring data storage that is collected in corresponding file, also produced the precedence information of the storage value that characterizes this monitor data file, Fig. 3 has shown the tabulation of sign according to the priority information of the monitoring value of embodiment of the invention monitor data file.The generation of this precedence information mainly comes from alert event.Certainly also can monitor the producing method and the condition of file according to this, for example, manually video recording, warning are recorded a video and regularly video recording, produce the File Privilege of each relevant monitor data file.For example report to the police video recording usually by video recording that alert event excited and started, wherein alert event can comprise: infrared detection, motion detection, Smoke Detection, temperature detection, Humidity Detection, ultrasonic distance detecting or the like, its warning is generally also relevant with infrared alarm number of times, motion alarm number of times, smog alarm number of times, temperature alarming number of times, humidity alarm times, ultrasonic distance detecting number of times etc.Therefore, the video recording of reporting to the police also has higher monitoring often and is worth, and often wherein most of monitor data content should have higher storage and value for preservation.The 3rd step, the general information and the memory priority level information of extracting and preserving the monitor data file, the memory priority level FACTOR P RI of embodiment of the invention monitor data file adopts following formula to calculate:
PRI=1-(R
n1×M
n2×F
n3×T
n4×H
n5)
The numerical range of above-mentioned parameter R, M, F, T, H is about 0-1, and is lower near 1 priority, and more then priority is higher near 0.In addition, according to the embodiment of the invention, can under the different application occasion of digital monitor system and condition, different alert events or project be set, for example, in public for preventing that sudden accidents such as fire can the smog alarm incident be set to higher priority factor usually, yet, in building safety and protection monitoring system, usually can be infrared or the motion alarm incident be set to higher priority factor.In addition, can also and need at different occasions, being provided with the place is the parameter of priority, and perhaps being provided with the operator scheme is the parameter of priority, or the like.When setting up new monitor data file, the pairing n1 of this document, n2, n3, n4 and n5 are initialized as 0 respectively, later on every appearance is once reported to the police in the stream of the monitor data in this monitor data file extent, and corresponding frequency n just increases by 1, up to being filled with at file when closing.
In another embodiment of the present invention, formula PRI=1-(R
N1* M
N2), adopt infrared alarm and two kinds of modes that type of alarm combines of motion detection warning in the expression multichannel hard disk digital monitor system; When R=1 and M=0.1 and alert event number of times are about 1, PRI=0.9 then, if instead the alert event number of times is 2, PRI=0.99 then, obviously, the latter's priority factor is apparently higher than the former.Equally, in according to another embodiment of the present invention, formula PRI=R
N1* M
N2* A
N3A represents the detection site of monitor data file in the formula, this formula can be represented the mode that adopted infrared alarm and motion detection and place preferentially to combine in a certain digital monitor system, and obviously, the calculating of this priority factor has fully taken into account the difference in monitoring place.In addition, also has among the embodiment formula PRI=R of the present invention
N1* mod
N2, in the formula: mod represents the priority factor of operator scheme, this formula can be represented in a certain digital monitor system mode that adopts infrared alarm and operator scheme to combine, to have demonstrated fully the importance of operator scheme; With this in like manner, can be formed with the array mode of number of different types monitor data file storage priority according to various application scenarios and service condition.It can constitute the Database field table of the monitor data file of disparity items and size according to different priority combinations, as shown in Figure 3, the field name of field 1-8 is respectively FileID, Value, Rnumber, Mnumber, Fnumber, Tnumber, Hnumber, FilePath, CreateDate, FileName, and functional description is respectively file ID, File Privilege coefficient, infrared alarm number of times, motion alarm number of times, smog alarm number of times, temperature alarming number of times, humidity alarm times, file path, date created and filename.
According to the embodiment of the invention, the precedence information of various sign monitor data files, for example, can comprise, but be not restricted to the general information of infrared alarm number of times, motion alarm number of times, smog alarm number of times, humiture alarm times and monitor data file, for example, file path, document creation incident and file name or the like are stored in the message part in the database in the lump.Precedence information also can comprise the precedence information of place and operator scheme.
In the document handling method based on retrieval, deletion and the covering of the monitor data file of priority, the recursion update calculation formula of monitor data File Privilege is:
Under various different application occasions and service condition, the variation of great disparity can take place in the deposit capacity of monitor data file.For example, in building safety and protection monitoring system, regular meeting is far longer than the data capacity of the monitor data file on Sunday at ordinary times during the data capacity of the monitor data file of holiday at weekend.Therefore, in order to guarantee effective storage of monitor data file, in the storing process of file, just must guarantee that the data designated store subregion of hard disk has the storage that sufficient remaining space satisfies the monitor data file.
The 4th step, regularly hard disk is detected, whether satisfy the storage of follow-up monitor data file with the residual memory space of confirming hard disk; Enough store new monitor data file to be written as the remaining space of hard disk, then can gather new data file, and be saved on the hard disk, otherwise then will carry out the judgement of priority.In embodiments of the present invention, supervisory system is provided with a hard disk assay intervals period T det.Whether supervisory system hard disk assay intervals period T det realization at interval needs the monitor data file is carried out deletion action with decision to the detection of hard disk remaining space.
The 5th step, when needs upgrade in the process of monitor data file, discovery hard drive space deficiency, then need on the basis of original hard drive space, all the monitor data files on the hard disk before upgrading to be carried out the precedence information retrieval, need carry out deletion action, then delete in the past monitor data file successively according to priority order from low to high, write new monitor data file then, in delete procedure, the variation of its memory priority value of series also can take place along with the variation of time in the pairing memory priority level of each monitor data file, promptly generates priority update information.
Fig. 4 has shown the process flow diagram of the hard disk testing process of the monitor data file that has memory priority level information according to the present invention.Enter the hard disk testing process at step S401.At first, at step S402, recently determine the needed hard disc storage capacity of this monitor data file of storage space according to the size (for example, the size of monitor data file can be set at 10 minutes) of the flow and the set monitor data file of monitor data file.In general, smaller or when motion detection has the higher priority coefficient when compression of images, the flow of monitor data file is just very big, otherwise then flow is just little.At step S403, obtain the remaining space of the partition holding that when hard disk detects, is obtained, but but the residue storage space of the partition holding that this residue storage space numerical value is the hard disk that carried out according to the every interval of digital monitor system cycle fixed time to be produced in detecting.Subsequently in step S404, but carry out the mutual comparison of hard disk residue storage space and the required storage space of monitor data file, can guarantee that the monitor data file is intactly stored and be stored in hard disk with definite.If at decision steps S404, determine to be difficult to guarantee the safe storage and the preservation of monitor data file, then enter step S405, to obtain the remaining space of another partition holding.Otherwise, if obtain definite results, just determine that then the monitor data file can write partition holding, and enter wait hard disk detection next time, shown in step S410 at step S404.At step S406, but repeat the mutual comparison that hard disk remains storage space and the required storage space of monitor data file; If but the residue storage space can not satisfy the required storage space of monitor data file, then enter step S407, with the detection of confirming whether all partition holdings all to have been carried out; If also do not finish detection, just change step S408 over to all partition holdings.At step S408, change the drive of partition holding, so that repeat the step of S405.Otherwise,, then just change step S410 over to if the result who compares at step S406 is sure.At step S410, determine that the monitor data file can write partition holding, and enter wait hard disk detection next time.Yet,, confirm that all subregions all detect, and the hard disk remaining space enters step 409 less than the required storage space of monitor data file if at step S407.At step S409, accounting equation (1) and priority factor time shift recursion update calculation equation (2) according to aforementioned monitor data file storage priority factor, delete the minimum monitor data file of its memory priority level FACTOR P RI, thereby continue the monitor data file that maintenance has higher storage priority.That is to say, under the conflicting situation of limited hard-disc storage space and magnanimity supervising data storage, prolong the preservation of monitor data file as much as possible with higher monitoring value.In step 409, but discharged storage space, its back changes step S410 over to, enters the write operation flow process of monitor data file.
As Fig. 5, shown the process flow diagram that writes monitor data file with memory priority level information.After the digital monitor system (not shown) collected monitor data, supervisory system just entered the processing procedure of monitor data file.At this moment, the watchdog routine of supervisory system is moved two threads simultaneously, the storage and the preservation of one of them thread execution monitor data file, and the hard disk of another thread execution supervising data storage hard disk detects.Enter the flow process that writes of monitor data file at step S501.In step 502, at first gather the supervision packet of self-monitoring system.Subsequently,, from the supervision packet of input, obtain the general information of this monitor data file at step S503, for example, during the date and place.And general information is created the file of monitor data as filename in view of the above, shown in step S504.At step S505, the monitor data that is collected is carried out the file storage operation, these data are deposited in the file corresponding to its filename.Thereupon,, carry out the judgement of file storage, whether finish storage to determine the monitor data file at step S506.If do not finish storage, just change step S502 over to, continue repeating step S502 to S505, to finish the storage of monitor data file.Otherwise, at step S506, the storage of the monitor data file that has been through with.At this moment, just at step S507,, produce the precedence information of relevant monitor data file according to the state of the relevant alert event of this monitor data file production process.Thereupon, at step S508, the general information and the precedence information of combination monitor data file produce the priority factor of this monitor data file, and store this information.Accept,, close this monitor data file,, wait for the processing procedure that writes next time to finish the storage of monitoring file at step S509.
Claims (10)
1. disposal route based on the monitor data file of the digital monitor system of hard disk is characterized in that this method may further comprise the steps:
1), creates the file of monitor data file according to the monitor data file memory format;
2) acquisition monitoring data, and according to storage format the monitor data file is saved on the hard disk;
3) general information and the memory priority level information of extraction and preservation monitor data file;
4) regularly hard disk is detected, whether satisfy the storage of follow-up monitor data file with the residual memory space of confirming hard disk; Can satisfy the storage of follow-up monitor data file as the remaining space of hard disk, then return the 2nd) step, otherwise then continue next step;
The memory priority level information of the monitor data file that is produced when 5) regularly detecting according to hard disk, successively from low past high deletion one by one monitor data file in the past, can satisfy the storage demand that writes new monitor data file until the hard disk residual memory space, wherein, in the deletion processing procedure of monitor data file based on priority, the pairing memory priority level of each monitor data file changes its memory priority value of series along with the transition of time,, generate priority update information that is.
2. monitor data document handling method according to claim 1 is characterized in that the monitor data file that said write is new is further comprising the steps of:
1) enters the monitor data file and write flow process;
2) collection comes the supervision packet of self-monitoring system;
3) from the supervision packet of input, obtain the general information of this monitor data file, and create the file of monitor data according to general information as filename;
4) monitor data that collects is carried out the file storage operation according to certain storage format;
5) file storage is judged whether finish storage,, is got back to the 2nd if storing process does not finish to determine the monitor data file) step continuation acquisition monitoring packet, if finished the storage of monitor data file, carry out next step;
6), produce the precedence information of relevant monitor data file according to the correlation behavior of monitor data file production process;
7) general information and the precedence information with the monitor data file makes up, and produces the priority factor of this monitor data file, and stores this information;
8) close this monitor data file,, wait for processing procedure next time to finish the storage of monitoring file.
3. monitor data document handling method as claimed in claim 1 or 2, it is characterized in that: described storage format is tree-shaped folder structure.
4. as the disposal route of monitor data file as described in the claim 3, it is characterized in that: described precedence information is the various factors that the storage that characterizes this monitor data file is worth, and comprises manual video recording pattern, warning video recording pattern, timing video recording pattern, place and operator scheme.
5. as data file disposal route as described in the claim 3, it is characterized in that: the precedence information of described monitor data file can pass through formula PRI=1-(R
N1* M
N2* F
N3* T
N4* H
N5) form, wherein: PRI is a priority factor, R, M, F, T, H are defined as the parameter that the alert event storage of this monitor data file of various signs is worth respectively, and n1, n2, n3, n4 and n5 are illustrated respectively in the alarm times that each parameter of R, M, F, T and H institute corresponding in the monitor data file represents respectively.
6. as monitor data document handling method as described in the claim 5, it is characterized in that: described alert event comprises that infrared alarm, motion alarm, smog alarm, humiture report to the police.
7. monitor data document handling method according to claim 1, it is characterized in that: the priority update information of described monitor data file is by upgrading recursion formula
Form, wherein: PRI
OldFor the monitoring document data bank upgrades the PRI value of each file before, PRI
NewBe the PRI value of database after upgrading, t
1Be the current time in system, t
0During for document creation, T represents sense cycle.
8. hard disk detection method after the monitor data file with precedence information is set up, it is characterized in that: this method may further comprise the steps:
1) enters the hard disk testing process;
2) determine the required memory capacity space of expecting firmly of storage monitor data file according to the monitor data file flow and the ratio of the size of set monitor data file;
3) obtain partition holding remaining space in hard disk;
4) judge that whether the hard disk remaining space is greater than required storage space;
5) if the hard disk remaining space greater than required storage space, carries out the 12nd) step, if less than required storage space then carry out next step;
6) obtain the remaining space of other partition holdings in the hard disk;
7) judge that whether the hard disk remaining space is greater than required storage space;
8) if the hard disk remaining space greater than required storage space, carries out the 12nd) step, if less than required storage space then carry out next step;
9) judge whether to have detected all data storage subregions; Storage space is then carried out next step;
10) judge whether to have detected all data storage subregions;
11) if do not detected all data storage subregions, then change the partition holding drive, then then carry out the 6th) step, obtain the remaining space of the partition holding in the hard disk that changes behind the drive, if detected all data storage subregions, then carried out next step;
12) according to the accounting equation and the priority factor time shift recursion update calculation equation of monitor data file storage priority factor, delete the minimum monitor data file of priority;
13) determine that the monitor data file write as subregion, wait for that hard disk detects next time.
9. as hard disk detection method as described in the claim 8, it is characterized in that: described priority factor produces formula and is: PRI=1-(R
N1* M
N2* F
N3* T
N4* H
N5), wherein: PRI represents the priority of monitor data, and R, M, F, T, H are respectively various alarm parameters, and n1, n2, n3, n4 and n5 are respectively the corresponding represented alarm times of each parameter of R, M, F, T and H in a monitoring file.
10. as hard disk detection method as described in the claim 8, it is characterized in that: priority factor time shift recursion update calculation formula is:
PRI
OldFor the monitoring document data bank upgrades the PRI value of each file before, PRI
NewBe the PRI value of database after upgrading, t
1Be the current time in system, t
0Be the document creation time, T represents sense cycle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200410025760 CN1614688A (en) | 2004-07-05 | 2004-07-05 | Monitoring data file processing method and hard disk inspecting method based on hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200410025760 CN1614688A (en) | 2004-07-05 | 2004-07-05 | Monitoring data file processing method and hard disk inspecting method based on hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1614688A true CN1614688A (en) | 2005-05-11 |
Family
ID=34763376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200410025760 Pending CN1614688A (en) | 2004-07-05 | 2004-07-05 | Monitoring data file processing method and hard disk inspecting method based on hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1614688A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101968967A (en) * | 2010-08-04 | 2011-02-09 | 深圳英飞拓科技股份有限公司 | Prerecording method used for monitoring equipment |
CN102364941A (en) * | 2011-10-26 | 2012-02-29 | 广东威创视讯科技股份有限公司 | Method for storing recorded signals |
CN102945678A (en) * | 2012-11-09 | 2013-02-27 | 中兴通讯股份有限公司 | Storage method and system of video documents and video monitoring device |
CN103220167A (en) * | 2013-03-25 | 2013-07-24 | 中标软件有限公司 | Distributed monitoring system and data storing method thereof |
CN103402067A (en) * | 2013-08-02 | 2013-11-20 | 山东神戎电子股份有限公司 | File value rating-based video coverage method |
CN101554010B (en) * | 2006-11-03 | 2014-01-29 | 维里逊专利及许可公司 | Systems and methods for document control using public key encryption |
CN104572413A (en) * | 2013-10-29 | 2015-04-29 | 上海斐讯数据通信技术有限公司 | Method for storing system logs by electronic equipment and electronic equipment |
CN106060442A (en) * | 2016-05-20 | 2016-10-26 | 浙江宇视科技有限公司 | Video storage method, device and system |
CN107016099A (en) * | 2017-04-10 | 2017-08-04 | 国家电网公司 | The folder space monitoring maintenance system and method for class Unix system server |
CN107578192A (en) * | 2017-10-09 | 2018-01-12 | 中国航空结算有限责任公司 | The operation indicator monitoring method of aviation settlement system |
CN108387794A (en) * | 2018-01-09 | 2018-08-10 | 国网山东省电力公司滨州供电公司 | A kind of electrical energy monitoring system |
CN111125022A (en) * | 2019-11-15 | 2020-05-08 | 浙江大华技术股份有限公司 | Method, device, equipment and storage medium for determining video coverage weight |
CN111443868A (en) * | 2020-03-24 | 2020-07-24 | 北京市遥感信息研究所 | Remote sensing satellite solid memory erasing method and device |
CN113076564A (en) * | 2021-04-13 | 2021-07-06 | 山东北斗云信息技术有限公司 | Hard disk protection method, device and equipment based on Beidou positioning and storage medium |
-
2004
- 2004-07-05 CN CN 200410025760 patent/CN1614688A/en active Pending
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101554010B (en) * | 2006-11-03 | 2014-01-29 | 维里逊专利及许可公司 | Systems and methods for document control using public key encryption |
US8681994B2 (en) | 2006-11-03 | 2014-03-25 | Verizon Patent And Licensing Inc. | Systems and methods for document control using public key encryption |
CN101968967B (en) * | 2010-08-04 | 2012-05-23 | 深圳英飞拓科技股份有限公司 | Prerecording method used for monitoring equipment |
CN101968967A (en) * | 2010-08-04 | 2011-02-09 | 深圳英飞拓科技股份有限公司 | Prerecording method used for monitoring equipment |
CN102364941A (en) * | 2011-10-26 | 2012-02-29 | 广东威创视讯科技股份有限公司 | Method for storing recorded signals |
CN102945678A (en) * | 2012-11-09 | 2013-02-27 | 中兴通讯股份有限公司 | Storage method and system of video documents and video monitoring device |
CN103220167B (en) * | 2013-03-25 | 2016-08-03 | 中标软件有限公司 | A kind of distributed monitoring system and date storage method thereof |
CN103220167A (en) * | 2013-03-25 | 2013-07-24 | 中标软件有限公司 | Distributed monitoring system and data storing method thereof |
CN103402067A (en) * | 2013-08-02 | 2013-11-20 | 山东神戎电子股份有限公司 | File value rating-based video coverage method |
CN103402067B (en) * | 2013-08-02 | 2016-06-08 | 山东神戎电子股份有限公司 | A kind of video recording covering method being worth grading based on file |
CN104572413A (en) * | 2013-10-29 | 2015-04-29 | 上海斐讯数据通信技术有限公司 | Method for storing system logs by electronic equipment and electronic equipment |
CN104572413B (en) * | 2013-10-29 | 2017-11-24 | 上海斐讯数据通信技术有限公司 | A kind of electronic equipment preserves the method and electronic equipment of system journal |
CN106060442A (en) * | 2016-05-20 | 2016-10-26 | 浙江宇视科技有限公司 | Video storage method, device and system |
CN106060442B (en) * | 2016-05-20 | 2020-06-19 | 浙江宇视科技有限公司 | Video storage method, device and system |
CN107016099A (en) * | 2017-04-10 | 2017-08-04 | 国家电网公司 | The folder space monitoring maintenance system and method for class Unix system server |
CN107578192A (en) * | 2017-10-09 | 2018-01-12 | 中国航空结算有限责任公司 | The operation indicator monitoring method of aviation settlement system |
CN108387794A (en) * | 2018-01-09 | 2018-08-10 | 国网山东省电力公司滨州供电公司 | A kind of electrical energy monitoring system |
CN111125022A (en) * | 2019-11-15 | 2020-05-08 | 浙江大华技术股份有限公司 | Method, device, equipment and storage medium for determining video coverage weight |
CN111443868A (en) * | 2020-03-24 | 2020-07-24 | 北京市遥感信息研究所 | Remote sensing satellite solid memory erasing method and device |
CN113076564A (en) * | 2021-04-13 | 2021-07-06 | 山东北斗云信息技术有限公司 | Hard disk protection method, device and equipment based on Beidou positioning and storage medium |
CN113076564B (en) * | 2021-04-13 | 2022-10-14 | 山东北斗云信息技术有限公司 | Hard disk protection method, device and equipment based on Beidou positioning and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11323314B2 (en) | Heirarchical data storage and correlation system for correlating and storing sensory events in a security and safety system | |
US20240250867A1 (en) | Correlation engine for correlating sensory events | |
CN1614688A (en) | Monitoring data file processing method and hard disk inspecting method based on hard disk | |
US7999847B2 (en) | Audio-video tip analysis, storage, and alerting system for safety, security, and business productivity | |
CN101697545B (en) | Security incident correlation method and device as well as network server | |
CN201682559U (en) | Intelligent video analyzing and monitoring pick-up camera | |
CN201993755U (en) | Data filtration, compression and storage system of real-time database | |
CN101055662A (en) | Multi-layer real time forewarning system based on the intelligent video monitoring | |
CN101123721A (en) | An intelligent video monitoring system and its monitoring method | |
CN106033324B (en) | Data storage method and device | |
CN112416872A (en) | Cloud platform log management system based on big data | |
CN104219193B (en) | Security event associative analysis method and system | |
CN103164511A (en) | Method for storage event log to automatically filter repeated jitter data | |
CN103310375A (en) | Intelligent skynet behavior audit analyzing system | |
CN116483810A (en) | Data management method based on public security big data processing technical guidelines | |
CN115022352B (en) | End edge cloud fusion-based segmented side chain data acquisition and storage system | |
CN101645802B (en) | Method and device for controlling contents | |
CN112527887B (en) | Visual operation and maintenance method and device applied to Gbase database | |
CN110377757A (en) | A kind of real time knowledge map construction system | |
EP3816782B1 (en) | Data reconstruction method, apparatus and storage medium | |
CN103401710A (en) | Variance-based firewall abnormal log detection method | |
CN115130994A (en) | Digital city management system | |
CN112182121A (en) | Vehicle-related relationship discovery method, device, equipment and medium | |
CN106649458A (en) | Method and system for detecting file update amount | |
CN112445958A (en) | Big data acquisition and storage system and method based on artificial intelligence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |