Hi Mona,

 

Just use the LowPowerListening interface, provided by CC2420ActiveMessageC.

 

call LowPowerListening.setLocalDutyCycle(..)

 -or-

call LowPowerListening.setLocalSleepInterval(..)

 

The setLocalSleepInterval() method is going to give you more precision on
how long your radio is off (compared to the setLocalDutyCycle() method).
See TEP 105 for more details.

 

You don't need to mess with arbitration at this level.  The CC2420 does use
an arbiter down below when accessing the shared SPI bus.

 

-David

 

 

 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of mona zima
Sent: Friday, July 20, 2007 12:10 PM
To: [email protected]
Subject: [Tinyos-help] Duty cycle

 

Hi All,
Many thanks for any help...
I want to specify a duty cycle so the radio can power up and down based on
a time interval which I want to specify!
My question is : Do I have to use arbitration interfaces to do this task or
I can simply use the cc2420DutyCycle.nc interface and use the methods like
setSleepInterval and so on.

As long as I know that radio device  is a dedicated resource so the
arbitration policies  is only needed when dealing with shared resources? is
that true? please correct me.. 

Many Thanks 
  Mona 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to