diff --git a/docs/en/api-guides/wifi.rst b/docs/en/api-guides/wifi.rst index 591f698b51..718f2fc634 100644 --- a/docs/en/api-guides/wifi.rst +++ b/docs/en/api-guides/wifi.rst @@ -2339,6 +2339,66 @@ The parameters not mentioned in the following table should be set to the default - 44.5 - 44.2 +.. only:: esp32c2 + + .. list-table:: + :header-rows: 1 + :widths: 10 10 10 15 + + * - Rank + - Iperf + - Default + - Minimum + * - Available memory (KB) + - 37 + - 56 + - 84 + * - WIFI_STATIC_RX_BUFFER_NUM + - 14 + - 7 + - 3 + * - WIFI_DYNAMIC_RX_BUFFER_NUM + - 18 + - 14 + - 6 + * - WIFI_DYNAMIC_TX_BUFFER_NUM + - 18 + - 14 + - 6 + * - WIFI_RX_BA_WIN + - 16 + - 12 + - 6 + * - TCP_SND_BUF_DEFAULT (KB) + - 18 + - 14 + - 6 + * - TCP_WND_DEFAULT (KB) + - 18 + - 14 + - 6 + * - LWIP_IRAM_OPTIMIZATION + - 13 + - 13 + - 0 + * - TCP TX throughput (Mbit/s) + - 21.6 + - 21.4 + - 14.3 + * - TCP RX throughput (Mbit/s) + - 19.1 + - 17.9 + - 12.4 + * - UDP TX throughput (Mbit/s) + - 26.4 + - 26.3 + - 25.0 + * - UDP RX throughput (Mbit/s) + - 32.3 + - 31.5 + - 27.7 + + .. only:: esp32s3 .. list-table:: @@ -2436,6 +2496,14 @@ The parameters not mentioned in the following table should be set to the default The test was performed with a single stream in a shielded box using an ASUS RT-N66U router. {IDF_TARGET_NAME}'s CPU is single core with 160 MHz. {IDF_TARGET_NAME}'s flash is in QIO mode with 80 MHz. + +.. only:: esp32c2 + + .. note:: + The test was performed with a single stream in a shielded box using an Redmi RM2100 router. + {IDF_TARGET_NAME}'s CPU is single core with 120 MHz. {IDF_TARGET_NAME}'s flash is in QIO mode with 60 MHz. + + .. only:: esp32 **Ranks:** diff --git a/docs/zh_CN/api-guides/wifi.rst b/docs/zh_CN/api-guides/wifi.rst index bb58907891..5436f6001c 100644 --- a/docs/zh_CN/api-guides/wifi.rst +++ b/docs/zh_CN/api-guides/wifi.rst @@ -2339,6 +2339,65 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 - 44.5 - 44.2 +.. only:: esp32c2 + + .. list-table:: + :header-rows: 1 + :widths: 10 10 10 15 + + * - 等级 + - Iperf + - 默认 + - 最小 + * - 可用内存 (KB) + - 37 + - 56 + - 84 + * - WIFI_STATIC_RX_BUFFER_NUM + - 14 + - 7 + - 3 + * - WIFI_DYNAMIC_RX_BUFFER_NUM + - 18 + - 14 + - 6 + * - WIFI_DYNAMIC_TX_BUFFER_NUM + - 18 + - 14 + - 6 + * - WIFI_RX_BA_WIN + - 16 + - 12 + - 6 + * - TCP_SND_BUF_DEFAULT (KB) + - 18 + - 14 + - 6 + * - TCP_WND_DEFAULT (KB) + - 18 + - 14 + - 6 + * - LWIP_IRAM_OPTIMIZATION + - 13 + - 13 + - 0 + * - TCP 发送数据吞吐量 (Mbit/s) + - 21.6 + - 21.4 + - 14.3 + * - TCP 接收数据吞吐量 (Mbit/s) + - 19.1 + - 17.9 + - 12.4 + * - UDP 发送数据吞吐量 (Mbit/s) + - 26.4 + - 26.3 + - 25.0 + * - UDP 接收数据吞吐量 (Mbit/s) + - 32.3 + - 31.5 + - 27.7 + .. only:: esp32s3 .. list-table:: @@ -2436,6 +2495,12 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 以上结果使用华硕 RT-N66U 路由器,在屏蔽箱中进行单流测试得出。 {IDF_TARGET_NAME} 的 CPU 为单核,频率为 160 MHz,flash 为 QIO 模式,频率为 80 MHz。 +.. only:: esp32c2 + + .. note:: + 以上结果使用红米 RM2100 路由器,在屏蔽箱中进行单流测试得出。 + {IDF_TARGET_NAME} 的 CPU 为单核,频率为 120 MHz,flash 为 QIO 模式,频率为 60 MHz。 + .. only:: esp32 **等级:** diff --git a/examples/wifi/iperf/sdkconfig.defaults.esp32c2 b/examples/wifi/iperf/sdkconfig.defaults.esp32c2 index 84d46ad94b..5cdf29349b 100644 --- a/examples/wifi/iperf/sdkconfig.defaults.esp32c2 +++ b/examples/wifi/iperf/sdkconfig.defaults.esp32c2 @@ -1,22 +1,22 @@ # # ESP32-C2 # -CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=20 -CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=40 -CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=40 +CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=14 +CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=18 +CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=18 CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y -CONFIG_ESP32_WIFI_TX_BA_WIN=32 +CONFIG_ESP32_WIFI_TX_BA_WIN=16 CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y -CONFIG_ESP32_WIFI_RX_BA_WIN=32 +CONFIG_ESP32_WIFI_RX_BA_WIN=16 -CONFIG_LWIP_TCP_SND_BUF_DEFAULT=40960 -CONFIG_LWIP_TCP_WND_DEFAULT=40960 -CONFIG_LWIP_TCP_RECVMBOX_SIZE=64 -CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 -CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=64 +CONFIG_LWIP_TCP_SND_BUF_DEFAULT=18432 +CONFIG_LWIP_TCP_WND_DEFAULT=18432 +CONFIG_LWIP_TCP_RECVMBOX_SIZE=32 +CONFIG_LWIP_UDP_RECVMBOX_SIZE=32 +CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32 CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_120=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=120 CONFIG_ESPTOOLPY_FLASHMODE_QIO=y -CONFIG_ESPTOOLPY_FLASHFREQ_80M=y +CONFIG_ESPTOOLPY_FLASHFREQ_60M=y