[Tinyos-help] Alternative to TimerC when you need timing less than 4ms.

Nick Soldner nick.soldner at gmail.com
Sun Jan 21 19:33:34 PST 2007


Hello,
I am using Tinyos-1.x with a MicaZ mote and trying to measure RSSI at high
rates, I've posted about this before and am slowly getting closer to my
goal. Right now when I use TimerC, I am unable to get a measurement any
faster than 4ms. Clearly I'm running into a limitation of TimerC or need to
modify something or use another timing function (should I use AlarmC?)

Here is the relevant code:

    command result_t StdControl.start() {
    // Start a repeating timer that fires every 1000ms
    return call Timer.start(TIMER_REPEAT, 1);
      }

basically what happens is the timer simply doesn't work, i.e. Timer.fired()
isn't triggered. I'm trying to understand why this happens, is it linked to
the micaz's timer or what is it that limits TimerC from going much faster
than 4ms.

Thanks,

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070122/85460999/attachment.htm


More information about the Tinyos-help mailing list