[Tinyos Core WG] T2 Mica* Timers

David Moss dmm at rincon.com
Mon Feb 5 10:18:32 PST 2007


Hi David -

Unfortunately, I don't have any code to supply that 
reproduces the issue.  All I know is when we continually 
start a one-shot timer over and over again very rapidly, 
the timer seems to fire when it shouldn't.  I'm not sure 
if a single timer exhibits this problem, or if it takes 
several timers running before the problem arises.

-David Moss


On Mon, 5 Feb 2007 09:00:52 -0800
  "David Gay" <dgay42 at gmail.com> wrote:
> On 2/2/07, David Moss <dmm at rincon.com> wrote:
>> We're seeing lots of issues with the reliability of AVR
>> timers.  Has anybody else been working on testing timers
>> on mica* mote types?  They just don't seem to work as
>> reliably as they did in TinyOS 1.x.
> 
> I've had a lot of problems with them. The root of the 
>difference
> between the 1.x and 2.x code is that the 1.x code never 
>lets the h/w
> timer wrap around (always resets it it 0, and sets a 
>deadline before
> something like 220).
> 
> In 2.x, the timer is in free running mode and very weird 
>stuff seems
> to happen to deadlines around 0, 0xff, etc. I thought I 
>had a working
> solution, but I've thought that before.
> 
> You don't happen to have a reproducable misbehaving case 
>do you ? ;-)
> 
> David



More information about the Tinyos-2.0wg mailing list