That is kinda what the lowpower and xmesh systems do.
Have a look at how they work.
MS


deepanshu vasal wrote:
> hello,
> I wanted to know if there's any sleep/suspend/wait function in tinyos.
> actually i want to discover neighbors of the mote, so it broadcasts a 
> message and waits for some time say 2sec, to collect replies in a 
> neighbor cache.
> SO in my function i want a sleep function such that after sending a pkt 
> it should wait for sometime for replies and then do processing based on 
> the data from cache.
> 
> Now i have 2 options
> *) busy waiting for some count. problem: increases computation, consumes 
> power
> 
> *)make my variables global and play with timer.fired()
> problem: more variables , more memory
> 
> So i just wish to get any 3rd option from tinyos , if possible.
> thanks
> 
> Deepanshu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to