Chat freely about anything...

User avatar
By zardam
#9623 Hello,

I'm having trouble connecting ESP-01 to a 802.11n AP.

If I enable "n" mode on the AP, the module is loosing association after just some packets received. With "n" mode disabled, I have no problem at all.

With the stock AT firmware (version 00160901), the module doesn't try to connect in "n" mode, and is working fine. With subsequent versions of AT firmware or custom code based on SDK 0.95, it does and the connection is not stable.

Is there a way to force "b" or "g" mode ? There is nothing about that in the SDK documentation...

The AP is a TP-LINK TL-WR703N running OpenWrt.
User avatar
By zardam
#10063 Found the answer in user_interface.h
Code: Select allenum phy_mode {
   PHY_MODE_11B   = 1,
   PHY_MODE_11G   = 2,
   PHY_MODE_11N    = 3
};

bool wifi_set_phy_mode(enum phy_mode mode);

The module is working perfectly when forced in B mode.
User avatar
By irukandji
#16575 Hi,

I'm also facing this issue with a TP Link router. STA mode works OK for 15 to 30 minutes than only AP mode will reply to requests on the default IP (192.168.4.1).
However, how can i set this via Arduino IDE?

Thanks!
User avatar
By sueche
#27180
irukandji wrote:Hi,

I'm also facing this issue with a TP Link router. STA mode works OK for 15 to 30 minutes than only AP mode will reply to requests on the default IP (192.168.4.1).
However, how can i set this via Arduino IDE?

Thanks!


Did you find answer to that question ?