Generally speaking, for AM, returning FAIL on send because the radio isn't on, 
the packet is too long, or otherwise the call can't be completed. EBUSY Is when 
there's already a pending packet from that AMSenderC.

Passing FAIL on sendDone can happen when any of the above FAIL conditions 
aren't detected until the packet is dequeued from the send queue. E.g., if the 
radio's on, you submit a packet, it succeeds, then the radio turns off, the 
layer signals sendDone with FAIL as a result_t.

Phil

-------
Philip Levis
Associate Professor
Computer Science and Electrical Engineering
Stanford University
http://csl.stanford.edu/~pal

On Nov 20, 2013, at 4:48 AM, adibsairi <[email protected]> wrote:

> Thanks for the reply Eric.
> 
> If I could not get that information form the layer that I am currently are,
> so, where could I get this information from in TinyOS? 
> 
> Is it available at the MAC layer? if yes, which function/file should I
> looked at? 
> 
> Thanks..
> 
> Adib
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://tinyos-help.10906.n7.nabble.com/How-to-know-the-cause-of-send-failure-using-AMSend-tp23867p23869.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
> _______________________________________________
> 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