Summary of the invention
The object of the invention is to propose a kind of method for configuring route of low voltage electric power carrier communication, it can solve the problem that routing configuration difficulty is large.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:
A method for configuring route for low voltage electric power carrier communication, it comprises the following steps:
Step 1, multiple registered nodes are set up and are communicated by letter with concentrator;
Step 2, each registered nodes added up the registered frame on connected power line carrier communication circuit in sheet in the default time of integration, and described registered frame comes from the node to be registered not responded by concentrator;
Step 3, each registered nodes send application route message to described concentrator in route application time sheet, and described application route message comprises the quantity of registered frame;
Step 4, concentrator are in the time that the route application time, sheet finished, send route to the maximum registered nodes of the quantity of registered frame message is set, so that the maximum registered nodes of the quantity of described registered frame becomes routing node, described routing node is for carrying out relaying to the contact data between concentrator and node to be registered.
Preferably, in step 4, in the time that the route application time, sheet finished, the equal zero clearing of quantity of the registered frame of all registered nodes records.
Preferably, in step 3, described application route message also comprises the address code corresponding with registered nodes.
The present invention also proposes a kind of routing configuration system that realizes method for configuring route as above, and it comprises with lower module:
Communication module, is located at each registered nodes, for setting up and communicate by letter with concentrator;
Accumulative total module, is located at each registered nodes, and for the registered frame on connected power line carrier communication circuit being added up in sheet in the default time of integration, described registered frame comes from the node to be registered not responded by concentrator;
Application module, is located at each registered nodes, and for send application route message to described concentrator in route application time sheet, described application route message comprises the quantity of registered frame;
Routing module is set, be located at concentrator, for in the time that the route application time, sheet finished, send route to the maximum registered nodes of the quantity of registered frame message is set, so that the maximum registered nodes of the quantity of described registered frame becomes routing node, described routing node is for carrying out relaying to the contact data between concentrator and node to be registered.
Preferably, arranging in routing module, in the time that the route application time, sheet finished, the equal zero clearing of quantity of the registered frame of all registered nodes records.
Preferably, in application module, described application route message also comprises the address code corresponding with registered nodes.
The present invention has following beneficial effect:
Do not need manually to determine complicated route list, system can find best routed path automatically, because all routing nodes all can be intercepted the request message without response in proper communication, make system can automatically adapt to the dynamic adjustment of circuit, and rebuild new route topological structure.
Embodiment
Below, by reference to the accompanying drawings and embodiment, the present invention is described further.
As shown in Figure 1, within the scope of a distribution transformer, install a concentrator and multiple terminal unit, terminal unit sends data to concentrator by low voltage electric power carrier communication and group of routes network technology.In figure, A, B, C, D, E, F are distant place field data acquiring terminal (being node), and I is remote concentrator, and G is the on-the-spot low-voltage powerline carrier communication circuit in a distant place, and H is the on-the-spot distribution transformer in a distant place.
As shown in Figure 2, a kind of method for configuring route of low voltage electric power carrier communication, it comprises the following steps:
Step S1, multiple registered nodes are set up and are communicated by letter with concentrator.Node to be registered is set up the process of communicating by letter with concentrator: all nodes to be registered powered on after a period of time, can send registered frame from trend concentrator, concentrator is replied response frame after receiving registered frame, node to be registered is received after response frame, just represent successfully to set up and communicate by letter with concentrator, and become registered nodes.Registered nodes automatically enters route and intercepts state after communicating by letter with concentrator foundation.
Step S2, each registered nodes add up the registered frame on connected power line carrier communication circuit in the default sheet time of integration (as 2-3 hour), and there is no the response frame corresponding with described registered frame on described power line carrier communication circuit.Described registered frame comes from the node to be registered not responded by concentrator.
Step S3, each registered nodes send application route message to described concentrator in route application time sheet, and described application route message comprises the address code corresponding with registered nodes and the quantity of registered frame.
Step S4, concentrator are in the time that the route application time, sheet finished, send route to the maximum registered nodes of the quantity of registered frame message is set, so that the maximum registered nodes of the quantity of described registered frame becomes routing node, described routing node is for carrying out relaying to the contact data between concentrator and node to be registered.Meanwhile, in the time that the route application time, sheet finished, the equal zero clearing of quantity of the registered frame of all registered nodes records.
The present embodiment also proposes a kind of routing configuration system, and it comprises with lower module:
Communication module, is located at each registered nodes, for setting up and communicate by letter with concentrator;
Accumulative total module, is located at each registered nodes, and for the registered frame on connected power line carrier communication circuit being added up in sheet in the default time of integration, described registered frame comes from the node to be registered not responded by concentrator;
Application module, is located at each registered nodes, and for send application route message to described concentrator in route application time sheet, described application route message comprises the address code corresponding with registered nodes and the quantity of registered frame;
Routing module is set, be located at concentrator, for in the time that the route application time, sheet finished, send route to the maximum registered nodes of the quantity of registered frame message is set, so that the maximum registered nodes of the quantity of described registered frame becomes routing node, described routing node is for carrying out relaying to the contact data between concentrator and node to be registered; In in the time that the route application time, sheet finished, the equal zero clearing of quantity of the registered frame of all registered nodes records.
For the ease of understanding technical scheme of the present invention, shown in Fig. 3, with concrete example, technical scheme of the present invention is elaborated.
Node A(is equivalent to registered nodes) successfully establish a communications link with concentrator node.
Node B (being equivalent to node to be registered) (step 1) after a period of time that powers on, starts to send registered frame R(step 2 from trend concentrator).
As concentrator can not receive, registered frame R is without reply.
Node A receives after registered frame R, and Monitoring Line L(is power line carrier communication circuit) whether there is a response frame of concentrator.If no, the route integration C of node A adds 1(step 3).Described route integration C is the quantity of registered frame.
Node C powered on after a period of time, started to send registered frame R(step 4) from trend concentrator.Node C for fear of conflicting, sends the asynchronism(-nization) of registration R with Node B, realizes conflict avoiding.
As concentrator can not receive, registered frame R is without reply.
Node A receives after registered frame R, whether has the response frame of concentrator on Monitoring Line L.If no, the route integration C of node A adds 1(step 5).
After route sheet time of integration T finishes, node A starts to send application route message Q(step 6) to concentrator.In application route message Q, include the data such as address code and C integrated value of node A.
After the route application time, sheet Y finished, concentrator judges the maximum (step 7) of C value of which node, is then routing node (step 8) by this Node configuration.The whole zero clearings of other node C value simultaneously.
Node A receives that route arranges after frame S, self is set to route operating state (step 9).
Node B, after registration failure a period of time last time, starts again to send registered frame R(step 10) to concentrator.
Node A receives after registered frame R, R is transmitted to concentrator (step 11).
Concentrator is received after registered frame R, carries out registration operation, then sends response frame Re(step 12).
Node A receives after response frame Re, and response frame Re is transmitted to circuit L(step 13).
Node B, sending after registered frame R, is just in foldback circuit L state always, issues after the response frame Re of Node B when read concentrator from circuit L, and Node B succeeds in registration, and enters normal operating conditions (step 14).
The key concept of route of the present invention is: each terminal (being node) can be automatically configured to the repeater of other nodes.Can set up after the passage of proper communication with concentrator when terminal, this terminal automatically enters route and intercepts mode: the request message not responded by concentrator is added up.When count on sufficient amount without response request message time, terminal will send application route message to concentrator at route application time sheet (typical interval is generally 2-3 hour), concentrator, by selecting the node transmission route that statistical number is maximum that message is set, arranges terminal and becomes routing node.So analogize.All data messages are with forwarding confidence values simultaneously, and confidence values is determined by route progression, guarantees that by confidence values data retransmission only ends to concentrator, avoids causing Data Storm.Owing to adopting the above-mentioned route pattern with confidence values and competition, the present invention does not need by manually determining complicated route list again, and system can find best routed path automatically.Because all nodes all can be intercepted the request message without response in proper communication, make system can automatically adapt to the dynamic adjustment of circuit, and rebuild new route topological structure.
For a person skilled in the art, can be according to technical scheme described above and design, make other various corresponding changes and distortion, and these all changes and distortion all should belong to the protection range of the claims in the present invention within.