CN103543956A - Timing sequence voltage data storage method and system - Google Patents

Timing sequence voltage data storage method and system Download PDF

Info

Publication number
CN103543956A
CN103543956A CN201310446310.1A CN201310446310A CN103543956A CN 103543956 A CN103543956 A CN 103543956A CN 201310446310 A CN201310446310 A CN 201310446310A CN 103543956 A CN103543956 A CN 103543956A
Authority
CN
China
Prior art keywords
voltage data
constantly
record
real
date
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
CN201310446310.1A
Other languages
Chinese (zh)
Other versions
CN103543956B (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.)
Electric Power Research Institute of Guangdong Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Guangdong Power Grid 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 Electric Power Research Institute of Guangdong Power Grid Co Ltd filed Critical Electric Power Research Institute of Guangdong Power Grid Co Ltd
Priority to CN201310446310.1A priority Critical patent/CN103543956B/en
Publication of CN103543956A publication Critical patent/CN103543956A/en
Application granted granted Critical
Publication of CN103543956B publication Critical patent/CN103543956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Recording Measured Values (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a timing sequence voltage data storage method and system. The timing sequence voltage data storage method includes the steps of recording real-time voltage data and a recorded moment of the real-time voltage data, comparing the date of the current recorded moment with the date of a previous recorded moment, directly conducting integrity filling on the real-time voltage date according to date and minute marks of the recorded moment if the two dates are same, if the two dates are different, conducting integrity filling on data at the previous recorded moment, storing the date of the current recorded moment, conducting integrity filling on the real-time voltage data at the current recorded moment, and finally storing the real-time voltage data according to date and minute marks of the current recorded moment. In the whole real-time voltage data storage process, single storing time for each historical voltage datum is not required, the recorded date is required only, all the voltage data can be recorded according to the date and minute marks, data volume caused by time scale storing is greatly reduced accordingly, and the disk space is saved.

Description

Sequential voltage data storage means and system
Technical field
The present invention relates to technical field of power systems, particularly relate to sequential voltage data storage means and system.
Background technology
In existing electric system, terminal is the in the situation that of a voltage data of per minute storage, owing to will determining whether this minute is valid data, so mode that each point is all stored together with data according to the time when storage, time format generally can take 6 bytes, 2 bytes of voltage data, one group of data needs 8 bytes.
The voltage measuring point generation data volume of a day is 1440*8=11520 byte altogether, the data volume of 1000 voltage measuring points generation every day is 11M byte, and the data volume of 1000 voltage measuring points generation in a year can reach the data volume of 3.9G byte, and in fact this wherein a lot of data be wasted, the sequential voltage data amount of single voltage measuring point is large, needs larger disk storage space save data.
Summary of the invention
Based on this, be necessary for the sequential voltage data amount of single voltage measuring point in general sequential voltage data storage means large, the problem that needs larger disk storage space save data, provides a kind of little sequential voltage data storage means and the system of sequential voltage data amount of single voltage measuring point.
A voltage data storage means, comprises step:
Record when obtaining real-time voltage data and recording described real-time voltage data constantly;
Contrast current record is recorded the date constantly with upper one constantly;
When current record is constantly and when the date in a upper record moment is inconsistent, the voltage data of the previous day in the current record moment is carried out to integrality filling, preserve the current record date constantly, and according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
When current record constantly and upper record date constantly when consistent, according to a current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
According to current record day minute mark constantly, preserve described real-time voltage data.
A voltage data storage system, comprising:
Data acquisition module, the record when obtaining real-time voltage data and recording described real-time voltage data is constantly;
Contrast module, records the date constantly with upper one constantly for contrasting current record;
Inconsistent processing module of date, when inconsistent for the date when the current record moment and a upper record moment, the voltage data of the previous day in the current record moment is carried out to integrality filling, preserve the current record date constantly, and according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
Consistent processing module of date, when consistent for the date when the current record moment and a upper record moment, carried out integrality filling according to a current record day minute mark constantly to real-time voltage data;
Memory module, for preserving described real-time voltage data according to current record day minute mark constantly.
Sequential voltage data storage means of the present invention and system, record the moment of real-time voltage data and its record, contrast current record is recorded the date constantly with upper one constantly, if both dates are identical, represent that this is engraved on the same day while recording for twice, a direct day minute mark according to the record moment carries out integrality filling to real-time voltage data, guarantees that the complete of data is with accurate; If both dates are not identical, represent that this twice record be not constantly on the same day, the data in the moment of it previous record are carried out to integrality filling, again preserve the current record date constantly, again current record moment real-time voltage data are carried out to integrality filling, avoid the loss of data, guaranteed the complete of data, finally according to current record day minute mark constantly, preserved real-time voltage data.In the storing process of whole real-time voltage data, each historical voltage data does not need the independent holding time, only need record date, and by all voltage datas minute mark record per diem, thereby greatly reduced the data volume that markers storage produces, save disk space, but also guaranteed that the complete of real-time voltage data is with accurate.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of first embodiment of sequential voltage data storage means of the present invention;
Fig. 2 is the schematic flow sheet of second embodiment of sequential voltage data storage means of the present invention;
Fig. 3 is the form schematic diagram of voltage data storage;
Fig. 4 is the structural representation of first embodiment of sequential voltage data storage system of the present invention;
Fig. 5 is the structural representation of second embodiment of sequential voltage data storage system of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawings and embodiment, the present invention is further elaborated.Should be appreciated that concrete enforcement described herein, only in order to explain the present invention, does not limit the present invention.
As shown in Figure 1, a kind of sequential voltage data storage means, comprises step:
S200: the record when obtaining real-time voltage data and recording described real-time voltage data constantly.
For single voltage test points in electric system, by relevant device, detect and gather real-time voltage data, here, first just need to obtain these real-time voltage data that collect and with the time that collects these real-time voltage data, obtain real-time voltage data and its corresponding acquisition time.Non-essential, this record constantly can be periodically, and its record period can adopt common recording once every one minute.
S400: contrast current record is recorded the date constantly with upper one constantly.
The date in two adjacent record moment may be unanimously also possible inconsistent.For example, suppose that current record is 0:02 on September 6th, 2012 constantly, a upper record is 0:01 on September 6th, 2012 constantly, and the date is identical to the two record constantly; Suppose that current record is 0:02 on September 6th, 2012 constantly, a upper record is 23:59 on September 5th, 2012 constantly, and the two the record date is constantly not identical.
S600: when current record is constantly and when the date in a upper record moment is inconsistent, the voltage data of the previous day in the current record moment is carried out to integrality filling, preserve the current record date constantly, and according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling.
If current record is constantly inconsistent with a upper record date constantly, show that current record is not on the same day with a upper record constantly constantly, first just need to carry out integrality filling to the voltage data of the previous day in the current record moment, guarantee that the complete of data is with accurate.Change due to the date, before the current record date is constantly carried out to the filling of voltage data integrality, also need again to preserve the current record date constantly, preserve after new date, then according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling.So-called day minute mark refers to the sequence number of time minute expression in a day.Such as the time is: on July 6th, 2013 13:03:13, its bu is designated as: 13 * 60+3=783.Time is 01:37:43 on July 3rd, 2013, and its bu is designated as: 1 * 60+37=97.Day minute mark adds that the date can represent the time, and the time that day minute mark represents can be as accurate as minute.
S800: when current record constantly and upper record date constantly when consistent, according to a current record day minute mark constantly, real-time voltage data are carried out to integrality filling.
If current record is constantly consistent with a upper record date constantly, showed that current record is on the same day with a upper record constantly constantly, at this moment only need to carry out integrality filling to real-time voltage data according to current record day submeter constantly.
S900: preserve described real-time voltage data according to current record day minute mark constantly.
Sequential voltage data storage means of the present invention, record the moment of real-time voltage data and its record, contrast current record is recorded the date constantly with upper one constantly, if both dates are identical, represent that this is engraved on the same day while recording for twice, a direct day minute mark according to the record moment carries out integrality filling to real-time voltage data, guarantees that the complete of data is with accurate; If both dates are not identical, represent that this twice record be not constantly on the same day, the data in the moment of it previous record are carried out to integrality filling, again preserve the current record date constantly, again current record moment real-time voltage data are carried out to integrality filling, avoid the loss of data, guaranteed the complete of data, finally according to current record day minute mark constantly, preserved real-time voltage data.In the storing process of whole real-time voltage data, each historical voltage data does not need the independent holding time, only need record date, and by all voltage datas minute mark record per diem, thereby greatly reduced the data volume that markers storage produces, save disk space, but also guaranteed that the complete of real-time voltage data is with accurate.
As shown in Figure 2, therein in an embodiment, before described step S200 also in steps:
S120: the record period of determining default real-time voltage data;
S140: according to the record period of described default real-time voltage data, the record when recording real-time voltage data and recording described real-time voltage data constantly.
The record period of default real-time voltage data is pre-set, specifically can be according to the applied environment of current voltage data storage or user's demand.When the detailed recording voltage real time data of needs, can suitably reduce record period, the voltage real time data collecting in unit interval like this can be more, also can be more accurate, when only needing general recording voltage real time data, can proper extension record period, the voltage real time data collecting in the unit interval like this can reduce.Preferably, can select record period is 1 minute, within one day, can record 1440 voltage data row.
As shown in Figure 2, therein in an embodiment, after described step S400 also in steps:
S520: select bu target mark mode constantly;
S540: according to described moment bu target mark mode, record on the same day in not in the same time day minute mark.
So-called day minute mark refers to the sequence number of time minute expression in a day.Day minute mark can have multiple mark mode, here according to described moment bu target mark mode, record on the same day in day minute mark in the same time not, realize accurate mark constantly.Such as the time is: on July 6th, 2013 13:03:13, its bu is designated as: 13 * 60+3=783.Time is 01:37:43 on July 3rd, 2013, and its bu is designated as: 1 * 60+37=97.Day minute mark adds that the date can represent the time, and the time that day minute mark represents can be as accurate as minute.
As shown in Figure 2, therein in an embodiment, after described step S900 also in steps:
S920: the described real-time voltage data that verification is preserved.
The described real-time voltage data that verification is preserved, can further guarantee the accuracy of the real-time voltage data of storage.
In order to be further explained in detail the technical scheme of sequential voltage data storage means of the present invention and the beneficial effect bringing, below employing one specific embodiment is explained.
For the ease of understanding, the default real-time voltage data recording cycle is elected 1 minute as in the present embodiment, and day minute mark is selected as 13:03:13 on July 6th, 2013, and its bu is designated as: the mark mode of 13 * 60+3=783.
As shown in Figure 3, the form of real-time voltage data storage as shown in Figure 3.In Fig. 3, A is the sequence of blocks of data of storage in order of a voltage measuring point, and sequence of blocks of data A is stored and forms in order by data block 1.Each data block 1 represents the storage data of voltage in one day.B is the structural drawing after data block 1 is amplified, and data block 1 consists of head 2 and interior receiving part 3.What head 2 was stored is the date, and length is four bytes.Interior receiving part 3 consists of voltage data 4, and interior receiving part includes 1440 voltage datas 4.The length of each voltage data 4 is two bytes, and the total length of therefore interior receiving part 3 is 2880 bytes.The length of each data block 1 is 2884 bytes.According to sequential voltage data storage means of the present invention, in the data structure of its storage, the sequence number of voltage data is a day minute mark, and 1440 data can represent each minute of one day 24 hours altogether: 1440=24 * 60.Said method has comprised data integrity filling.Integrality is filled the day minute mark and the day minute mark of last voltage data when discontinuous refer to current voltage data, interim date minute mark voltage data neutral gear is done to invalid content and fill.Such as, the time of last keeping records is: on July 6th, 2013 23:56:33.And the time that this voltage data obtains is 00:00:37 on July 7th, 2013.If a upper day data is not carried out to integrality filling, the content of a upper day data can only be recorded to 23:56 divides, i.e. 23 * 60+56+1=1437 data.Three day that lacks that last 23:57,23:58,23:59 represent the data under minute mark 1437,1438,1439.For complete filling, need to be to last three data fillings, supplementing the voltage content of filling is invalid data, dead voltage data represent with 0XFFFF.So just can polishing upper one day of 1440 data.For another example, the time of last keeping records is: on July 7th, 2013 13:47:35, and the time that this voltage data obtains is 14:00:03 on July 7th, 2013.Therefore the voltage data of 13:48-13:59 in the middle of lacking, needs that these data are done to integrality for this reason and fills, and the voltage data under the day minute mark 828-839 of these time representations is filled with dead voltage data 0XFFFF.And then day minute mark insert the voltage data of 7,14:00:03 in 013 on July for 840 times.Under former technical scheme, the voltage measuring point generation data volume of a day is 1440*8=11520 byte, and according to sequential voltage data storage means of the present invention, the voltage measuring point generation data volume of a day is 1440*2+4=2284 byte.Only have original 1/4th.Greatly reduce data and store needed disk space.
As shown in Figure 4, a kind of sequential voltage data storage system, comprising:
Data acquisition module 100, the record when obtaining real-time voltage data and recording described real-time voltage data is constantly;
Contrast module 200, records the date constantly with upper one constantly for contrasting current record;
Inconsistent processing module 300 of date, when inconsistent for the date when the current record moment and a upper record moment, the voltage data of the previous day in the current record moment is carried out to integrality filling, preserve the current record date constantly, and according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
Consistent processing module 400 of date, when consistent for the date when the current record moment and a upper record moment, carried out integrality filling according to a current record day minute mark constantly to real-time voltage data;
Memory module 500, for preserving described real-time voltage data according to current record day minute mark constantly.
Sequential voltage data storage system of the present invention, record the moment of real-time voltage data and its record, contrast current record is recorded the date constantly with upper one constantly, if both dates are identical, represent that this is engraved on the same day while recording for twice, a direct day minute mark according to the record moment carries out integrality filling to real-time voltage data, guarantees that the complete of data is with accurate; If both dates are not identical, represent that this twice record be not constantly on the same day, the data in the moment of it previous record are carried out to integrality filling, again preserve the current record date constantly, again current record moment real-time voltage data are carried out to integrality filling, avoid the loss of data, guaranteed the complete of data, finally according to current record day minute mark constantly, preserved real-time voltage data.In the storing process of whole real-time voltage data, each historical voltage data does not need the independent holding time, only need record date, and by all voltage datas minute mark record per diem, thereby greatly reduced the data volume that markers storage produces, save disk space, but also guaranteed that the complete of real-time voltage data is with accurate.
As shown in Figure 5, in an embodiment, described sequential voltage data storage system also comprises therein:
Record period determining unit 600, for determining the record period of default real-time voltage data;
Record cell 700, for according to the record period of described default real-time voltage data, the record when recording real-time voltage data and recording described real-time voltage data constantly.
As shown in Figure 5, in an embodiment, also comprise therein:
Day minute mark mark mode selected cell 800, for selecting bu target mark mode constantly;
Indexing unit 900, for according to described moment bu target mark mode, record on the same day in day minute mark in the same time not.
As shown in Figure 5, in an embodiment, also comprise therein:
Correction verification module 920, the described real-time voltage data of preserving for verification.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (8)

1. a sequential voltage data storage means, is characterized in that, comprises step:
Record when obtaining real-time voltage data and recording described real-time voltage data constantly;
Contrast current record is recorded the date constantly with upper one constantly;
When current record is constantly and when the date in a upper record moment is inconsistent, the voltage data of the previous day in the current record moment is carried out to integrality filling, preserve the current record date constantly, and according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
When current record constantly and upper record date constantly when consistent, according to a current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
According to current record day minute mark constantly, preserve described real-time voltage data.
2. sequential voltage data storage means according to claim 1, is characterized in that, record when described step is obtained real-time voltage data and records described real-time voltage data constantly before also in steps:
Determine the record period of default real-time voltage data;
According to the record period of described default real-time voltage data, the record when recording real-time voltage data and recording described real-time voltage data constantly.
3. sequential voltage data storage means according to claim 1 and 2, is characterized in that, described step contrast current record is recorded the date constantly afterwards also in steps with upper one constantly:
Select bu target mark mode constantly;
According to described moment bu target mark mode, record on the same day in not in the same time day minute mark.
4. sequential voltage data storage means according to claim 1 and 2, is characterized in that, described step is preserved described real-time voltage data afterwards also in steps according to current record day minute mark constantly:
The described real-time voltage data that verification is preserved.
5. a sequential voltage data storage system, is characterized in that, comprising:
Data acquisition module, the record when obtaining real-time voltage data and recording described real-time voltage data is constantly;
Contrast module, records the date constantly with upper one constantly for contrasting current record;
Inconsistent processing module of date, when inconsistent for the date when the current record moment and a upper record moment, the voltage data of the previous day in the current record moment is carried out to integrality filling, preserve the current record date constantly, and according to current record day minute mark constantly, real-time voltage data are carried out to integrality filling;
Consistent processing module of date, when consistent for the date when the current record moment and a upper record moment, carried out integrality filling according to a current record day minute mark constantly to real-time voltage data;
Memory module, for preserving described real-time voltage data according to current record day minute mark constantly.
6. sequential voltage data storage system according to claim 5, is characterized in that, also comprises:
Record period determining unit, for determining the record period of default real-time voltage data;
Record cell, for according to the record period of described default real-time voltage data, the record when recording real-time voltage data and recording described real-time voltage data constantly.
7. according to the sequential voltage data storage system described in claim 5 or 6, it is characterized in that, also comprise:
Day minute mark mark mode selected cell, for selecting bu target mark mode constantly;
Indexing unit, for according to described moment bu target mark mode, record on the same day in day minute mark in the same time not.
8. according to the sequential voltage data storage system described in claim 5 or 6, it is characterized in that, also comprise:
Correction verification module, the described real-time voltage data of preserving for verification.
CN201310446310.1A 2013-09-26 2013-09-26 Time-sequential voltage date storage method and system Active CN103543956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310446310.1A CN103543956B (en) 2013-09-26 2013-09-26 Time-sequential voltage date storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310446310.1A CN103543956B (en) 2013-09-26 2013-09-26 Time-sequential voltage date storage method and system

Publications (2)

Publication Number Publication Date
CN103543956A true CN103543956A (en) 2014-01-29
CN103543956B CN103543956B (en) 2016-08-24

Family

ID=49967454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310446310.1A Active CN103543956B (en) 2013-09-26 2013-09-26 Time-sequential voltage date storage method and system

Country Status (1)

Country Link
CN (1) CN103543956B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169630A (en) * 2011-03-31 2011-08-31 上海电科智能系统股份有限公司 Quality control method of road continuous traffic flow data
CN103197182A (en) * 2013-04-02 2013-07-10 国家电网公司 Marking method of time marks when power quality long-time recording data are stored

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169630A (en) * 2011-03-31 2011-08-31 上海电科智能系统股份有限公司 Quality control method of road continuous traffic flow data
CN103197182A (en) * 2013-04-02 2013-07-10 国家电网公司 Marking method of time marks when power quality long-time recording data are stored

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程显蒙: "基于GPRS的远程电压监测系统研究与设计", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, vol. 2008, no. 12, 15 December 2008 (2008-12-15) *

Also Published As

Publication number Publication date
CN103543956B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
Aðalgeirsdóttir et al. Modelling the 20th and 21st century evolution of Hoffellsjökull glacier, SE-Vatnajökull, Iceland
CN104008212B (en) Method for storing IOT time series data related to geographical location information
US20150205895A1 (en) Reporting for an aquatic geographic information system
CN107209228A (en) Charge storage element condition estimating device and charge storage element method for estimating state
CN104794065B (en) A kind of more packet fixed-length data cyclic access methods
CN109215338B (en) Gridding-based Beidou gps vehicle track management system and method thereof
CN105644380A (en) Calculation method and system for remainder range of electric automobile
CN104361650A (en) Method for automatically calibrating pulse factor of vehicle traveling data recorder
CN104793145B (en) A kind of battery active volume method for quick
CN108874296B (en) Three-dimensional waveform mapping method based on parallel architecture
CN103678657A (en) Method for storing and reading altitude data of terrain
CN105094700B (en) The data temperature of bedding storage calculates method and apparatus in cloud storage system
CN111754654A (en) Vehicle-mounted video storage method, reading method, storage device and reading device
CN109614272B (en) Data back up method and system without local cache
CN104748865B (en) A kind of multi-point combination bearing calibration for infrared image
CN103543956A (en) Timing sequence voltage data storage method and system
CN109614273A (en) The read method and system of incremental data
CN103136782B (en) A kind of dynamic rendering intent of threedimensional model map and device
CN105527957A (en) Method for saving fault wave data
CN204350203U (en) For carrying out the video acquisition system of video acquisition to submarine system
CN108920553A (en) A kind of data record method for onboard multi-sensor platform
CN102706326B (en) Processing method of light beam method aerial triangulation file data
RU2000125567A (en) REAL-TIME METHOD AND DEVICE FOR RECORDING INFORMATION
CN204214373U (en) A kind ofly be applicable to measure in corn seed investigating process spike length and the thick device of fringe
CN103049583B (en) The conversion method of earth monitor data and translation interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for 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: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Patentee after: ELECTRIC POWER RESEARCH INSTITUTE, GUANGDONG POWER GRID CO., LTD.

Address before: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Patentee before: Electrical Power Research Institute of Guangdong Power Grid Corporation

CP01 Change in the name or title of a patent holder