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

nRF24L01+: How resend the same packet to PTX?

Best regards:

Once the data was received in PRX, Is there a way forward (or modify) to PTX the same data and deliver it together with ACK payload in the same transaction?

Example:

PTX send "0x05" ----> PRX (0x05 + 1 = 0x06)

PTX receive "0x06" <--- PRX (responds along with ACK PAYLOAD)

In my tests PTX receive "0x06" when send a second packet but I need to receive in the first ack payload.

How do i do it?

Parents Reply
  • Hi,

     

    eznrf said:
    but PTX gets the valid response (0x06 value) in the second transaction.

    This is the expected scenario. Usually due to the fact that there is not enough time for the PRX device to read the payload, handle any processing, write the payload back; before the radio has automatically turned from RX -> TX to send the ACK. 

    eznrf said:
    Is there no way that PRX will just receive the value 0x05 increment it to 0x06 and immediately forward it to PTX? (in the same transaction).

    You can, but it's not always reliable; you will run into the scenario where you receive it on the next payload.

     

    Kind regards,

    Håkon

Children
Related