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

Data acquiring method of power quality monitoring system Download PDF

Info

Publication number
CN104215853A
CN104215853A CN201410446736.1A CN201410446736A CN104215853A CN 104215853 A CN104215853 A CN 104215853A CN 201410446736 A CN201410446736 A CN 201410446736A CN 104215853 A CN104215853 A CN 104215853A
Authority
CN
China
Prior art keywords
main website
terminal
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.)
Granted
Application number
CN201410446736.1A
Other languages
Chinese (zh)
Other versions
CN104215853B (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

Landscapes

  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

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 collecting method.
Background technology
Along with the extensive application of novel electric power electric equipment, the fast development of new forms of energy and distributed power generation, the ratio of Nonlinear Load in Power Network improves constantly, and consequent electrical network power quality problem is more and more outstanding, and creates new threat to the safe operation of electrical network.Electric energy quality monitoring system becomes important measures of the guarantee grid health under new situation, stable operation.
What electric energy quality monitoring system realized is comprehensive monitoring and the unified management of power quality index.System gathers all kinds of power quality data by the electric energy quality monitoring terminal being installed on each monitoring point of electrical network, and the logical communication network such as enterprise network, Internet, RS485 and quality of power supply Master Station Software set up real-time communication, the raw information completing quality of power supply phenomenon is collected and does further applied analysis assessment.
Electric energy quality monitoring system data acquisition (hereinafter referred to as data acquisition) refers to the process by communication network, the measurement data that electric energy quality monitoring terminal (hereinafter referred to as terminal) has obtained being extracted electric energy quality monitoring main website (hereinafter referred to as main website).
Electric energy quality monitoring system has following requirement for data acquisition:
1) data type
Main website needs to comprise from the data type of terminal collection: the effective value of mains frequency, voltage and current effective value, the order components of voltage and current, the first-harmonic of voltage and current and each harmonic and phase angle, total harmonic distortion factor, variation in voltage and variation frequency, flickering, transient event and recorder data thereof.
If according to the processing mode of data, data can be divided into again following 4 classes:
(1) real time data, each measuring period gained value, generally do not preserve, 3 seconds obtained once;
(2) historical record, is stored in the generated data of terminal, recommends to obtain once for one day;
(3) near-realtime data, the generated data of up-to-date storage, obtained once every a memory cycle;
(4) event data, the data record triggered by transient event and the recorder data of correspondence.Recommend to obtain once for one day.
2) acquisition mode
(1) manually gather, user will begin in a minute after setting the parameter such as Monitoring Line, data type, time range of image data acquisition.Multiple Monitoring Line that will gather and data type can be set simultaneously;
(2) automatically gather according to plan, user sets the start time, and after the parameters such as scheduled breaks time, data type, trigger condition, multiplicity, system just can complete data acquisition task according to setting automatically.The failed task of acquisition can be got by automatic makeup;
(3) Real-time Collection, comes in the data acquisition of equipment recent renewal.Comprise in real time and quasi real time.Real time data does not need to consider data integrity.Near-realtime data must guarantee the integrality of data, for the data of losing because of problems such as communicating interrupt, should possess breakpoint and mend energy of passing on Gong after problem is got rid of.
Except the collection of real time data, other acquisition mode all should support breakpoint transmission and communication task auto restore facility, and supported data is mended and got function.
Have by requiring visible power quality data above that data volume is large, complex structure and the feature such as of a great variety, therefore researching and developing a kind of effective collecting method is the important prerequisite guaranteeing that electric energy quality monitoring system can well run.
Summary of the invention
Object of the present invention be exactly in order to overcome above-mentioned prior art exist defect and provide a kind of be simple and easy to use, complete function, applied widely, reliability is high and be easy to expansion electric energy quality monitoring system collecting method.
Object of the present invention can be achieved through the following technical solutions:
A kind of electric energy quality monitoring system collecting method, the method comprises:
Step S1: build the main website of electric energy quality monitoring and the communications protocol form of the mutual communication of terminal;
Described communications protocol form comprises frame head, data head and data volume, described frame head comprises up order frame head and down order frame head, for distinguishing the reference position of order, described data head comprises ADLER32 check code, device talk numbering, protocol type, protocol version, function code, data volume length, data volume whether compact token, data volume compression algorithm, frame number, window size and reservation paragraph, the content and function code coupling of described data volume;
Step S2: main website sends down order to terminal, content in terminal parses communications protocol form, upper line command is sent to main website, whether main station judging receives the upper line command that terminal returns within the stipulated time, if so, main website resolves the content in communications protocol form, performs step S3, if 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 communicate with one another and to run based on TCP/IP or RS232/485.
Described step S2 is specially:
201: main website sends first down order to terminal, the parameter area of the quality of power supply that function code correspondence need gather in first down order;
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, if, main website sends second down order to terminal, and wherein the window size of data head is N, N < M, namely ask once to obtain N frame data bag, perform step 204; If not, first down order is resend;
204: terminal sends line command on N number of continuous print to main website after receiving second down order successively, on each continuous print, in line command, data volume respectively comprises a frame data bag of Power Quality Detection record, and the frame number of its data head distinguishes different frame packet;
205: main website wait-for-response, judge whether line command on N number of continuous print that continuous receiving terminal returns, if so, then perform step 206; If not, then second down order is resend, jump procedure 204;
206: main website sends next down order again, terminal continues remaining packet line command on N number of continuous print to send, until the packet that main website receives reaches the record number that first upper line command obtains.
Content concrete steps in described parsing communications protocol form are:
A: according to the frame head of communications protocol form, receives corresponding upper line command or down order;
B: the device talk numbering extracting communications protocol form, judges whether it matches with the device talk numbering of the main website received or terminal, if so, then performs step c, if not, then and jump procedure a;
C: judge that whether the check code of communications protocol form is correct, if so, then perform steps d, if not, then jump procedure a;
D: call corresponding protocol process module according to the protocol type of communications protocol form, the function code according to communications protocol form carries out respective handling, obtains new upper line command or down order.
Compared with prior art, the present invention has the following advantages:
1) the present invention adopts specific communications protocol form to carry out the transmission of data, comprise frame head, data head and data volume, the boundary utilizing frame head to distinguish order can make communication have good applicability, the such as same time can send multiple order, when full duplex bus communication, order is not easily obscured, and the function code in data head is mated with data volume, can be used for gathering dissimilar electric energy quality monitoring data, complete function;
2) in data acquisition of the present invention, main website detects the response whether obtaining terminal in real time, and prevent the loss of data, reliability is high;
3) the present invention only need set corresponding data communication protocol form and transmission mode, is simple and easy to use, just can realize the communication between electric energy quality monitoring terminal and electric energy quality monitoring main website, applied widely, is easy to expansion;
4) the inventive method sends once descending (request) order, just can obtain multiframe packet, eliminates the delay of each request response, thus can significantly improve the efficiency of data transmission.
Accompanying drawing explanation
Fig. 1 is the inventive method process flow diagram;
Fig. 2 is that the present invention resolves communications protocol format step process flow diagram;
Fig. 3 transmits schematic diagram between main website and terminal in the embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.The present embodiment is implemented premised on technical solution of the present invention, give detailed embodiment and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
Electric energy quality monitoring system data acquisition (hereinafter referred to as data acquisition) refers to the process by communication network, the measurement data that electric energy quality monitoring terminal (hereinafter referred to as terminal) has obtained being extracted electric energy quality monitoring main website (hereinafter referred to as main website).
As shown in Figure 1, main website and terminal communicate with one another and to run based on TCP/IP or RS232/485, are recorded as example to gather warning harmonic wave, and adopt electric energy quality monitoring system collecting method to realize above-mentioned data acquisition, concrete steps comprise:
Step S1: build the main website of electric energy quality monitoring and the communications protocol form of the mutual communication of terminal, communications protocol form comprises frame head, data head and data volume.
(1) frame head
Comprise up order frame head and down order frame head, for distinguishing the reference 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 utilizing frame head to distinguish order can make communication have good applicability, and the such as same time can send multiple order, and when full duplex bus communication, order is not easily obscured.
(2) data head
Comprise ADLER32 check code, device talk numbering, protocol type, protocol version, function code, data volume length, data volume 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, content in terminal parses communications protocol form, upper line command is sent to main website, whether main station judging receives the upper line command that terminal returns within the stipulated time, if so, main website resolves the content in communications protocol form, performs step S3, if not, main website resends down order.
Main website can be considered as client, monitoring terminal is service end, carries out communication in request-reply mode.Client sends request order (down order), after service end receives request, and return response order (upper line command).The process of once replying as shown in Figure 2.Client to the process of acknowledgement command and service end similar.Wherein, the content concrete steps of resolving in communications protocol form are:
A: according to the frame head of communications protocol form, receives corresponding upper line command or down order;
B: the device talk numbering extracting communications protocol form, judges whether it matches with the device talk numbering of the main website received or terminal, if so, then performs step c, if not, then and jump procedure a;
C: judge that whether the check code of communications protocol form is correct, if so, then perform steps d, if not, then jump procedure a;
D: call corresponding protocol process module according to the protocol type of communications protocol form, the function code according to communications protocol form carries out respective handling, obtains new upper line command or down order.
Be recorded as example to gather warning harmonic wave, it is only gather the data that within the scope of the fixed time, harmonic wave transfinites that main website sends request order, both saves flow, and also achieves desired data targetedly, and improve the efficiency of whole collection.As shown in Figure 3, be specially:
201: main website sends first down order to terminal, the parameter area of the quality of power supply that function code correspondence need gather in first down order, wherein function code is " 08 ", and data parameters is time range;
202: terminal obtains corresponding Power Quality Detection record in terminal according to the function code of first down order, namely the number of the harmonic wave record that transfinites is calculated in this time period according to the time range received, 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, if, main website sends second down order to terminal, and wherein the window size of data head is N, N < M, N=6, namely asks once to obtain 6 frame data bags, performs step 204; If not, first down order is resend;
204: after terminal receives second down order, line command on 6 continuous print is sent successively to main website, increase progressively from 1, on each continuous print, in line command, data volume respectively comprises a frame data bag of Power Quality Detection record, and the frame number of its data head distinguishes different frame packet;
205: main website wait-for-response, judge whether line command on 6 continuous print that continuous receiving terminal returns, eliminate the delay of each request response of knowing clearly, thus the efficiency of data transmission can be significantly improved, if so, then perform step 206; If not, then resend second down order, jump procedure 204, therefore the size of window is not be the bigger the better, and should adjust according to the communication condition of reality;
206: main website sends next down order again, and so forth, terminal continues remaining packet line command on 6 continuous print to 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 (5)

1. an electric energy quality monitoring system collecting method, is characterized in that, the method comprises:
Step S1: build the main website of electric energy quality monitoring and the communications protocol form of the mutual communication of terminal;
Step S2: main website sends down order to terminal, content in terminal parses communications protocol form, upper line command is sent to main website, whether main station judging receives the upper line command that terminal returns within the stipulated time, if so, main website resolves the content in communications protocol form, performs step S3, if not, main website resends down order;
Step S3: main website preserves the Power Quality Detection data in upper line command.
2. a kind of electric energy quality monitoring system collecting method according to claim 1, is characterized in that, described main website and terminal communicate with one another and to run based on TCP/IP or RS232/485.
3. a kind of electric energy quality monitoring system collecting method according to claim 1, it is characterized in that, described communications protocol form comprises frame head, data head and data volume, described frame head comprises up order frame head and down order frame head, for distinguishing the reference position of order, described data head comprises ADLER32 check code, device talk numbering, protocol type, protocol version, function code, data volume length, data volume whether compact token, data volume compression algorithm, frame number, window size and reservation paragraph, the content and function code coupling of described data volume.
4. a kind of electric energy quality monitoring system collecting method according to claim 3, it is characterized in that, described step S2 is specially:
201: main website sends first down order to terminal, the parameter area of the quality of power supply that function code correspondence need gather in first down order;
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, if, main website sends second down order to terminal, and wherein the window size of data head is N, N < M, namely ask once to obtain N frame data bag, perform step 204; If not, first down order is resend;
204: terminal sends line command on N number of continuous print to main website after receiving second down order successively, on each continuous print, in line command, data volume respectively comprises a frame data bag of Power Quality Detection record, and the frame number of its data head distinguishes different frame packet;
205: main website wait-for-response, judge whether line command on N number of continuous print that continuous receiving terminal returns, if so, then perform step 206; If not, then second down order is resend, jump procedure 204;
206: main website sends next down order again, terminal continues remaining packet line command on N number of continuous print to send, until the packet that main website receives reaches the record number that first upper line command obtains.
5. a kind of electric energy quality monitoring system collecting method according to claim 1, is characterized in that, the content concrete steps in described parsing communications protocol form are:
A: according to the frame head of communications protocol form, receives corresponding upper line command or down order;
B: the device talk numbering extracting communications protocol form, judges whether it matches with the device talk numbering of the main website received or terminal, if so, then performs step c, if not, then and jump procedure a;
C: judge that whether the check code of communications protocol form is correct, if so, then perform steps d, if not, then jump procedure a;
D: call corresponding protocol process module according to the protocol type of communications protocol form, the function code according to communications protocol form 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 true CN104215853A (en) 2014-12-17
CN104215853B 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)

Cited By (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
CN106846781A (en) * 2017-01-20 2017-06-13 中国电力科学研究院 A kind of method and system of the communication module of automatic identification centralized automatic 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
CN109696864A (en) * 2018-11-28 2019-04-30 国电南瑞科技股份有限公司 A kind of thermostabilization emergency control system implementation method of adaptive 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
CN111611256A (en) * 2020-04-30 2020-09-01 广东良实机电工程有限公司 Equipment energy consumption monitoring method and device, terminal equipment and storage medium
CN113391149A (en) * 2021-06-10 2021-09-14 南方电网科学研究院有限责任公司 Remote monitoring method and system for user load state of smart power grid

Citations (6)

* 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
JP2013110771A (en) * 2013-03-14 2013-06-06 Mitsubishi Electric Corp Substation device, communication method for optical communication system, optical communication system and control device

Patent Citations (6)

* 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
JP2013110771A (en) * 2013-03-14 2013-06-06 Mitsubishi Electric Corp Substation device, communication method for optical communication system, optical communication system and control device

Cited By (10)

* 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
CN106846781A (en) * 2017-01-20 2017-06-13 中国电力科学研究院 A kind of method and system of the communication module of automatic identification centralized automatic meter-reading collector
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
CN109696864A (en) * 2018-11-28 2019-04-30 国电南瑞科技股份有限公司 A kind of thermostabilization emergency control system implementation method of adaptive external environment
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
CN111611256A (en) * 2020-04-30 2020-09-01 广东良实机电工程有限公司 Equipment energy consumption monitoring method and device, terminal equipment and storage medium
CN111611256B (en) * 2020-04-30 2023-05-09 广东良实机电工程有限公司 Equipment energy consumption monitoring method and device, terminal equipment and storage medium
CN113391149A (en) * 2021-06-10 2021-09-14 南方电网科学研究院有限责任公司 Remote monitoring method and system for user load state of smart power grid

Also Published As

Publication number Publication date
CN104215853B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN104215853A (en) Data acquiring method of power quality monitoring system
CN104899325A (en) APP (application) acquired data collection method, terminal, server and system
CN103763396A (en) Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology
CN108490358B (en) Battery remote monitoring system and method
CN104468938A (en) Information acquisition and processing methods and related devices as well as mobile terminal and server
CN109743191A (en) A kind of accurate positioning centralized processing system of equipment alarm, method and device
CN104394020A (en) Automatic fault processing and safety control system and method for power information collection device
CN110086653B (en) Power wireless private network testing, collecting and analyzing system and method
CN103996276A (en) Remote transmission system and method for data of power plant
CN110650192A (en) New energy monitoring system based on Beidou short message communication
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
CN102869032A (en) Device and method for monitoring and alarming power supply of base station
CN104991530A (en) Communication method based on CAN bus, and power distribution terminal
CN105744556A (en) Method and system for base station fault acquisition
EP2749975A1 (en) Method for collection, selection and conversion of measurement data enabling diagnosis of electricity devices, especially in industrial plants and a concentrator for applying this method
CN101917699B (en) Random reported signaling tracking method and device based on users
CN103501049B (en) A kind of control method of power distribution network and system
CN104579848A (en) Data analyzing and network monitoring integration method for OBS instrument
CN112419698B (en) Electric energy meter data transmission method, system and device based on distribution line message specification
CN104580507A (en) Field station data transmission and integration method
CN107560997A (en) A kind of monitoring method and device of transmission facility atmospheric corrosion
CN101345775B (en) Synchronization method and system for man-computer command script document between network manager and network element
CN211630177U (en) Equipment data acquisition system
CN112312376A (en) Method and system for remotely and interactively managing multifunctional electric meter
CN104580508A (en) Field station data transmission and integration system

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