Page 1 of 1

ESP8266 - problem with WiFi settings

Posted: 28 Feb 2018, 18:51
by seac
Hi all,

I have a problem with espeasy and WiFi connection.

I flashed firmware from my Linux (esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ESPEasy_R120_512.bin ), I connected from my PC to WiFi SSID "ESP_0" and configured SSID throught HTTP interface (http://192.168.4.1).

ESPEASY succcessully connected to my SSID, obtained IPv4 address. I connected to HTTP to the new IP adress in my WiFi network (http://192.168.88.88), changed name, setup password - all successfully passed.

But when I restart ESP8266 (power off/on, by RESET button, by restart command), the ESP8266 connect to my WiFi again, but only for 1-2 seconds. The connection is logged on my WiFi AP (two Cisco Meraki APs). SSID ESP_0 is available in this state. You can see the log from ESP's terminal (see below).

The SSID name contains only lower characters, the SSID password contains only digits.

I tried different ESP8266 versions (Wemos D1 mini, LoLin), reflash, RESET configuration, switch-off one WiFi AP and the problem persists.

I didn't find similar problem on forums. What can be a problem?

Thank you for your tips.

Martin

------
INIT : Booting Build nr:120
WIFI : Connecting... 1
WIFI : Disconnecting!
WIFI : Connecting... 2
WIFI : Disconnecting!
WIFI : Connecting... 3
WIFI : Disconnecting!
INIT : I2C
INIT : Boot OK
INIT : Normal boot
WD : Uptime 0 ConnectFailures 0 FreeMem 29296
WD : Uptime 1 ConnectFailures 0 FreeMem 29280
WD : Uptime 1 ConnectFailures 0 FreeMem 29264
WIFI : Connecting... 1
WIFI : Disconnecting!
WIFI : Connecting... 2
WIFI : Disconnecting!
WD : Uptime 2 ConnectFailures 0 FreeMem 26976
WD : Uptime 2 ConnectFailures 0 FreeMem 26944
WD : Uptime 3 ConnectFailures 0 FreeMem 26912
WIFI : Connecting... 1
WIFI : Disconnecting!
WIFI : Connecting... 2
WIFI : Disconnecting!
WD : Uptime 3 ConnectFailures 0 FreeMem 26896
WD : Uptime 4 ConnectFailures 0 FreeMem 26880
WD : Uptime 4 ConnectFailures 0 FreeMem 26864
WIFI : Connecting... 1
WIFI : Disconnecting!
WIFI : Connecting... 2
WIFI : Disconnecting!
WD : Uptime 5 ConnectFailures 0 FreeMem 26848
WD : Uptime 5 ConnectFailures 0 FreeMem 26848
WD : Uptime 6 ConnectFailures 0 FreeMem 26848
...

Re: ESP8266 - problem with WiFi settings

Posted: 01 Mar 2018, 09:10
by anyz
I don't know how to help, but I'm experiencing a bit similar problems. I have issue with one of my Wemos d1 mini v3. It doesn't see any wifi networks. I flashed it yesterday with v2.0-20180228, mega-20180228 and other released versions. I also tried https://github.com/Grovkillen/ESP_Easy_Flasher and setting different options but still no luck. It didn't start ESP_0 ap no matter what. What's more, in serial monitor when I run wifiscan I see:

Code: Select all

WIFI: No networks found
I thought that maybe I have hardware problem and wifi is broken. But then I tried mongoose-os and it works no problem, sees wifi etc (event afer reboot). Then I reflashed again D1 mini with mega-20180228 and I could see ESP_0 ap and configure it using 192.168.4.1. Then I could connect it to my wifi network. I thought awesome, problem solved. But not for so long, after reboot I still can't see it. And wifiscan on serial monitor tells No networks found.

I don't have such problems with other D1 mini I have.

Przemek

Re: ESP8266 - problem with WiFi settings

Posted: 01 Mar 2018, 20:21
by seac
I haven't detail information now, but problem is with Meraki AP actual stable firmware MR 25.9 which have some problem with DHCP requests. More information are available on MERAKI support forum - https://community.meraki.com/t5/Wireles ... td-p/12707 .

ESP successfully connect to WiFi network (I see it in the AP's log), but doesn't obtain IP address by DHCP. Afterwards ESP disconnects from AP and switch to AP mode with SSID ESP_0.

Workaround: assign static IP address on ESP8266. It works in my network.

Re: ESP8266 - problem with WiFi settings

Posted: 01 Mar 2018, 22:04
by TD-er
Just make sure you set the subnet mask correct when using static IP. Or else the default enabled IP filter may lock you out.