Specific embodiment
The invention will be further described with the following Examples.
Referring to Fig. 1, the transmission line of electricity provided in this embodiment applied to smart grid reliably monitors system, including prison in real time
Survey subsystem 1 and anomaly analysis terminal 2.
Monitoring subsystem 1 includes the node of the networking by way of wireless sensor network multi-hop, and node includes sensor
Node and aggregation node, sensor node is monitored perception to transmission line of electricity, and the transmission line parameter information of acquisition is sent out
It send to aggregation node.
Aggregation node converges the transmission line parameter information that each sensor node is sent, and abnormal point is forwarded to after being handled
Analyse terminal 2.
Anomaly analysis terminal 2 for the transmission line parameter information that aggregation node is sent to be analyzed and processed and is shown,
And it alarms in transmission line parameter Information abnormity.
Wherein, the transmission line parameter information includes tension, temperature, the voltage and current of current line.
In one embodiment, as shown in Fig. 2, anomaly analysis terminal 2 includes data processor 10 and display 20, the number
The transmission line parameter information received is compared with the secure threshold of corresponding setting according to processor 10, exports comparison result,
And it is compared as the result is shown by display 20.Display 20 is also used to real-time display transmission line parameter information, thus for prison
The status information of survey personnel's real time inspection transmission line of electricity.
Optionally, applied to the transmission line of electricity of smart grid, reliably monitoring system further includes connecting with data processor 10 in real time
The alarm 3 connect, when secure threshold of the transmission line parameter information beyond corresponding setting, the driving of data processor 10 report
Alert device 3 is alarmed.
Wherein, the alarm 30 includes buzzer siren or combined aural and visual alarm, and the present embodiment is not construed as limiting this.
The above embodiment of the present invention can real-time remote monitoring transmission line of electricity temperature, voltage, electric current, the related physicals such as tension
Parameter value, avoids the trouble of wiring and monitoring accuracy is high.
When netinit, sensor node receives the broadcast message of aggregation node, and it is general to carry out network by broadcast message
Flood, sensor node add all neighbor nodes to the neighbor table of itself, and determine that itself arrives the routing mode of aggregation node,
Middle neighbor node is the other sensors node in sensor node communication range;The determination itself arrives aggregation node
Routing mode, comprising: when sensor node meets directly forwarding condition, be directly sent to the transmission line parameter information of acquisition
Aggregation node selects a neighbor node as next-hop node if being unsatisfactory for direct forwarding condition from its neighbor table, will
The transmission line parameter information of acquisition is sent to next-hop node;
The wherein direct forwarding condition are as follows:
In formula, WiFor the current remaining of sensor node i, Wip0For p-th neighbor node of sensor node i
Current remaining, niFor the neighbor node quantity of sensor node i, WminFor preset energy lower limit value;H (i, sink) is
Distance of the sensor node i to aggregation node, HminFor the adjustable minimal communications distance of sensor node, HmaxFor sensor node
Adjustable maximum communication distance,For value function, as H (i, sink)-When,When
When,
The present embodiment is based on two factors of energy and distance and creatively sets direct forwarding condition, sensor node root
The routing mode of aggregation node is determined according to direct forwarding condition itself whether is met, specifically: sensor node meets straight
When switching through clockwork spring part, the transmission line parameter information of acquisition is directly sent to aggregation node, if being unsatisfactory for direct forwarding condition,
It then selects a neighbor node as next-hop node from its neighbor table, the transmission line parameter information of acquisition is sent to down
One hop node.
Sensor node determines routing mode according to the direct forwarding condition in the present embodiment, has ensured the flexible of routing
Property, and be conducive to improve the reliability that transmission line parameter information is sent to aggregation node, reduce packet loss.
In one embodiment, sensor node selects a neighbor node as next-hop node from its neighbor table,
Include:
(1) sensor node each neighbor node into its neighbor table sends election contest message, and any neighbor node is receiving
The waiting time is calculated after the election contest message:
In formula, XijIndicate the waiting time that j-th of neighbor node of sensor node i calculates, WijIt is adjacent for described j-th
Occupy the current remaining of node, WijoFor the primary power of j-th of neighbor node, H (j, sink) is adjacent described j-th
Node is occupied to the distance of aggregation node, H (i, sink) is distance of the sensor node i to aggregation node, X1It is based on to be preset
The waiting time of energy, X2For the preset waiting time based on distance;
(2) any neighbor node j waits XijAfterwards, feedback message is sent to sensor node i;
(3) sensor node i is using neighbor node corresponding to receive first feedback message as next-hop node.
The present embodiment proposes the selection mechanism of next-hop node, is based on the mechanism, sensor node is from its neighbor table
When selecting a neighbor node as next-hop node, election contest message is sent to each neighbor node, and to receive neighbor node
The time sequencing of feedback message determines next-hop node.
Wherein by the design of waiting time, the waiting time of neighbor node can be controlled in a reasonable range
It is interior, and enable to dump energy more and there is the shorter waiting time apart from the closer neighbor node of aggregation node, from
And the next-hop node for making the neighbor node that there is bigger probability to serve as sensor node, to improve transmission line parameter letter
Cease the reliability of multi-hop transmission.
The present embodiment voluntarily collects each neighbours' section by voluntarily calculating the waiting time by neighbor node, without sensor node
The information of point, saves the energy consumption of sensor node, and be beneficial to improve the efficiency of determining next-hop node.
In one embodiment, sensor node periodically calculates its communication distance threshold value according to current remaining, works as meter
When the communication distance threshold value of calculation is less than it at a distance from next-hop node, sensor node is being less than the communication with its distance again
Next-hop node is selected in the neighbor node of distance threshold;Wherein, the calculation formula of communication distance threshold value is set are as follows:
In formula, Hp(t) the communication distance threshold value calculated for sensor node p t-th of period, HminFor sensor node
Adjustable minimal communications distance, HmaxFor the adjustable maximum communication distance of sensor node, WpFor the current surplus of sensor node p
Complementary energy, Wi0For the primary power of sensor node i, r is preset apart from regulatory factor, the value range of r be [0.85,
0.95]。
Sensor node periodically calculates its communication distance threshold value according to current remaining in the present embodiment, when its with it is next
When the distance of hop node is greater than the communication distance threshold value, closer neighbor node is reselected as next-hop node.Wherein, weight
Newly select closer neighbor node as the mode of next-hop node, the selection mechanism of next-hop node based on the above embodiment
It carries out.
The present embodiment enables to sensor node when energy is lower, selects the next-hop node being closer to hold in time
The carrying on a shoulder pole relay forwarding of the task, advantageously reduces the energy that transmission line parameter information is sent to next-hop node by sensor node
Consumption, to reduce the rate of sensor node consumption energy.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than the present invention is protected
The limitation of range is protected, although explaining in detail referring to preferred embodiment to the present invention, those skilled in the art are answered
Work as understanding, it can be with modification or equivalent replacement of the technical solution of the present invention are made, without departing from the reality of technical solution of the present invention
Matter and range.