[Tinyos-help] How to enableACK on tmote

Lee Ee Foong efo2ng at yahoo.com
Thu Nov 2 20:11:07 PST 2006


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061102/4f01e287/attachment.htm


More information about the Tinyos-help mailing list