logo elektroda
logo elektroda
X
logo elektroda

How to Configure ESP32 for Stable Wi-Fi: Power Save, 20MHz Channel, Fixed Access Point

gulson 228 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21482181
    gulson
    System Administrator
    Three key solutions

    1. Turn off the power saving in the ESP32 .

    In the Arduino or esp-idf code add the line:
    esp_wifi_set_ps(WIFI_PS_NONE)


    For ESPHome add in the configuration:
    wifi:
    power_save_mode: NONE

    2. Set the Wi-Fi access points to 20 MHz channels .

    In the router settings:
    - Go to the router's administration panel
    - Find the 2.4 GHz Wi-Fi settings
    - Change the channel/bandwidth to 20 MHz (not 40, not 60, not auto)

    3. Assign the ESP32 to a specific access point .
    If you have multiple access points:
    - In the administration panel of your router/mesh system
    - Find the "client steering" or "band steering" settings
    - Disable automatic transfer of devices between access points
    - Manually assign the MAC address of the ESP32 device to the nearest access point


    Based on the article:
    https://supakeen.com/weblog/esp32-wifi-superstitions/
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 21483546
    khoam
    Level 42  
    For my part, I can give that it also helps:
    - setting static IP addressing instead of after DHCP;
    - increasing transmit power: Link - here, unfortunately, this will involve increased power consumption.
  • #3 21485695
    kmarkot
    Level 29  
    On my Asus the 2.4GHz channel selection changed from Auto to manually selected now 3.
    The trouble with ESPHome devices losing coverage is over.
ADVERTISEMENT