That depends if you have ACKs enabled.

W/o ACKs, sendDone() is called sometime after the last byte of the message
has been written into the transmitter input register.

W/ ACKs, sendDone() is delayed for a short period (rummage in the radio code
to see how long, but order of mag is 10ms). If an ACK is received the wait
breaks and the msg->ack field is set, otherwise not.

In either case it's a tossup as to synchronicity with a receiver at the
user level.

This is, of course, real-world talk, if it's a SIM run I have no idea...

MS


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.
*/Bibudh Lahiri <[EMAIL PROTECTED]>/* wrote:


    Faisal,
      I'm not sure, but my guess is sendDone() is invoked at the src
    when the MAC-layer ACK is received by the sender. The MAC layer ACK
    is always rcvd from the one-hop neighbor, because MAC is not
    concerned about end-to-end message delivery. So in case of multi-hop
    routing, it appears to u that sendDone() is called before the frame
    is received at destination.
Bibudh On 4/1/07, *Faisal Karim* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hi All

        Im using TinyOS 1.1.15, can anybody tell me why this behavior is
        encountered for sendDone()

        When the source is in one hop from destination the packet is
        received by destination first than sendDone is called at source.
        But in case when source is more than one hop away sendDone is
        called before it is received at destination, which is correct
        operation. Can someone put light on this.
Regards
        Shaikh, Faisal Karim


        ------------------------------------------------------------------------
        Need Mail bonding?
        Go to the Yahoo! Mail Q&A
        
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
        for great tips from Yahoo! Answers
        
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
        users.

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


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


------------------------------------------------------------------------
Food fight? <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367> Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>


------------------------------------------------------------------------

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

Reply via email to