Hi. i'm using autoack in cc2420 radio. I'm sending cycling packets in
cc2420RadioM to make a b-mac implementation. So i want that the receiver
autoacks the message so the transceiver would stop transmiting the
packets when receiving the ack. i don't kwow how it does, but if the
receiver transmit the ack  i supossed that the reception of the ack
would be as if was a normal packet so the HPLChipconFIFO.RXFIFODone
would fire,no?

i don't know what to do in that moment, the RXFIFODone would identifie
tha packet as an ack? I don`t if that part of the code makes it:

 if (bAckEnable && (currentstate == POST_TX_STATE) &&
         ((rxbufptr->fcfhi & 0x07) == CC2420_DEF_FCF_TYPE_ACK) &&
         (rxbufptr->dsn == currentDSN) &&
         ((data[length-1] >> 7) == 1)) {
      atomic {
        txbufptr->ack = 1;
        txbufptr->strength = data[length-2];
        txbufptr->lqi = data[length-1] & 0x7F;
        currentstate = POST_TX_ACK_STATE;
        bPacketReceiving = FALSE;
      }


do i have to implement a part in this code that recognaises the ack?
Please i need help
thanks


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to