I don't if this could help you out, but I've read something in past posts on the Forum regarding Surge_Reliable under contrib/xbow that uses ack for everything.
Perhaps you might have a look at that code to see if you find some clue. Costa -----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Hannes Geissbuehler Inviato: mercoledì 26 ottobre 2005 22.20 A: [email protected] Oggetto: [Tinyos-help] MacControl.enableAck() - QueuedSend and Surge Hi I'm pretty new to Tinyos and have a Question concerning the ack's in the Tos_Msg. By default the Acks are switched off on the cc1000 (mica2mote) and can be switched on over the MacControl.enableAck() command. Looking at the code of Surge and QueuedSend I have remarqued that both QueueSend : (QueuedSendM.nc) if ((!retransmit) || (msg->ack != 0) || (msgqueue[dequeue_next].address == TOS_UART_ADDR)) { and Surge through Multihop: (MultiHopEngineM.nc) if(pMsg->ack == 0 && pMsg->addr != TOS_BCAST_ADDR && pMsg->addr != TOS_UART_ADDR && fail_count < 6){ are using the ack Byte from the Tos_Msg but I did not find a single line which switches the enableAck() on. Could somebody please tell my how this does work ? Is there another mechanism to switch on the Ack's or Is the code in QueuedSendM.nd and MultiHopEngineM.nc somehow buggy because the ack will allways be 0 ? Thanks a lot for your help _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
