[Tinyos-help] How to enableACK on tmote
Joe Polastre
joe at polastre.com
Fri Nov 3 10:51:25 PST 2006
Using SP, you want to request reliability.
See the SPSend.sendAdv() function definition in /opt/moteiv/doc/nesdoc
(start by opening index.html and navigating in the left frame). An
example using reliability is in /opt/moteiv/tos/lib/MultiHopLQI
-Joe
On 11/2/06, Lee Ee Foong <efo2ng at yahoo.com> wrote:
> 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?
>
> 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
>
> ________________________________
> We have the perfect Group for you. Check out the handy changes to Yahoo!
> Groups.
>
>
> _______________________________________________
> 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