Hello,

Any suggestions on doing this on TOSSIM (TinyOS 1.x)?

Many thanks,
Ittipong

On 17/08/07, David Moss <[EMAIL PROTECTED]> wrote:
>
>
>    1. Compile your application with the preprocessor variable
>    LOW_POWER_LISTENING defined to include the low power listening layer in 
> your
>    radio stack:
>
>
>
> make telosb lpl  (if lpl.extra is in your support/make directory)
>
>
>
> -or-
>
>
>
> Makefile:
>
>   component=xyzC
>
>   CFLAGS += -DLOW_POWER_LISTENING
>
>   …
>
>
>
> There's some other ways of doing that too.
>
>
>
>    1. In your application, wire into CC2420ActiveMessageC's
>    LowPowerListening interface and call
>    LowPowerListening.setLocalSleepInterval(x);  where x is the receive
>    check interval in milliseconds (how often your radio wakes up to see if
>    someone's transmitting).
>
>
>
>    1. When you're sending a message to a low power listener, you need
>    to tell your own radio about it.  Before you send a message, call
>    LowPowerListening.setRxSleepInterval(&myMsg, x);  where myMsg is the
>    message_t you're about to send, and x is the receiver's receive check
>    interval.
>
>
>
> -David
>
>
>
>
>  ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Hassan Naqvi
> *Sent:* Friday, August 17, 2007 2:16 AM
> *To:* [email protected]
> *Subject:* [Tinyos-help] Switching Radio on/off
>
>
>
> Hi All!
>
>
>
> I am working on a WSN for indoor environment monitoring. I want to make
> every senor should send the sensed data when there is a significant change
> in it. In order to implement this idea I need to make radio switich on and
> off time to time in order to do power saving.
>
>
>
> I just started to use TinyOS 2.0 with Tmote Sky motes. Please help me how
> can I make the Tmote Sky CC2420 on and off time to time.
>
>
>
> Regards,
>
>
>
> -Hassan
>
>
>  ------------------------------
>
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and 
> Now<http://us.rd.yahoo.com/evt=48223/*http:/get.games.yahoo.com/proddesc?gamekey=monopolyherenow>(it's
>  updated for today's economy) at Yahoo! Games.
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to