I'm in the process of trying this out, but I'm wondering if this is
going to work when in LPL.

Isn't the radio only in RADIO_LISTEN for a very small amount of time?
Will I need to switch  off LPL before calling stop?

This is a big issue, since I am using LPL almost exclusively.

Thanks for the help,
Jacob

On 10/16/07, Maxime Muller - s h o c k f i s h / <[EMAIL PROTECTED]> wrote:
> Dear Jacob,
>
> i suggest you try in StdControl.stop():
> ...
>     result_t result1, result2, result3;
>     atomic {
>     if(mState != RADIO_LISTEN) return FAIL;
>     mState = RADIO_DISABLED;
>     }
>     call IRQ0.disable();
> ...
>
> Regards,
> maxime
> > I'm using tinyos 1.x (CVS snapshot) with the tinynodes and I want to
> > periodically turn off the radio.  I looked around and tried using the
> > StdControl interface on XE1205RadioC.nc which occasionally works, but
> > at other times the radio dies and requires a reboot to bring it back.
> > Is there are "correct" way to do this?
> >
> > Thanks,
> > Jacob
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to