[Tinyos-help] Timing in TinyOS 1.1
kwright at EECS.Berkeley.EDU
kwright at EECS.Berkeley.EDU
Thu Jan 15 17:45:04 PST 2004
We use a logic analyzer. You can also look at the SysTime interface -- seems easier.
-kw
----- Original Message -----
From: John Regehr <regehr at cs.utah.edu>
Date: Wednesday, January 14, 2004 11:40 am
Subject: Re: [Tinyos-help] Timing in TinyOS 1.1
> Here's how we've gotten extremely accurate times for stuff
> happening on
> motes with near zero perturbation of the software:
>
> 1. Find somebody in your local ECE or EE department who'll loan
> you an old
> logic analyzer. Figure out how to use it.
>
> 2. Figure out how to hook into some of the AVR's pins. This
> requires tiny
> little clips but isn't difficult.
>
> 3. Write a bit of software to set an external AVR I/O pin high
> when you
> want to start timing and low when you want to stop. Logic
> analyzers are
> built to measure durations like this so now you're all set.
>
> The only real problem with this strategy is that since there are
> at least
> three computers involved -- the host PC, the analyzer, and one or more
> motes -- it's very hard to automate anything.
>
> John
>
>
> --
> John Regehr, regehr at cs.utah.edu
> Assistant Professor, School of Computing, University of Utah
>
>
>
> On Tue, 13 Jan 2004, Leijun Huang wrote:
>
> > Hello,
> >
> > I am trying to measure an algorithm's running time in TinyOS 1.1 and
> > mica2. The source distribution contains several time-related
> components.> I do not know which is the best. My ideal usage is
> like this:
> >
> > record the start time;
> > post a task to run the algorithm;
> > record the end time when the task is over.
> >
> > And the smaller the granuity is, the better. Anyone has similar
> experience?>
> > Thanks,
> > --Leijun
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> >
>
> _______________________________________________
> 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