Slow response from ESP32-S2 Webserver
Posted: Wed Sep 16, 2020 9:55 am
Using the HelloServer.ino example on a ESP32-S2 Wrover I get slow responses when pointing my browser at the ESP32-S2 IP address.
A similar server (with ESP8266 default libraries) running on an ESP-12F has reasonable response times.
According to the network request monitor in Firefox, connecting takes 600ms. Then there is a wait period of over 2000ms. After that, receiving takes 0ms (so it's most likely not a connection speed problem).
Any ideas what could cause this, if it's not a connection speed problem?
Interesting is the ping response from the ESP32-S2:
Maybe it's related?
I'm using the esp32s2 tree of the Arduino IDE, downloaded a few days ago from here: https://github.com/espressif/arduino-esp32/tree/esp32s2
Edit: Try disabling WIFI powersaving, but it didn't change anything
A similar server (with ESP8266 default libraries) running on an ESP-12F has reasonable response times.
According to the network request monitor in Firefox, connecting takes 600ms. Then there is a wait period of over 2000ms. After that, receiving takes 0ms (so it's most likely not a connection speed problem).
Any ideas what could cause this, if it's not a connection speed problem?
Interesting is the ping response from the ESP32-S2:
Code: Select all
ping 192.168.0.29
PING 192.168.0.29 (192.168.0.29) 56(84) bytes of data.
64 bytes from 192.168.0.29: icmp_seq=1 ttl=255 time=84.2 ms
64 bytes from 192.168.0.29: icmp_seq=2 ttl=255 time=1085 ms
64 bytes from 192.168.0.29: icmp_seq=3 ttl=255 time=77.4 ms
64 bytes from 192.168.0.29: icmp_seq=4 ttl=255 time=1074 ms
64 bytes from 192.168.0.29: icmp_seq=5 ttl=255 time=60.3 ms
64 bytes from 192.168.0.29: icmp_seq=6 ttl=255 time=1057 ms
64 bytes from 192.168.0.29: icmp_seq=7 ttl=255 time=43.9 ms
64 bytes from 192.168.0.29: icmp_seq=8 ttl=255 time=1043 ms
I'm using the esp32s2 tree of the Arduino IDE, downloaded a few days ago from here: https://github.com/espressif/arduino-esp32/tree/esp32s2
Edit: Try disabling WIFI powersaving, but it didn't change anything
Code: Select all
esp_wifi_set_ps(WIFI_PS_NONE);