Algorithm 1 On demand location-based scheduling scheme for WSNs |
Step 1: cloud current location of mobile user μ Step 2: cloud allocates a set of virtual sensors and reversely map to a set of physical sensor nodes which matches with interest of the application and the user, using the above functions Step 3: cloud makes a schedule for the sensor nodes based on current location and requirements of the mobile user Step 5: cloud sends a scheduling request to a corresponding base station Step 6: broadcasts the scheduling request to corresponding sensors. Step 7: nodes that receive the scheduling request set their own schedule based on the request. Step 8: when the user moves out of the area, cloud c sends a request to cancel the scheduling request for the set of sensors. |