[Tinyos-help] SplitControl on Telos rev. A

Joe Polastre joe.polastre at gmail.com
Wed Mar 23 21:17:32 PST 2005


Have you tried running
contrib/ucb/apps/CountRadio/CountSleepRadioC.nc?  That has run for
many days on my desk.

-Joe


On Fri, 18 Mar 2005 15:07:48 -0800, Farzad H. Eskafi <feskafi at gmail.com> wrote:
> Hi,
> 
>   I'm using SplitControl wired to CC2420RadioC to turn the radio
> on/off on Telos rev. A. What I've noticed is that sometimes the radio
> doesn't send the message at all.  In the portion of the code I've
> provided below after about 1.5 min (I've actually measured that), the
> the green Led is toggled. Anybody has any idea why?  Thanks.
> 
> .
> .
> .
> .
> void SendRTS()
>     {
>       PicoRadio *senddata = (PicoRadio *) DATA.data ;
>       senddata->addr      = TOS_LOCAL_ADDRESS      ;
>       senddata->val       = AM_RTS                 ;
> 
>       if (call senddata.send(TOS_BCAST_ADDR, DATASIZE, &DATA))
>         {
>           // Do nothing ;
>         }
>       else
>         {
>           call Leds.greenToggle() ;
> 
>           // Go to sleep later.
>         }
>     }
> 
> event result_t SplitControl.startDone()
>     {
>               SendData()             ;
> 
>       return SUCCESS;
>     }
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
>


More information about the Tinyos-help mailing list