[Tinyos-help] Need help with localtime interface

2010-04-20 Thread Kartik Siddhabathula
Hi All, I am using tinyos-2.x and telosb motes. I am using the LocalTime.get and storing the values in 2 variables and subtracting them. My first value is stored at boot up and 2nd value is on pressing the user button on telosb. Since the time is a 32 bit number am storing it in 32 bit

Re: [Tinyos-help] Need help with LocalTime interface

2010-04-20 Thread Arik Sapojnik
. Thanks in advance, Kartik --- On *Mon, 4/19/10, Arik Sapojnik sapoj...@gmail.com* wrote: From: Arik Sapojnik sapoj...@gmail.com Subject: Re: [Tinyos-help] Need help with LocalTime interface To: Kartik Siddhabathula siddhabathulakar...@yahoo.com Cc: TinyoS help tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] Need help with LocalTime interface

2010-04-20 Thread Kartik Siddhabathula
: From: Arik Sapojnik sapoj...@gmail.com Subject: Re: [Tinyos-help] Need help with LocalTime interface To: Kartik Siddhabathula siddhabathulakar...@yahoo.com Cc: TinyoS help tinyos-help@millennium.berkeley.edu Date: Tuesday, April 20, 2010, 10:07 AM Not all the parameters were defined in the file

Re: [Tinyos-help] Need help with LocalTime interface

2010-04-20 Thread Arik Sapojnik
bits when I do time_diff0ff. So, if the mask is 0x then my results must also be right, right? Thanks in advance, Kartik --- On *Tue, 4/20/10, Arik Sapojnik sapoj...@gmail.com* wrote: From: Arik Sapojnik sapoj...@gmail.com Subject: Re: [Tinyos-help] Need help with LocalTime interface

[Tinyos-help] Need help with LocalTime interface

2010-04-19 Thread Kartik Siddhabathula
Hi All, I am using tinyos-2.x and telosb motes. I am using the LocalTime.get and storing the values in 2 variables and subtracting them. My first value is stored at boot up and 2nd value is on pressing the user button on telosb. Since the time is a 32 bit number am storing it in 32 bit

Re: [Tinyos-help] Need help with LocalTime interface

2010-04-19 Thread Arik Sapojnik
Some code snippets would help On Mon, Apr 19, 2010 at 19:12, Kartik Siddhabathula siddhabathulakar...@yahoo.com wrote: Hi All, I am using tinyos-2.x and telosb motes. I am using the LocalTime.get and storing the values in 2 variables and subtracting them. My first value is stored at boot

Re: [Tinyos-help] Need help with LocalTime interface

2010-04-19 Thread Kartik Siddhabathula
Hi Arik, Please find attached the code for the local time interface that I had written. Thanks in advance, Kartik --- On Mon, 4/19/10, Arik Sapojnik sapoj...@gmail.com wrote: From: Arik Sapojnik sapoj...@gmail.com Subject: Re: [Tinyos-help] Need help with LocalTime interface To: Kartik