Alternative for WiFiUDP ?
Hello, i am developing an RC plane powered by esp32 boards with peripherals. It involves an esp32-cam sending 240x240 images over to another esp32 and displaying them on a 240x280 display. Im currently using WiFiUDP for wireless communication, which comes with a couple of problems: high latency, low throughput and low reliability/packet loss, mostly due to small packet size i assume. I would be very glad if you would inspect my repo and suggest any improvements regarding the wireless protocol!! I might think about switching to RPI with a camera and some kind of FPV module, but again, suggestions and product links would be appreciated
Here is my repo: https://github.com/dababyduck/esp32-RC-plane
GitHub
GitHub - dababyduck/esp32-RC-plane: ESP32 RC plane with video strea...
ESP32 RC plane with video streaming . Contribute to dababyduck/esp32-RC-plane development by creating an account on GitHub.
1 Reply
found a solution myself. esp-idf has a function called esp_wifi_80211_tx, which sends raw ieee80211 packets, preventing UDP/TCP/IP overhead, allowing for faster communication. check these two repos for examples:
1)esp32cam fpv: https://github.com/jeanlemotan/esp32-cam-fpv/blob/main/air_firmware/main/main.cpp
2)brief example: https://github.com/Jeija/esp32-80211-tx/blob/master/main/main.c
GitHub
esp32-cam-fpv/air_firmware/main/main.cpp at main · jeanlemotan/esp...
esp32 cam digital low latency fpv. Contribute to jeanlemotan/esp32-cam-fpv development by creating an account on GitHub.
GitHub
esp32-80211-tx/main/main.c at master · Jeija/esp32-80211-tx
Send arbitrary IEEE 802.11 frames with Espressif's ESP32 - Jeija/esp32-80211-tx