Disclosure of Invention
The technical problem to be solved by the present invention is to overcome the above deficiencies of the prior art, and to provide a method for power line carrier communication learning and fuzzy flooding communication, the method comprising:
aiming at the defects and shortcomings in the prior art, the invention aims to provide a power line carrier full-network random networking communication method, which comprises the steps of establishing a power line carrier communication channel network based on OFDM, broadcasting and sending data frames at carrier nodes of the channel network, broadcasting and forwarding the data frames at other nodes of the received data frames until a target address node receives the data frames, waiting for a specific time, and broadcasting and sending back a plurality of data frames through a power line carrier channel; and repeating the broadcast communication process and returning the data frame to the starting node. The method can effectively improve the utilization rate of the power line carrier network and improve the reliability and the success rate of the power line carrier communication system.
In order to achieve the purpose, the invention adopts the following technical scheme: the method for power line carrier full-network random networking communication comprises the following steps:
a method for power line carrier communication learning and fuzzy flooding communication, the method comprising:
a1 initial node sends data frame with target address to carrier network channel one by one according to target address base address in specific time interval, the operation is carried out for N times, N is natural number larger than 1;
a2 analyzing the data frame by the node receiving the data frame, analyzing the node with the consistent target address, recording the initial node address, recording the communication times and generating the response data frame, sending the response to the initial node, and if the node with the inconsistent target address is analyzed, no response is sent; and
a3 the initial node records the number of times of response, when the number of times of response reaches N times, the initial node records and establishes the address base of the target node capable of direct communication (hereinafter referred to as A base), otherwise establishes the address base of the target node incapable of direct communication (hereinafter referred to as B base)
According to an embodiment of the present invention, the method for power line carrier communication learning and fuzzy flooding communication further includes:
a4 the initial node sends flooding reading data frames with initial node address to the power line carrier network channel one by one according to the address of the target node address base which can not be directly communicated, and the operation is carried out for N times; n is a natural number greater than 1;
a5 can directly communicate with the target node address library node to receive the flooding data frame and forward the data frame once through the power line carrier channel at a specific time interval;
a6, if the target node address base node which can not directly communicate receives the forwarded flooding data frame, only analyzing and not replying; if the target node address base node which can not directly communicate receives the forwarded flooding data frame, analyzing whether the target address is consistent, if not, only analyzing and not replying, and if so, entering the step a 7;
a7 records the address of the start node, records the times of receiving the flooding data frame, generates the response data frame, and sends the flooding response frame to the start node; and
a8 initial node records the response times, when the response times reach N times, the initial node updates the target node address base (B base) which can not be directly communicated as the first flooding readable target node address base, otherwise, the residual unread target address base (C base) is established.
According to an embodiment of the present invention, the method for learning and fuzzy flooding communication by power line carrier communication further comprises repeating steps a4 to a8, thereby the initiating node establishes a complete target address library until all target nodes are covered.
According to an embodiment of the present invention, in a6, the target node address library node which is not directly communicable forwards the flooded data frame, only the neighboring node can receive the complete flooded data frame, and the forwarding is stopped by taking the data frame received by the target address as the end point.
According to an embodiment of the present invention, the method for power line carrier communication learning and fuzzy flooding communication is characterized in that: the start node has a critical node identification function.
According to an embodiment of the present invention, the method for power line carrier communication learning and fuzzy flooding communication further includes: a9 when the concentrator does not read meter, the initial node automatically sends network maintenance frame to maintain the integrity of carrier channel network.
According to an embodiment of the present invention, the method for power line carrier communication learning and fuzzy flooding communication further includes: a10, when the initial node can not communicate with a certain node for a certain time, it re-copies the node according to the node address library to re-perfect the node address library file.
Compared with the prior art, the invention has the following beneficial effects: the method provided by the invention aims at a power line carrier communication network with large-scale terminal nodes, realizes rapid reading of remote carrier node terminal data, and the carrier node terminals spontaneously form a fuzzy network, so that the network efficiency is high. The fuzzy flooding communication mode is realized in the carrier communication process, the fuzzy flooding communication mode is stored in the initial node terminal according to the node address library mode, and the communication line is not unique.
Detailed Description
For the purpose of clearly illustrating the aspects of the present invention, preferred embodiments are given below in conjunction with the accompanying drawings. The following description is merely exemplary in nature and is not intended to limit the present disclosure, application, or uses. It should be understood that throughout the drawings, corresponding reference numerals indicate like or corresponding parts and features, and that the invention will be described in detail with reference to the drawings and detailed description.
Fig. 1 is a node direct communication flow diagram according to an embodiment of the present invention, fig. 2 is a node forwarding communication flow diagram according to an embodiment of the present invention, and fig. 3 is a target node processing flow diagram according to an embodiment of the present invention; fig. 4 is a flow diagram of an originating node process according to one embodiment of the invention.
Referring to fig. 1 to 4, a method for power line carrier full-network random networking communication provided by the invention may include:
a1 the start node sends data frames with destination address to the carrier network channel one by one at specific time intervals according to the destination address base address, and the operation is carried out for N times. N is a natural number greater than 1;
further, the start node described in step (a1) refers to a relay node between the power line carrier communication network and the Internet, and functions as a gateway through which the power line carrier communication terminal can be managed.
The destination address is the destination node address and is the final destination node address where the data frame arrives.
And performing N times of communication, and performing at least three times of continuous successful communication, thereby ensuring the robustness of the power line carrier channel network and the reliability and success rate of the power line carrier communication system.
a2, the node receiving the data frame analyzes the data frame, analyzes the nodes with the same target address, records the initial node address, records the communication times and generates the response data frame, and the response is sent to the initial node. a3, the target node that the data all answers quickly N times. The starting node records and establishes a direct communication target node address library (hereinafter referred to as an A library). And meanwhile, establishing a target node address library (hereinafter referred to as a B library) which cannot be directly communicated.
Further, the nodes are target nodes which belong to the network and can directly communicate with the starting node, and the nodes establish flooding communication base nodes.
And recording the address of the initial node, and avoiding the crosstalk of the station area and the crosstalk of data frames of the initial node of other station areas to cause the crosstalk of the target node station area in the subsequent carrier communication process. And the A library (a direct communication target node library) and the starting node can use the direct communication data frame to carry out copying data.
And in the B library (the target node library can not be directly communicated), the initial node needs to use the flooding data frame to carry out copying data.
Referring to fig. 2, the method provided by the present invention may further include:
a4, the start node sends the flooding copy data frames with the start node address to the power line carrier network channel one by one according to the B base address at specific time intervals, and the operation is carried out for N times.
Further, in step a4, the specific time interval is greater than the time interval for completing the entire process of flood reading data of the target node once and the entire process of sending and receiving data once.
The flooding copying data frame is a specific data communication frame and comprises a flooding stage number, an initial node address, a target node address, a functional area, a data area and check data.
And carrying out N times of communication, and carrying out at least three times of continuous successful communication to ensure the robustness of the power line carrier channel network. The reliability and the success rate of the power line carrier communication system are ensured.
a5, the A library node receives the flooding data frame and forwards the data frame once through the power line carrier channel at a specific time interval.
Further, in step a5, the specific time interval refers to that after receiving the flooding data frame, the a library node waits for, for example, 1S and then synchronously forwards the flooding data frame, so as to reduce collision of the data frame and enhance the carrier signal strength.
a6, the non-B base node receives the transmitted flooding data frame, only analyzes and does not reply.
Further, in step a6, the description is that only the node B is determined to reply. So as to avoid node crosstalk in non-local areas.
a7, the B base node receives the transmitted flooding data frame, analyzes and obtains the consistency of the target address, records the address of the initial node, and records the times of receiving the flooding data frame. And receiving the flooding data frame for N times, generating a flooding response frame, and sending the flooding response frame to the initial node through the power line carrier channel at a specific time interval.
a8 initial node records the response times, the response times reach N times, the node updates B base as the first flood readable target node address base, and builds the rest un-readable target address base (C base).
Furthermore, the described B library node records the address of the initial node, and in the subsequent carrier communication process, the station area crosstalk is avoided, and the data frame crosstalk of the initial node of other station areas to other station areas causes the station area crosstalk of the target node.
The flooding response frame refers to a plurality of data frames which are sent back by the target node in the B library after receiving the flooding copying degree data frames.
The specific time interval is that after receiving the flooding copy-reading data frame, for example, waiting for a time interval of 2s, it is ensured that all the forwarding of the data frame by the forwarding node in the a library is completed. Avoiding data collisions.
And updating the B library means that the node which can be copied and read back after the first flooding copy is established again to establish a target node address library, and the node which cannot be copied and read back is removed from the B library.
And the step of establishing the C library is to remove the nodes which cannot be copied back from the B library and reestablish a new library.
And receiving the flooding data frame at the node of the B library, analyzing to obtain inconsistent target addresses, and only analyzing without replying. For example, a node that receives an inconsistent target address simply does the resolution and does not reply.
Repeating the steps a4-a8, the starting node establishes a perfect target address base.
Further, in the step of repeating a4-a8, all nodes contained in the station area can communicate with the starting node through multi-level flooding data frame forwarding. The multi-level flooding can be, for example, 16 levels at most, and meanwhile, a target address base in the starting node is established and perfected, and the base division is performed according to the flooding times (an A base, a B base, a C base, … … and the like).
Further, the node of the B base forwards the flooding data frame, and only the adjacent node can receive the complete flooding data frame. And stopping forwarding by taking the data frame received by the target address as an end point.
Further, the adjacent node is the farthest node which can be reached by the carrier communication distance on the same phase line. And after the target address receives the data frame, the flooding data frame stops flooding communication.
The starting node has a critical node identification function, the starting node sends N copying target node data frames, the target node reply frequency is N, if the target node reply frequency is less than N, the target node reply frequency is at a critical point, the critical point node identification function is a node which can communicate but is unstable, the identification function is required, and the stability of the power line carrier channel network is ensured.
a9, when the concentrator does not read the meter, the initial node automatically sends the network maintenance frame to maintain the integrity of the carrier channel network.
Furthermore, the network maintenance frame has a format similar to that of the meter reading frame, but does not contain data information, and only contains information of the frame as the maintenance frame, so that the frame structure is simpler, and the occupied channel resource is small. When the network maintenance frame is sent, if the meter reading frame comes, the silent frame is preferentially and forcibly sent, and the starting node forwards or floodly forwards the silent frame according to the node address library, so that the meter reading and networking can be more efficiently carried out.
a10, when the initial node can not communicate with a certain node for a certain time, the secondary node is copied again according to the node address library, and the node address library file is perfected again.
Furthermore, all nodes perform optimal flooding transmission according to the node address library, and the maximum data transmission can be effectively achieved. The starting node can pertinently send the node address clearing instruction according to the change of the individual table base, and meanwhile, the newly-entered node is accessed into the corresponding node address base through the flooding instruction, so that the situation that all node address bases are reestablished due to the change of the individual node can be avoided.
The method is used for rapidly reading remote carrier node terminal data aiming at a power line carrier communication network with large-scale terminal nodes, and the carrier node terminals spontaneously form a fuzzy network, so that the network efficiency is high. The fuzzy flooding communication mode is realized in the carrier communication process, the fuzzy flooding communication mode is stored in the initial node terminal according to the node address library mode, and the communication line is not unique.
In summary, the above descriptions are only examples of the present invention, and are only used for illustrating the principle of the present invention, and not for limiting the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.