Which problems can cause ESB_EVENT_TX_FAILED event? How does the s/w know that the sending has failed? It is just a sending problem indicator or there is any information coming from the receiver as well?
Which problems can cause ESB_EVENT_TX_FAILED event? How does the s/w know that the sending has failed? It is just a sending problem indicator or there is any information coming from the receiver as well?
Hi.
I'll check with one of our engineers with more experience with ESB.
Could you share what version of the SDK you are working with?
Br,
Joakim
We use version SDK version 1.9.1.
Hi again.
Which problems can cause ESB_EVENT_TX_FAILED event
I.e:
When you are sending a message and the radio times out waiting for the acknowledgement this will trigger the ESB_EVENT_TX_FAILED event.
Br,
Joakim
Which acknowledgement ? From the sender or the receiver?
It's explained in the link I sent you.
If the node is a PTX:
Add packets to the TX FIFO by calling esb_write_payload().
Depending on the value of esb_config.tx_mode that was used in the most recent call to esb_init(), you might have to call esb_start_tx() to start the transmission.
After the radio has received an acknowledgment or timed out, handle ESB_EVENT_TX_SUCCESS, ESB_EVENT_TX_FAILED, and ESB_EVENT_RX_RECEIVED events.