I used SP library from Moteiv, and set transmission to reliable. SP is included in Boomerang (see [1]), but I have tested it just with tmote motes.
[1]: http://blog.moteiv.com/archives/boomerang/
[1]: http://blog.moteiv.com/archives/boomerang/
----- Mensaje original ----
De: Lee Ee Foong <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED]
Enviado: sábado, 4 de noviembre, 2006 6:07:04
Asunto: How to enable ACK on tmote
Access over 1 million songs - Yahoo! Music Unlimited Try it today.
De: Lee Ee Foong <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED]
Enviado: sábado, 4 de noviembre, 2006 6:07:04
Asunto: How to enable ACK on tmote
Hi,
I saw your posting regarding enabling the ack on tmote. I'm trying to test the ack in the sendDone( ) but the ack field
always set to zero. I call MacControl.enableACK( ) in the StdControl.start( ). Is there something that I did wrong or missing? How did you solve it?
I wired the components as following:
Main.StdControl -> CC2420RadioC;
MultiHopEngineM.MacControl -> CC2420RadioC;
command result_t StdControl.start()
{
call MacControl.enableAck();
return SUCCESS;
}
{
call MacControl.enableAck();
return SUCCESS;
}
event result_t SendMsg.sendDone[uint8_t id](TOS_MsgPtr pMsg, result_t success)
{
dbg(DBG_TEMP, "ack is %d \n", pMsg->ack);
if (pMsg->ack == 1)
call Leds.redToggle();
else
call Leds.greenToggle();
return SUCCESS;
}
dbg(DBG_TEMP, "ack is %d \n", pMsg->ack);
if (pMsg->ack == 1)
call Leds.redToggle();
else
call Leds.greenToggle();
return SUCCESS;
}
Thank you.
Andre
Access over 1 million songs - Yahoo! Music Unlimited Try it today.
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
