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 <[EMAIL PROTECTED]> 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
[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

Reply via email to