Adesola,

 

You would need to synchronize the base station’s time with the PC. I don’t know if anybody has done that already.

 

Basically, all depends on how precise you need to be. If a few hundred milliseconds are not an issue, then you can simply assume that the packet transmission through the UART is instantaneous, and map the base station time to the PC’s system time. Keep in mind that the 32kHz timer will roll over in fourty-something minutes…

 

Janos

 

-----Original Message-----
From: Adesola Omotayo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 3:51 PM
To: Janos Sallai
Subject: RE: [Tinyos-help] [nesC] Date & Time Functions

 

Hi Janos,

 

Thanks a lot for your response.

 

Kindly enlighten me on how I to translate a mote’s clock to something like a timestamp.

 

Adesola

 


From: Janos Sallai [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 2:42 PM
To: Adesola Omotayo
Subject: RE: [Tinyos-help] [nesC] Date & Time Functions

 

Adesola,

 

The motes have no idea of date and time. They have 32kHz clocks though, implemented by the ClockC component.

 

Janos

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adesola Omotayo
Sent: Wednesday, January 25, 2006 3:25 PM
To: [email protected]
Subject: [Tinyos-help] [nesC] Date & Time Functions

 

Hello,

 

I need all the help I can get on this seemingly trivia issue.

 

I want to determine the date and time that a particular event occurs (e.g. ADC.dataReady), but I don’t know how to do this in nesC. I tried including time.h, the C standard library, in my nesC module. The module compiled right but gave an "undefined reference to ‘time’” error during linking.

 

Any help will be greatly appreciated!!

 

Adesola

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to