CN1560768A - Data collecting and storing method - Google Patents

Data collecting and storing method Download PDF

Info

Publication number
CN1560768A
CN1560768A CNA2004100219833A CN200410021983A CN1560768A CN 1560768 A CN1560768 A CN 1560768A CN A2004100219833 A CNA2004100219833 A CN A2004100219833A CN 200410021983 A CN200410021983 A CN 200410021983A CN 1560768 A CN1560768 A CN 1560768A
Authority
CN
China
Prior art keywords
time
data
collection value
acquisition
alarm
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
CNA2004100219833A
Other languages
Chinese (zh)
Other versions
CN100345144C (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.)
Shandong Lunan Big Data Industry Development Co ltd
Original Assignee
Emerson Network Power 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 Emerson Network Power Co Ltd filed Critical Emerson Network Power Co Ltd
Priority to CNB2004100219833A priority Critical patent/CN100345144C/en
Publication of CN1560768A publication Critical patent/CN1560768A/en
Application granted granted Critical
Publication of CN100345144C publication Critical patent/CN100345144C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The invention is a data gathering and storing method applied to power environment bottom storage, it includes following judging processes: when the difference between the gathered value and the former historical data is more than the storing threshold, then the gathering value and the time in this time and the former values and time are used as the historical data to be stored; when the gathered value enters or leaves warning area for the first time, then the gathered value and time is used as the historical data to be stored. The storing threshold is a set constant. The upper and the lower limits of the warning area have single-side return difference function. Through the settings of the storing threshold and the judging condition of the data gathering and storing method, it can realize the effective balance of effective data and data reducibility in power environment data storing.

Description

Data acquisition and storage means
[technical field]
The present invention is applicable to data collecting field, especially a kind of data acquisition and storage means that is used for dynamic environment.
[background technology]
The algorithm of available dynamic environment data base bottom storage generally be constant duration or etc. variable quantity store at interval, but the characteristic for the dynamic environment data is taken a fancy to, because can there be sudden change in data, change slowly as battery curve, but sudden change sometimes, these algorithms are defective: the constant duration algorithm is easy to control, but the valid data in the possible drop-out time interval, if storage density greatly then reduction of data is good but valid data are few, data may distortion if storage density is little; Though solved the contradiction of valid data amount and reduction of data Deng the range of variables algorithm, can distortion when data are suddenlyd change.
[summary of the invention]
The object of the present invention is to provide a kind of data acquisition and storage means that can realize the active balance of dynamic environment data bottom when storage valid data amount and reduction of data.
The object of the present invention is achieved like this: this data acquisition and storage means comprise the steps:
1) gathers one at interval every preset time and take turns data;
2) will work as the data that time collect and deliver to " when inferior collection value " formation when time acquisition time, and collection value that will be last time and last time acquisition time push " last time collection value " formation;
3) judge whether above-mentioned " when inferior collection value " and " last time collection value " meet storage condition, as meet then should the collection value and to answer acquisition time as the data of up-to-date preservation and push " historical data " formation; Described " judgement " process comprises the steps: 3-1) if when the difference of time collection value and historical data last time greater than storing threshold, then when time collection value and when time acquisition time as history data store.
In a preferred embodiment:
Described " judgement " process also comprises the steps: 3-2) if the difference of working as time collection value and last time collection value, is then worked as time collection value and acquisition time and last time collection value and acquisition time greater than storing threshold all as history data store.
Described " judgement " process also comprises the steps: 3-3) if alarm the district, then work as time collection value and work as time acquisition time also as history data store when time collection value enters.
Described " judgement " process also comprises the steps: 3-4) if work as time collection value leaves warning area, then, time collection value works as time acquisition time also as history data store when reaching.
Judge to work as whether time collection value enters or the method for leaves warning area is the single-side return difference method, that is: enter the alarm district when data just are judged to greater than upper alarm threshold or less than lower alarm threshold; And difference or the data of having only data to subtract each other less than upper alarm threshold and return difference just are judged to leaves warning area greater than lower alarm threshold and return difference sum.
Compared with prior art, the present invention has following advantage: by the hybrid algorithm of storing threshold and time, then can write down the valid data of undergoing mutation, simultaneously also can guarantee storage density and then make data have good reductibility, realize function in finite space stored data as much as possible.
By when time collection value and the difference of last time collection value and the comparison of storing threshold, then can avoid storing the distortion of data; Record enter for the first time or for the first time leaves warning area when time collection value, can have and alarm function preferably.
Because it is very sensitive that dynamic environment enters the alarm district to data, because there is monolateral alarm return difference function in the alarm district, so can avoid writing down more unnecessary alarm data.
[description of drawings]
Fig. 1 is step 3-2 in data acquisition of the present invention and the storage means flow process) principle explanation synoptic diagram.
Fig. 2 is the principle explanation synoptic diagram of monolateral alarm return difference in data acquisition of the present invention and the storage means.
Fig. 3 is the workflow diagram that data acquisition of the present invention and storage means realize Rule of judgment.
[embodiment]
See also Fig. 1, Fig. 2 and Fig. 3, data acquisition of the present invention and storage means are to be used for the dynamic environment data (to comprise temperature, humidity, harmful gas content, dust concentration or the like) bottom storage, the interval of these dynamic environment data is divided into workspace and alarm district, be that data value surpasses predefined certain some E (being called upper alarm threshold) or is lower than predefined certain some D and claims data to enter alarm district when (being called lower alarm threshold), between upper alarm threshold and lower alarm threshold, be called data and enter workspace or data leaves warning area, wherein enter for the first time the data in alarm district or for the first time the data of leaves warning area all be called alarm data, the storage of dynamic environment data bottom also will be stored these alarm datas.
This data acquisition and storage means comprise as the process of judging:
Rule of judgment 1: data are taken turns in collection one (in the present embodiment to be 80 milliseconds) at set intervals, the data that collect are called when time collection value, and should time collection value and deliver to when time collection value formation when time acquisition time, the collection value of the preceding paragraph is called last time collection value, this last time collection value and acquisition time are pushed into the formation of last time collection value, the collection value and the acquisition time of up-to-date preservation are called last time historical data, this last time historical data be pushed into the historical data formation.Section is the time interval of a setting.Storing threshold is the constant that can set according to the physical significance of image data (for example: if what gather is ambient temperature data, then can set threshold values is 2 degrees centigrade, if the data of gathering are humidity datas, then can set threshold values is 5 percent, or the like);
Rule of judgment 2: when the difference of inferior collection value and historical data last time greater than storing threshold then when time collection value and when time acquisition time as history data store;
Rule of judgment 3: when the difference of inferior collection value and last time collection value greater than storing threshold, then when time collection value and acquisition time and last time collection value and acquisition time all as history data store.As shown in Figure 1, the A data are historical data last time, and the B data are last time collection value, and the C data are for when time collection value, if the difference of C data and B data greater than storing threshold, then B, C data are all noted, then data and curves ABC can restore;
Rule of judgment 4: if distinguish when inferior collection value enters alarm, promptly deserving time collection value surpasses predefined upper alarm threshold or is lower than predefined lower alarm threshold, then work as time collection value and acquisition time also as history data store, if when time collection value is to enter the time that the alarm district just needs the record alarm to take place for the first time, if but collection value next time still in the alarm district then can duplicate record, satisfy Rule of judgment 3 as the difference of deserving time collection value and collection value next time, then this twice collection value and acquisition time all need record;
Rule of judgment 5: when inferior collection value leaves warning area, promptly deserve time collection value between upper alarm threshold and lower alarm threshold, then work as time collection value and acquisition time also as history data store, if should the collection value be that leaves warning area just needs record to alarm the time that finishes for the first time, if but collection value next time still not in alarm district then can duplicate record, difference as the collection value of this twice leaves warning area satisfies Rule of judgment 3, and then this twice collection value and acquisition time all need record;
Rule of judgment 6: the historical data that has read can not read next time again.If promptly Cun Chu data were read then needed deletedly, can not be read again, in order to avoid the duplicate record data;
Rule of judgment 7: the earliest historical data is capped if the historical data quantity that does not read surpasses the capacity in historical data district.Because it is violent unusually not read historical data or data variation for a long time, the historical data amount of record may surpass the space of data field, and this Rule of judgment can guarantee that the historical data of data field is up-to-date data all the time;
Rule of judgment 8: the alarm data that has read can not be read next time again; And alarm data also is a historical data simultaneously.Promptly an alarm data will exist in alarm data formation and the historical data formation simultaneously, if be read alarm data one time, then will delete this alarm data in the alarm data formation, but also have in the historical data formation, have only and read historical data again one time, these data just can be deleted from the historical data formation.
Change near the alarm bound at the data acquisition value simultaneously and can produce a lot of unnecessary alarm datas, therefore the bound in this alarm district has alarm return difference function, simultaneously because the dynamic environment data are very sensitive to entering the alarm district, so adopt monolateral alarm return difference, to be data greater than upper alarm threshold just be judged to enters the alarm district, the difference of having only data to subtract each other less than upper alarm threshold and return difference simultaneously just is judged to leaves warning area, promptly just calculates leaves warning area less than return difference point G; Enter the alarm district when data just are judged to less than lower alarm threshold equally, have only data just to be judged to leaves warning area, promptly only just be judged to leaves warning area greater than return difference point F greater than lower alarm threshold and return difference sum.
See also Fig. 3, it is a kind of workflow that data acquisition of the present invention and storage means realize Rule of judgment: 1) receive the data of gathering; 2) as the difference of subtracting each other when time collection value and last time collection value greater than storing threshold, then last time collection value and acquisition time are not more than storing threshold as this difference and then enter next procedure as history data store; 3) monolateral alarm return difference is calculated; 4), then store as alarm data when time collection value and acquisition time, as not being then to enter next step as enter the alarm district when time collection value; 5), then store as alarm data when time collection value and acquisition time, as not being then to enter next step as when time collection value leaves warning area; 6) as the difference of subtracting each other when time collection value and historical data last time greater than storing threshold, then when time collection value and acquisition time as history data store, as this difference be not more than storing threshold then this processing finish and prepare data acquisition next time.Certainly the monolateral alarm return difference in the step 3 is calculated and can be placed on before step 1 or 2, and step 6 also can be changed with step 2, and can realize above-mentioned Rule of judgment equally.
By the hybrid algorithm of storing threshold and time, then can write down the valid data of undergoing mutation, also can guarantee storage density and then make data have good reductibility simultaneously, realized function in finite space stored data as much as possible.By when time collection value and the difference of last time collection value and the comparison of storing threshold, then can avoid storing the distortion of data; Record enter for the first time or for the first time leaves warning area when time collection value, can have good alarm function.Because it is very sensitive that dynamic environment enters the alarm district to data, because there is monolateral alarm return difference function in the alarm district, so can avoid writing down more unnecessary alarm data.
In real data collection and storing process, above-mentioned Rule of judgment does not always need all.Under the prerequisite that does not break away from the present invention program, save some Rule of judgment and determining step and still belong to the scope of protection of the invention.

Claims (9)

1, a kind of data acquisition and storage means is characterized in that comprising the steps:
1) gathers one at interval every preset time and take turns data;
2) will work as the data that time collect and deliver to " when inferior collection value " formation when time acquisition time, and collection value that will be last time and last time acquisition time push " last time collection value " formation;
3) judge whether above-mentioned " when inferior collection value " and " last time collection value " meet storage condition, as meet then should the collection value and corresponding acquisition time push " historical data " formation as the data of up-to-date preservation; Described " judgement " process comprises the steps:
If 3-1) when the difference of time collection value and historical data last time greater than storing threshold, then when time collection value and when time acquisition time as history data store.
2, data acquisition as claimed in claim 1 and storage means is characterized in that described " judgement " process also comprises the steps:
If 3-2) when the difference of time collection value and last time collection value greater than storing threshold, then when time collection value, and reach last time acquisition time all as history data store when time acquisition time and last time collection value.
3, data acquisition as claimed in claim 1 and storage means is characterized in that described " judgement " process also comprises the steps:
If 3-3) alarm the district, then work as time collection value and work as time acquisition time also as history data store when time collection value enters.
4, data acquisition as claimed in claim 1 and storage means is characterized in that described " judgement " process also comprises the steps:
If 3-4) work as time collection value leaves warning area, then, time collection value works as time acquisition time also as history data store when reaching.
5, data acquisition as claimed in claim 1 or 2 and storage means is characterized in that also comprising following determining step: 4) if stored history is read it was deleted.
6, data acquisition as claimed in claim 1 or 2 and storage means is characterized in that also comprising following determining step: 5) the earliest historical data is capped if the historical data amount that does not read surpasses the capacity in historical data district.
7, as claim 3 or 4 described data acquisition and storage meanss, it is characterized in that also comprising following determining step: 6) if distinguish or leaves warning area when time collection value enters alarm, then, also it is deposited in the alarm data formation ought time collection value reaching when time acquisition time is as history data store.
8, data acquisition as claimed in claim 7 and storage means is characterized in that also comprising following determining step: 7) if be read alarm data one time, then will delete this alarm data in the alarm data formation.
9, as claim 3 or 4 described data acquisition and storage meanss, it is characterized in that judging to work as whether time collection value enters or the method for leaves warning area is the single-side return difference method, that is: when just being judged to greater than upper alarm threshold or less than lower alarm threshold, data enter the alarm district; And difference or the data of having only data to subtract each other less than upper alarm threshold and return difference just are judged to leaves warning area greater than lower alarm threshold and return difference sum.
CNB2004100219833A 2004-03-04 2004-03-04 Data collecting and storing method Expired - Lifetime CN100345144C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100219833A CN100345144C (en) 2004-03-04 2004-03-04 Data collecting and storing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100219833A CN100345144C (en) 2004-03-04 2004-03-04 Data collecting and storing method

Publications (2)

Publication Number Publication Date
CN1560768A true CN1560768A (en) 2005-01-05
CN100345144C CN100345144C (en) 2007-10-24

Family

ID=34440960

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100219833A Expired - Lifetime CN100345144C (en) 2004-03-04 2004-03-04 Data collecting and storing method

Country Status (1)

Country Link
CN (1) CN100345144C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100432691C (en) * 2005-01-21 2008-11-12 新源动力股份有限公司 Automatic detection platform for performance of air compressor for fuel cell system
CN102254001A (en) * 2011-07-14 2011-11-23 青岛海信网络科技股份有限公司 Efficient data management method and system
CN104267707A (en) * 2014-10-17 2015-01-07 中国科学院计算技术研究所 Environmental data multi-point real-time collecting system
CN106294514A (en) * 2015-06-11 2017-01-04 中兴通讯股份有限公司 Monitoring method, device and the information transmission monitor system of information transmission
CN106535253A (en) * 2016-11-23 2017-03-22 北京必创科技股份有限公司 Method for dynamic acquisition and transmission of wireless data
CN107085593A (en) * 2017-03-09 2017-08-22 广州中大百迅信息技术有限公司 Environment control method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SU1167599A1 (en) * 1984-01-13 1985-07-15 Babenkov Viktor Device for collecting and preprocessing information

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100432691C (en) * 2005-01-21 2008-11-12 新源动力股份有限公司 Automatic detection platform for performance of air compressor for fuel cell system
CN102254001A (en) * 2011-07-14 2011-11-23 青岛海信网络科技股份有限公司 Efficient data management method and system
CN104267707A (en) * 2014-10-17 2015-01-07 中国科学院计算技术研究所 Environmental data multi-point real-time collecting system
CN104267707B (en) * 2014-10-17 2017-07-21 中国科学院计算技术研究所 A kind of environmental data multiple spot real-time acquisition system
CN106294514A (en) * 2015-06-11 2017-01-04 中兴通讯股份有限公司 Monitoring method, device and the information transmission monitor system of information transmission
CN106535253A (en) * 2016-11-23 2017-03-22 北京必创科技股份有限公司 Method for dynamic acquisition and transmission of wireless data
CN106535253B (en) * 2016-11-23 2019-10-25 北京必创科技股份有限公司 A kind of wireless data dynamic acquisition and transmission method
CN107085593A (en) * 2017-03-09 2017-08-22 广州中大百迅信息技术有限公司 Environment control method and system

Also Published As

Publication number Publication date
CN100345144C (en) 2007-10-24

Similar Documents

Publication Publication Date Title
CN100345144C (en) Data collecting and storing method
CN201993755U (en) Data filtration, compression and storage system of real-time database
CN106452931A (en) Monitoring index, domain value discovery method, domain value adjusting method and automatic monitoring system
KR102549313B1 (en) Pollutant emission level calculation system and method
CN107766208A (en) A kind of method, system and device of monitoring business system
CN111026728A (en) Log data processing method and related device
CN1288409C (en) Refrigerator with multi cold sector and food monitoring method thereof
CN103049354A (en) Data restoration method, data restoration device and storage system
CN111400204A (en) Solid-state disk caching method, system and related equipment
CN103530864A (en) Environment-friendly video monitoring and blackness analyzing system for inorganized discharge of smoke
CN107870739A (en) Disk file storage method and system
CN115223098A (en) Product quality visual monitoring management system
CN115730243A (en) Risk quantification method and system for driving behaviors
WO2013080262A1 (en) Computer system and file system management method for executing statistics on a file system
CN108037739A (en) The process management and control method and system of PCB product
CN106502588A (en) A kind of memory space management and storage device
CN107229421A (en) The establishment of video data storage systems, file write and read method and device
CN101833795A (en) Dynamic recorder and recording method for heat treatment parameters
CN108957253B (en) Early warning method for insulator pollution flashover caused by irregular high dust
CN113340902A (en) Method and device for detecting surface defects of catalyst carrier, and electronic device
CN1506805A (en) Dynamic journal recording method
CN111859058A (en) Method and device for acquiring environmental data, storage medium and electronic device
CN111080325A (en) System and method for analyzing civil aviation customer relationship
CN114397405A (en) Method and system for rapidly detecting air quality
US20050050118A1 (en) Method and system of managing files in intelligent network attached storage

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
CP01 Change in the name or title of a patent holder

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong, Shenzhen Branch Road, No.

Patentee after: VERTIV TECH Co.,Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong, Shenzhen Branch Road, No.

Patentee before: EMERSON NETWORK POWER Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191127

Address after: 363200, Zhangzhou, Fujian province Zhangpu County Industrial Development Zone, Sui An Industrial Park

Patentee after: ZHANGPU BISU PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Address before: 518057 No. 1, FA Lu, Nanshan District science and Technology Industrial Park, Guangdong, Shenzhen

Patentee before: VERTIV TECH Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201012

Address after: 277100 3rd floor, B2 building, 2666 Changbaishan Road, high tech Zone, Zaozhuang City, Shandong Province

Patentee after: Shandong Lunan big data industry development Co.,Ltd.

Address before: 363200, Zhangzhou, Fujian province Zhangpu County Industrial Development Zone, Sui An Industrial Park

Patentee before: ZHANGPU BISU PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20071024