Disclosure of Invention
The invention provides a method for rapidly reading meter data based on a broadband network, which is used for solving the problem that the meter reading time of a transformer area is long due to the fact that the meter access interface speed is low and the communication speed is not matched with the high communication speed of a wide network in the prior art.
In order to solve the above problems, the present invention provides a method for rapidly reading meter data based on a broadband network, including a concentrator, a collector and a station data acquisition terminal, where the station data acquisition terminal performs information transmission with the collector through the concentrator, the concentrator is provided with a master node communication module, and the collector or meter is provided with a slave node communication module, and further including the following steps:
s100, the station area data acquisition terminal informs the main node communication module to start meter data rapid reading;
s200, the master node communication module sends a concurrent meter reading downlink command message to the slave node communication module in a multicast mode based on a broadband network; the concurrent meter reading and copying downlink command message comprises meter reading designated meter marks, the total number of meters to be read and copying configuration data of each meter, wherein the reading configuration data comprises meter addresses, data interface protocol types, the total number of data items to be read and data item access identifications;
s300, the slave node communication module receives the concurrent meter reading downlink command message and confirms that meter timing connected with the concurrent meter reading downlink command message needs to be read, generates meter data reading messages for accessing corresponding data items according to the data interface protocol type and the data item access identification, sends the meter data reading messages to the meter connected with the concurrent meter reading downlink command message one by one in a conversation mode, and receives data reply messages of the data items fed back by the meter; the slave node communication module carries out data merging and packaging processing on the received data reply message of each data item under the limitation that the maximum length of a broadband network data packet is not exceeded, and generates a parallel meter reading and metering uplink data message according to a broadband network protocol;
s400, the master node communication module allocates slave node concurrent response time periods for the slave node communication modules for reading meter data, and master node concurrent command time periods are further arranged between the slave node concurrent response time periods; the slave node communication module which has generated the concurrent meter reading uplink data message sends the concurrent meter reading uplink data message to the master node communication module through a broadband network according to the slave node concurrent response time period distributed by the master node communication module; the master node communication module issues a concurrent reading meter downlink command message containing meter addresses which are not read and failed to read in a concurrent command time period of the master node;
and S500, the main node communication module carries out data decomposition and analysis processing on the received concurrent meter reading and recording uplink data messages to obtain data item data corresponding to the meters, generates meter data terminal report messages according to the interface protocol format of the station area data acquisition terminal, and sends the meter data terminal report messages to the station area data acquisition terminal according to the interface protocol format of the station area data acquisition terminal.
The method for rapidly reading the meter data based on the broadband network, provided by the invention, also has the following technical characteristics:
further, the step S200 further includes S210: the master node communication module issues a concurrent meter reading and metering downlink command message to the slave node communication module in a broadcast mode based on a broadband network; the concurrent meter reading downlink command message comprises all meter reading marks in the reading station area, the total number of the data interface protocol types and reading configuration data of each protocol type.
Further, the step S200 further includes S220: the master node communication module issues a concurrent meter reading and metering downlink command message to the slave node communication module in a unicast polling mode based on a broadband network; the concurrent meter reading and copying downlink command message comprises 1 meter address, a data interface protocol type of a corresponding meter, the total number of data items to be read and a data item access identifier.
Further, in step S300, the process of performing data merging and packaging processing on the data reply packet of each received data item by the slave node communication module includes data merging, data encryption and data packaging.
Further, in step S500, the process of performing data parsing and analysis processing on the received concurrent meter reading uplink data message by the master node communication module includes message parsing, data decryption, and data parsing.
Further, the step S400 further includes S410, when the station data acquisition terminal needs to stop reading all meters in the station area, the station data acquisition terminal issues a concurrent meter reading stop command to the slave node communication module, which is ready to send a concurrent meter reading meter uplink data message, through the master node communication module in the master node concurrent command time period through the master node communication module, the slave node communication module, which receives the concurrent meter reading stop command, suspends communication with the meter, and abandons the concurrent meter reading meter uplink data message, which is ready to be sent.
The invention has the following beneficial effects: the master node communication module is adopted to send a concurrent meter reading downlink command message to the slave node communication modules in a multicast mode, and each slave node communication module is connected with a meter to be read, so that the reading efficiency can be improved, and the reading of all meters in the station area can be quickly completed; the master node communication module allocates slave node concurrent response time periods for the slave node communication modules for reading meter data, and master node concurrent command time periods are further arranged between the slave node concurrent response time periods, so that response conflicts of carrier slave nodes can be avoided, and the reliability of information acquisition and transmission is ensured.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In an embodiment of the method for quickly reading meter data based on a broadband network in the present invention as shown in fig. 1, the method for quickly reading meter data based on a broadband network includes a concentrator, a collector, and a station data acquisition terminal, where the station data acquisition terminal performs information transmission with the collector through the concentrator, and is characterized in that the concentrator is provided with a master node communication module, and the collector or the meter is provided with a slave node communication module, and the method further includes the following steps:
s100, the station area data acquisition terminal informs the main node communication module to start meter data rapid reading;
s200, the master node communication module sends a concurrent meter reading downlink command message to the slave node communication module in a multicast mode based on a broadband network; the concurrent meter reading and copying downlink command message comprises meter reading designated meter marks, the total number of meters to be read and copying configuration data of each meter, wherein the reading configuration data comprises meter addresses, data interface protocol types, the total number of data items to be read and data item access identifications;
s300, the slave node communication module receives the concurrent meter reading downlink command message and confirms that meter timing connected with the concurrent meter reading downlink command message needs to be read, generates meter data reading messages for accessing corresponding data items according to the data interface protocol type and the data item access identification, sends the meter data reading messages to the meter connected with the concurrent meter reading downlink command message one by one in a conversation mode, and receives data reply messages of the data items fed back by the meter; the slave node communication module carries out data merging and packaging processing on the received data reply message of each data item under the limitation that the maximum length of a broadband network data packet is not exceeded, and generates a parallel meter reading and metering uplink data message according to a broadband network protocol;
s400, the master node communication module allocates slave node concurrent response time periods for the slave node communication modules for reading meter data, and master node concurrent command time periods are further arranged between the slave node concurrent response time periods; the slave node communication module which has generated the concurrent meter reading uplink data message sends the concurrent meter reading uplink data message to the master node communication module through a broadband network according to the slave node concurrent response time period distributed by the master node communication module; the master node communication module issues a concurrent reading meter downlink command message containing meter addresses which are not read and failed to read in a concurrent command time period of the master node;
and S500, the main node communication module carries out data decomposition and analysis processing on the received concurrent meter reading and recording uplink data messages to obtain data item data corresponding to the meters, generates meter data terminal report messages according to the interface protocol format of the station area data acquisition terminal, and sends the meter data terminal report messages to the station area data acquisition terminal according to the interface protocol format of the station area data acquisition terminal.
In the method for quickly reading the meter data based on the broadband network in the embodiment of the invention, the master node communication module is adopted to issue and read the downlink command message of the meter to the slave node communication module in a multicast mode, and each slave node communication module is connected with a meter to be read, so that the reading efficiency can be improved, and the reading of all meters in a station area can be quickly completed; the master node communication module allocates slave node concurrent response time periods for the slave node communication modules for reading meter data, and master node concurrent command time periods are further arranged between the slave node concurrent response time periods, so that response conflicts of carrier slave nodes can be avoided, and the reliability of information acquisition and transmission is ensured. Specifically, in the station data acquisition system based on the broadband network, if it is assumed that the time consumed for the station data acquisition terminal to send a meter reading downlink command message to the master node communication module is T1, the time consumed for the master node communication module to send the message to the slave node communication module is T2, the time consumed for the slave node communication module to send the meter reading message to the meter is T3, then the meter sends a data reply message to the slave node communication module after T4 time, the slave node communication module further sends the data reply message to the master node communication module after T5 time, and the master node communication module finally replies to the station data acquisition terminal after T6 time; under the condition of a broadband network, the data transmission speed on the network is high, and the required T2 and T4 time is very short and is far less than T1, T3, T4 and T6; particularly, the meter generally needs to have strong anti-interference capability to cope with a complex field environment, the performance of a meter processor is generally lower than that of a data acquisition terminal in a transformer area, so that the communication speed between a slave node communication module and the meter is slowest, and the time of T3 and T4 is longest; therefore, in the case of a system that reads one data item completely and then another data item, the overall reading efficiency is mainly limited by T3 and T4; the invention improves the reading efficiency by utilizing the rapidity of T1 and T2, and simultaneously issues a plurality of reading commands to a plurality of slave node communication modules to enable the slave node communication modules to read data simultaneously. The system does not need to wait for one data item to return and then copy another data item; if N slave nodes read at the same time, the average reading time of one data item becomes (T3 + T4)/N, and the larger the N is, the faster the average speed is; the reading efficiency can be further improved by sending the acquisition message in a compression mode, and the communication speeds T1 and T6 between the data acquisition terminal of the current transformer area and the communication module of the main node are much faster than that of a meter T3, but much lower than that of a broadband carrier; since T3=4T1=4T6, when N is greater than 4, the communication speeds T1 and T6 between the station data collection terminal and the master node communication module become a bottleneck of the reading efficiency of the system. Under the condition that the broadband carrier speed is redundant, a compression mode is adopted between a station data acquisition terminal and a main node communication module to issue an acquisition message, one bit in a byte represents a slave node, the slave nodes with the same reading data items are organized into a group, the reading data items are issued according to the group, the station data acquisition terminal does not organize reading frames, and the slave node communication module performs framing, so that the bottleneck problem of T1 is effectively solved, for example, if 500 electric meters exist in a station area, the same data item is simultaneously read, the mode compresses T1 by nearly 500 times, and the limitation of T1 is basically eliminated; when the master node communication module reports the reading result, the multi-table data are combined for uploading, so that the repeated data and the inter-frame time interval are reduced, the influence of T6 is reduced as much as possible, and the reading efficiency can be improved. The carrier slave node responds to the conflict mainly because the carrier slave node responds to the reading result by carrying out channel competition, and can occupy channel communication after avoiding the conflict, if a plurality of slave nodes compete simultaneously, the conflict probability is increased, and the bus utilization rate is reduced; because carrier communication signals are regional, when nodes are far away from each other, the nodes do not interfere with each other, and slave nodes under the same proxy node interfere with each other more; the slave nodes without interference can transmit data at the same time; in order to reduce bus contention, in the embodiment of the present invention, when the master node initiates concurrent meter reading, slave nodes of the same relay level and the same agent node are not arranged to simultaneously read meters as much as possible, but slave nodes of different relay levels and different agent nodes are equalized to simultaneously read meters as much as possible, thereby avoiding carrier slave node response collision.
In the above embodiment, the method for quickly reading the meter data based on the broadband network further has the following technical features:
preferably, the step S200 further includes S210: the master node communication module issues a concurrent meter reading and metering downlink command message to the slave node communication module in a broadcast mode based on a broadband network; the concurrent meter reading downlink command message comprises all meter reading marks in the reading station area, the total number of the data interface protocol types and reading configuration data of each protocol type. The step S200 further includes S220: the master node communication module issues a concurrent meter reading and metering downlink command message to the slave node communication module in a unicast polling mode based on a broadband network; the concurrent meter reading and copying downlink command message comprises 1 meter address, a data interface protocol type of a corresponding meter, the total number of data items to be read and a data item access identifier.
Preferably, in step S300, the process of performing data merging and packaging processing on the data reply packet of each received data item by the slave node communication module includes data merging, data encryption and data packaging. In the step S500, the process of performing data parsing and analysis processing on the received concurrent meter reading uplink data message by the master node communication module includes message parsing, data decryption, and data parsing. The step S400 further includes step S410, when the station data acquisition terminal needs to stop reading all meters in the station area, the station data acquisition terminal issues a concurrent meter reading stop command to the slave node communication module, which is ready to send a concurrent meter reading meter uplink data message, through the master node communication module in the master node concurrent command time period through the master node communication module, the slave node communication module, which receives the concurrent meter reading stop command, stops communication with the meter, and abandons the concurrent meter reading meter uplink data message that is ready to be sent.
In order to facilitate understanding of the essence of the present invention, the following is exemplified. The invention discloses a rapid meter data reading method based on a broadband network, which is used for reading multiple data of multiple meters in a station area. The meter reading system comprises a concentrator, a collector and a data acquisition terminal, wherein the concentrator completes the data communication function with the collector on one hand and issues a command for reading electric quantity data to a local communication module used on the collector or an electric meter on the other hand, and the concentrator completes the communication with the data acquisition terminal according to the requirement and receives the command of the data acquisition terminal to upload the electric quantity data to the data acquisition terminal. The collector is mainly used for collecting and storing data of the user electric energy meter and transmitting the electric quantity data to the concentrator through the low-voltage power line. The topological structure diagram of the meter reading system is shown in fig. 8, wherein the master node communication module refers to a local communication module used on the concentrator, and the slave node communication module refers to a local communication module used on the I-type collector and the electric meter. The distribution room data acquisition terminal is connected to the concentrator through dialing or other modes, the concentrator can simultaneously and concurrently copy and read a plurality of electric meters, and each frame of message can comprise a plurality of 645 frames. The concentrator sends a routing pause command to the main node communication module, so that the main node communication module exits from the active mode, and the concentrator automatically controls a meter reading interaction flow. The concentrator continuously sends a plurality of AFN = F1H reading frames to the master node communication module, and starts a command for rapidly reading meter data.
The master node communication module issues a concurrent meter reading and copying downlink command message based on a broadband network, wherein the concurrent meter reading and copying downlink command message comprises a meter reading specified meter mark, the total number of meters to be read and copying and reading configuration data of each meter, and the reading and reading configuration data of each meter comprises a meter address, a data interface protocol type, the total number of data items to be read and copying and an access identifier of each data item. For the common meter specification DL645, framing is performed according to the format of fig. 6.
For example: 68430001000000000000F 10134393800000004400000045000000460000004700000000E 516
- "01" represents the communication protocol type, with a value of "01", i.e. DLT645-2007 communication protocol;
- "34343938" represents a data id with a value of "38393434", and a value of "05060101" after the 33H subtraction process represents a current forward active power data block containing total, rate 1, rate 2 … … current forward active power data;
- "04000000" represents the number of electric energy meters, which is "00000004";
- "004400000000004500000000004600000000004700000000" indicates the address of the electric energy meter;
- "1A" represents the check code CS, whose value is "1A".
The slave node communication module is always in a passive state, and is ready to respond to a communication request from the master node communication module at any time, and a response flow chart is shown in fig. 9. The slave node communication module receives and transmits a meter reading downlink command message, generates a plurality of meter data reading messages for accessing corresponding data items according to the type of a data interface protocol and a data item access identifier after confirming that the meter connected with the node communication module needs to be read, transmits the meter data reading messages to the connected meter one by one in a dialogue mode, receives the data reply message of each data item replied by the meter, performs data merging and packaging processing on the data reply messages under the limitation that the maximum length of a broadband network data packet is not exceeded, and generates and reads a meter uplink data message according to the broadband network protocol. The data merging and packaging process of the uplink data message of the concurrent meter reading meter generated by the slave node communication module is divided into three steps of data merging, data encryption and data packaging, as shown in fig. 3.
For example: 686B 0081040000000000022000682119000000000000F 101343439387 9973337333333 bb 3c 3333 ca 4733338 a 6c 33338097435637433311 bb 3c 3322 ca 4733668 a 6c 33777597333337333333 cc3c bb 33ca 4733338 a 6d 3333798133433733 dd 33 bb 3c 3333 ca 4733338 a 6c 33332F 16
- "01" represents the communication protocol type, with a value of "01", i.e. DLT645-2007 communication protocol;
- "34343938" represents a data id with a value of "38393434", and a value of "05060101" after the 33H subtraction process represents a current forward active power data block containing total, rate 1, rate 2 … … current forward active power data;
- "7997333337333333 bb 3c 3333 ca 4733338 a 6c 33338097435637433311 bb 3c 3322 ca 4733668 a 6c 33777597333337333333 cc3c bb 33ca 4733338 a 6d 3333798133433733 dd 33 bb 3c 3333 ca 4733338 a 6c 3333" represents data content;
- "2F" represents the check code CS, whose value is "2F".
The master node communication module allocates slave node concurrent response time periods for the slave node communication modules which read meter data, and master node concurrent command time periods are arranged between the slave node concurrent response time periods; the slave node communication module which prepares and sends the meter reading uplink data message to the master node communication module through the broadband network according to the slave node concurrent response time period distributed by the master node communication module; the main node communication module issues a concurrent reading meter downlink command message containing the meter data terminal which has not read and read the failed meter address in the main node concurrent command period;
the main node communication module carries out data decomposition and analysis processing on the received concurrent meter reading uplink data messages to obtain data item data corresponding to the meters, generates meter data terminal report messages according to the protocol format of a station data acquisition terminal interface, and sends the meter data terminal report messages to the station data acquisition terminal according to the communication rules of the station data acquisition terminal interface. The data decomposition and analysis processing of the concurrent meter reading meter uplink data message by the master node communication module includes message analysis, data decryption and data decomposition, as shown in fig. 4. The message parsing flow is shown in fig. 10.
When the station data acquisition terminal needs to stop reading all meters in the station area, the station data acquisition terminal issues a concurrent meter reading stop command to a slave node communication module which prepares a concurrent meter reading uplink data message through a master node communication module in a master node concurrent command time period through the master node communication module, the slave node communication module which receives the command stops communication with the meter, and the parallel meter reading uplink data message which is prepared to be sent is abandoned.
For example:
-an upstream: 680F 004300005F 000000120200B 616;
-downstream: 681500830000000000000001000000000000008416.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.