espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.79k stars 7.31k forks source link

[TW#15748] WiFi throughput #322

Closed gctronic closed 6 years ago

gctronic commented 7 years ago

Hi, in the "v2.0 Release Candidate 1" there is a note in the known issues indicating "WiFi throughput need more optimization", what is the expected throughput now? I can get only a few Mbit/s from the module to a PC (and viceversa) through an AP.

Best regards.

FayeY commented 7 years ago

Hi gctronic, is this problem still unsolved? Does the WiFi throughput become better?

gctronic commented 7 years ago

Hi, yes recently I did some tests and the throughput is actually better: TCP around 10 Mbit/s, UDP around 18 Mbit/s.

bvernoux commented 7 years ago

It will be very interesting to have official values with different use cases (esp<->esp or esp<->ap), latency Average/Min/Max in ms / Average/Min/Max MBytes/s (how many meter between esp<->esp or esp<->ap)

liuzfesp commented 7 years ago

HI @bvernoux @gctronic we already support iperf example in latest IDF master branch, I think you can run the demo to get the result. BTW, my latest result with the iperf example is TCP TX 53M, TCP RX 36M, UDP TX 60M, UDP RX 70M

bvernoux commented 7 years ago

Thanks for the update and ipref example the improvements are very impressive I will test it on official esp-idf v3.0 I'm also very interested to see the low level API to send raw frame over WiFi (with or without any AP connection), a bit like what seems used in espnow sample for ESP32 but it is an other subject (the aim is to have maximum TX speed on raw frame mainly for debug/traces/telemetry... purposes)

liuzfesp commented 7 years ago

HI @bvernoux currently we don't have demo to test the throughput with RAW API. But we have throughput test on 8689 which has same WiFi chip, the difference the TCPIP stack and WiFi stack is on different CPU. The maximum UDP throughput is about 130M, almost reaches the max theoretical HT40 WiFi throughput.

abcdcadc commented 6 years ago

Hi, I use iperl on the newest version and the speed is around 1 Mbit/sec. it really is so slow. is there any way to speed up, unless, what is the highest speed of esp32

regard and thanks

liuzfesp commented 6 years ago

Hi @gctronic recently we have changed the menuconfig, but the iperf example is not changed accordingly, we update the iperf example after we finish the throughput optimization this month.