you can write a seperate module for this functionality call it SleepM.nc. In the StdControl.start command of this module, shut off the radio and stop the task queue (radio can be shut off by calling GenericComm.StdControl.stop () and u can check the archives on how to stop the task queue from scheduling new tasks). Start a one shot timer for say 1 min or whatever time u want. Effectively for one minute, the mote will be sleeping! When the timer fires, u can enable the radio and task queue and resume where u left off.
Let me know if this is possible. I have never tried it myself, but i guess it should work.
On 4/23/06, bhushan bhatt <
[EMAIL PROTECTED]> wrote:
Hello everyone,
I am new user to Tinyos and have got some basic stuff working on it. I want to develop an application that involves more than one motes and i want to put the motes to sleep at occurence of an event and than wake it up after it sleeps a predertemined amount of time. Any idea on how can i do that ?
Thanks,Bhushan
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
regards,
Aditya Bhave
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
