[Tinyos-help] State of Radio CC2420_lpl

David Moss dmm at rincon.com
Tue Dec 5 11:20:37 PST 2006


When you send a message using low power listening, the 
sendDone event inside CC2420LowPowerListeningP will 
execute the signalDone() function, which calls the 
startOffTimer() function.  This OffTimer will keep the 
radio on for a short period of time before turning it off, 
in case some transaction needs to occur.  The mote will 
continue duty cycling with the same duty cycle rate after 
the send is complete, and there is nothing else that needs 
to happen.

You should probably stay away from controlling the radio's 
on/off state manually, but if you really wanted to you 
could control it by connecting your component to 
CC2420CsmaC.SplitControl.  The SplitControl provided by 
CC2420DutyCycleP only turns the duty cycling on and off. 
 If you set the duty cycle to 100% (always on) then you 
could call the regular ActiveMessageC.SplitControl to turn 
the radio on and off manually.

Hope that helps,
-David




On Tue, 5 Dec 2006 00:22:09 +0000
  "Miguel Pereira" <miguelpereira.pro at gmail.com> wrote:
> Hi,
> 
> I need some help to understand one thing. When I'm using 
>the interface Send
> and Receive provided by CC2420LowPowerListeningP.nc and 
>I send one message
> with sendInterval>0 the radio stay On or Off after that?
> By the code it seems that the radio stays indefinably 
>on. If that's true
> what can I do to them sleep again with the same 
>sendInterval? Should I call
> again LowPowerListening.setLocalSleepInterval on file
> CC2420LowPowerListeningP.nc?
> But, if I only want to put the radio On or Off manually 
>and not disturb the
> timers of sleep and wake periods, I need to use the 
>interface SplitControl
> provided by CC2420DutyCycleP.nc? I'm not sure if that 
>not will reset and
> start the timers, and that is one thing that do not 
>wanted.
> 
> Any elucidation will be much appreciated.
> Thanks….
> 
> Miguel Pereira



More information about the Tinyos-help mailing list