Networking method of electric power meter reading system and meter reading methodTechnical Field
The invention belongs to the technical field of power communication, and particularly relates to a networking method and a meter reading method of a meter reading system with nodes in power line carrier communication and micropower wireless communication modes.
Background
The electric meter reading system mainly comprises an electric energy meter, a collector, a concentrator, a data transmission channel and a master station system. The local data transmission of the concentrator mainly comprises two modes of power line carrier communication and micropower wireless communication. Power Line Carrier (PLC) is a communication system specific to a Power system, and is a technology for transmitting an analog or digital signal at a high speed by a Carrier system through a Power Line. The power line carrier communication has the greatest characteristic that data transmission can be carried out only by wires without erecting a network again, but the power line carrier communication is easily influenced by impedance, noise, air switches, circuit breaker attenuation and the like. The micropower wireless communication transmits data by the transmission of electromagnetic waves in space, is not influenced by power line environment, has the characteristics of low power consumption and capability of crossing distribution areas, but has lower transmission success rate and easy weather influence on communication quality under large shelters and closed environments. The power line carrier communication and the micro-power wireless communication have the defects respectively, but can make up for each other to a certain extent, and based on the defects, technologies combining two communication modes are developed in recent years so as to improve the meter reading success rate and the communication efficiency.
The Chinese patent application with the application number of 201810229174.3 discloses a dual-mode heterogeneous network networking communication method for a power information acquisition system, which comprises the steps of constructing a dual-tree network oriented to power wireless and power line carriers, evaluating the communication performance of power line carrier communication and micropower wireless channels by equipment nodes, traversing route forwarding trees in a subsequent sequence to realize channel selection and route addressing, and ensuring a concentrator to realize power data acquisition with a high success rate through a file updating mechanism and a retransmission mechanism. However, the power line carrier communication and the micropower wireless communication of the method are independent networking, the concentrator node and the electric energy meter node are required to have the functions of power line carrier communication and micropower wireless communication at the same time, and the concentrator node is required to send networking beacon frames for networking, so that the efficiency is low. The Chinese patent application with application number of 201510500266.7 discloses a dual-mode communication intelligent electric energy meter and a centralized meter reading networking method, wherein an electric energy meter in a meter reading system comprises communication modules with two communication modes, when the communication module with the first communication mode cannot effectively receive communication data frames from a centralized meter reading system network, mutual conversion and forwarding of the two modules are achieved through an MCU control module, and a routing path with optimal distance and most stable signals is selected according to actual conditions, so that networking efficiency of the electric energy meter in a station area and stability of the communication path are improved. However, the method has the problem of low efficiency because the concentrator sends the reading communication instruction to perform networking.
Disclosure of Invention
The invention aims to provide a networking method of a power meter reading system, which is simple and high in efficiency.
Another object of the present invention is to provide a meter reading method for an electric power meter reading system with high communication efficiency.
In order to achieve the first object, the invention adopts the following technical solutions:
a networking method of an electric power meter reading system comprises a concentrator, an electric energy meter, a collector and a master station, wherein the concentrator is a master node, the electric energy meter and the collector are slave nodes, the master node comprises a dual-mode master node and a pure carrier master node, the slave nodes comprise a dual-mode slave node and a pure carrier slave node, and the networking method comprises the following steps:
networking the power line carrier network, namely, after the master node and the slave nodes are electrified, networking the power line carrier network:
s1-1, the main node determines the channel used in wireless networking according to the node address of the main node, broadcasts the channel number through the power line carrier network, and monitors the channel number information broadcast by the main node of the neighbor cell through the power line, if the channel number broadcast by the main node conflicts with the channel number broadcast by the main node of the neighbor cell, the conflicting main node negotiates and adjusts the determined channel number;
s1-2, enabling the slave nodes to access the network through the power line carrier, and acquiring the hierarchy of the slave nodes in the power line carrier network topological structure;
s1-3, the master node sends the channel number used by the wireless networking to the slave node successfully accessing the network through the power line;
a wireless network networking step, wherein a slave node with a dual-mode communication module performs wireless network networking after the power line carrier network networking is finished:
s2-1, the dual-mode slave node executes the following steps according to whether the dual-mode slave node successfully accesses the network through the power line carrier network, if the dual-mode slave node successfully accesses the network through the power line carrier network and receives the wireless networking channel number sent by the master node, the step S2-2 is executed, and if the dual-mode slave node fails to successfully access the network through the power line carrier network, the step S2-3 is executed;
s2-2, the dual-mode slave node broadcasts the wireless network access application on the wireless channel allocated by the master node, if a neighbor node receives the wireless network access application, the neighbor node replies the hierarchy of the neighbor node in the topological structure of the power line carrier network, the wireless field intensity of the neighbor node and the address information of the neighbor node to the dual-mode slave node sending the wireless network access application, the dual-mode slave node records the received information, establishes a neighbor dual-mode slave node list, compares the hierarchy of the neighbor node and the hierarchy of the neighbor node in the topological structure of the power line carrier network, if the neighbor nodes with the hierarchy smaller than the hierarchy of the dual-mode slave node exist, the neighbor node with the smallest hierarchy is selected as the wireless relay node to be accessed into the network, then executing step S2-4, otherwise, selecting the neighbor node with the strongest wireless field intensity as the wireless relay node to access the network, and then executing step S2-4;
s2-3, the dual-mode slave node switches the wireless networking channel in a round-robin manner, sends a wireless access application for probing through the wireless channel, if a neighbor node receives the wireless network access application, the neighbor node replies the hierarchy of the neighbor node in the topological structure of the power line carrier network, the wireless field intensity of the neighbor node and the address information of the neighbor node to the dual-mode slave node sending the wireless network access application, the dual-mode slave node records the received information, establishes a neighbor dual-mode slave node list, compares the hierarchy of the neighbor node and the hierarchy of the neighbor node in the topological structure of the power line carrier network, if neighbor nodes with a hierarchy smaller than the hierarchy of the dual-mode slave node exist, the node with the smallest hierarchy is selected as the wireless relay node to be accessed into the network, then executing step S2-4, otherwise, selecting the neighbor node with the strongest wireless field intensity as the wireless relay node to access the network, and then executing step S2-4;
s2-4: judging whether the neighbor node as the wireless relay node is a dual-mode master node or a dual-mode slave node, if so, executing the step S2-5, and if so, executing the step S2-6;
s2-5: the wireless relay node sends the received wireless access application to the main node through the power line carrier network, after receiving the wireless access application, the main node sends a successful access confirmation or a negative confirmation to the wireless relay node through the power line carrier network, then the wireless relay node sends the successful access confirmation or the negative confirmation to a dual-mode slave node initiating the wireless access application through a wireless channel, if the access is allowed, the main node records the corresponding relation between the dual-mode slave node and the wireless relay node, then step S2-7 is executed, and if the access is not allowed, step S2-8 is executed;
s2-6, the wireless relay node directly sends the successful confirmation or the denial of the network access to the dual-mode slave node which initiates the network access application through a wireless channel, if the network access is allowed, the step S2-7 is executed, and if the network access is not allowed, the step S2-8 is executed;
s2-7, the wireless relay node sends a handshake frame to the dual-mode slave node initiating the network access application through a wireless channel at regular time, the dual-mode slave node receives the handshake frame and then responds, if the wireless relay node does not receive the handshake response of the dual-mode slave node within a certain time continuously, the wireless relay node sends the off-line application of the dual-mode slave node to the master node, and the master node deletes the corresponding relation between the dual-mode slave node without response and the wireless relay node; if the dual-mode slave node does not receive the handshake frame of the wireless relay node within a certain time continuously, executing step S2-8;
s2-8, the dual-mode slave node selects a neighbor dual-mode slave node with the lowest power line carrier network topology level from the neighbor dual-mode slave node list recorded by the dual-mode slave node as a wireless relay node to send a wireless network access application again, the step S2-5 is executed, and if the neighbor dual-mode slave nodes in the neighbor dual-mode slave node list are all used as wireless relay nodes to be wireless but network access is unsuccessful, the step S2-3 is executed.
More specifically, in step S1-1, the master node determines the channels used in wireless networking according to the lowest byte modulo the total wireless channel group number of its own address.
More specifically, in step 1-1, when the wireless channel numbers broadcast by the master nodes conflict, the two master nodes that conflict perform negotiation by comparing the sizes of the addresses, the master node with the smaller master node address performs channel number broadcast after adjusting the channel number, and the channel number of the master node with the larger master node address remains unchanged.
In order to achieve the second object, the invention adopts the following technical solutions:
the electric power meter reading system which adopts the networking method of the electric power meter reading system to carry out networking adopts the following steps to carry out meter reading:
the centralized meter reading master station sends a meter reading command to the master node;
the master node inquires whether the slave node to be read is connected to the network through the power line carrier network and the wireless network at the same time or only through the wireless network, if the slave node is connected to the network through the power line carrier network, the master node takes the address of the slave node as a destination address, a meter reading command is sent to the slave node through the power line carrier network, and the slave node returns a meter reading result through the power line carrier network; if the data is the latter, the master node inquires the wireless relay node of the slave node, the wireless relay node address is used as a destination address, the meter reading command is sent to the wireless relay node through the power line carrier network, the wireless relay node forwards the meter reading command to the slave node, and the slave node returns the meter reading result in an original path.
According to the technical scheme, when networking is carried out, the power line carrier network is firstly adopted for networking, then the topological structure information of the power line carrier network is combined for carrying out bottom-up wireless networking, when wireless networking is carried out, the dual-mode slave node preferentially selects the neighbor node with the smaller topological level of the power line carrier network as the wireless relay node to initiate a network access application, a wireless master node is not needed to send a beacon frame in the networking process, the networking method is simple, and the networking efficiency is improved; when the meter reading network is established based on the networking method for meter reading, the meter reading process is simple and reliable, and the success rate of meter reading and the communication efficiency can be improved.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a block diagram of a power meter reading system according to an embodiment of the present invention;
fig. 2 is a flow chart of the networking method of the present invention.
Detailed Description
In order to make the aforementioned and other objects, features and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the electric power meter reading system of the present embodiment includes: a concentrator, an electric energy meter, a collector and a master meter reading station (not shown). The concentrator is a master node, and the electric energy meter and the collector are slave nodes. The concentrator can be a concentrator with a dual-mode communication module (hereinafter referred to as a dual-mode master node), and can realize power line carrier communication and micro-power wireless communication. The concentrator may be a concentrator having a power line carrier communication module (hereinafter referred to as a pure carrier master node), and may perform only power line carrier communication. Similarly, the electric energy meter may also be an electric energy meter with a dual-mode communication module (hereinafter referred to as a dual-mode slave node), or an electric energy meter with a power line carrier communication module (hereinafter referred to as a pure carrier slave node). The electric energy meter with the dual-mode communication module can be in communication connection with the concentrator in a power line carrier mode or a wireless mode, and the electric energy meter with the power line carrier communication module is in communication connection with the concentrator through a power line. The collector comprises a type I collector and a type II collector, the collector is used for being connected with an electric energy meter without a communication function, and the collector is a collector with a dual-mode communication module (hereinafter referred to as a dual-mode slave node) and can be in communication connection with the concentrator in a power line or wireless mode.
The networking method of the present invention is described below with reference to fig. 2, and includes two major steps of power line carrier network networking and wireless networking, where the power line carrier network networking is performed first, and then the wireless networking is performed, specifically as follows:
s1, networking the power line carrier network; after a main node (concentrator) and a slave node (electric energy meter and collector) are powered on, power line carrier network networking is started, and the method specifically comprises the following steps:
s1-1, determining a channel used in wireless networking by a main node (a concentrator with a dual-mode communication module and a concentrator with a power line carrier communication module) according to a self node address, then broadcasting a channel number through a power line carrier network, monitoring channel number information broadcast by the main node of a neighbor station area through a power line while broadcasting by the main node, and negotiating and adjusting the determined channel number by the conflicting main node when the channel number broadcast by the main node conflicts with the channel number broadcast by the main node of the neighbor station area; specifically, the main node determines a channel used in wireless networking according to the lowest byte module total wireless channel group number of the address of the main node; when the channel numbers conflict, the two main nodes which conflict carry out negotiation by comparing the sizes of the addresses, the main node with the smaller main node address carries out channel number broadcasting after adjusting the channel numbers, and the channel number of the main node with the larger main node address is kept unchanged;
s1-2, enabling slave nodes (an electric energy meter with a dual-mode communication module, a collector and an electric energy meter with a power line carrier communication module) to access the network through power line carriers, and acquiring the hierarchy of the slave nodes in a power line carrier network topological structure;
and S1-3, the master node sends the channel number used by the wireless networking to the slave node successfully accessed to the network through the power line.
S2, networking the wireless network; the networking of the wireless network is mainly performed on a slave node with a dual-mode communication module, the networking of the wireless network is started by the dual-mode slave node after a delay time T, the delay time T is the networking time of the power line carrier network, the duration of the delay time T is determined according to the total number of the slave nodes, namely, the networking of the wireless network is performed after the networking of the power line carrier network is completed, and the networking of the wireless network is performed specifically:
s2-1, after waiting for the delay time T, the dual-mode slave node executes different subsequent steps according to whether the dual-mode slave node successfully accesses the network through the power line carrier network, if the dual-mode slave node successfully accesses the network through the power line carrier network and receives the wireless networking channel number sent by the master node, the step S2-2 is executed, and if the dual-mode slave node fails to successfully access the network through the power line carrier network, the step S2-3 is executed;
s2-2, the dual-mode slave node broadcasts a wireless network access application on a wireless channel allocated by the master node, if a neighbor node receives the wireless network access application, the neighbor node replies the information of the self-level, the self-wireless field strength and the self-node address in the topology structure of the power line carrier network to the dual-mode slave node sending the wireless network access application, the neighbor node can be a dual-mode master node and/or a dual-mode slave node which has successfully accessed the network through the power line carrier, the dual-mode slave node compares the self-level and the neighbor node level in the topology structure of the power line carrier network according to the received information, if the neighbor node with the level smaller than the dual-mode slave node level exists, the node with the lowest level (the node can be a dual-mode slave node or a dual-mode master node) is selected as the wireless relay node to access the network, and then the step S2-4, if the hierarchies of the neighbor nodes are all equal to or larger than the hierarchy of the dual-mode slave node, selecting the neighbor node with the strongest wireless field intensity as a wireless relay node to access the network, taking a wireless channel as a standby communication channel at the moment, and then executing the step S2-4; if the neighbor dual-mode slave node does not successfully access the network through the power line carrier, the received network access application is not processed; after receiving network hierarchy, wireless field intensity and node address information replied by a neighbor dual-mode slave node, the dual-mode slave node records the information of all the received neighbor dual-mode slave nodes and establishes a neighbor dual-mode slave node list;
s2-3, the dual-mode slave nodes switch wireless networking channels in a round-robin manner, a wireless networking application is sent through the wireless channel for probing, if a neighbor node (including a dual-mode master node and/or a dual-mode slave node which has successfully accessed through the power line carrier network) receives the wireless networking application, the neighbor node replies the hierarchy of the neighbor node in the power line carrier network topology structure, the wireless field intensity of the neighbor node and the address information of the neighbor node to the dual-mode slave node which sends the wireless networking application, the dual-mode slave node compares the hierarchy of the neighbor node and the hierarchy of the neighbor node in the power line carrier network topology structure according to the received information, if the hierarchy is smaller than that of the neighbor node of the dual-mode slave node, the node with the smallest hierarchy is selected as a wireless relay node to access the network, and then step S2-4 is executed, if the hierarchies of the neighbor nodes are equal to or larger than that of the dual, selecting the neighbor node with the strongest wireless field intensity as the wireless relay node to access the network, and then executing the step S2-4; similarly, if the neighbor dual-mode slave node does not successfully access the network through the power line carrier, the received network access application is not processed; after receiving network hierarchy, wireless field intensity and node address information replied by a neighbor dual-mode slave node, the dual-mode slave node records the information of all the received neighbor dual-mode slave nodes and establishes a neighbor dual-mode slave node list;
s2-4: judging whether the node serving as the wireless relay node is a dual-mode master node or a dual-mode slave node, if so, executing step S2-5, and if so, executing step S2-6;
s2-5: the wireless relay node (neighbor dual-mode slave node) sends the received wireless network access application to the master node through the power line carrier network, after receiving the wireless network access application, the master node sends a network access success confirmation or a denial to the wireless relay node through the power line carrier network, then the wireless relay node sends the network access success confirmation or the denial to the dual-mode slave node which initiates the wireless network access application through a wireless channel, if the network access is allowed, the step S2-7 is executed, and if the network access is not allowed, the step S2-8 is executed; if the master node allows the dual-mode slave node initiating the wireless network access application to access the network, the master node simultaneously records the corresponding relation between the dual-mode slave node and the wireless relay node;
s2-6, the dual-mode master node directly sends a successful network access confirmation or a negative confirmation to the dual-mode slave node initiating the network access application through a wireless channel, if the network access is allowed, the step S2-7 is executed, and if the network access is not allowed, the step S2-8 is executed;
s2-7, the wireless relay node sends a handshake frame to the dual-mode slave node initiating the network access application through a wireless channel at regular time, the dual-mode slave node receives the handshake frame and then responds, if the wireless relay node does not receive the handshake response of the dual-mode slave node within a certain time continuously, the wireless relay node sends the off-line application of the dual-mode slave node to the master node, and the master node deletes the corresponding relation between the dual-mode slave node without response and the wireless relay node; if the dual-mode slave node does not receive the handshake frame of the wireless relay node within a certain time continuously, executing step S2-8;
s2-8, the dual-mode slave node selects a neighbor dual-mode slave node with the lowest power line carrier network topology level from the neighbor dual-mode slave node list recorded by the dual-mode slave node as a wireless relay node to send a wireless network access application again, the step S2-5 is executed, and if the neighbor dual-mode slave nodes in the neighbor dual-mode slave node list are all used as wireless relay nodes to be wireless but network access is unsuccessful, the step S2-3 is executed.
After the dual-mode slave node is successfully networked by a power line carrier network or a wireless network, the meter reading steps are as follows:
the centralized meter reading master station sends a meter reading command to the master node;
the master node inquires whether the slave node to be read is connected to the network through the power line carrier network and the wireless network at the same time or only through the wireless network, if the slave node is connected to the network through the power line carrier network, the master node takes the address of the slave node as a destination address, a meter reading command is sent to the slave node through the power line carrier network, and the slave node returns a meter reading result through the power line carrier network; if the data is the latter, the master node inquires the wireless relay node of the slave node, the wireless relay node address is used as a destination address, the meter reading command is sent to the wireless relay node through the power line carrier network, the wireless relay node forwards the meter reading command to the slave node, and the slave node returns the meter reading result in an original path.
The invention combines the topological structure information of the power line carrier network to carry out bottom-up wireless networking, has simple networking, is stable and reliable, and can improve the success rate of meter reading.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.