RX/TX socket buffer sizes for ESP32?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
ZKDMun
Posts: 42
Joined: Thu Nov 24, 2016 2:34 pm
Location: Hamburg

RX/TX socket buffer sizes for ESP32?

Post by ZKDMun » Thu Jul 05, 2018 4:29 pm

Hi there,

what are the RX/TX socket buffer sizes for the ESP32?
And how many sockets are possible to handle on the ESP32 with MicroPython?

ZKDMun
Posts: 42
Joined: Thu Nov 24, 2016 2:34 pm
Location: Hamburg

Re: RX/TX socket buffer sizes for ESP32?

Post by ZKDMun » Mon Jul 09, 2018 4:50 pm

Some test results:

I can create 8 different sockets.
After this I will get an OSError21.

For UDP-sockets:
each UDP-socket can buffer up to 6 UDP-packets with 1472 bytes (MTU = 1500 bytes). If there are more than 1472 bytes of data in the UDP-packet, the packet will get lost. Every UDP-packet after 6 packets will get lost. It doesn't matter, how large the UDP-packet are... I can send 7 UDP-packets with 1 bytes of data - the last packet will always get lost.

Post Reply