Re: [Tinyos-help] Sleep mode,micaz,tinyos-1.x

2006-09-26 Thread Jacob Sorber
You can use timers with HPLPowerManagement, at least with the Mica2/Dot/Z motes. The only problem I have had is that occasionally they get lost, especially if the timer interval is short. My solution has been to always use repeating timers rather than one-shot timers. That way, if you lose one event, the timer will eventually fire again. Once I made that change and wrote my code with the assumption that my 1 second timer might fire in 2 seconds, then it all worked fine.
Best of luck,Jacob SorberOn 9/25/06, Munaretto, Daniel [EMAIL PROTECTED] wrote:
Dear all,i had a look in the mail archives about the sleep mode for micaz, but it is not so clear to me how to handle it.
I found that it is necessary to use the HPLPowerManagementM.nc interface, but if you enable it, you cannot use the timers in your code if the node is in the sleep mode.So, if i enable the powermanagement, is the node set in the sleep mode? and if yes, how can i run my code by using my main timer (it is important to post my tasks!)?
the last question: in order not to have problems in the usage of this interface, is it enough to call the enable function at the beginning (in the starting phase) of my code?Thanks very much for your availability,
cheersDaniel___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Sleep mode,micaz,tinyos-1.x

2006-09-25 Thread Munaretto, Daniel
Dear all,
  i had a look in the mail archives about the sleep mode for micaz, but it 
is not so clear to me how to handle it.
I found that it is necessary to use the HPLPowerManagementM.nc interface, but 
if you enable it, you cannot use the timers in your code if the node is in the 
sleep mode.
So, if i enable the powermanagement, is the node set in the sleep mode? and if 
yes, how can i run my code by using my main timer (it is important to post my 
tasks!)?
the last question: in order not to have problems in the usage of this 
interface, is it enough to call the enable function at the beginning (in the 
starting phase) of my code?
 
Thanks very much for your availability,
cheers
Daniel

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help