I have two NRF24L01+ devices. My aim is to have one as PTX and the other as PRX replying with ACK_PAYLOAD. It is working with ACK enabled (without payload). However when ACK_PAYLOAD is enabled (through feature and dynamic payload registers), the PTX does not receive RX payload (TX_DS and RX_DR flags are not set) even though PRX is sending the payload (TX_DS on PRX is set). Can someone provide a config and implementation setting that has worked for them, since i am struggling to get mine to work. PTX config:
- TX_ADDRESS = {0x34,0x43,0x10,0x10,0x01}
- RX_ADDR_P0 = {0x34,0x43,0x10,0x10,0x01}
- Enable Pipe0, Auto acknowledge
- SETUP_RETR: 500us, 10 retransmit
- RF_SETUP: 250 kbps (have tried with 1 mbps and 2 mbps without success as well)
- FEATURE: enable ack payload, dynamic payload
- DYNPD: enable dynamic payload pipe 0
- CONFIG: 0x0e (disable all interrupts on IRQ, power up PTX, 2 bit CRC)
PRX config: same as PTX except RX_PW_0: number of bytes sent by PTX. CONFIG: 0x0f (disable all interrupts on IRQ, power up PRX, 2 bit CRC)
Thanks!