The easiest way to test this is just to add a printf statement (or whatever
your preferred feedback method is) to print out the error code from
AMSend.sendDone in RadioCountToLeds. That way you also have another node to
verify that packets are indeed being successfully sent.
The only code I changed was adding #include "printf.h" and changing
AMSend.sendDone to:
event void AMSend.sendDone(message_t* bufPtr, error_t error) {
printf("Err %u\n", error);
printfflush();
if (&packet == bufPtr) {
locked = FALSE;
}
}
Sincerely,
Will
On Thu, Jan 24, 2013 at 11:07 AM, Janos Sallai
<[email protected]>wrote:
> William,
>
> Can you post a small test application that has this issue? I'd be more
> than happy to look into this.
>
> Janos
>
>
> On Wed, Jan 23, 2013 at 1:06 PM, William Huang <[email protected]> wrote:
>
>> I'm using some EPIC/telosb nodes, and the error passed to AMSend.sendDone
>> is always 7 even though the packets are successfully sent to another node.
>>
>> Has anyone else had this problem?
>>
>> --
>> *Fortune favors the bold*
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
--
*Fortune favors the bold*
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help