[Tinyos-help] sendDone() called before receive

Philip Levis pal at cs.stanford.edu
Tue Apr 3 09:28:38 PDT 2007


On Apr 3, 2007, at 9:20 AM, Faisal Karim wrote:

> Hi Philip
> Just to understand the behavior of TOSSIM i was curious why sendDone 
> () is called  after receive() at source, or may be receiveDone()  
> shd also be included in future versions of TOSSIM.
>

Take a look at how far apart the two are in time. It should be  
microseconds. This is well within simple code execution time  
differences. If it happens to be that the receiver samples a bit  
before the end of the bit transmission time, then the reception  
interrupt might occur slightly before the transmit interrupt. Note  
this is particular to how the software stack for a mica node is  
implemented.

Phil




More information about the Tinyos-help mailing list