On Apr 25, 2008, at 2:00 AM, Linas Ramanauskas wrote:
> Hello,
>
> Platform: CrossbowTelos (Rev B 2004/09/27)
> Operating system: TinyOS 2.0.2 (downloaded from CVS 2008.04.23)
>
> Is it possible, that after calling "call Send.send(&packet,  
> sizeof(data_t))" that resulted in SUCCESS the event "event void  
> Send.sendDone(message_t* m, error_t err)" is not signaled?
>
> I have an application, based on EasyCollection, that takes data form  
> integrated sensors and sends it 4 times per second. There is three  
> motes: base (packet sniffer), root and sender.
>
> When mote executes SendMsgTask() and finds flag radioSendBusy TRUE,  
> it toggles red led (it means, packet will not be send). When mote  
> successfully calls Send.send(&packet, sizeof(data_t)), it toggles  
> green led. When there is event void Send.sendDone(message_t* m,  
> error_t err) signaled without SUCCESS in err, mote turns on blue led.
>
> Normally the green led is blinking and data is received at PC. If I  
> turn off the root, sending mote starts retransmitting data. During  
> this time I can see red diode blinking few times, this indicates  
> that there is radioSendBusy set to TRUE. So, during this blinking,  
> event Send.sendDone(message_t* m, error_t err) fires and because  
> there was no ACK from root, the blue led is turn on. This is also  
> normal behavior.

Why would no ACK from root cause the blue LED to turn on? That's not  
the semantics of the error_t in sendDone().

Phil
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to