Content of the invention
It is an object of the invention to proposing a kind of method for configuring route of low voltage electric power carrier communication, it can solve route and join
Put the big problem of difficulty.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:
A kind of method for configuring route of low voltage electric power carrier communication, it comprises the following steps:
Step 1, multiple registered nodes are set up with concentrator and are communicated;
Step 2, each registered nodes are in default time of integration piece to connected power line carrier communication
Registered frame on circuit is added up, 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 piece,
Described application route message includes the quantity of registered frame;
Step 4, concentrator, at the end of route application time piece, send to the most registered nodes of the quantity of registered frame
Route setting message, so that the most registered nodes of the quantity of described registered frame become routing node, described routing node is used
In relaying to the transaction data between concentrator and node to be registered.
Preferably, in step 4, at the end of route application time piece, the registered frame of all registered nodes records
Quantity all resets.
Preferably, in step 3, described application route message also includes address code corresponding with registered nodes.
The present invention also proposes a kind of routing configuration system realizing method for configuring route as above, and it includes following mould
Block:
Communication module, located at each registered nodes, is communicated for being set up with concentrator;
Accumulation module, located at each registered nodes, in default time of integration piece to connected electricity
Registered frame on powerline carrier communication circuit is added up, and described registered frame comes from the section to be registered not responded by concentrator
Point;
Application module, located at each registered nodes, for sending to described concentrator in route application time piece
Application route message, described application route the quantity that message includes registered frame;
Setting routing module, located at concentrator, at the end of route application time piece, most to the quantity of registered frame
Registered nodes send route setting message so that the most registered nodes of the quantity of described registered frame become route section
Point, described routing node is used for the transaction data between concentrator and node to be registered is relayed.
Preferably, in setting routing module, at the end of route application time piece, the note of all registered nodes records
The quantity of volume frame all resets.
Preferably, in application module, described application route message also includes address code corresponding with registered nodes.
The present invention has the advantages that:
It is not required to will manually determine the route list of complexity, system can be automatically found optimal routed path, due to all roads
The request message of no response all can be intercepted by node in proper communication, make system can automatically adapt to the dynamic adjustment of circuit,
And rebuild new routing topology.
Specific embodiment
Below, in conjunction with accompanying drawing and specific embodiment, the present invention is described further.
As shown in figure 1, in the range of a distribution transformer, installing a concentrator and multiple terminal unit, a distant place is eventually
End transfers data to concentrator by low voltage electric power carrier communication and route networking technology.In figure A, B, C, D, E, F are remote
Square field data acquiring terminal(I.e. node), I is remote concentrator, and G is distant place scene low-voltage powerline carrier communication circuit, H
For distant place scene distribution transformer.
As shown in Fig. 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 with concentrator and are communicated.Node to be registered sets up, with concentrator, the mistake communicating
Cheng Wei:All nodes to be registered, after upper electricity a period of time, can send registered frame from trend concentrator, concentrator receives registered frame
Reply response frame afterwards, after node to be registered receives response frame, mean that success is set up with concentrator and communicate, and become registered section
Point.Registered nodes are set up with concentrator after communicating, and intercept state automatically into route.
Step S2, each registered nodes are in default time of integration piece(As 2-3 hour)Interior to connected electricity
Registered frame on powerline carrier communication circuit is added up, and does not have and described registration on described power line carrier communication circuit
The corresponding response frame of frame.Described registered frame comes from the node to be registered not responded by concentrator.
Step S3, each registered nodes send application route report to described concentrator in route application time piece
Literary composition, described application route message includes address code corresponding with registered nodes and the quantity of registered frame.
Step S4, concentrator, at the end of route application time piece, are sent out to the most registered nodes of the quantity of registered frame
Send route setting message, so that the most registered nodes of the quantity of described registered frame become routing node, described routing node
For relaying to the transaction data between concentrator and node to be registered.Meanwhile, at the end of route application time piece, institute
The quantity having the registered frame of registered nodes record all resets.
The present embodiment also proposes a kind of routing configuration system, and it is included with lower module:
Communication module, located at each registered nodes, is communicated for being set up with concentrator;
Accumulation module, located at each registered nodes, in default time of integration piece to connected electricity
Registered frame on powerline carrier communication circuit is added up, and described registered frame comes from the section to be registered not responded by concentrator
Point;
Application module, located at each registered nodes, for sending to described concentrator in route application time piece
Application route message, described application route message includes address code corresponding with registered nodes and the quantity of registered frame;
Setting routing module, located at concentrator, at the end of route application time piece, most to the quantity of registered frame
Registered nodes send route setting message so that the most registered nodes of the quantity of described registered frame become route section
Point, described routing node is used for the transaction data between concentrator and node to be registered is relayed;In the route application time
While at the end of piece, the quantity of the registered frame of all registered nodes records all resets.
For the ease of understanding technical scheme, in conjunction with shown in Fig. 3, with the technical side to the present invention for the specific example
Case is described in detail.
Node A(Be equivalent to registered nodes)It is successfully established communication connection with concentrator node.
Node B(Be equivalent to node to be registered)After upper electricity a period of time(Step 1), start to send registration from trend concentrator
Frame R(Step 2).
As concentrator can not receive, then registered frame R no replys.
After node A receives registered frame R, monitor circuit L(I.e. power line carrier communication circuit)Whether there is the response of concentrator
Frame.If it is not, the route integration C of node A adds 1(Step 3).Described route integration C is the quantity of registered frame.
After electricity a period of time on node C, start to send registered frame R from trend concentrator(Step 4).Node C with node B is
Avoid conflicting, the time sending registration R is different, realizes conflict avoiding.
As concentrator can not receive, then registered frame R no replys.
After node A receives registered frame R, whether monitoring circuit L there is the response frame of concentrator.If it is not, node A
Route integration C adds 1(Step 5).
After route time of integration piece T terminates, node A starts to send application route message Q to concentrator(Step 6).Shen
Please route the address code including node A in message Q and the data such as C integrated value.
After route application time piece Y terminates, concentrator judges that the C value of which node is maximum(Step 7), then this is saved
Point is set to routing node(Step 8).Other node C values all reset simultaneously.
After node A receives route setting frame S, will itself be set to route working condition(Step 9).
Node B last time registration failure for a period of time after, start again to concentrator send registered frame R(Step 10).
After node A receives registered frame R, R is transmitted to concentrator(Step 11).
After concentrator receives registered frame R, carry out registration operation, then send response frame Re(Step 12).
After node A receives response frame Re, response frame Re is transmitted to circuit L(Step 13).
Node B, after sending registered frame R, just has been at foldback circuit L state, when reading concentrator on circuit L
After issuing the response frame Re of node B, node B succeeds in registration, and enters normal operating conditions(Step 14).
The present invention route key concept be:Each terminal(I.e. node)Can be automatically configured in other nodes
Continue device.After terminal can set up the passage of proper communication with concentrator, this terminal intercepts mode automatically into route:To not by
The request message of concentrator response is counted.When counting on sufficient amount of no respond request message, terminal will be in route
Application time piece(Typical spacing generally 2-3 hour)Send application route message to concentrator, concentrator will be to selection statistics
The most node of number sends route setting message, and setting terminal becomes routing node.And so on.All data messages carry simultaneously
Forward confidence values, confidence values are determined by routeing series, to ensure that data forwarding is only ended to concentrator by confidence values, it is to avoid cause
Data Storm.Because using the above-mentioned route pattern with confidence values and competition, the present invention does not need to determine complexity by artificial again
Route list, system can be automatically found optimal routed path.Due to all nodes all can intercept in proper communication no loud
The request message answered, makes system can automatically adapt to the dynamic adjustment of circuit, and rebuilds new routing topology.
For a person skilled in the art, can technical scheme as described above and design, make other each
Plant corresponding change and deform, and all these changes and deforms the protection model that all should belong to the claims in the present invention
Within enclosing.