This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[nrf_esb] - event before crc checked

Hi,

I'm trying to porte my code from micro_esb to nrf_esb. My need is to know when a frame with correct address is received. This frame don't need to be valid just received or not (to trig timer even if frame crc is wrong)

When I used nRF51, I have modified micro_esb code to generate an "event" before check the CRC frame.

Now, I use nrf_esb libray with nRF52832. I would to make the same thing.

Can you tell me which solutions I have?

Parents
  • If I understand it correctly, you goal is to detect any packet with the correct address, also those with incorrect CRC? The simples would probably be to modify on_radio_disabled_rx() and add a check for something like if (NRF_RADIO->CRCSTATUS == 0) if you want to handle packets with CRC error, or simply ignore the CRC if you want to handle all packets. You can see that the current implementation does that check, but then discards the packet and restarts RX when a packet with incorrect CRC is detected. You could do whatever you like with the erroneous packet instead.

Reply
  • If I understand it correctly, you goal is to detect any packet with the correct address, also those with incorrect CRC? The simples would probably be to modify on_radio_disabled_rx() and add a check for something like if (NRF_RADIO->CRCSTATUS == 0) if you want to handle packets with CRC error, or simply ignore the CRC if you want to handle all packets. You can see that the current implementation does that check, but then discards the packet and restarts RX when a packet with incorrect CRC is detected. You could do whatever you like with the erroneous packet instead.

Children
Related