IEEE 802.15.4 Library Always Reporting Missing ACK Error on esp32c6

marcelo_barros
Posts: 1
Joined: Fri Mar 18, 2022 10:46 am

IEEE 802.15.4 Library Always Reporting Missing ACK Error on esp32c6

Postby marcelo_barros » Fri Nov 14, 2025 12:11 pm

I'm using the IEEE 802.15.4 library available for the ESP32C6. I created some higher-level functions for the application so that the user wouldn't have to deal with retransmissions, queues, or semaphores.

However, I'm seeing a strange behavior where the message is sent by the transmitter, received by the receiver, but the library indicates that there was an error in the transmission because only the failure callback is called (esp_ieee802154_transmit_failed). Rarely do I see anything reaching the callback indicating that the transmission was successful (esp_ieee802154_transmit_done). The error message is always the same, indicating that the ACK was not received (ack was set to auto).

The transmitter and receiver code are available in this repository: https://github.com/marcelobarrosufu/dem ... /tree/main
The implementation is in the file https://github.com/marcelobarrosufu/dem ... ee802154.c

The initial radio configuration was as follows (function ieee802154_init):

Code: Select all

esp_ieee802154_set_ack_timeout(12*16);
esp_ieee802154_set_promiscuous(false);
esp_ieee802154_set_rx_when_idle(true);
esp_ieee802154_set_coordinator(false);
esp_ieee802154_receive();
The functions created for transmission and reception were ieee802154_send_msg and ieee802154_recv_msg, available in the cited file.

I would like to know if there is anything being handled incorrectly and how to work around this situation.

Thanks,
Marcelo

Who is online

Users browsing this forum: Bing [Bot], ChatGPT-User and 2 guests