[Tinyos-help] Reg retransmissions.

Michael Schippling schip at santafe.edu
Tue Sep 13 23:20:08 PDT 2005


no retransmits at the lower level.
If you have ACKs turned on, the TOSMsg->ack field will be not 0 if the
ACK was received. The sendDone() success arg is always true,
on mica2's at least.

beats me why
MS


Lakshmi Narasimhan. S wrote:
> Hello group,
> Does mica radio stack does any retransmissions?
> Or is it only the toplevel applications that has to retransmit
> based on failures of its send messages?
> 
> If so, how does the toplevel application know about the
> success/failure of its send? It seems to me, sendDone() result_t
> parameter is always SUCCESS from the platform/pc/MicaHighSpeedRadioM.nc
> 
>   task void packetSent(){
>     RadioMsgSentEvent ev;
>     send_state = IDLE_STATE;
>     state = IDLE_STATE;
>     memcpy(&ev.message, send_ptr, sizeof(ev.message));
>     ev.message.crc = 1; // Tools expect crc={0,1}, not actual CRC
> value -pal
>     sendTossimEvent(NODE_NUM, AM_RADIOMSGSENTEVENT,
> tos_state.tos_time, &ev);
>     signal Send.sendDone((TOS_MsgPtr)send_ptr, SUCCESS);
>   }
> 
> 
> is it only by looking at the crc field within the packet
> does one recognize the success or failure of its send?
> 
> Please let me know.
> 
> Thanks
> LN
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list