主权项 |
1. A method for saving energy for a wireless sensor network, comprising:
step 1: defining each sensor node in the wireless sensor network as an ordinary node, initializing the each sensor node, and introducing and initializing a high energy device; step 2: determining a sensor node within a coverage of the high energy device, wherein the high energy device and each sensor node within the coverage are mutual neighbors; step 3: judging a node type of the each sensor node within the coverage, calculating a neighbor difference degree diffd,s between the high energy device and the each sensor node within the coverage, packing the node type and the neighbor difference degree diffd,s as a dormancy message packet, and sending the dormancy message packet to the each sensor node within the coverage, wherein the node type comprises a forwarding node and a source node; step 4: obtaining a corresponding dormancy message packet thereof by the each sensor node within the coverage, executing step 5-step 7 if the sensor node is the forwarding node, and executing step 8 if the sensor node is the source node; step 5: a plurality of forwarding nodes working intermittently by turns, calculating a working time Twakeups and a dormancy time Tsleeps based on the node type and the neighbor difference degree diffd,s thereof by each forwarding node, packing the working time Twakeups and the dormancy time Tsleeps as a dormancy notice packet and sending the dormancy notice packet to each sensor node within a coverage of the forwarding node, wherein the working time Twakeups comprises a first working time taffs, a second working time tslot and a third working time ttail; step 6: when an ordinary node outside the coverage of the high energy device receives the dormancy notice packet, changing the node type of the ordinary node into an affected node, if the forwarding node is a next hop of the ordinary node; step 7: sending sensed data to the forwarding node by the affected node when the forwarding node is at the first working time taffs, sending the sensed data to the forwarding node by the high energy device when the forwarding node is at the second working time tslot, and then transferring the sensed data in a data aggregation direction by a selected forwarding node; and step 8: a plurality of source nodes working continuously, sending sensed data to the high energy device in real time by each source node, sending the sensed data to the forwarding node at the second working time tslot by the high energy device, and transferring the sensed data in the data aggregation direction by the selected forwarding node. |