Skip to content

ESPNow - Disabling ACK packets increases latency? #1918

Answered by pschatzmann
charlielee206 asked this question in Q&A
Discussion options

You must be logged in to vote

If the latency is too big, you should try to minimize the buffers in the whole processing chain: e.g. the buffer_size and buffer_count in I2S and ESPNow are a bit big to be on the save side and you can try to optimize this considerably.

The use_send_ack in ESPNow is critical to prevent a buffer overflow assuming the sending speed is above the playback speed. If you remove it you need to do 2 things:

  • Make sure that you limit the sending speed to the sample rate
  • Add some additional logic on the output side to prevent buffer over and underruns because of the slight clock differences between the sender and receiver: e.g. Monitor the buffer and do some resampling to speed up or slow down the …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@charlielee206
Comment options

@pschatzmann
Comment options

@charlielee206
Comment options

@pschatzmann
Comment options

@pschatzmann
Comment options

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants