ESP8266 Drops WiFi N Connection after random time
- Dominant language
- C++
- Stars
- 16.7k
- Forks
- 13.1k
- PR merge metrics
- No merged PRs in 30d
Description
*** Platform
- Hardware: ESP-07S
- Core Version: Espressif 8266 (4.0.1) > Espressif Generic ESP8266 ESP-07S
- Development Env: PlatformIO
- Operating System: Windows
- Framework: framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
- Router: ASUS RT-AX86S Firmware: 3.0.0.4.386_49599 (latest)
*** Problem Description
ESP-07S does not reconnect to router from deepSleep after random amount of time, but generally with 24 hours USING WIFI N. Does not happen with G. DeepSleep is 30seconds to 1 minute. It will not reconnect even with power off. A ROUTER REBOOT is necessary to reset connection fully.
Router Message:
wlceventd: wlceventd_proc_event(530): eth5: Auth [MAC], status: Successful (0), rssi:-49
wlceventd: wlceventd_proc_event(559): eth5: Assoc [MAC], status: Successful (0), rssi:-49
wlceventd: wlceventd_proc_event(511): eth5: Disassoc [MAC], status: 0, reason: (2) Previous authentication no longer valid.
wlceventd: wlceventd_proc_event(494): eth5: Deauth_ind [MAC], status: 0, reason: Disassociated due to inactivity (4), rssi:-51
This happens with the basic example for wifiClient that is provided.
There is no error. WiFi.status() never == WL_CONNECTED.
*** Current resolution
This can be prevented using 3 difference approaches.
1. Router - Suppress bandwidth to 54Mbs.
A. Set option [Wireless Mode]to [Legacy] - This will limit the bandwidth used with Wireless N to 54Mbs
B. Set router to allow Wireless B & G ONLY
2. Firmware on ESP8266
A. Using WiFi.setPhyMode(WIFI_PHY_MODE_11G) will not allow the ESP8266 to connect with Wireless N.
I would like to be able to connect in Wireless N with no connection drops. Wireless N is enabled by default on all new routers and requiring the users to make router changes to allow this device to work is very difficult.
I have not been able to figure out how to limit the bandwidth used while connected using something like in esp idf:
ESP_ERROR_CHECK(esp_wifi_set_bandwidth(WIFI_IF_STA, WIFI_BW_HT20));
This idf command keeps from binding multiple wifi channels to limit the bandwith of Wireless N, but seems to be unavailable in the arduino framework.
I believe this would help my problem, but not actually fix the issue of the random disconnects and no reconnect.
Any info on fixing this issue would be helpful.
Thanks,
-Greg
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.