[Tinyos-help] [tinyos2.0] event timer.fired() getting lost on telosb using BlinkToRadio apps.

Jonathan Hui jwhui at cs.berkeley.edu
Sun Jul 23 11:37:46 PDT 2006


After a little testing, it looks like the radio stack is still alive.
I modified BlinkToRadio to maintain two timers (1ms and 1s period),
both of which attemps to send a message on each fire event. After a
few moments, the 1ms timer will fail to fire, but the 1s timer will
continue firing and sending messages. Even more interesting is that
the 1ms timer starts firing at the same period as the 1s timer.

It's probably the case that the radio stack is somehow affecting the
operation of the msp430 timer stack and causing it to fail in
repeatedly firing the 1ms timer. Haven't dug too much into the timer
code to understand why this is.

I've attached the modified app I used to test.

Cory, do you have an ideas?

-- 
Jonathan W. Hui
jwhui at cs.berkeley.edu
http://www.cs.berkeley.edu/~jwhui/


On 7/23/06, Joe Polastre <joe at polastre.com> wrote:
> Could be a bug in the radio stack.  Note that only one of two motes stops...
>
> -Joe
>
> On 7/23/06, Philip Levis <pal at cs.stanford.edu> wrote:
> > On Jul 22, 2006, at 6:31 AM, ipark at ncsu.edu wrote:
> >
> > > Hi,
> > >
> > > I've implemented BlinkToRadio application on telosb with tinyos 2.0.
> > > Two telosb motes send packets to each other using BlinkToRadio
> > > application.
> > > Packets are sent in event Timer.fired() in BlinkToRadio application.
> > > I found something wrong in telosb operation.
> > > If TIMER_PERIOD_MILLI(packet generation interval)is set to 1(ms),
> > > event
> > > Timer.fired() of one of two motes is not signalled anymore after
> > > several
> > > seconds. As a result, only one mote can send packets.
> > > If TIMER_PERIOD_MILLI is set to 2(ms), this situation seldom occures.
> > > Have you ever seen this situation?
> >
> > This sounds like a bug in the MSP430 timer stack. Cory, have you
> > encountered this?
> >
> > Phil
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BlinkToRadio_2timers.tar.gz
Type: application/x-gzip
Size: 2474 bytes
Desc: not available
Url : http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060723/4da79ebf/BlinkToRadio_2timers.tar.bin


More information about the Tinyos-help mailing list