-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using payload ack, the ack replied by the receiving end lags 4 times #1002
Comments
|
If you're sending ACK payloads to multiple devices/pipes, then (I think) the RX device will only transmit the ACK payload in the TX FIFO's top level (first ACK payload queued) when the payload is received on the pipe intended for the ACK payload. |
Its kind of hard to follow everything your code is doing. |
Tip
|
Have you run our AcknowledgementPayload example? It should demonstrate expected behavior to verify your radio is working correctly. |
if (ackPayload != NULL && ackSize > 0)
{
// ackPayload->counter = result.data[2];
Serial.print(ackPayload->message);
Serial.println(ackPayload->counter);
radio.writeAckPayload(result.pipe, ackPayload, ackSize);
} Are you sure |
Honestly, this seems like question for Arduino Forums (or PlatformIO forums). I don't think this is a library bug. |
Thank you very much for your reply, I re-read the example about paylod ack and the problem is solved. But I have a problem with setting the channel, I'm modifying the channel using the " radio.setChannel()" function and after the modification I'm printing the current channel via radio.getChannel(), I'm sure that the sender and the receiver are modifying to the same channel but I can't send successfully after the modification. Looking forward to your reply |
Its best to call radio.stopListening(); // this will flush TX FIFO if ACK payloads enabled
// radio is now in an inactive TX mode.
radio.setChannel(87);
radio.startListening(); // resume RX behavior |
What radio module do you use?
nRF24L01+
What driver board(s) do you use?
esp32-s3-devkitc-1
If using Linux, what OS are you using?
No response
If using Linux, what RF24 driver did you select?
None
Describe your problem
I want the payload ack on the receiving end to reply to the last received data at any time other than the first communication, but now I'm finding that I can't receive the ack four frames ago until after my sender has sent it multiple times
What is the RX code?
https://github.com/camerakang/Nrf24_demo_send
What is the TX code?
https://github.com/camerakang/Nrf24_demo_rev
The text was updated successfully, but these errors were encountered: