ESP32 turns on the Wi-Fi hotspot and the Iperf test APP on the mobile terminal to test the process of ESP32 Wi-Fi AP rate

#Test requirements:

  • ESP32 turns on WiFi AP + Server mode
  • Connect mobile phone to ESP32 WiFi AP hotspot
  • Test the Iperf rate of the ESP32 WiFi hotspot through the Iperf test APP on the mobile phone

Test case:


1. ESP32 turns on Wifi AP mode

ap esp32 12345678

insert image description here
insert image description here

  • Parameter meaning:

    • apmeans open WiFi APmode ; stameans openWiFi Station 模式
    • esp32and represent ESP32 open WiFi AP mode and 12345678respectivelyssidpassword
    • If the ESP32 needs to be set to WiFi Station 模式connect the router, the following command can be used
  sta cc2.4 espressif 

2. ESP32 opens TCP Server mode

iperf -s -i 3 -t 200

insert image description here
insert image description here

  • Parameter meaning:

    • -sIndicates open Server 模式, the default is TCP Servermode . -cIndicates openClient 模式

    • -i 3represent每 3 秒打印一次速率

    • -t 200represent 总共测试 200 秒time

    • If you want to test UDP Serverthe rate , increase -uthe parameter, as follows:

	iperf -s -u -i 3 -t 200

3. Download the mobile terminal Iperf test APP

Please refer to "iperf3 network detection detailed explanation (android, iOS, windows"

  • Mobile terminal test steps:
    • Connect the mobile phone to the ESP32 WiFi hotspot first
    • Open the Iperf test APP and set the Iperf test command as follows:
iperf -c 192.168.4.1 -i 2 -t 60

insert image description here

  • Parameter meaning
    • -crepresentIperf 测试 APP 为 Client 端
    • 192.168.4.1forESP32 作为 Server 端的 IP 地址 _
    • -i 2on behalf每 2 秒打印一次测试速率 of
    • -t 60represent总共测试 60 秒时间

Guess you like

Origin blog.csdn.net/Marchtwentytwo/article/details/129800645
Recommended