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.

 

2.      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).

 

3.      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
<http://us.rd.yahoo.com/evt=48223/*http:/get.games.yahoo.com/proddesc?gameke
y=monopolyherenow>  Monopoly Here and Now (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

Reply via email to