You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing delayed TCP and UDP packets on ESP32 and have discovered a high rate (30-50+%) of 802.11 frames being dropped and re-transmitted.
Symptom: I was originally trying to stream data from a PC to ESP32 via UDP at 60Hz. Although packets eventually arrived, there's a very high rate of delayed packets, with packets arriving in groups as measured by the ESP32. Delays ranged from 50ms-300ms.
Digging further, I found that the ESP32 WiFi stack itself is dropping packets. Here's a way I could test:
Setup:
Minimal Arduino sketch that simply turns on WiFi, disables power saving mode, and does nothing in loop().
Running Wireshark on Mac in monitor mode to capture 802.11 frames.
Python script on Mac is sending UDP packets, ~850bytes each, to ESP32 at 60Hz.
ESP32 placed next to the router for extremely high signal strength (RSSI = -4).
Wireshark shows many frame retransmissions.
Arduino 1.8.9 with ESP32 1.0.3 installed via Board Manager and NodeMCU-32S selected as board type.
Hardware: ESP-WROOM-32 module on a generic "ESP32 DEVKIT V1" breakout board.
Router: TP-Link Archer A20, WPA2 PSK
Hardware:
Board: ESP32 Dev Module
Core Installation version: 1.0.3
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Mac OSX
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
I'm seeing delayed TCP and UDP packets on ESP32 and have discovered a high rate (30-50+%) of 802.11 frames being dropped and re-transmitted.
Symptom: I was originally trying to stream data from a PC to ESP32 via UDP at 60Hz. Although packets eventually arrived, there's a very high rate of delayed packets, with packets arriving in groups as measured by the ESP32. Delays ranged from 50ms-300ms.
Digging further, I found that the ESP32 WiFi stack itself is dropping packets. Here's a way I could test:
Setup:
Wireshark shows many frame retransmissions.
Arduino 1.8.9 with ESP32 1.0.3 installed via Board Manager and NodeMCU-32S selected as board type.
Hardware: ESP-WROOM-32 module on a generic "ESP32 DEVKIT V1" breakout board.
Router: TP-Link Archer A20, WPA2 PSK
Hardware:
Board: ESP32 Dev Module
Core Installation version: 1.0.3
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Mac OSX
Sketch:
Debug Messages:
I don't see this option in the Tools menu of Arduino IDE.
The text was updated successfully, but these errors were encountered: