CN-115622238-B - Electric power data acquisition system
Abstract
The invention provides a power data acquisition system which comprises a plurality of power systems, power data servers and a Modbus communication network, wherein each power system is correspondingly provided with a power data acquisition gateway, the power data servers store a plurality of attributes corresponding to each power data acquisition gateway, the power data servers send the attributes to the power data acquisition gateways through a plurality of Modbus data frames in preset time, and the power data acquisition gateways receive the Modbus data frames and send corresponding attribute values to the power data servers. It will be appreciated that since the Modbus data frames are sent in a predetermined time, the power data acquisition gateway will also acquire all the power data in a short time, so that the power data acquisition gateway may be considered to acquire complete power data "simultaneously".
Inventors
- CHEN CHAO
- ZHU CHONG
- HONG XING
- HE HUI
- Hong Jiayin
Assignees
- 启东沃太新能源有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20221009
Claims (10)
- 1. A power data acquisition system, comprising: The system comprises a plurality of power systems (1), power data servers (2) and Modbus communication networks (4), wherein one power data acquisition gateway (11) is correspondingly arranged in each power system (1), the power data servers (2) store first attribute sets corresponding to each power data acquisition gateway (11), the first attribute sets comprise a plurality of attributes, each power data acquisition gateway (11) is provided with a unique identifier, and the power data servers (2) and the power data acquisition gateways (11) are all in communication connection with the Modbus communication networks (4); the power data server (2) is used for continuously executing first operations until preset conditions are met, wherein the first operations specifically comprise the steps of sequentially executing second operations on a plurality of power data acquisition gateways (11), wherein the second operations specifically comprise the steps of obtaining first attribute sets corresponding to the power data acquisition gateways, dividing the first attribute sets into a plurality of second attribute sets, wherein each second attribute set comprises a plurality of attributes, the intersection of any two second attribute sets is empty, the union of the plurality of second attribute sets is equal to the first attribute set, creating a corresponding first Modbus data frame for each second attribute set, all attributes of the corresponding second attribute sets are contained in the first Modbus data frame, and transmitting the plurality of first Modbus data frames to the power data acquisition gateway (11) in a first preset time; The electric power data acquisition gateway (11) is used for acquiring a plurality of attributes from a first Modbus data frame when the first Modbus data frame is received, acquiring attribute values corresponding to each attribute, generating a second Modbus data frame containing each attribute, the attribute value corresponding to each attribute and an identifier of the electric power data acquisition gateway (11), and transmitting the second Modbus data frame to the electric power data server (2); the first operation further includes storing the second Modbus data frame and a corresponding Time Time1 when the second Modbus data frame is received at Time Time1.
- 2. The electrical data collection system of claim 1, wherein the first operation comprises: and sequentially executing a second operation on the plurality of power data acquisition gateways (11), and then waiting for a second preset time.
- 3. The electrical data acquisition system of claim 2, wherein: Second preset time=5 ms.
- 4. A power data acquisition system according to claim 2 or 3, wherein the first operation further comprises: The method comprises the steps of executing a second operation on all the power data acquisition gateways (11), waiting a third preset Time, grouping a plurality of received second Modbus data frames, wherein identifiers of the power data acquisition gateways (11) of the second Modbus data frames in each group are identical, absolute values of differences between Time Time1 corresponding to the second Modbus data frames in each group are smaller than preset threshold values, and executing the third operation on each group, wherein each attribute, an attribute value corresponding to each attribute, an identifier of the power data acquisition gateway (11) and a Time Time2 generated based on all the Time Time1 are acquired from all the second Modbus data frames, and the Time Time2, each attribute, the attribute value corresponding to each attribute and the identifier of the power data acquisition gateway (11) are stored as one record.
- 5. The electrical power data collection system of claim 4, further comprising: A database (3); the storing of the Time instant 2, each attribute, the attribute value corresponding to each attribute, and the identifier of the electric power data collection gateway (11) as one record specifically includes: the Time Time2, each attribute, the attribute value corresponding to each attribute, and the identifier of the power data collection gateway (11) are stored as a record in the database (3).
- 6. The electrical data acquisition system of claim 5, wherein: The database (3) is a REDIS database.
- 7. The power data collection system according to claim 4, wherein the "Time instant 2 generated based on all Time instants Time 1" specifically comprises: time Time2 is the average of all times Time 1.
- 8. The electrical data acquisition system of claim 1, wherein: the number of attributes in each second set of attributes is 124 or less.
- 9. The power data collection system of claim 1, wherein, A cache device is arranged on a power data server (2) server; the storing the second Modbus data frame and the corresponding Time Time1 specifically includes storing the second Modbus data frame and the corresponding Time Time1 in the buffer device.
- 10. The power data collection system of claim 9, wherein, The cache device is a memory.
Description
Electric power data acquisition system Technical Field The invention relates to the technical field of power, in particular to a power data acquisition system. Background In the use process of the electric power system (such as photovoltaic, energy storage, charging piles, machine rooms and the like), if the electric power data (such as current, voltage, temperature, power and the like) of the electric power system can be obtained, the electric power system has high value for maintenance, monitoring and future upgrading of the electric power system, so that the electric power system can acquire the electric power data in real time (namely, an instruction is sent to the electric power system every other preset time, the electric power system can acquire the electric power data at the same moment when receiving the instruction, namely, current, voltage, temperature, power and the like at the same moment are acquired, and then the electric power system can generate the electric power data) just needs. At present, a plurality of electric power data acquisition gateways are arranged in an electric power system, an electric power data server is arranged in a control center, data communication can be carried out between the electric power data server and the electric power data acquisition gateways through a network, the data communication is based on a Modbus communication protocol, namely, the Modbus communication protocol is adopted to send the data acquisition instruction to the electric power data acquisition gateways, and then the electric power data acquisition gateway returns the acquired electric power data through the Modbus communication protocol. Because of the limitation of the Modbus protocol, only 124 registers of data can be requested at one time, if the limited messages are exceeded, an error status code is returned, and the type quantity of the power data is quite large in general, so that the data acquisition instruction needs to be sent in a segmented manner, which may cause that the acquired power data is not different from one time to another or from time to affect the subsequent use. Disclosure of Invention The invention aims to provide a power data acquisition system. In order to achieve one of the above objects, an embodiment of the present invention provides a power data collection system, including a plurality of power systems, a power data server and a Modbus communication network, wherein each power system is correspondingly provided with a power data collection gateway, the power data server stores a first attribute set corresponding to each power data collection gateway, the first attribute set includes a plurality of attributes, each power data collection gateway is provided with a unique identifier, and the power data server and the power data collection gateways are all connected to the Modbus communication network in a communication manner; the power data server is used for continuously executing first operation until preset conditions are met, the first operation specifically comprises the steps of sequentially executing second operation on a plurality of power data acquisition gateways, the second operation specifically comprises the steps of obtaining first attribute sets corresponding to the power data acquisition gateways, dividing the first attribute sets into a plurality of second attribute sets, wherein each second attribute set comprises a plurality of attributes, the intersection of any two second attribute sets is empty, the union of the plurality of second attribute sets is equal to the first attribute set, creating a corresponding first Modbus data frame for each second attribute set, all the attributes of the corresponding second attribute sets are contained in the first Modbus data frame, sending the plurality of first Modbus data frames to the power data acquisition gateways in the first preset time, obtaining attribute values corresponding to each attribute from the first Modbus data frame when the first Modbus data frame is received, generating an attribute value corresponding to each attribute, the value corresponding to each attribute, and the data frame of the power data gateway of the identifier, the first operation further includes storing the second Modbus data frame and a corresponding Time Time1 when the second Modbus data frame is received at the Time Time1. As a further improvement of one embodiment of the present invention, the first operation specifically includes sequentially performing a second operation on the plurality of power data collection gateways, and then waiting for a second preset time. As a further improvement of one embodiment of the present invention, the second preset time=5 ms. As a further improvement of one embodiment of the present invention, the first operation further includes waiting a third preset Time after the second operation is performed on all of the power data collection gateways, then grouping the received plurality of