CN108107782B - Self-control concurrent data acquisition method for electric power energy acquisition equipment - Google Patents

Self-control concurrent data acquisition method for electric power energy acquisition equipment Download PDF

Info

Publication number
CN108107782B
CN108107782B CN201711369952.0A CN201711369952A CN108107782B CN 108107782 B CN108107782 B CN 108107782B CN 201711369952 A CN201711369952 A CN 201711369952A CN 108107782 B CN108107782 B CN 108107782B
Authority
CN
China
Prior art keywords
data
concurrent
executing
acquisition
sending
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
CN201711369952.0A
Other languages
Chinese (zh)
Other versions
CN108107782A (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.)
Ningbo Sanxing Electric Co Ltd
Original Assignee
Ningbo Sanxing Electric 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 Ningbo Sanxing Electric Co Ltd filed Critical Ningbo Sanxing Electric Co Ltd
Priority to CN201711369952.0A priority Critical patent/CN108107782B/en
Publication of CN108107782A publication Critical patent/CN108107782A/en
Application granted granted Critical
Publication of CN108107782B publication Critical patent/CN108107782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2612Data acquisition interface

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention relates to an automatic control concurrent data acquisition method for electric power energy acquisition equipment, which comprises the following steps of S1: detecting whether the acquired data meet the sending condition, if so, executing S2, and otherwise, executing S3; s2: sending the data, operating the data according to the corresponding transmission protocol, acquiring a next data object, and executing S1 again to realize concurrent acquisition of the data; s3: and receiving and processing the data to obtain an error code of the data, correcting the error code, and feeding back the corrected information to a sending end of the acquisition equipment to realize self-adaptive adjustment. Compared with the prior art, the automatic control concurrent data acquisition method provided by the invention can exert the efficiency of the concurrent acquisition module to the maximum extent.

Description

Self-control concurrent data acquisition method for electric power energy acquisition equipment
Technical Field
The invention relates to the field of communication data acquisition, in particular to electric power energy acquisition equipment, and specifically relates to an automatic control concurrent data acquisition method for the electric power energy acquisition equipment.
Background
Along with the development of an electric power system, the capacity of data to be acquired by electric power energy acquisition equipment is larger and larger, the real-time requirement on the data is higher and higher, and the problem of how to improve the efficiency of data acquisition is an urgent need to be solved.
The existing electric power energy collection equipment still takes a single-shot data collection mode as a main mode and takes a concurrent data collection mode as an auxiliary mode. However, the traditional single-shot data acquisition has low efficiency and seriously influences the real-time performance of the data; although the problem of low data acquisition efficiency can be solved by the existing concurrent data acquisition, the existing concurrent data acquisition cannot be self-adapted to each acquisition module and cannot exert the concurrent data acquisition efficiency to the maximum extent.
Disclosure of Invention
In view of the foregoing problems, an object of the present invention is to provide an automatic control concurrent data collection method for an electric power energy collection device, which can automatically negotiate a service logic for concurrently collecting data items from a node number, and can adapt to characteristics of a collection module by auto-negotiation, thereby maximizing efficiency of the concurrent collection module.
In order to achieve the purpose, the invention adopts the technical scheme that: an automatic control concurrent data acquisition method for electric power energy acquisition equipment is characterized by comprising the following steps: the method comprises the following steps of,
s1: detecting whether the acquired data meet the sending condition, if so, executing S2, and otherwise, executing S3;
s2: sending the data, operating the data according to the corresponding transmission protocol, acquiring a next data object, and executing S1 again to realize concurrent acquisition of the data;
s3: receiving and processing the data to obtain an error code of the data, correcting the error code, and feeding back corrected information to a sending end of the acquisition equipment to realize self-adaptive adjustment; wherein the error code of the data comprises, a 1: the quantity of concurrent table records exceeds the limit; a2: the quantity of the concurrent data exceeds the limit;
the correcting the error code in S3 includes, B1: adjusting and recording the quantity according to the characteristics of the acquisition equipment and the data received by the receiving end; b2: adjusting the quantity of concurrent data according to the characteristics of the acquisition equipment and the data received by the receiving end;
the step of operating the data according to the corresponding transmission protocol in the step S2 includes, C1, detecting and judging whether the number of concurrent notes exceeds the limit in the process of transmitting the data, if so, executing step S3, if not, continuously detecting whether the sending buffer is full, if so, executing step D2, if not, continuously detecting whether the receiving buffer is full, if so, sequentially executing steps D2 and D3, if not, analyzing and processing the current data, and judging whether the current note address needs to be changed, if so, sequentially executing steps D2 and D3;
the D2 is a sending flag, and D3 is executed; and D3, for increasing the current number of times of concurrency, judging whether the next data acquisition is successfully carried out or not, if so, increasing the record once, executing the step S2 to obtain the next data object, and executing the step S1 again to realize the concurrent data acquisition.
Further, the operation of the data according to the corresponding transmission protocol in S2 further includes,
g1: if the current address does not change, continuously detecting whether the quantity of the concurrent messages exceeds the limit, if so, sequentially executing D2 and D3.
Further, the operation of the data according to the corresponding transmission protocol in S2 further includes,
h1: and if the quantity of the concurrent messages is not over-limit, replacing the data numbers, executing the step S2 of acquiring the next data object, and executing the step S1 again to realize the concurrent acquisition of the data.
Further, before the data collected by the detection of S1 meets the sending condition, the data is packaged and converted into data to be sent.
Compared with the prior art, the invention has the advantages that: the method analyzes and processes the data in a receiving state, obtains data capacity which is not matched with the current acquisition equipment, corrects the data capacity according to the attribute of the current acquisition equipment, and feeds back the correction result to the acquisition end of the acquisition equipment, so that the subsequent communication is conveniently carried out by taking the new data capacity as the standard, and different acquisition equipment can adaptively adjust the data acquisition size and the data acquisition quantity so as to realize the adaptive control of the electric power energy acquisition equipment; the method allows the electric power energy collection equipment to simultaneously collect a plurality of tables and a plurality of data of each table, realizes concurrent collection, effectively improves the data collection efficiency, realizes the real-time transmission of the data, and exerts the advantages of the concurrent data collection to the maximum extent.
Drawings
Fig. 1 is a flow chart of the self-control concurrent data acquisition method for the electric power energy acquisition equipment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
With the development of an electric power system, a plurality of data information of a plurality of electric energy meters need to be collected simultaneously, if one collection terminal corresponds to N electric energy meters, and each electric energy meter has M data to be collected, then N × M data need to be collected finally, the traditional single-shot data, that is, one data information which can only be transmitted to one electric energy meter is transmitted once, and a large amount of time needs to be consumed to collect all the data, so that the electric energy meter information cannot be transmitted in real time.
In order to improve the information acquisition and transmission efficiency, concurrent data acquisition is proposed to be used in the electric power energy acquisition equipment, that is, for N electric energy meters, each electric energy meter needs to acquire M data, and multiple data can be simultaneously acquired in one power line, so that the information acquisition time is shortened, and the real-time performance of the data is improved.
However, since the technology is still immature at present, it is not clear how to actually perform data transmission, and more importantly, the currently proposed concurrent acquisition method cannot implement adaptive adjustment, and one kind of communication can only be applied to a specific acquisition terminal, and once the communication method is applied to other types of acquisition terminals, transmission cannot be implemented due to mismatch of data capacity and the like.
Therefore, the invention researches and improves the concurrent acquisition applied to the electric power energy acquisition equipment, and discloses the adaptability of the acquisition method. In an implementation method of the present invention as shown in fig. 1, an automatic control concurrent data collection method for an electric energy collection device is provided, where the electric power system has N electric energy meters, each electric energy meter needs M data to be collected, the M data may be attribute parameters of voltage, current, electric power, etc. of the electric energy meter, and in order to distinguish each attribute parameter, a data code, i.e. ID, may be designed for each parameter, where ID ═ 1 may be commanded to represent the voltage of the electric energy meter, ID ═ 2 represents the current of the electric energy meter, ID ═ 3 represents the electric power of the electric energy meter, etc., and a specific ID may be determined according to actual situations.
After acquiring data transmitted from the outside, the acquisition device packages the data and converts the data into data to be transmitted, and at this time, a transmitting end of the acquisition device is in a transmitting state, namely, corresponding to a "transmitting state" of the leftmost end in fig. 1, and then performs the following operations:
s1: detecting whether the acquired data meet the sending condition, if so, executing S2, and otherwise, executing S3;
s2: sending the data, operating the data according to the corresponding transmission protocol, acquiring a next data object, and executing S1 again to realize concurrent acquisition of the data;
s3: and receiving and processing the data to obtain an error code of the data, correcting the error code, and feeding back the corrected information to a sending end of the acquisition equipment to realize self-adaptive adjustment.
In S2, after the next data object is obtained, the process of sending and receiving the previous data is repeated from the leftmost end of the flowchart, so that data acquisition, data sending, and data receiving are performed continuously through a loop operation, thereby implementing a concurrent acquisition function.
In S3, the receiving end receives the data and processes the data, i.e., analyzes why the data does not satisfy the transmission condition, to find the cause, i.e., the error code. In the present invention, specifically, the error code includes,
a1: the quantity of concurrent table records exceeds the limit;
a2: the amount of concurrent data is overrun.
After the error code is derived, the error code is corrected by the adaptive adjustment function to obtain parameters suitable for the properties of the current acquisition device, i.e. correcting the error code in S3 includes,
b1: adjusting and recording the quantity according to the characteristics of the acquisition equipment and the data received by the receiving end;
b2: and adjusting the quantity of the concurrent data according to the characteristics of the acquisition equipment and the data received by the receiving end.
If the data to be sent meets the sending condition, sending and transmitting are performed, and the specific relevant conditions of transmission are judged in the transmission process, so as to determine whether the data can be sent continuously and uninterruptedly, specifically, the operation of the data according to the corresponding transmission protocol in S2 includes,
and C1, in the process of transmitting the data, detecting and judging whether the concurrent record number exceeds the limit, if so, executing S3. That is, if the number of the electric energy meters acquired at this time has reached the upper limit of the capacity of the acquisition device, new data acquisition cannot be performed, the state needs to be changed to a receiving state, and after the data is received, redundant channel positions are vacated, and the next data can be transmitted. D1: if the quantity of the concurrent records is not over-limit, continuously detecting whether the sending buffer area is full, if so, executing D2;
d2: setting a sending mark, and executing D3; that is, the capacity of the sending buffer area reaches the maximum at the moment, and in order to enable the data transmitted subsequently to have a position to be stored, the data flag is set as the sending flag, and the data is sent out so as to vacate the corresponding position.
D3: and increasing the current concurrency number of times, judging whether the next-record data acquisition is successfully carried out at present, if so, increasing the record once, executing the step S2 of acquiring the next data object, and executing the step S1 again to realize the concurrent acquisition of the data.
E1: if the sending buffer is not full, continuing to detect whether the receiving buffer is full, if so, sequentially executing D2 and D3.
F1: if the receiving buffer is not full, analyzing and processing the current data, judging whether the current recording address needs to be changed, if so, sequentially executing D2 and D3. For operation F1, a specific operation principle is that, assuming that data in the current channel is data of the nth (N < N) th electric energy meter, once the data is sent out, data acquisition of the nth electric energy meter is completed, data acquisition of the (N +1) th electric energy meter is to be immediately acquired next time, and in order to ensure integrity of the data acquired by each electric energy meter, even if the capacity of the receiving buffer at this time does not reach the upper limit, and the length and the number of the current data concurrent messages do not reach the upper limit, D2 and D3 are still skipped to be executed, that is, the current data is sent first, and then data acquisition of the (N +1) th electric energy meter is performed.
Further, the operation of the data according to the corresponding transmission protocol in S2 further includes,
g1: if the current address does not change, continuously detecting whether the quantity of the concurrent messages exceeds the limit, if so, sequentially executing D2 and D3. Namely, if the quantity of the current data concurrent messages reaches the upper limit of the capacity, immediately sending the data to vacate redundant positions to facilitate the transmission of subsequent data.
H1: and if the quantity of the concurrent messages is not over-limit, replacing the data numbers, executing the step S2 to obtain the next data object, and executing the step S1 again to realize the concurrent acquisition of the data. If the length or the number of the current messages does not reach the upper limit, the next data can be collected and transmitted, the data collected by one electric energy meter is multiple, different attribute parameters have different ID numbers, the next data is collected through the change of the ID values, namely the next data object is obtained, and then the processes of sending, transmitting and detecting the previous data are sequentially repeated until all the data are collected.
According to the method, data which do not meet sending conditions are analyzed, the condition that the data cannot be sent, namely the capacity of the communication mode is possibly not matched with the capacity of the current acquisition equipment, the communication capacity of the current communication mode is changed through self-adaptive adjustment, and the communication capacity is fed back to the acquisition end of the acquisition equipment, so that self-updating adjustment is carried out according to different acquisition equipment, data matching is achieved, and the usability of the concurrent acquisition method is enlarged; meanwhile, the acquisition method carries out address allocation on each table mark by encoding each attribute parameter to be acquired, detects and judges a plurality of capacity areas in the transmission process, sets a sending mark when the capacity of the capacity areas reaches an upper limit, sends data and vacates redundant capacity, thereby ensuring reliable and effective transmission of the data and improving the efficiency of concurrent acquisition and the real-time property of the data.
In addition to the above-mentioned modifications, other similar modifications are also included in the scope of the modifications of the present invention, and are not described herein in detail.
While embodiments of the invention have been shown and described, it will be understood by those skilled in the art that: many changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.

Claims (4)

1. An automatic control concurrent data acquisition method for electric power energy acquisition equipment is characterized by comprising the following steps: the method comprises the following steps of,
s1: detecting whether the acquired data meet the sending condition, if so, executing S2, and otherwise, executing S3;
s2: sending the data, operating the data according to the corresponding transmission protocol, acquiring a next data object, and executing S1 again to realize concurrent acquisition of the data;
s3: receiving and processing the data to obtain an error code of the data, correcting the error code, and feeding back corrected information to a sending end of the acquisition equipment to realize self-adaptive adjustment;
wherein the error code of the data comprises, a 1: the quantity of concurrent table records exceeds the limit; a2: the quantity of the concurrent data exceeds the limit;
the correcting the error code in S3 includes, B1: adjusting and recording the quantity according to the characteristics of the acquisition equipment and the data received by the receiving end; b2: adjusting the quantity of concurrent data according to the characteristics of the acquisition equipment and the data received by the receiving end;
the step of operating the data according to the corresponding transmission protocol in the step S2 includes, C1, detecting and judging whether the number of concurrent notes exceeds the limit in the process of transmitting the data, if so, executing step S3, if not, continuously detecting whether the sending buffer is full, if so, executing step D2, if not, continuously detecting whether the receiving buffer is full, if so, sequentially executing steps D2 and D3, if not, analyzing and processing the current data, and judging whether the current note address needs to be changed, if so, sequentially executing steps D2 and D3;
the D2 is a set send flag and executes D3; and D3, for increasing the current number of times of concurrency, judging whether the next data acquisition is successfully carried out or not, if so, increasing the record once, executing the step S2 to obtain the next data object, and executing the step S1 again to realize the concurrent data acquisition.
2. The self-controlled concurrent data acquisition method according to claim 1, wherein: operating the data in accordance with the corresponding transmission protocol in S2 further includes,
g1: if the current address does not change, continuously detecting whether the quantity of the concurrent messages exceeds the limit, if so, sequentially executing D2 and D3.
3. The self-controlled concurrent data acquisition method according to claim 2, wherein: operating the data in accordance with the corresponding transmission protocol in S2 further includes,
h1: and if the quantity of the concurrent messages is not over-limit, replacing the data numbers, executing the step S2 to obtain the next data object, and executing the step S1 again to realize the concurrent acquisition of the data.
4. The self-controlled concurrent data acquisition method according to claim 3, wherein: and before the data acquired by the detection of S1 meet the sending condition, packaging the data, and converting the data into data to be sent.
CN201711369952.0A 2017-12-18 2017-12-18 Self-control concurrent data acquisition method for electric power energy acquisition equipment Active CN108107782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711369952.0A CN108107782B (en) 2017-12-18 2017-12-18 Self-control concurrent data acquisition method for electric power energy acquisition equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711369952.0A CN108107782B (en) 2017-12-18 2017-12-18 Self-control concurrent data acquisition method for electric power energy acquisition equipment

Publications (2)

Publication Number Publication Date
CN108107782A CN108107782A (en) 2018-06-01
CN108107782B true CN108107782B (en) 2021-04-16

Family

ID=62210860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711369952.0A Active CN108107782B (en) 2017-12-18 2017-12-18 Self-control concurrent data acquisition method for electric power energy acquisition equipment

Country Status (1)

Country Link
CN (1) CN108107782B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582772B (en) * 2023-03-29 2024-01-16 四川辰鳗科技有限公司 Electric energy data acquisition method, system, electronic equipment and medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7437581B2 (en) * 2004-09-28 2008-10-14 Intel Corporation Method and apparatus for varying energy per instruction according to the amount of available parallelism
US7994934B2 (en) * 2004-10-05 2011-08-09 Electro Industries/Gauge Tech Meter having a communication interface for receiving and interfacing with a communication device
CN101719306B (en) * 2009-10-30 2012-01-04 深圳市科陆电子科技股份有限公司 Parallel electric quantity data acquisition method
CN101776915B (en) * 2009-12-28 2012-09-26 国电南京自动化股份有限公司 Cross-platform station automatic monitoring system testing method based on concurrency simulating tools
CN201654088U (en) * 2010-03-19 2010-11-24 内江电业局 Multi-path real-time synchronous parallel electric energy acquisition device
CN102410391B (en) * 2011-08-01 2013-07-10 西安交通大学 Real-time throttling device and method for eliminating severe slugging of gathering-riser system
CN103763396B (en) * 2014-02-12 2017-07-18 浙江大学 Energy consumption data acquisition device and its acquisition method based on multi-protocols parallel acquisition technique
CN105139629B (en) * 2015-08-21 2019-02-22 光一科技股份有限公司 A method of improving low-voltage power line bandwidth carrier data acquisition efficiency
CN105632146A (en) * 2015-12-30 2016-06-01 宁波三星医疗电气股份有限公司 Collecting system for collecting water, gas, heat and electricity meter data
CN106534368B (en) * 2016-12-19 2019-09-10 山东省科学院自动化研究所 A kind of packet sending and receiving method and system of automobile CAN-bus gateway

Also Published As

Publication number Publication date
CN108107782A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN101853563B (en) Terminal and method for acquiring power utilization information
CN103716137A (en) Method and system for identifying reasons of ZigBee sensor network packet loss
EP2063577B1 (en) A method for transmitting and analyzing data in the wireless communication network and the apparatus thereof
CN108173778B (en) Data processing method of electric power information acquisition system based on business classification
CN108833058B (en) Dynamic data compression and decompression method in communication process of wide area measurement system
CN104486012B (en) A kind of environmental frequencies detection and automatic frequency-hopping system and method
CN103078895A (en) Industrial Ethernet multi-functional double-serial-port server based on MCF52233 (magnetic card file) chip
CN102692557A (en) Power-expenditure information acquisition terminal and method
CN115037700B (en) Complex network data packet transmission method, system, terminal and storage medium
US8451747B2 (en) Method and device for transmitting data based on time division duplexing (TDD) standard
CN108107782B (en) Self-control concurrent data acquisition method for electric power energy acquisition equipment
CN109729602A (en) A kind of link data processing method, device and computer storage medium
CN107925652B (en) Fixed conversion method and device of transmission protocol based on message protocol identification
CN114666681B (en) Stateful in-band network telemetry method and system
CN116708134A (en) Point-to-point network transmission system based on flow control
CN113032320B (en) Asynchronous serial port communication baud rate self-adaption method
CN107682047B (en) Channel-aware medium-voltage power line communication data transmission method
CN105337850A (en) Internet of Things data processing method and internet of Things gateway
CN104980259A (en) Method and device for multilink data transmission
CN109632842A (en) A kind of the CT detector and its application method of module serial structure
CN113301547B (en) Efficient communication method of low-power-consumption Bluetooth chip
CN115865174A (en) Method, device and equipment for transmitting meteorological station data through Beidou short message communication
CN104502647A (en) Remote meter reading automatic metering system for electric energy meter
CN104580034A (en) Estimation method, sending device and receiving device for uplink channel
CN102404231A (en) System and method for dynamically adjusting message sampling rate by combining software with hardware

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant