Thanks for replies.
I got the idea, but still at one hop the behavior should be like once the
source send one packet sendDone shd be called after that receiver's recieve()
method.
Actually im trying to calculate the delay between transmission and reception. I
have put DBG statement in src's sendDone() and DBG statement in receiver's
recieve() method. When i try simulation of two nodes always DBG of receiver
invokes first than src's DBG. if someone knows some method to calculate delay
than it will be more than good.
Regards
Shaikh, Faisal Karim
------------------------------
Message: 5
Date: Sun, 1 Apr 2007 20:58:56 -0700
From: Philip Levis <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] sendDone() called before receive
To: Thang Le <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Apr 1, 2007, at 7:02 PM, Thang Le wrote:
> From my understanding, in TinyOS 1.1.15, SendDone is invoked when
> the package is successfully queued at the sender. Even without any
> receiver, SendDone is still called.
>
sendDone is signaled when the packet is transmitted. The error code
denotes whether or not the transmission succeeded. Reasons for
failure can include the radio being turned off mid-transmission,
hardware failure, etc.
You will never receive a sendDone before the packet is transmitted.
That would release the packet buffer to the application, which is
problematic.
Note that since sendDone denotes a data-link (single-hop)
transmission, it is signaled when the packet goes one hop, not the
multihop frame within arrives at its destination.
Phil
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help