I think you are assuming that they both have the same definition of a second. A second is 1000 milliseconds, which is what Java uses (base 10), the tinyos timer you are using is base 2 as detailed in http://www.tinyos.net/tinyos-2.x/doc/txt/tep102.txt due to the granularity of the hardware timers.
Alan On 24/04/07, sara Khad <[EMAIL PROTECTED]> wrote:
Hello, I am trying to measure the receiving packets time; so I connected the base station to the USB and the other tmote sky is forwarding a packet every 1 second (1024). However when I read the time from the host pc using System.currentTimeMillis();. The time difference is about 999ms is that reasonable???? i do not understand why I get the packet faster than I had received. Is it because of the drift or what do you think? please help me !!! thank you and best of regards S _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help