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.
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.
By acknowledgment , you mean acknowledgment from receiver? Can it be that the acknowledgment was not sent, but the message was received?
DimaG said:Can it be that the acknowledgment was not sent, but the message was received?
Yes, that is a possibility,
Br,
Joakim
Thank you very much. What I do not understand is the following:
We tried to change the parameter "noack" to true and to false. In both cases we sometimes get the "ESB_EVENT_TX_FAILED" message. How can it be? Is it another ack?
Thank you very much. What I do not understand is the following:
We tried to change the parameter "noack" to true and to false. In both cases we sometimes get the "ESB_EVENT_TX_FAILED" message. How can it be? Is it another ack?
THE ESB_EVENT_TX_FAILED doesn't HAVE to be because of a timeout waiting for the acknowledgement.
The event is returned if the transmission failed.
Br,
Joakim