Re: [Tinyos-help] Timestamp problem

2012-04-01 Thread Ali Shareef
Hello Akhila, Thank you for the response. Are there any interfaces that can be used in TOSSIM? I tried to the demo program in /apps/tests/cc2420/TestAcks and /apps/tests/cc2420/TestPacketLink in Tossim, but they don't receive messages. I have been able to send messages, and I can see that it occu

Re: [Tinyos-help] Timestamp problem

2012-03-28 Thread AKHILA S RAO
single hop acks are already implemented in TinyOS. They are also active by default, except for broadcasts. You can go through the commands in interface PacketAcknowledgements provided by ActiveMessageC. Also if you want to enable retries by using these acks you will need to use the PacketLink inter

Re: [Tinyos-help] Timestamp problem

2012-03-28 Thread Ali Shareef
Hello all, I am curious if there are any protocols already implemented that use ACK to acknowledge messages for TinyOS. Do any of the lower modules provide an acknowledgement feature for sending a packet to another node, or do you have to implement this ACK feature yourself? This ACK feature wi

Re: [Tinyos-help] Timestamp problem

2012-03-28 Thread LoveYou
t in contention free period, it doesn't need to do that because it can send data message at assigned time slots. How can I do like this way? Thanks you very much! Regards, Bin --- On Wed, 3/28/12, Ali Shareef wrote: From: Ali Shareef Subject: Re: [Tinyos-help] Timestamp problem To: pv

Re: [Tinyos-help] Timestamp problem

2012-03-28 Thread LoveYou
you very much. Best regards, Bin --- On Wed, 3/28/12, AKHILA S RAO wrote: From: AKHILA S RAO Subject: Re: [Tinyos-help] Timestamp problem To: "Han Bin" Cc: tinyos-help@millennium.berkeley.edu Date: Wednesday, March 28, 2012, 1:15 AM call LocalTime.get()  gives you the local time on t

Re: [Tinyos-help] Timestamp problem

2012-03-27 Thread AKHILA S RAO
call LocalTime.get() gives you the local time on the node. If you want to access the global time on the node then you need to use the call GlobalTime.local2Global(&mylocaltime) command. Here mylocaltime is the return parameter of call LocalTime.get(). I think what you need to do is compare global

[Tinyos-help] Timestamp problem

2012-03-27 Thread Han Bin
Hi everybody, I'm working on implementing Schedule-based MAC protocol and I apply FTSP for time synchronization (use telosb mote). I use AMSend/ActiveMessageC interface to send and receive messages. Timestamp is made before sending message (or after receiving message as well) by using the command