This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to set nRF24 PTX with ack payload

Hi,Nordic now, nRF52 as PRX, nRX24 as PTX.

App process

  1. PTX send data via ESB, PRX can receive

    But nRF24 can not receive event HAL_NRF_TX_DS, why?

  2. Then nRF52 send payload, but nRF24 can not receive

If nRF52 as PTX, nRF24 as PRX, it's OK.

Could you tell me how to set nRF24?

Thanks.

nrf52_esb_prx.rar

nRF24_usb_hid_rf.rar

  • @Chaw: we need to see how you configure the nRF24 and the NRF52. Have you tried our example in the SDK ? There is some note on compatibility between them.

  • Hi, I have tried your example in SDK, it work well, nRF24 with nRF52 But your example is that nRF52 as PRX, nRF24 as PTX, and no need ack Now I need nRF52 can send ack payload, so after nRF52 receive, nRF52 write payload on nRF24, when send OK, I change nRF24 to PRX mode, but it do not work. About my app, could you give me suggestion?

  • Hi Chaw,

    We are suspecting it was the bug with the inverted NO_ACK bit on the nRF5 ESB library.

    Could you try this workaround file to replace the original one and let me know if it fixed. Two modification been made on line 482 and 694.

    nrf_esb_NOACK_Fix.c

    [update] Here is an example of using nRF24LU1 as PTX and nRF52 as PRX with ACK payload.

    ptx - Copy.zip

    esb_prx - NoAckFix - Legacy.zip

  • Hi, it doesn't work. same to without modification.

    my app is this:

    1. nRF24 as PTX, nRF52 as PRX

    2. nRF24 send data to nRF52, it work well.

    3. nRF24 change to PRX mode, nRF52 send data to nRF24 (via nrf_esb_write_payload)

    this time, nRF52 nrf_esb_write_payload return success, can not receive TX Successful or TX Failed event.

    nRF24 can not receive data from nRF52.

  • @Chaw: If you actually don't receive data on nRF24 then it's not the bug with NO_ACK bit. We need to see how you configured on both side. Please base on the example in the SDK to add your configuration and send us your projects (both sides).

Related