How can I optimize Wifi latency ?.

alexsunny123
Posts: 1
Joined: Wed Apr 14, 2021 6:08 pm

How can I optimize Wifi latency ?.

Postby alexsunny123 » Wed Apr 14, 2021 6:11 pm

Hello,

I'm trying to program an arduino over wifi using an ESP8266 as a transparent TCP/Wifi to UART bridge. The problem I'm running into is that the round-trip latency from the programmer sending a block to the arduino until it receives the ACK back from the arduino is too long. Looking at tcpdump, it looks like it takes ~400ms for the ESP to respond to any TCP data. I can see from looking at the serial lines that it's not the arduino's fault. Is this typical? Can I optimize this somehow?

thanks
alexsunny

Her Mary
Posts: 495
Joined: Mon Oct 27, 2014 11:09 am

Re: How can I optimize Wifi latency ?.

Postby Her Mary » Fri May 07, 2021 3:17 pm

Bad network may cause TCP re-transmit. And also you can try to send large packets.

Who is online

Users browsing this forum: Google [Bot] and 7 guests