Umesh,

You can use the SysTimeStampingC component (contrib/vu/tos/lib/CC2420)
to timestamp the reception of a message in microsecond resolution. In
the handler of the MicInterrupt.toneDetected() event, you can just call
the SysTime.getTime32() command of the SysTimeC component to timestamp
the tone detection.

You should, however, keep in mind that SysTimeC and SysTimeStampingC use
the processor clock. If the mote sleeps, the clock stops. This means
that you can either do microsecond precision timestamping or power
saving, but not both at the same time.

I assume you want to do acoustic ranging. When you calculate the range,
please keep in mind that the resolution of the clock is not exactly one
microsecond, but 1/921600s.

Good luck,
Janos

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of S.
Umesh Babu
Sent: Saturday, December 03, 2005 12:54 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] How to get timestamps in microseconds for micaz
motes


Hello,

We want to measure time between two events using timestamps in
microseconds.(micaz motes)

1) receiving time of a radio packet
2) beep listening,by calling Mic.readToneDetector() command.

how can i get the timestamps.

thankyou for your assistance
warm regards
Umesh


_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to