Author Topic: Not receiving ack from coordinator  (Read 1190 times)

0 Members and 1 Guest are viewing this topic.

Offline wifiguy11Topic starter

  • Newbie
  • Posts: 7
  • Country: us
Not receiving ack from coordinator
« on: May 17, 2017, 10:06:08 pm »
Hey all!

I'm currently trying to use the TAL layer example as described in http://www.atmel.com/Images/Atmel-42196-Wireless-Product-Development-Using-Atmel-Studio-and-ASF_AP-Note_AT02607.pdf

I've adapted the code slightly to emulate another device which uses 802.15.4. The idea is that I can send commands to the coordinator in lieu of this device to troubleshoot certain issues.

The main issue i'm coming across is that the tal_rx_frame_cb doesn't seem to be picking up the ack my coordinator is sending. I have verified that the ack is being sent to the device by having a sniffer running close to my setup.

Any initial thoughts? Currently I'm thinking the ack is getting sent before I set the trx state to CMD_RX_ON. If this is the case, does anyone have an idea as to how to adapt the code mentioned in the pdf to make it so it can catch Ack frames?

Best,

wifiguy11
 

Offline wifiguy11Topic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Not receiving ack from coordinator
« Reply #1 on: May 18, 2017, 04:51:41 pm »
For anyone finding this here's what I've done to work around this issue.

Within the function tal_tx_frame, I set perform_frame_retry to true

tal_tx_frame(&tx_frame_info, CSMA_UNSLOTTED, true);   

Additionally my application checks for MAC_NO_ACK status condition in tal_tx_frame_done_cb, and lets my process know if I ever don't recieve an ack from the coordinator.

If anyone forsees an issue with this solution, feel free to let me know :)

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf