Chapter 4. Software framework
(13964) wifi:<ba-del>idx
(13964) wifi:<ba-add>idx:2 (ifx:1, 48:2c:a0:7b:4e:ba), tid:0, ssn:5,␣
,→winSize:64
This is because A-MPDU is created and deleted all the time. The printing is only auxiliary and does not
aect communication. If you need to hide this log, add the following code before the Wi-Fi initialization
code.
esp_log_level_set("wifi", ESP_LOG_ERROR);
4.10.110 Does ESP32 support the coexistence of the network port (LAN8720) and Wi-Fi
(Wi-AP)?
Yes, this can be achieved by writing the detection events of both connections as one.
4.10.111 How can I optimize ESP32’s slow IP address acquisition after Wi-Fi is con-
nected in a weak network environment or interference environment?
• You can disable Modem-sleep using esp_wi_set_ps(WIFI_PS_NONE); after Wi-Fi start, and enable Modem-
sleep after getting the event IP_EVENT_STA_GOT_IP.
• For the situation of reconnection after disconnection, you can manually disable Modem-sleep before connec-
tion, and enable it after getting the event IP_EVENT_STA_GOT_IP.
• Note: This optimization is not applicable for Wi-Fi/BT coexistence scenarios.
4.10.112 When ESP32/ESP32-S2/ESP32-S3 series chips work in SoftAP mode, they are
susceptible to disconnect from mobile phones and PCs of other manufacturers
when they are communicating with each other. How can I optimize this situa-
tion?
It is recommended to turn o WiFi AMPDU RX and WiFi AMPDU TX options in menucong.
4.10.113 What is the value range of ESP32 Wi-Fi TX power?
• It ranges from 2 to 20 dBm. In ESP-IDF, you can use esp_wifi_set_max_tx_power() to set the
maximum of TX power, and use esp_wifi_get_max_tx_power() to the get the maximal TX power
supported by the system.
• It should be noted that setting TX power too high may aect system stability and battery life, and may also
violate wireless regulations in some countries and regions, so it should be used with caution. For more details,
please refer to esp_wi_set_max_tx_power() API.
4.10.114 How do I get Wi-Fi RSSI when using ESP32?
When using ESP32 as a station in ESP-IDF release/v4.1, you can use the following code example to
obtain the RSSI of the connected AP:
Espressif Systems 149
Submit Document Feedback
Release master