[Tinyos-help] Re: How to enable ACK on tmote
Pablo Gil Montaño
pgilmon at yahoo.es
Tue Nov 7 06:09:22 PST 2006
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/
----- Mensaje original ----
De: Lee Ee Foong <efo2ng at yahoo.com>
Para: pgilmon at yahoo.es
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;
}
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;
}
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061107/7ac679eb/attachment.htm
More information about the Tinyos-help
mailing list