[Tinyos-help] rebooting the telosb

Cory Sharp cory at moteiv.com
Wed Sep 14 10:02:38 PDT 2005


Hi Nilanjan,

See NetProg_platform.h in tinyos-1.x/tos/platform/telos/. That's what Deluge 
uses to reboot the node. As you can see, the reboot code Jonathan wrote is 
simple

WDTCTL = WDT_ARST_1_9;
while(1);

It should actually be even be more simple, because according to
section 10.2of the MSP430 datasheet writing to WDTCTL without the WDT
password causes an
immediate system reset. So, this should be sufficient to reboot a 
telos/telosb/tmote node:

WDTCTL = 0; // reset / reboot

We could put that with appropriate ifdef's in tinyos-1.x/tos/system/Reset.h, 
since it appears that's the design of that component.

Cory

On 9/14/05, nilanb at cs.umass.edu <nilanb at cs.umass.edu> wrote:
> 
> Hi,
> I think the program only works with mica2, micaz and mica2dot. Is there 
> anything
> similar for the telosb.
> thanks for you help,
> Nilanjan
> 
> 
> Quoting Joe Polastre <joe at polastre.com>:
> 
> > See tinyos-1.x/tos/system/Reset.nc
> >
> > -Joe
> >
> > On 9/9/05, nilanb at cs.umass.edu <nilanb at cs.umass.edu> wrote:
> > > Hi,
> > > Is there any way of rebooting the telosb from inside a nesc program ?
> > > Thanks ,
> > > Nilanjan
> > >
> > >
> > >
> > > -------------------------------------------------
> > > This mail sent through IMP: http://horde.org/imp/
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > Tinyos-help at Millennium.Berkeley.EDU
> > > 
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
> 
> 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20050914/96b58803/attachment.html


More information about the Tinyos-help mailing list