-->
Page 4 of 4

Re: Latency with WifiClient.print()

PostPosted: Sun Apr 26, 2015 10:41 am
by martinayotte
Hi IGRR,
I won't argue about the way to fix that latency since I don't have the knowledge for that, but I'm sure you understand that having 150ms on every packets sent is an issue. Maybe the bug is somewhere else then...

Re: Latency with WifiClient.print()

PostPosted: Fri May 01, 2015 4:23 pm
by martinayotte
Is there any body else who is facing the same issue of latency on every packets ?

Re: Latency with WifiClient.print()

PostPosted: Sat May 02, 2015 11:18 am
by reaper7
I have :roll: but I wrote about this earlier...
so, two images say more than thousand words:

old with oryginal delay, open jpg image from esp (15.82kB 320x240) -> 37,37s!!!:
Image

new with Chris--A mod tcp_output(_pcb), open jpg image from esp (16.16kB 320x240) -> 1,84s!!!:
Image

No other changes, only delay replace with tcp_output.

I don't say that use tcp_output instead delay are correct, maybe problem exists somewhere else but at this moment I applied this change and I no see any negative effects

Re: Latency with WifiClient.print()

PostPosted: Sat May 02, 2015 10:24 pm
by Chris--A
IGRR mentioned how my change cause the code to not wait for ACK packets.

Rather than replacing the delay(5000), try adding the call to tcp_output before it. This way ACK's are still received.
It might not improve the latency as much, but might make a difference.