A kind of low-voltage power line carrier communication network optimization method and system
Technical field
The present invention relates to Power-line Carrier Technology in Low field, especially relate to a kind of low-voltage power line carrier communication network
Optimization method and system.
Background technology
In recent years, power line carrier communication is as important field device bus communication technology in a kind of future,
Become study hotspot new in communication system.Wherein, the network technology of low-voltage network carrier communication industry is
Developing rapidly, power carrier communication also experienced by one to be changed to distributed, networked system from integrated system
Evolution.
But, power line carrier, PLC has noise jamming and by force and has time variation, and signal attenuation is big, channel capacity
Little inherent characteristics such as grade, it there is also a lot of deficiency in a particular application;And in low-voltage network, except having
Outside above-mentioned carrier communication inherent characteristics, it also has the feature that physical topological structure is unknown.Thus, in order to improve
Power line communication reliability, on the one hand can estimate to set with selection, chnnel coding, filtering from the channel of physical layer
Outside the aspects such as meter, power distribution, modulating/demodulating mode consider, on the other hand can also lead to from electric lines of force
The networking mode of letter, network model angularly consider, improve network communication efficiency, and capacity of resisting disturbance is with reliable
Property, the most just adapt to carry out data transmission in the environment of rather harsh.
At present, the networking technology of the power carrier of main flow typically uses the thinking dynamic group net of relaying classification, with suitable
Answer the network environment of time-varying.Although it reduces the mains by harmonics in network by reducing the via node in networking
Pollute, but for high-quality low-voltage power line carrier communication network system, the method still cannot meet network
The requirement that coverage rate is big, network communication quality is high.
Summary of the invention
The technical problem to be solved is: present in prior art, networking is slow, route searching efficiency is low,
The network coverage and network communication quality are relatively low.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that
The present invention provides a kind of low-voltage power line carrier communication network optimization method, and method comprises the following steps:
Step S1: the host node traversal one-level of carrier communication is from node and past as relaying from node using one-level
Next stage issues networking commands from node, and described networking commands includes that carrying out channel from node seizes the time of needs
And unknown node number;
Step S2: described connect, from node, the networking commands issued according to host node and carry out channel and seize, to described
Host node sends networking request message;
Step S3: described host node, according to the described networking request message sent from node, extracts described from joint
The address of point and neighbours' confidence information distribute its network identity, complete the networking of primary node and secondary node.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, also wrap after described step S3
Include:
Step S4: set up a certainty value table inside described host node, store each from node each other
The certainty value of communication, the described certainty value size from node is decided by this noise from node Yu its neighbor node
Ratio.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, also wrap after described step S3
Include:
Step S5: set up a routing table inside described host node, is used for preserving the route letter of current system
Breath;And according in described certainty value table each from node reliability each other, calculate described from host node to
The optimal path of each node, and regularly update this routing table.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, described step S1 specifically includes:
Step S101: find all directly up to one-level from node, then by described one-level from node work
For relaying find all two grades from node, the rest may be inferred searches out all afterbodies from node;
Step S102: described host node issues networking commands from node as relaying by one-level respectively, described
Order includes single carrying out channel from node and seizing time and the unknown node number of needs, this time and scope root
Dynamically change according to the change of unknown node number size, all joints to be received such as within the time that channel seizes needs
The channel of point seizes message.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, described step S2 specifically includes:
Step S201: described seize the time of needs and from joint from node according to channel the networking commands received
Count and randomly generate a channel and seize time point and carry out channel and seize, and send channel to host node and seize and disappear
Breath, it is message identifier and node address that this channel seizes message;
Step S202: described host node receives and sends channel after channel seizes message and seize and receive the response, described
Receive the response as mark and the initiation node address of receiveing the response;
Step S203: described receive after the channel of host node seizes and receive the response from node, receives the response this
In initiation node address mate with this node address, if coupling, then enter step S204;If not
Join, then described wait that next round is seized from node;
Step S204: described seize successfully from node channel, described sends, to host node, the request of networking from node
Message, described networking request message include this from node and the address of the neighbor node that networked and should from node with
The certainty value of neighbor node communication.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, described step S204 also includes:
Described from node while listening for other neighbours from the group-net communication of node Yu host node, obtain this from node with
The certainty value of neighbor node communication, and this neighbor node certainty value is preserved to memory space.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, described step S3 specifically includes:
Step S301: described host node receives after the networking request message of node, extracts this ground from node
Location and neighbours' confidence information, give according to this and should be allocated network identity from node;
Step S302: described host node sends networking response message, and described networking response message includes that this is from joint
Point distribution network identity;
Step S303: described receive the backward described host node of described networking response message from node and respond and network really
Recognizing message, described networking confirmation message includes this network identity being allocated from node;
Step S304: described quarter at one's leisure from node monitors other networking confirmation messages from node, will prison
Network identity in the networking confirmation message heard is as the neighbor node network identity of self, and these neighbours is saved
Dot information preserves to memory space.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, described step S4 specifically includes:
Step S401: the described session monitoring neighbor node from node free time, according to this neighbor node and
Should determine that this, from certainty value size between node and neighbor node, and will have optimum reliability from the signal to noise ratio of node
The information of neighbor nodes of value preserves to memory space.
Step S402: described carry certainty value information, each certainty value information bag from node and host node communication
Include described from the reliability of node Yu the multiple neighbor node of surrounding;
Step S403: set up a certainty value table inside described host node, store each from node mutually it
Between communication certainty value, the described certainty value size from node is decided by this noise from node Yu its neighbor node
Ratio.
Further, in above-mentioned low-voltage power line carrier communication network optimization method, described step S5 specifically includes:
Step S501: set up a routing table inside described host node, is used for preserving the route of current system
Information;
Step S502: described host node according to the reliability in certainty value table, calculate from host node to each from
The optimal path of node, and timing renewal routing table;
Step S503: carry the message including downstream routing during host node communication, often arrives one from node then
Forward the messages to the next one in route from node, each described disappear to the some transmission of upper level Father's Day from node
Breath, can realize uplink communication, and up route is saved in this from node;
Step S504: when described from node according to the route that host node is specified carry out uplink communication failure, then from
In neighbor table, lookup level is minimum and the preferable neighbor node of reliability carries out uplink communication as next-hop node;
Step S505: when abnormal conditions occurs in described host node downlink communication, then find the node of disconnection, and
By itself and the reliability reduction certain proportion of father node, recalculate route.
The present invention also provides for a kind of low-voltage power line carrier communication network and optimizes system, including: host node and multiple from
Node, described host node includes: networking commands sending module and information retrieval distribution module;
Described networking commands sending module is used for traveling through one-level from node, and using one-level from node as relaying down
One-level issues networking commands from node, described networking commands include from node carry out channel seize time of needs with
And unknown node number;
Described information retrieval distribution module, for according to the described networking request message sent from node, is extracted described
From address of node and neighbours' confidence information and distribute its network identity, complete the networking of primary node and secondary node;
Described include that channel seizes module and networking request message sending module from node;
Described channel is seized module and is carried out channel for the networking commands issued according to host node and seize;Described networking
Request message sending module is for sending networking request message to described host node.
Further, in above-mentioned low-voltage power line carrier communication network optimization system, described host node also includes: letter
Angle value table module, is used for setting up a certainty value table, and stores each certainty value communicated each other from node,
The described certainty value size from node is decided by this signal to noise ratio from node Yu its neighbor node.
Further, in above-mentioned low-voltage power line carrier communication network optimization system, described host node also includes: road
By table module, be used for preserving the routing iinformation of current system, and according in described certainty value table each from node phase
Reliability between Hu, calculates described from the optimal path of host node to each node, and timing updates this route
Table.
A kind of low-voltage power line carrier communication network optimization method of the present invention and system by use channel seize into
Row part exhales together, use and dynamically select the method for time-out time to carry out time-division slot to report, and when the node free time
To monitor neighbor node message mode sounding channel and to report the reliable communications degree value of this node and neighbor node
Select route for host node, dynamically set up according to the change of channel quality, safeguard, optimize power line communication network
Network route, and improves the network coverage and network communication quality, it is ensured that the reliable effectiveness of communication network.
Accompanying drawing explanation
Fig. 1 is the hardware structure schematic diagram of the present invention a kind of low-voltage power line carrier communication network optimization method;
Fig. 2 is the structural representation of a kind of low-voltage power line carrier communication network of the present invention;
Fig. 3 is the schematic flow sheet of the present invention a kind of low-voltage power line carrier communication network optimization method;
Fig. 4 is the idiographic flow schematic diagram of step S1 in Fig. 3;
Fig. 5 is the idiographic flow schematic diagram of step S2 in Fig. 3;
Fig. 6 is the idiographic flow schematic diagram of step S3 in Fig. 3;
Fig. 7 is the idiographic flow schematic diagram of step S4 in Fig. 3;
Fig. 8 is the idiographic flow schematic diagram of step S5 in Fig. 3;
Fig. 9 is the structural representation that a kind of low-voltage power line carrier communication network of the present invention optimizes system.
Detailed description of the invention
Describe the preferred embodiments of the present invention below in conjunction with the accompanying drawings in detail.
The present invention provides a kind of low-voltage power line carrier communication network optimization method by using channel to seize the portion of carrying out
Point exhale together, use and dynamically select the method for time-out time to carry out time-division slot to report, and with prison when the node free time
Listen neighbor node message mode sounding channel and report this node and the reliable communications degree value of neighbor node for main
Node selects route, dynamically sets up according to the change of channel quality, safeguards, optimizes power line communication network road
By, improve the network coverage and network communication quality, it is ensured that the reliable effectiveness of communication network.
Referring to Fig. 1 and Fig. 2, Fig. 1 is the hard of the present invention a kind of low-voltage power line carrier communication network optimization method
Part configuration diagram, Fig. 2 is the structural representation of a kind of low-voltage power line carrier communication network of the present invention.The present invention
Low-voltage power line carrier communication network optimization method hardware module include: the host node 1 of carrier communication and multiple from
Node 2, the plurality of is connected with host node 1 by electric lines of force from node 2.Wherein, described host node 1 and
Multiple all have unique mark from node 2.Assume that the communication system maximum number of plies is m (m > 0), maximum node number
For n (n > 0).In the communication process of any two nodes, the signal to noise ratio of signal transmission can be detected by this node.
Referring to Fig. 3, one low-voltage power line carrier communication network optimization method of the present invention comprises the following steps:
Step S1: the host node traversal one-level of carrier communication is from node and past as relaying from node using one-level
Next stage issues networking commands from node, and described networking commands includes that carrying out channel from node seizes the time of needs
And unknown node number.
Step S2: described connect, from node, the networking commands issued according to host node and carry out channel and seize, to described
Host node sends networking request message.
Step S3: described host node, according to the described networking request message sent from node, extracts described from joint
The address of point and neighbours' confidence information distribute its network identity, complete the networking of primary node and secondary node.
The present invention also includes after described step S3:
Step S4: set up a certainty value table inside described host node, store each from node each other
The certainty value of communication, the described certainty value size from node is decided by this noise from node Yu its neighbor node
Ratio.
The present invention also includes after described step S3:
Step S5: set up a routing table inside described host node, is used for preserving the route letter of current system
Breath;And according in described certainty value table each from node reliability each other, calculate described from host node to
The optimal path of each node, and regularly update this routing table.
The low-voltage power line carrier communication network optimization side of the present invention is further illustrated below in conjunction with specific embodiment
Method.
Referring to Fig. 4 and Fig. 2, step S1 of the present invention specifically includes:
Step S101: find all directly up to one-level from node, then by described one-level from node work
For relaying find all two grades from node, the rest may be inferred searches out all afterbodies from node.
Manually system being set into host node from number of nodes N, if being not provided with, being defaulted as theoretical maximum.If
Putting host node unknown is n from number of nodes, and initial value is N.
Step S102: described host node issues networking commands from node as relaying by one-level respectively, described
Order includes single carrying out channel from node and seizing time and the unknown node number of needs, this time and scope root
Dynamically change according to the change of unknown node number size, all joints to be received such as within the time that channel seizes needs
The channel of point seizes message.
Referring to Fig. 5, step S2 of the present invention specifically includes:
Step S201: described seize the time of needs and from joint from node according to channel the networking commands received
Count and randomly generate a channel and seize time point and carry out channel and seize, and send channel to host node and seize and disappear
Breath, it is message identifier and node address that this channel seizes message.
Wherein, channel seize message be only used to allow neighbor node keep mourning in silence and allow host node now only with this
Node communication, it only comprises few information and seizes to complete channel, seizes and retransmits what networking was correlated with the most afterwards
Other message.Described receiving networking commands from node and self does not also network, then start timing, timing time is
t.From order, extract T and n, calculate n ' (0 <=n ' <=n) according to certain random algorithm, then exist
Sending channel during n ' * T/n < t < (n '+1) * T/n and seize message, content only comprises message identifier and node address.
Step S202: described host node receives and sends channel after channel seizes message and seize and receive the response, described
Receive the response as mark and the initiation node address of receiveing the response.
Step S203: described receive after the channel of host node seizes and receive the response from node, receives the response this
In initiation node address mate with this node address, if coupling, then enter step S204;If not
Join, then described wait that next round is seized from node.So by the method dynamically selecting time-out time, along with not
Know the minimizing of node, decrease time-out time accordingly, improve networking speed.
Step S204: described seize successfully from node channel, described sends, to host node, the request of networking from node
Message, described networking request message include this from node and the address of the neighbor node that networked and should from node with
The certainty value of neighbor node communication.
Wherein, described step S204 also includes: described from node while listening for other neighbours from node and main joint
The group-net communication of point, obtains this certainty value communicated from node (i.e. reliability) with neighbor node, and by this neighbour
Occupy node beliefs value to preserve to memory space.Wherein, neighbor node number Cnt_neighbor of preservation is according to reality
Border situation adjusts.This certainty value is by neighbor node and the signal to noise ratio generation being somebody's turn to do from node, according to monitoring neighbor node
Enter network information to obtain.
Referring to Fig. 6, step S3 of the present invention specifically includes:
Step S301: described host node receives after the networking request message of node, extracts this ground from node
Location and neighbours' confidence information, give according to this and should distribute network identity from node;
Step S302: described host node sends networking response message, and described networking response message includes that this is from joint
Point distribution network identity.
Step S303: described receive the backward described host node of described networking response message from node and respond and network really
Recognizing message, described networking confirmation message includes this network identity being allocated from node;
Step S304: described quarter at one's leisure from node monitors other networking confirmation messages from node, will prison
Network identity in the networking confirmation message heard is as the neighbor node network identity of self, and these neighbours is saved
Dot information preserves to memory space.The Cnt_neighbor preserved adjusts according to practical situation.
Referring to Fig. 7, step S4 of the present invention specifically includes:
Step S401: the described session monitoring neighbor node from node free time, according to this neighbor node and
Should determine that this, from certainty value size between node and neighbor node, and will have optimum reliability from the signal to noise ratio of node
The information of neighbor nodes of value preserves to memory space.
Step S402: described carry certainty value information, each certainty value information bag from node and host node communication
Include described from the reliability of node Yu the multiple neighbor node of surrounding.Wherein, it is contemplated that system communication payload, described from
Node can adjust according to practical situation with the number of host node number of communications and neighbor node.
Step S403: set up a certainty value table inside described host node, store each from node mutually it
Between communication certainty value, the described certainty value size from node is decided by this noise from node Yu its neighbor node
Ratio.
Referring to Fig. 8, step S5 of the present invention specifically includes:
Step S501: set up a routing table inside described host node, is used for preserving the route of current system
Information.
Step S502: described host node according to the reliability in certainty value table, calculate from host node to each from
The optimal path of node, and timing renewal routing table.Host node needs after updating routing table to select suitably every time
The most each for routing iinformation father's node from node is issued to from node by the time.
Step S503: carry the message including downstream routing during host node communication, often arrives one from node then
Forward the messages to the next one in route from node, each described disappear to the some transmission of upper level Father's Day from node
Breath, can realize uplink communication, and up route is saved in this from node.
So will be used for obtaining the information of more channels communication quality from node free time, and be supplied to host node
As the foundation of dynamics route selection, to save the action actively finding route, reduce communication complexity, carry
High communication quality.
Described step S5 also includes:
Step S504: when described from node according to the route that host node is specified carry out uplink communication failure, then from
In neighbor table, lookup level is minimum and the preferable neighbor node of reliability carries out uplink communication as next-hop node.
Step S505: when abnormal conditions occurs in described host node downlink communication, then find the node of disconnection, and
By itself and the reliability reduction certain proportion of father node, recalculate route.
Referring to Fig. 9, the present invention also provides for a kind of low-voltage power line carrier communication network and optimizes system, including: main
Node 10 and multiple from node 20, described host node 10 includes: networking commands sending module 102 and information
Extracting distribution module 104, described networking commands sending module 102 is used for traveling through one-level from node, and with one-level
Issuing networking commands toward next stage from node as relaying from node, described networking commands includes carrying out letter from node
Time and the unknown node number of needs is seized in road;Described information retrieval distribution module 104 for according to described from
The networking request message that node sends, extracts described from address of node and neighbours' confidence information and distribute its network
Mark, completes the networking of primary node and secondary node.
Described include that channel seizes module 201 and networking request message sending module 202 from node 20.Described
Channel is seized module 201 and is carried out channel seize for connecing the networking commands issued according to host node;Described networking please
Ask message sending module 202 to be connected to channel and seize module 201, for sending, to described host node, the request of networking
Message.
Described host node 10 also includes: certainty value table module 106 and router table means 108, described certainty value
Table module 106 is used for setting up a certainty value table, and stores each certainty value communicated each other from node,
The described certainty value size from node is decided by this signal to noise ratio from node Yu its neighbor node;Described routing table mould
Block 108 is used for preserving the routing iinformation of current system, and according in described certainty value table each from node mutually it
Between reliability, calculate described from the optimal path of host node to each node, and timing update this routing table.
Compared to prior art, a kind of low-voltage power line carrier communication network optimization method of the present invention and system are passed through
Use channel to seize to carry out part and exhale together, use and dynamically select the method for time-out time to carry out time-division slot to report, and
And to monitor neighbor node message mode sounding channel and to report this node and neighbor node when the node free time
Reliable communications degree value selects route for host node, dynamically sets up according to the change of channel quality, safeguards, excellent
Change power line communication network route, improve the network coverage and network communication quality, it is ensured that communication network
Reliable effectiveness.
Here description of the invention and application is illustrative, is not wishing to limit the scope of the invention to above-mentioned reality
Execute in example.The deformation of embodiments disclosed herein and change are possible, for the common skill of those this areas
For art personnel, the various parts with equivalence of replacing of embodiment are known.It should be clear to a person skilled in the art that
, in the case of without departing from the spirit or essential characteristics of the present invention, the present invention can in other forms, knot
Structure, layout, ratio, and realize with other assembly, material and parts.Without departing from the scope of the invention and
In the case of spirit, embodiments disclosed herein can be carried out other deformation and change.