Wifi performance

PeterR
Posts: 116
Joined: Mon Jun 04, 2018 2:47 pm

Wifi performance

Postby PeterR » Wed Dec 05, 2018 4:23 pm

Hi,

I have set up an ESP32 STA tcp/ip server which echos whatever it receives.
A python client connects and sends 100*120 bytes and waits for data to be returned before repeating.
Throughput is measured over 10 seconds.

I achieve 25 - 30KB/S in each direction which is much smaller than I had expected.
I am aware that there are only so many lwip buffers & so the ESP server collates 1000 bytes at a time before replying (or on timeout).

Why so slow?

ESP_Sprite
Posts: 2264
Joined: Thu Nov 26, 2015 4:08 am

Re: Wifi performance

Postby ESP_Sprite » Thu Dec 06, 2018 2:11 am

You're more-or-less measuring the latency of the entire chain by waiting for a response to get back to you. Better to send a whole slew of packets and waiting asynchroneously for them to be acked; that's how TCP/IP normally does it. Or use the iperf example if you want to evaluate what the hardware is capable of.

PeterR
Posts: 116
Joined: Mon Jun 04, 2018 2:47 pm

Re: Wifi performance

Postby PeterR » Thu Dec 06, 2018 11:17 am

Thanks, Yes, you're right. Having a bad day....
I will change the client so that the client requires most of the data to be returned before transmitting again (rather than all).

Return to “General Discussion”

Who is online

Users browsing this forum: boarchuz and 20 guests