Method for aggregating sensor network data
暂无分享,去创建一个
The invention relates to a method for aggregating sensor network data. The method comprises the following steps of: 1), initially creating a sensor network node information list, namely finishing the creation of the node information list existing in the present sensor network; 2), adding new node information into the sensor node information list, namely when receiving sensor data, extracting a node ID, calculating a hash value according to the node ID, searching the sensor node information in the information list according to the calculated hash value, if the sensor node information is not found, creating an entity of the node information and inserting the node information entity into the information list; and 3), aggregating and scheduling sensor network node data, namely finding the corresponding node information structure entity in the sensor node information list, judging whether an aggregating condition is met or not according to the value of aggregating representing places in the information structure entity, selecting a sending way from a way of an aggregating message link and a way of a single packet, assembling the packet in accordance with the aggregating condition into an aggregating link according to an aggregating threshold and sending aggregating link.