my belief is that it is hard to sync time between mote to capture a very little 
time between the Send.sendDone() and    Receive.receive().

you can get the Send.sendDone() separately (without trying to send it using the 
same packet) & calculate (get the       Receive.receive() time separately).

i'm really not sure whether this will give the exact answer. (because at the 
destination, packet processing also will take some time before 
signalingReceive.receive() )


ranal fernando

Date: Sat, 29 Jan 2011 22:28:26 -0500
From: [email protected]
To: [email protected]
Subject: [Tinyos-help] how to measure interval btw Send.sendDone() and  
Receive.receive()?

Hi everyone,
Assuming sender and receiver are synchronous, I want to measure the time 
interval between two events: namely, Send.sendDone() event of a packet at the 
sender and Receive.receive() event of the packet at the receiver. Initially I 
decided to put timestamp of Send.sendDone() event in the packet and timestamp 
Receive.receive() event at the receiver, the interval could be obtained by the 
difference of the two timestamps. However, packet payload is loaded prior to 
calling Send.send() thus before Send.sendDone(), it is impossible to timestamp 
Send.sendDone() event and place the timestamp in the packet. Can anyone give me 
some suggestion on how this may be achieved? Thanks very much.

-- 
-Xiaohui Liu



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

Reply via email to