CN104215853B - Data acquiring method of power quality monitoring system - Google Patents

Data acquiring method of power quality monitoring system Download PDF

Info

Publication number
CN104215853B
CN104215853B CN201410446736.1A CN201410446736A CN104215853B CN 104215853 B CN104215853 B CN 104215853B CN 201410446736 A CN201410446736 A CN 201410446736A CN 104215853 B CN104215853 B CN 104215853B
Authority
CN
China
Prior art keywords
terminal
main website
data
line command
down order
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.)
Active
Application number
CN201410446736.1A
Other languages
Chinese (zh)
Other versions
CN104215853A (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.)
State Grid Shanghai Electric Power Co Ltd
East China Power Test and Research Institute Co Ltd
Original Assignee
State Grid Shanghai Electric Power Co Ltd
East China Power Test and Research Institute 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 State Grid Shanghai Electric Power Co Ltd, East China Power Test and Research Institute Co Ltd filed Critical State Grid Shanghai Electric Power Co Ltd
Priority to CN201410446736.1A priority Critical patent/CN104215853B/en
Publication of CN104215853A publication Critical patent/CN104215853A/en
Application granted granted Critical
Publication of CN104215853B publication Critical patent/CN104215853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a data acquiring method of a power quality monitoring system. The data acquiring method includes steps of S1, setting up a communication protocol format of communication of a main station and a terminal of power quality monitoring; S2, transmitting downlink commands to the terminal by the main station, analyzing content in the communication protocol format by the terminal and transmitting uplink commands by the main station; judging whether the main station receives the uplink commands fed back by the terminal within a regulated time range, if yes, analyzing content in the communication protocol format by the main station and executing a step S3; if not, transmitting the downlink commands again by the main station; S3, storing power quality detection data by the main station. Compared with the prior art, the data acquiring method has the advantages of simplicity, feasibility, complete functions, wide application range, high reliability and extensibility and the like.

Description

A kind of electric energy quality monitoring system collecting method
Technical field
The present invention relates to electric energy quality monitoring field, especially relate to a kind of electric energy quality monitoring system data acquisition side Method.
Background technology
With the extensive application of novel electric power electric equipment, the fast development of new forms of energy and distributed power generation, non-in electrical network The ratio of linear load improves constantly, and consequent electrical network power quality problem is more and more prominent, and the safety fortune to electrical network Row creates new threat.Electric energy quality monitoring system become guarantee grid health under new situation, the one of stable operation Item important measures.
Electric energy quality monitoring system is accomplished that comprehensive monitoring and the unified management of power quality index.System is passed through to install Electric energy quality monitoring terminal in each monitoring point of electrical network gathers all kinds of power quality datas, and logical enterprise network, internet, The communication networks such as rs485 and quality of power supply Master Station Software set up real-time communication, and the raw information completing quality of power supply phenomenon is collected And do further applied analysis assessment.
Electric energy quality monitoring system data acquisition (hereinafter referred to as data acquisition) refers to the quality of power supply by communication network The measurement data that monitoring terminal (hereinafter referred to as terminal) has obtained extracts electric energy quality monitoring main website (hereinafter referred to as main website) Process.
Electric energy quality monitoring system has a following requirement for data acquisition:
1) data type
Main website needs the data type from terminal collection to include: mains frequency, voltage and current virtual value, voltage and current Order components, the fundamental wave of voltage and current and the virtual value of each harmonic and phase angle, total harmonic distortion factor, variation in voltage and variation Frequency, flickering, transient event and its recorder data.
If according to the processing mode of data, data can be divided into following 4 classes again:
(1) real time data, the value of each measure the cycle gained, typically do not preserve, obtain once within 3 seconds;
(2) historical record, is stored in the generated data of terminal it is recommended that one day obtains once;
(3) near-realtime data, the generated data of up-to-date storage, obtain once every a storage cycle;
(4) event data, the data record being triggered by transient event and corresponding recorder data.Recommend one day to obtain one Secondary.
2) acquisition mode
(1) gather manually, user sets horse after the parameters such as the monitoring circuit of gathered data, data type, time range On start obtain.Multiple monitoring circuits to be gathered and data type can be concurrently set;
(2) automatic data collection according to plan, user sets the time started, the scheduled breaks time, data type, trigger condition, After the parameters such as number of repetition, system will be automatically performed data acquisition task according to setting.Can automatically mend to take and obtain unsuccessfully Task;
(3) Real-time Collection, will come in the data acquisition of equipment recent renewal.Including in real time and quasi real time.Real time data is not Data integrity need to be considered.Near-realtime data must assure that the integrality of data, for the number lost the problems such as because of communicating interrupt According to should possess breakpoint after problem exclusion and mend and pass on Gong energy.
Except the collection of real time data, other acquisition modes all should support that breakpoint transmission and communication task recover work(automatically Can, support that data is mended and take function.
Have that data volume is big by the visible power quality data of requirements above, complex structure and species various the features such as, because This researches and develops a kind of effective collecting method and is to ensure that the important prerequisite that electric energy quality monitoring system can well run.
Content of the invention
The purpose of the present invention is exactly to overcome the defect of above-mentioned prior art presence to provide a kind of easy to use, function Comprehensively, applied widely, reliability is high and is easy to the electric energy quality monitoring system collecting method extending.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of electric energy quality monitoring system collecting method, the method includes:
Step s1: build the main website of electric energy quality monitoring and the communications protocol form of terminal mutually communication;
Described communications protocol form includes frame head, data head data body, described frame head include up order frame head and under Line command frame head, for distinguishing the original position of order, described data head includes adler32 check code, device talk numbering, association View type, protocol version, function code, data body length, data volume whether compact token, data volume compression algorithm, frame number, window Mouth size and reservation paragraph, the content of described data volume is mated with function code;
Step s2: main website sends down order to terminal, terminal parses the content in communications protocol form, sends to main website Upper line command, whether main station judging receives the upper line command of terminal return in the range of the stipulated time, if so, main website parsing communication Content in protocol format, execution step s3, if it is not, main website resends down order;
Step s3: main website preserves the Power Quality Detection data in upper line command.
Described main website and terminal are communicated with one another and are run based on tcp/ip or rs232/485.
Described step s2 particularly as follows:
201: main website sends first down order, the electricity that in first down order, function code correspondence need to gather to terminal The parameter area of energy quality;
202: terminal obtains corresponding Power Quality Detection record in terminal according to the function code of first down order, its Record number is m, and record number is returned main website as first upper line command;
203: main website wait-for-response, whether main station judging receives first upper line command, and if so, main website sends to terminal Second down order, the wherein window size of data head are n, n < m, that is, ask once to obtain n frame data bag, execution step 204;If it is not, resending first down order;
204: after terminal receives second down order, send n to main website successively and continuously go up line command, each is continuous Upper line command in data volume respectively include a frame data bag of Power Quality Detection record, the frame number of its data head is distinguished different Frame data bag;
205: main website wait-for-response, judge whether that n of continuous receiving terminal return is continuously gone up line command, if so, then Execution step 206;If it is not, then resending second down order, jump procedure 204;
206: main website retransmits next down order, terminal continues the remaining packet individual continuously up life of n Order sends, until the packet that main website receives reaches the record number that first upper line command obtains.
Content in described parsing communications protocol form concretely comprises the following steps:
A: according to the frame head of communications protocol form, receive and go up line command or down order accordingly;
B: extract the device talk numbering of communications protocol form, judge whether it is logical with the equipment of the main website receiving or terminal News numbering matches, if so, then execution step c, if it is not, then jump procedure a;
C: judge that the check code of communications protocol form is whether correct, if so, then execution step d, if it is not, then jump procedure a;
D: corresponding protocol process module is called according to the protocol type of communications protocol form, according to communications protocol form Function code carries out respective handling, obtains new upper line command or down order.
Compared with prior art, the invention has the advantages that
1) present invention carries out the transmission of data using specific communications protocol form, including frame head, data head data body, Communication can be made to have good applicability using the boundary that frame head distinguishes order, for example same time can send multiple lives Order, in the case of full duplex bus communication, order is difficult to obscure, and the function code in data head is mated with data volume, can use In the different types of electric energy quality monitoring data of collection, complete function;
2) in data acquisition of the present invention, whether main website real-time detection obtains the response of terminal, prevents the loss of data, Reliability is high;
3) present invention only need to set corresponding data communication protocol form and transmission means, easy to use it is possible to realize Communication between electric energy quality monitoring terminal and electric energy quality monitoring main website, applied widely it is easy to extension;
4) the inventive method sends once descending (request) order it is possible to obtain multiframe packet, every time please eliminate Ask the delay of response, thus the efficiency of data transfer can be significantly improved.
Brief description
Fig. 1 is the inventive method flow chart;
Fig. 2 parses communications protocol format step flow chart for the present invention;
Fig. 3 is to transmit schematic diagram in the embodiment of the present invention between main website and terminal.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention Premised on implemented, give detailed embodiment and specific operating process, but protection scope of the present invention be not limited to Following embodiments.
Electric energy quality monitoring system data acquisition (hereinafter referred to as data acquisition) refers to the quality of power supply by communication network The measurement data that monitoring terminal (hereinafter referred to as terminal) has obtained extracts electric energy quality monitoring main website (hereinafter referred to as main website) Process.
As shown in figure 1, main website and terminal communicate with one another being run based on tcp/ip or rs232/485, to gather warning harmonic wave As a example record, above-mentioned data acquisition is realized using electric energy quality monitoring system collecting method, concrete steps include:
Step s1: build the main website of electric energy quality monitoring and the communications protocol form of terminal mutually communication, communications protocol lattice Formula includes frame head, data head data body.
(1) frame head
Including up order frame head and down order frame head, for distinguishing the original position of order, wherein, down order frame Head is 5ch 7ch 3bh cfh, and up order frame head is 55h aah 3ch c3h.The boundary distinguishing order using frame head is permissible Communication is made to have good applicability, for example same time can send multiple orders, in the case of full duplex bus communication, Order is difficult to obscure.
(2) data head
Including adler32 check code, device talk numbering, protocol type, protocol version, function code, data body length, number According to body whether compact token, data volume compression algorithm, frame number, window size and reservation paragraph, as shown in table 1 below:
Table 1 data head form
(3) data volume
The particular content that data volume comprises is different with the difference of function code.
Step s2: main website sends down order to terminal, terminal parses the content in communications protocol form, sends to main website Upper line command, whether main station judging receives the upper line command of terminal return in the range of the stipulated time, if so, main website parsing communication Content in protocol format, execution step s3, if it is not, main website resends down order.
Main website can be considered as client, monitoring terminal is service end, is communicated in request-reply mode.Client is sent out Send request command (down order), after service end receives request, return response order (upper line command).The process once replied is such as Shown in Fig. 2.Client is similar with service end to the process of acknowledgement command.Wherein, the content in parsing communications protocol form is concrete Step is:
A: according to the frame head of communications protocol form, receive and go up line command or down order accordingly;
B: extract the device talk numbering of communications protocol form, judge whether it is logical with the equipment of the main website receiving or terminal News numbering matches, if so, then execution step c, if it is not, then jump procedure a;
C: judge that the check code of communications protocol form is whether correct, if so, then execution step d, if it is not, then jump procedure a;
D: corresponding protocol process module is called according to the protocol type of communications protocol form, according to communications protocol form Function code carries out respective handling, obtains new upper line command or down order.
Taking gather warning harmonic wave record as a example, it is only to gather to specify harmonic wave in time range to transfinite that main website sends request command Data, both saved flow, also targetedly achieved desired data, improve the efficiency of whole collection.As Fig. 3 institute Show, particularly as follows:
201: main website sends first down order, the electricity that in first down order, function code correspondence need to gather to terminal The parameter area of energy quality, wherein function code are " 08 ", and data parameters are time range;
202: terminal obtains corresponding Power Quality Detection record in terminal according to the function code of first down order, that is, Time range according to receiving calculates the number of the harmonic wave record that transfinites in this time period, and its record number is m, using record number as the One upper line command returns main website;
203: main website wait-for-response, whether main station judging receives first upper line command, and if so, main website sends to terminal Second down order, the wherein window size of data head are n, and n < m, n=6 ask once to obtain 6 frame data bags, execution Step 204;If it is not, resending first down order;
204: after terminal receives second down order, send 6 to main website successively and continuously go up line command, from the beginning of 1 It is incremented by, each continuously goes up the frame data bag that data volume in line command respectively includes Power Quality Detection record, its data head Frame number distinguishes different frame packet;
205: main website wait-for-response, judge whether that 6 of continuous receiving terminal return are continuously gone up line command, elimination is known clearly The every time delay of request response, thus the efficiency of data transfer can be significantly improved, if so, then execution step 206;If it is not, then weighing Newly send second down order, the size of jump procedure 204, therefore window is not to be the bigger the better, should be led to according to actual News situation is adjusted;
206: main website retransmits next down order, and so on, terminal continues remaining packet is continuous with 6 Upper line command send, until the packet that main website receives reaches the record number that first upper line command obtains.
Step s3: main website preserves the Power Quality Detection data in upper line command, then this data acquisition session completes.

Claims (4)

1. a kind of electric energy quality monitoring system collecting method is it is characterised in that the method includes:
Step s1: build the main website of electric energy quality monitoring and the communications protocol form of terminal mutually communication;
Step s2: main website sends down order to terminal, terminal parses the content in communications protocol form, sends up to main website Order, whether main station judging receives the upper line command of terminal return in the range of the stipulated time, if so, main website parsing communications protocol Content in form, execution step s3, if it is not, main website resends down order;
Step s3: main website preserves the Power Quality Detection data in upper line command;
Described communications protocol form includes frame head, data head data body, and described frame head includes up order frame head and descending life Make frame head, for distinguishing the original position of order, described data head includes adler32 check code, device talk numbering, protocol class Compact token, data volume compression algorithm, frame number, window are big for type, protocol version, function code, data body length, data volume Little and reservation paragraph, the content of described data volume is mated with function code.
2. a kind of electric energy quality monitoring system collecting method according to claim 1 is it is characterised in that described main website Communicate with one another with terminal and run based on tcp/ip or rs232/485.
3. a kind of electric energy quality monitoring system collecting method according to claim 1 is it is characterised in that described step S2 particularly as follows:
201: main website sends first down order, the electric energy matter that in first down order, function code correspondence need to gather to terminal The parameter area of amount;
202: terminal obtains corresponding Power Quality Detection record in terminal, its record according to the function code of first down order Number is m, and record number is returned main website as first upper line command;
203: main website wait-for-response, whether main station judging receives first upper line command, and if so, main website sends second to terminal The window size of individual down order, wherein data head is n, n < m, that is, ask once to obtain n frame data bag, execution step 204;If No, resend first down order;
204: after terminal receives second down order, send n to main website successively and continuously go up line command, on each is continuous In line command, data volume respectively includes a frame data bag of Power Quality Detection record, and the frame number of its data head distinguishes different frame numbers According to bag;
205: main website wait-for-response, judge whether that n of continuous receiving terminal return is continuously gone up line command, if so, then executes Step 206;If it is not, then resending second down order, jump procedure 204;
206: main website retransmits next down order, remaining packet is continuously gone up line command with n and is sent out by terminal continuation Send, until the packet that main website receives reaches the record number that first upper line command obtains.
4. a kind of electric energy quality monitoring system collecting method according to claim 1 is it is characterised in that described parsing Content in communications protocol form concretely comprises the following steps:
A: according to the frame head of communications protocol form, receive and go up line command or down order accordingly;
B: extract the device talk numbering of communications protocol form, judge whether it compiles with the main website of reception or the device talk of terminal Number match, if so, then execution step c, if it is not, then jump procedure a;
C: judge that the check code of communications protocol form is whether correct, if so, then execution step d, if it is not, then jump procedure a;
D: corresponding protocol process module is called according to the protocol type of communications protocol form, according to the function of communications protocol form Code carries out respective handling, obtains new upper line command or down order.
CN201410446736.1A 2014-09-03 2014-09-03 Data acquiring method of power quality monitoring system Active CN104215853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410446736.1A CN104215853B (en) 2014-09-03 2014-09-03 Data acquiring method of power quality monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410446736.1A CN104215853B (en) 2014-09-03 2014-09-03 Data acquiring method of power quality monitoring system

Publications (2)

Publication Number Publication Date
CN104215853A CN104215853A (en) 2014-12-17
CN104215853B true CN104215853B (en) 2017-01-18

Family

ID=52097558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410446736.1A Active CN104215853B (en) 2014-09-03 2014-09-03 Data acquiring method of power quality monitoring system

Country Status (1)

Country Link
CN (1) CN104215853B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843866A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Data searching method and system based on cloud searching platform
CN106846781B (en) * 2017-01-20 2020-09-01 中国电力科学研究院 Method and system for automatically identifying communication module of centralized meter reading collector
CN106899591A (en) * 2017-02-27 2017-06-27 安徽节源环保科技有限公司 A kind of blower fan energy efficiency detection system and method based on wireless communication protocol
CN109696864B (en) * 2018-11-28 2021-06-01 国电南瑞科技股份有限公司 Implementation method of thermal stability emergency control system adaptive to external environment
CN110045315A (en) * 2019-04-08 2019-07-23 中国电力科学研究院有限公司 A kind of specification means of communication and system for voltage transformer operation data progress online acquisition
CN111611256B (en) * 2020-04-30 2023-05-09 广东良实机电工程有限公司 Equipment energy consumption monitoring method and device, terminal equipment and storage medium
CN113391149B (en) * 2021-06-10 2022-04-12 南方电网科学研究院有限责任公司 Remote monitoring method and system for user load state of smart power grid

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026086A (en) * 1997-01-08 2000-02-15 Motorola, Inc. Apparatus, system and method for a unified circuit switched and packet-based communications system architecture with network interworking functionality
CN101997877A (en) * 2010-11-16 2011-03-30 江苏省电力公司 Embedded intelligent interactive terminal and communication method thereof
CN102176681A (en) * 2011-03-01 2011-09-07 桂林宏博电子信息科技有限公司 Long-distance concentrated ammeter reading system based on flooding algorithm
CN102546844A (en) * 2010-12-14 2012-07-04 淄博高新区联创科技服务中心 Power load management system based on GPRS (general packet radio service)
CN103107914A (en) * 2011-11-14 2013-05-15 华北电力科学研究院有限责任公司 Detection method and detection system for remote power acquisition terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5546662B2 (en) * 2013-03-14 2014-07-09 三菱電機株式会社 Slave station apparatus, communication method of optical communication system, optical communication system, and control apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026086A (en) * 1997-01-08 2000-02-15 Motorola, Inc. Apparatus, system and method for a unified circuit switched and packet-based communications system architecture with network interworking functionality
CN101997877A (en) * 2010-11-16 2011-03-30 江苏省电力公司 Embedded intelligent interactive terminal and communication method thereof
CN102546844A (en) * 2010-12-14 2012-07-04 淄博高新区联创科技服务中心 Power load management system based on GPRS (general packet radio service)
CN102176681A (en) * 2011-03-01 2011-09-07 桂林宏博电子信息科技有限公司 Long-distance concentrated ammeter reading system based on flooding algorithm
CN103107914A (en) * 2011-11-14 2013-05-15 华北电力科学研究院有限责任公司 Detection method and detection system for remote power acquisition terminal

Also Published As

Publication number Publication date
CN104215853A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
CN104215853B (en) Data acquiring method of power quality monitoring system
CN104065163B (en) Delivery method on a kind of intelligent substation warning information
CN104580424B (en) The data reporting method and device of smart home system
CN109743191B (en) Accurate positioning centralized processing system, method and device for equipment alarm
CN104270779A (en) Wireless network fault reason preprocessing method and wireless network fault work order distribution system
CN101877618A (en) Monitoring method, server and system based on proxy-free mode
CN103561032B (en) The method of Modbus device network communication under ICP/IP protocol
CN104636986B (en) A kind of method that scheduling telesecurity remote control based on service is checked
CN106033641A (en) A multifunctional intelligent control system achieved by a power line carrier and a controlling method thereof
CN105046344A (en) Primary station data quality optimizing method for intelligent power grid dispatching technical support system
CN102866289B (en) Power cable sheath grounding current fault analysis method
CN113676526A (en) Industrial data access management system and method
CN110929896A (en) Security analysis method and device for system equipment
CN108107292B (en) Service data monitoring system and method of electric energy quality on-line monitoring system
CN102869032B (en) Device and method for monitoring and alarming power supply of base station
CN104468703A (en) Communication method and system for distributed small power source and upper computer
CN108768995B (en) Substation self-adaptive master station access method
CN103487640A (en) Current monitoring method for enterprise electric equipment based on distributed type network
CN111487595A (en) Radar remote maintenance system and use method thereof
CN204408357U (en) Based on the reliable data transmission system of big-dipper satellite
CN205302271U (en) Send again single many times and carry out communication system
CN103634821A (en) Dynamic monitoring method for multi-channel wireless network communication equipment links
CN105141476B (en) A kind of acquisition methods and device of TCP message error message
CN104202769B (en) A kind of method and device realized business datum and reported
CN112671895A (en) Device control method, device, terminal and computer readable storage medium

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