I am nRF52832 , S132 , SDK15.0.0 // nRF52840, SDK15.0.0 is used.
Examples of esb_prx, esb_ptx are modified and used.
Transmitter : nRF52832
Receive : nRF52840_DK
Senders successfully send data, but no NRF_ESB_EVENT_TX_SUCESS events occur.
void nrf_esb_event_handler(nrf_esb_evt_t const * p_event){
switch (p_event->evt_id)
{
case NRF_ESB_EVENT_TX_SUCCESS: // TX SUCCESS EVENT
TxSuccess_flag = 1;
break;
case NRF_ESB_EVENT_TX_FAILED: // TX FAILED EVENT
TxFail_flag = 1;
(void) nrf_esb_flush_tx();
(void) nrf_esb_start_tx();
break;
}
}
1. Send data from the transmitter.
2. I received the data from the reception desk. (Check data received)
3. Check the flange.
4. TxSuccess_flag = 0, TxFail_flag = 1
The data was sent successfully, but no event occurred.
ESB setting
nrf_esb_config_t nrf_esb_config = NRF_ESB_DEFAULT_CONFIG;
nrf_esb_config.protocol = NRF_ESB_PROTOCOL_ESB_DPL;
nrf_esb_config.retransmit_delay = 500;
nrf_esb_config.bitrate = NRF_ESB_BITRATE_1MBPS;
nrf_esb_config.event_handler = nrf_esb_event_handler;
nrf_esb_config.mode = NRF_ESB_MODE_PTX;
nrf_esb_config.selective_auto_ack = false;
nrf_esb_config.tx_output_power = NRF_ESB_TX_POWER_4DBM;
I don't know what's wrong.