Page 1 of 1

Not configured in Station Mode!

Posted: 08 Mar 2019, 11:41
by riker1
Hi
having esp serial connected and configured wifi
via serial (Aruduino serial port tool)

using
dhcp mode via :

Code: Select all

ip 0.0.0.0

Wifissid ssid

wifikey key

after that I did a reboot.

Code: Select all

665 : WIFI : Connecting TR7272 attempt #0
667 : WIFI : Not configured in Station Mode!!: TR7272
2002 : WD   : Uptime 0 ConnectFailures 0 FreeMem 26000 WiFiStatus 0
3627 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
4448 : WIFI : Connecting TR7272 attempt #1
4450 : WIFI : Not configured in Station Mode!!: TR7272
Wifscan does identify the right AP.

What am I missing?

thanks t

Re: Not configured in Station Mode!

Posted: 14 Apr 2019, 07:41
by riker1
having still this issue with also robotdyn d1r2 wifi

even having a static ip.

Code: Select all

07:35:08.001 -> 615 : EVENT: System#Wake
07:35:08.001 -> 620 : WIFI : Set WiFi to STA
07:35:08.034 -> 653 : WIFI : Connecting TR7272 attempt #0
07:35:08.034 -> 654 : IP   : Static IP : 192.168.7.1 GW: 192.168.0.31 SN: 255.255.255.240 DNS: 192.168.0.31
07:35:08.068 -> 656 : WIFI : Not configured in Station Mode!!: TR7272
07:35:08.068 -> 658 : EVENT: System#Boot
07:35:09.393 -> 1998 : WD   : Uptime 0 ConnectFailures 0 FreeMem 25576 WiFiStatus 0
07:35:10.984 -> 3614 : EVENT: WiFi#Disconnected
07:35:11.017 -> 3620 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2856 ms
07:35:11.846 -> 4447 : WIFI : Connecting TR7272 attempt #1
07:35:11.846 -> 4448 : IP   : Static IP : 192.168.7.1 GW: 192.168.0.31 SN: 255.255.255.240 DNS: 192.168.0.31
07:35:11.846 -> 4450 : WIFI : Not configured in Station Mode!!: xxxxx


Re: Not configured in Station Mode!

Posted: 14 Apr 2019, 07:43
by riker1
looks like somehow, wifi setting is not stored persistent

Re: Not configured in Station Mode!

Posted: 14 Apr 2019, 07:54
by riker1

Code: Select all

07:52:11.251 -> 622 : WIFI : Not configured in Station Mode!!: xxxx
07:52:12.588 -> 1959 : WD   : Uptime 0 ConnectFailures 0 FreeMem 25744 WiFiStatus 0
07:52:14.213 -> 3580 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2858 ms
07:52:15.042 -> 4403 : WIFI : Connecting xxxx attempt #1
strangwise it got connected for some ms.....

Re: Not configured in Station Mode!

Posted: 04 Jul 2019, 12:30
by WaTho
Is there any solution to this problem known? I have the same problem here.

WaTho

Re: Not configured in Station Mode!

Posted: 04 Jul 2019, 14:08
by xury
Let's try flash whole area with blank.bin and after upload ESPEasy again. I had same issue on few boards.
If you have 1mb use 1 mb blank or 4 mb for 4mb IC's

Re: Not configured in Station Mode!

Posted: 04 Jul 2019, 18:31
by Shardan
If i remember this right...

If you use serial to set SSID and Key it is not stored permanently.
After "WifiSSID abcdefgh" and "WifiKey verySecretPasswd" use a "WifiConnect" to check if the connection works, then send a "save" via Serial to store config.

All without the quotation marks please.

Re: Not configured in Station Mode!

Posted: 04 Jul 2019, 22:41
by WaTho
Thank you. Using the serial commands made it working again. Hope it does not happen again. Maybe i will flash blank and reupload esp easy just to make sure.

WaTho

Re: Not configured in Station Mode!

Posted: 05 Jul 2019, 23:39
by TD-er
Yesterday I found out the debug string is somewhat misleading (not correct).

This is written when the call to WiFi.status() returns WL_DISCONNECTED.
But it appeared in the SDK libraries there is a STATION_WIFI_CONNECTING which is not handled in the esp8266/Arduino implementation of the status function.
So then it just returns the default WL_DISCONNECTED.
But actually it is that the WiFi is in the process of setup the connection.
It has made a connection to the AP but the network connection is not yet finished. (assigning IP address, etc)

So this will be changed (if not removed) when I make fixes for the WiFi connection routine.