Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable hidden SSID when connecting #1337

Closed
Wiki591 opened this issue Apr 30, 2018 · 57 comments
Closed

Enable hidden SSID when connecting #1337

Wiki591 opened this issue Apr 30, 2018 · 57 comments
Labels
Category: Wifi Related to the network connectivity Status: Fixed Commit has been made, ready for testing Status: Needs Info Needs more info before action can be taken

Comments

@Wiki591
Copy link
Contributor

Wiki591 commented Apr 30, 2018

Up to version mega-20180426 connecting to a network with hidden SSID was no problem.

Using version mega-20180428 the attempt to connect to a network with hidden SSID ends up with error "No AP found"

Pls reenable this feature, its a question of avoiding unwanted and annoying automated connection tries in our recent environment of everything-is-online.

@Oxyandy
Copy link

Oxyandy commented Apr 30, 2018

Please try mega-20180430 and report back..

@TD-er
Copy link
Member

TD-er commented Apr 30, 2018

The flag to list hidden SSID in a scan is not set,. So it will not connect to hidden SSID, also not in build 0430.

@DittelHome
Copy link

On my side, hidden SSID is working, absolutely no problem.
Maybe i does not have problem, because i set the ssid via serial command ...

@TD-er
Copy link
Member

TD-er commented Apr 30, 2018

Hidden SSID is a flag for scanning, I am not sure it is also a flag for the WiFi.begin().

@Wiki591
Copy link
Contributor Author

Wiki591 commented Apr 30, 2018

Hi,

thanks for the fast reaction.

I tried mega-20180430. Unfortunately the problem isn't solved, I changed back to mega-20180426 and it works again flawlessly.

Protocol of mega-20180430 (SSID stared out by me):

INIT : Booting version: mega-20180430 (ESP82xx Core 2_4_1)
87 : INIT : Warm boot #3
88 : FS : Mounting...
113 : FS : Mount successful, used 75802 bytes of 957314
405 : CRC : program checksum ...OK
437 : CRC : SecuritySettings CRC ...OK
438 : CRC : binary has changed since last save of Settings
542 : INIT : Free RAM:23528
543 : INIT : I2C
543 : INIT : SPI not enabled
1360 : INA219 0x40 setting Range to: 16V, 400mA
1369 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1)
1370 : WIFI : Set WiFi to STA
1401 : WIFI : Connecting ***** attempt #0
1421 : WD : Uptime 0 ConnectFailures 0 FreeMem 22752
1443 : DS : Temperature: 16.50 (28-ff-91-70-0-17-4-79)
2429 : INA219 0x40: Voltage: 12.75 Current: 0.04 Power: 0.57
4261 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
4422 : WIFI : Connecting ***** attempt #1
7279 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2857 ms
7422 : WIFI : Connecting ***** attempt #2
10280 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2857 ms
10422 : WIFI : Connecting ***** attempt #3
12430 : INA219 0x40: Voltage: 12.76 Current: 0.04 Power: 0.57
13279 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2857 ms
13424 : WIFI : Connecting ***** attempt #4

[edit]
I'm setting the IP by DHCP
[/edit]

@DittelHome
Copy link

Strange, now i have done a test with DHCP. My SSID is hidden in the AP. Connect no problem, see here
Maybe your DHCP range is exhausted. Mac Filter ?
438 : CRC : binary has changed since last save of Settings ==> type save

104 : INIT : Warm boot #3
105 : FS   : Mounting...
130 : FS   : Mount successful, used 75802 bytes of 957314
420 : CRC  : program checksum       ...OK
452 : CRC  : SecuritySettings CRC   ...OK 
558 : INIT : Free RAM:23528
559 : INIT : I2C
559 : INIT : SPI not enabled
572 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1)
573 : WIFI : Set WiFi to STA
604 : WIFI : Connecting ***** attempt #0
611 : WD   : Uptime 0 ConnectFailures 0 FreeMem 22688
4366 : WIFI : Connected! AP: ****** (30:B5:C2:EB:DB:7D) Ch: 9 Duration: 3760 ms
4708 : WIFI : DHCP IP: 192.168.1.32 (ESP-Easy-7) GW: 192.168.1.1 SN: 255.255.255.0   duration: 341 ms
4711 : Webserver: start

@Wiki591
Copy link
Contributor Author

Wiki591 commented Apr 30, 2018

Hi,
it seems to me as if you are booting a different version because your line numbers are different. I tried the "normal" bin of 0428 and 0430 which did not work.

The normal bin 0426 is working pretty stable with hidden SSID as well as all other previous versions I have tried.

@DittelHome
Copy link

DittelHome commented Apr 30, 2018

I have tested with this version:
ESP_Easy_mega-20180430_normal_ESP8266_4096.bin
Hardware: Wemos D1 mini

Edit: AP is OPENWRT router

@HV-NL
Copy link

HV-NL commented Apr 30, 2018

Flashed with mega-20180430, and performed a factory reset.
No success: My computer does not see the ESP as accesspoint.

2nd try: manually configured the ESP.

wifissid MyOwnAP
wifikey MyWifiPassword
Save
wificonnect

Also without success:

583 : WD   : Uptime 0 ConnectFailures 0 FreeMem 22688
3436 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
3584 : WIFI : Connecting MyOwnAP attempt #1
6442 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2858 ms
6584 : WIFI : Connecting MyOwnAP attempt #2
9442 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2858 ms
9584 : WIFI : Connecting MyOwnAP attempt #3
12444 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
12584 : WIFI : Connecting MyOwnAP attempt #4
15443 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
15584 : WIFI : Connecting MyOwnAP attempt #5

When going back to a previous version (dev-13) it is working again.

So perhaps now only connecting to a hidden AP is possible?

@DittelHome
Copy link

Have you tried a clean install ?
http://www.pratikpanda.com/completely-format-erase-esp8266-flash-memory/

@TD-er
Copy link
Member

TD-er commented Apr 30, 2018

If you are connected to the ESPeasy node via serial, you can simply reset to factory default.
See command reference
Just enter "Reset" in the console.

And no, it is not limited to hiddenAP, because my own AP's are not hidden and they work just fine.

@HV-NL
Copy link

HV-NL commented Apr 30, 2018

I did perform a 'reset' on my NodeMCU device in the console.
However I don't see ESP_Easy as an accesspoint.
After manually configuring my local accespoint it does not connect to my AP, and although the logging says "Set WiFi to AP+STA" I cannot see it in the air.

Hardware: NodeMCU
Software: ESP_Easy_mega-20180430_normal_ESP8266_4096.bin

Brainwave: I flashed a new Wemos D1 mini with this binary file.
Bingo! Now I do see ESP_Easy as AP, and i can connect and configure it properly. It then normally connects to my accesspoint.

So my problem seems to be hardware-related.
As a test I also completely erased my nodeMCU (same result: no Wifi), so it must somehow be related to the combination ESP_Easy_mega-20180430_normal_ESP8266_4096.bin, running on this particular nodeMCU device.

The hardware however does function properly, when I go back to dev-13.

It was the cheapest nodeMCU that I ever bought, and does not have the metal shield over the WiFi compartment.
rps20180430_143411_999

My guess is that this particular device does not have the proper hardware for the current Wifi code.

@TD-er
Copy link
Member

TD-er commented Apr 30, 2018

It can be that some part of the flash is not configured properly.
See these lines in the code:

ESPEasy/src/ESPEasy.ino

Lines 97 to 101 in 45afaf8

void setup()
{
WiFi.persistent(false); // Do not use SDK storage of SSID/WPA parameters
WiFi.setAutoReconnect(false);
setWifiMode(WIFI_OFF);

This persistent line, disables writing to that part of the flash.
If you comment that one line, can you connect to the AP?

@HV-NL
Copy link

HV-NL commented Apr 30, 2018

(took some time to create a fresh build environment)

I commented line 99 (the WiFi.persistent line). Same problem.

@Grovkillen Grovkillen added Status: Needs Info Needs more info before action can be taken Category: Wifi Related to the network connectivity labels Apr 30, 2018
@Oxyandy
Copy link

Oxyandy commented May 1, 2018

@DittelHome
esptool erase_flash
Does the same thing as flashing a whole Blank Firmware, only faster
I added a "SendTo" batch file in windows so I can flash from anywhere.

flash_bat_2

I then give myself the option to erase the whole Node before flash..

flash_bat

@HV-NL
Copy link

HV-NL commented May 2, 2018

Flashing todays version (mega-20180502) solves the problem. Now I can configure the nodeMCU by connecting to the Wifi (192.168.4.1), and after that it will properly connect to my accesspoint.

As I don't have a hidden AP available, I do not know if the original problem is solved too.

@TD-er TD-er added the Status: Fixed Commit has been made, ready for testing label May 2, 2018
@Wiki591
Copy link
Contributor Author

Wiki591 commented May 2, 2018

Hi,
yesterday I have toasted my last free Wemos Device. I am awaiting for tomorrow three new devices, so I will report tomorrow.
Thanks for your efforts up to now.

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 3, 2018

New devices arrived, flashed 0503, still no connection to hidden SSID. Perhaps needed: my AP is an AVM Fritzbox 7272

Protocol:
INIT : Booting version: mega-20180503 (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 1.4.0-RC2)
90 : INIT : Warm boot #2
91 : FS : Mounting...
117 : FS : Mount successful, used 75802 bytes of 957314
410 : CRC : program checksum ...OK
416 : CRC : SecuritySettings CRC ...OK
522 : INIT : Free RAM:22528
523 : INIT : I2C
523 : INIT : SPI not enabled
536 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 1.4.0-RC2)
537 : WIFI : Set WiFi to STA
569 : WIFI : Connecting *** attempt #0
575 : WD : Uptime 0 ConnectFailures 0 FreeMem 21736
3421 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2852 ms
3573 : WIFI : Connecting *** attempt #1
6426 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2852 ms
6573 : WIFI : Connecting *** attempt #2
9426 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2852 ms
9573 : WIFI : Connecting *** attempt #3
12425 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2851 ms
12572 : WIFI : Connecting *** attempt #4
15425 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2852 ms
15570 : WIFI : Connecting *** attempt #5

@Oxyandy
Copy link

Oxyandy commented May 4, 2018

@Wiki591 you say "toasted my last free Wemos Device"
What do you mean ?
Have you tried esptool erase_flash ?
Should recover them just fine ;)
Cheers

@Oxyandy
Copy link

Oxyandy commented May 4, 2018

And @Wiki591 - If you make the AP visible do they then connect fine ?

@TD-er
Copy link
Member

TD-er commented May 4, 2018

@Oxyandy Some of us let the magic smoke escape from the electronics and as we all know, electronics main component is this magic smoke. If you let it out, electronics do not work anymore.
Or... so I heard from a friend of mine, never happened to me of course ;)

@Oxyandy
Copy link

Oxyandy commented May 4, 2018

Oh, this kind of toasted.. Which you rather, jam or honey ?!

Of course, never happened with me either..
toasted

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 4, 2018

Hi,

@Oxyandy: as TD-er already stated: producing some tiny little blue clouds exhaled by the electronics is not the best way to keep these things running. They end up in the all-embracive Data Nirvana.

Back to problem: I have no problems to connect to my AP (AVM Fritzbox 7272) if it is visible. As well as with the same config.dat, just flashed mega 0421 - 0426 the devices connect to the AP with hidden SSID instantaneously. Flashing the same device with the same config with 0428 and higher trying to connect to the same WLAN produces the protocol posted before - no connection.

@Oxyandy
Copy link

Oxyandy commented May 4, 2018

Ok, you have inspired me, I will make my SSID hidden & play.

@TD-er
Copy link
Member

TD-er commented May 4, 2018

I was thinking about changing this by adding the parameter to the wifi setup function, but I don't want to change too much at the same time anymore, or else you don't know what's causing what anymore.
If I don't forget it, I will set the "hidden" flag for connecting to wifi later this evening.

@Oxyandy
Copy link

Oxyandy commented May 4, 2018

meh, my node does not seem to care if set hidden, connects anyway..
But it seems I can not get 0504 to load, for me just loops every 11 seconds
Connected -- Disconnected! Reason: '(200) Beacon timeout' -- Connected
Sonoff Basic units

@TD-er
Copy link
Member

TD-er commented May 4, 2018

@Oxyandy Do you have this Beacon timeout with 0504 on any node, or just a few?

@Oxyandy
Copy link

Oxyandy commented May 7, 2018

ESP_Easy_mega-20180506_normal_ESP8266_4096_Self_Compiled.zip

Try this please, there have been some quirks, maybe this resolves it for you.
Report back Ta
Flash over the top, without settings change ;)

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 7, 2018

Flashed over the top, no settings changed.
No, didn't solve the problem. Protocol with hidden SSID set:

INIT : Booting version: (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
89 : INIT : Warm boot #3
90 : FS : Mounting...
115 : FS : Mount successful, used 75802 bytes of 957314
122 : CRC : No program memory checksum found. Check output of crc2.py
127 : CRC : SecuritySettings CRC ...OK
232 : INIT : Free RAM:22824
233 : INIT : I2C
233 : INIT : SPI not enabled
247 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
247 : WIFI : Set WiFi to STA
279 : WIFI : Connecting *** attempt #0
286 : WD : Uptime 0 ConnectFailures 0 FreeMem 22040
3140 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2861 ms
3283 : WIFI : Connecting *** attempt #1
6145 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
6283 : WIFI : Connecting *** attempt #2
9145 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
9283 : WIFI : Connecting *** attempt #3
12145 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2861 ms
12280 : WIFI : Connecting *** attempt #4
15141 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
15283 : WIFI : Connecting *** attempt #5
18143 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
18283 : WIFI : Set WiFi to AP+STA
19202 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
19203 : WIFI : Connecting *** attempt #6
22065 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2861 ms
22282 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
22282 : WIFI : Connecting *** attempt #7
25142 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
25282 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
25282 : WIFI : Connecting *** attempt #8
28142 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
28281 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
28282 : WIFI : Connecting *** attempt #9
30285 : WD : Uptime 1 ConnectFailures 0 FreeMem 19600
31142 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
32281 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
32282 : WIFI : Connecting *** attempt #10

Connecting same AP, SSID visible:

INIT : Booting version: (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
89 : INIT : Warm boot #5
90 : FS : Mounting...
115 : FS : Mount successful, used 75802 bytes of 957314
123 : CRC : No program memory checksum found. Check output of crc2.py
128 : CRC : SecuritySettings CRC ...OK
233 : INIT : Free RAM:22824
233 : INIT : I2C
233 : INIT : SPI not enabled
247 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
247 : WIFI : Set WiFi to STA
279 : WIFI : Connecting *** attempt #0
286 : WD : Uptime 0 ConnectFailures 0 FreeMem 22040
4050 : WIFI : Connected! AP: *** (08:96:D7:34:09:A0) Ch: 12 Duration: 3770 ms
5088 : WIFI : DHCP IP: 192.168.xxx.203 (ESP-Easy-0) GW: 192.168.xxx.93 SN: 255.255.255.0 duration: 1037 ms
5091 : Webserver: start

at least, during this established connection made the AP hidden, follow-up in protocol:

30286 : WD : Uptime 1 ConnectFailures 0 FreeMem 18528
60286 : WD : Uptime 1 ConnectFailures 0 FreeMem 18528
90286 : WD : Uptime 2 ConnectFailures 0 FreeMem 18528
114051 : WIFI : Disconnected! Reason: '(6) Not authed' Connected for 1 m 49 s
114282 : WIFI : Connecting *** attempt #0
117147 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2864 ms
117282 : WIFI : Connecting *** attempt #1
120145 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2863 ms
120282 : WIFI : Connecting *** attempt #2
120286 : WD : Uptime 2 ConnectFailures 0 FreeMem 19368
123146 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2864 ms
123282 : WIFI : Connecting *** attempt #3
126145 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2863 ms

@TD-er
Copy link
Member

TD-er commented May 7, 2018

Apparently it may be related to the first connect attempt when in AP mode: esp8266/Arduino#4519
Could you try to connect to the same AP when it is not set to be hidden, save that settings and then set it to hidden again and try to connect.

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 11, 2018

Hi,
sorry for late reply. My health played around with me the last days.
I'll try it today.

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 13, 2018

OK, here we go.

What I have done first:

  • factory reset
  • made the AP visible
  • connected to the AP
  • result seee Protocol 1

Then I have hidden the SSID of the AP again - no reboot of the Wemos

  • result see Protocol 2
    I have noticed, that the Wemos lost immediately the connection to the AP and logged
    "288510 : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 2 m 52 s"

The I rebooted the Wemos

  • result see Protocol 3

Protocol 1:

_60286 : WD : Uptime 1 ConnectFailures 0 FreeMem 18528
60615 : Command: reset
RESET: Resetting factory defaults...
RESET: Warm boot, reset count: 0
RESET: formatting...
RESET: formatting done...
71891 : FILE : Saved config.dat
71921 : FILE : Saved security.dat
RESET: Succesful, rebooting. (you might need to press the reset button if you've justed flashed the firmware)

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
?U88 :

INIT : Booting version: (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
89 : INIT : Warm boot #2
90 : FS : Mounting...
115 : FS : Mount successful, used 75802 bytes of 957314
121 : CRC : No program memory checksum found. Check output of crc2.py
126 : CRC : SecuritySettings CRC ...OK
232 : INIT : Free RAM:22824
233 : INIT : I2C
233 : INIT : SPI not enabled
247 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
247 : WIFI : No valid wifi settings
247 : WIFI : Could not connect to AP!
251 : WIFI : Set WiFi to AP
1173 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
1180 : WD : Uptime 0 ConnectFailures 0 FreeMem 20512
30593 : AP Mode: Client connected: 18:3D:A2:09:D2:64 Connected devices: 1
30596 : Webserver: start
31179 : WD : Uptime 1 ConnectFailures 0 FreeMem 17128
50086 : WIFI : Set WiFi to AP
64414 : AP Mode: Client connected: 18:3D:A2:09:D2:64 Connected devices: 1
64415 : AP Mode: Client disconnected: 18:3D:A2:09:D2:64 Connected devices: 1
64434 : WD : Uptime 1 ConnectFailures 0 FreeMem 13544
94434 : WD : Uptime 2 ConnectFailures 0 FreeMem 15728
112727 : WIFI : Credentials Changed, retry connection. SSID: ***
112773 : WIFI : Set WiFi to AP+STA
112805 : WIFI : Connecting *** attempt #0
115099 : AP Mode: Client disconnected: 18:3D:A2:09:D2:64 Connected devices: 0
115144 : AP Mode: Client connected: 18:3D:A2:09:D2:64 Connected devices: 1
116316 : WIFI : Connected! AP: *** (08:96:D7:yy:yy:yy) Ch: 12 Duration: 3510 ms
116538 : AP Mode: Client disconnected: 18:3D:A2:09:D2:64 Connected devices: 0
116585 : AP Mode: Client connected: 18:3D:A2:09:D2:64 Connected devices: 1
117353 : WIFI : DHCP IP: 192.168xx203 (ESP-Easy-0) GW: 192.168xx93 SN: 255.255.255.0 duration: 1037 ms
117415 : FILE : Saved config.dat
117446 : FILE : Saved security.dat
124434 : WD : Uptime 2 ConnectFailures 0 FreeMem 13880
135600 : FILE : Saved config.dat
144631 : AP Mode: Client disconnected: 18:3D:A2:09:D2:64 Connected devices: 0
154434 : WD : Uptime 3 ConnectFailures 0 FreeMem 15104
177436 : WIFI : Set WiFi to STA
184434 : WD : Uptime 3 ConnectFailures 0 FreeMem 17144
214434 : WD : Uptime 4 ConnectFailures 0 FreeMem 16976_

Protocol 2:

177436 : WIFI : Set WiFi to STA
184434 : WD : Uptime 3 ConnectFailures 0 FreeMem 17144
214434 : WD : Uptime 4 ConnectFailures 0 FreeMem 16976
244434 : WD : Uptime 4 ConnectFailures 0 FreeMem 16976
274434 : WD : Uptime 5 ConnectFailures 0 FreeMem 16976
288510 : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 2 m 52 s
289436 : WIFI : Connecting *** attempt #0
291641 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2205 ms
292436 : WIFI : Connecting *** attempt #1
294638 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2202 ms
295436 : WIFI : Connecting *** attempt #2
297638 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2202 ms
298436 : WIFI : Connecting *** attempt #3
300638 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2201 ms
301436 : WIFI : Connecting *** attempt #4
303638 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2202 ms
304434 : WD : Uptime 5 ConnectFailures 0 FreeMem 17984
304436 : WIFI : Connecting *** attempt #5
306641 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2204 ms
307436 : WIFI : Set WiFi to AP+STA
308355 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
308355 : WIFI : Connecting *** attempt #6
310558 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2202 ms
311441 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
311441 : WIFI : Connecting *** attempt #7
313643 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2201 ms
314440 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
314441 : WIFI : Connecting *** attempt #8
316643 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2202 ms
317440 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
317441 : WIFI : Connecting *** attempt #9

Protocol 3:

_>reboot
341040 : Command: reboot

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
⸮U89 :

INIT : Booting version: (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
89 : INIT : Warm boot #3
91 : FS : Mounting...
115 : FS : Mount successful, used 75802 bytes of 957314
122 : CRC : No program memory checksum found. Check output of crc2.py
154 : CRC : SecuritySettings CRC ...OK
259 : INIT : Free RAM:22824
260 : INIT : I2C
260 : INIT : SPI not enabled
274 : INFO : Plugins: 47 [Normal] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
274 : WIFI : Set WiFi to STA
306 : WIFI : Connecting *** attempt #0
313 : WD : Uptime 0 ConnectFailures 0 FreeMem 22040
3167 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2861 ms
3311 : WIFI : Connecting *** attempt #1
6173 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2861 ms
6311 : WIFI : Connecting *** attempt #2
9173 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
9311 : WIFI : Connecting *** attempt #3
12174 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
12311 : WIFI : Connecting *** attempt #4
15173 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
15311 : WIFI : Connecting *** attempt #5
18173 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
18311 : WIFI : Set WiFi to AP+STA
19230 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
19231 : WIFI : Connecting *** attempt #6
22092 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2861 ms
22310 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
22310 : WIFI : Connecting *** attempt #7
25170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
25310 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
25310 : WIFI : Connecting *** attempt #8
28170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
28310 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
28310 : WIFI : Connecting *** attempt #9
30312 : WD : Uptime 1 ConnectFailures 0 FreeMem 19600
31170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
32309 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
32310 : WIFI : Connecting *** attempt #10
35170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
36309 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
36310 : WIFI : Connecting *** attempt #11
39171 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
40309 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
40310 : WIFI : Connecting *** attempt #12
43170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
44309 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
44310 : WIFI : Connecting *** attempt #13
47170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
48309 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
48310 : WIFI : Connecting *** attempt #14
51170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
53309 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
53310 : WIFI : Connecting *** attempt #15
56169 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
58310 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
58310 : WIFI : Connecting *** attempt #16
60312 : WD : Uptime 1 ConnectFailures 0 FreeMem 19600
61170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
63310 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
63310 : WIFI : Connecting *** attempt #17
66170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
68310 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
68310 : WIFI : Connecting *** attempt #18
71170 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms_

@TD-er
Copy link
Member

TD-er commented May 13, 2018

I read last week you have to set the flag to use a BSSID to connect and also make sure to include that BSSID.
I have no idea why my nodes will keep connecting when SSID is hidden.

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 17, 2018

öhm, does anyone still take care of this issue (of mine)?
I mean, my nodes are working, yes, but with some of the irregularities of the state 20180426, ie slow answer, instable connections etc.

@TD-er
Copy link
Member

TD-er commented May 18, 2018

It is still on my to-do list.
The biggest limitation is the lack of time.

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 18, 2018

Thank you, so I'll be patient.
What I am wondering about is the fact, that this issue popped up after the update from 20180426 to 20180428.

@TD-er
Copy link
Member

TD-er commented May 18, 2018

That's about when we changed to 2.4.1 I guess

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 18, 2018

Yes, correct, so tells the documentation - and some changes in the [wifi] section

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 18, 2018

Reading the docs concerning changes in 20180426 -> 20180428, its says "Just disconnect when DNS lookup is not possible"
In my network, router (AP), dhcp server and dns server are not on the same machine, the router (AP) works only as dhcp relay agent. Maybe the issue deals with the structure of my site, but only if the SSID is hidden? Strange? Again, if the AP is visible, mega works flawlessly.

@Oxyandy
Copy link

Oxyandy commented May 19, 2018

@Wiki591
Have you tried setting static IPs ?
You need to define:
IP: 192.168.xxx.yyy <= xxx needs to match range in router 0 or 1 ?
(yyy above range used by DHCP) say above 192.168.xxx.230 as by looking at your previous log
SN: 255.255.255.0
GW: 192.168.xxx.93
DNS: 8.8.8.8 <= Google's DNS

@TD-er
Copy link
Member

TD-er commented May 19, 2018

When using a static IP config, you now have to use all fields.
Previous versions would let you get away with incomplete settings, but since 2.4.x all fields need to be set.

@Wiki591
Copy link
Contributor Author

Wiki591 commented May 19, 2018

@Oxyandy
"DNS: 8.8.8.8 <= Google's DNS"
Seriously? My nodes are not allowed to leave my internal net - never ever.

Yesterday I have configured my AP standard-like, ie DHCP by himself. No success.

I just tried static IP, no success either. Protocol:

INIT : Booting version: mega-20180513 (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
89 : INIT : Warm boot #3
91 : FS : Mounting...
116 : FS : Mount successful, used 75802 bytes of 957314
437 : CRC : program checksum ...OK
443 : CRC : SecuritySettings CRC ...OK
549 : INIT : Free RAM:21416
549 : INIT : I2C
549 : INIT : SPI not enabled
566 : INFO : Plugins: 71 [Normal] [Testing] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
566 : WIFI : Set WiFi to STA
598 : WIFI : Connecting *** attempt #0
599 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
607 : WD : Uptime 0 ConnectFailures 0 FreeMem 20568
3460 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
3605 : WIFI : Connecting *** attempt #1
3606 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
6467 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
6605 : WIFI : Connecting *** attempt #2
6606 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
9468 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
9605 : WIFI : Connecting *** attempt #3
9606 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
12468 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
12605 : WIFI : Connecting *** attempt #4
12606 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
15468 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2860 ms
15605 : WIFI : Connecting *** attempt #5
15606 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
18467 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2859 ms
18605 : WIFI : Set WiFi to AP+STA
19525 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
19525 : WIFI : Connecting *** attempt #6
19526 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
22396 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2862 ms
22604 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
22604 : WIFI : Connecting *** attempt #7
22605 : IP : Static IP : 192.168.xxx.xxx GW: 192.168.xxx.xxx SN: 255.255.255.0 DNS: 192.168.xxx.xxx
25471 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2858 ms

@Wiki591
Copy link
Contributor Author

Wiki591 commented Jun 2, 2018

Hi,
mysterious (at least for me) but I have found a workaround.

Due to an overload of APs in my neighbourhood on channels 1-11, I switched in the past my AP to Channel 12. Result was a seriously better performance and stability. I don'nt know why, but in my neighbourhood several APs n the last 2-3 months where switched to channel 12, too. Today I switched to channel 9. Result: better performance and - i can't believe it - ESPEasy is able to connect to my hidden network. I have tried with 2018-05-22-notrmal

GOTCHA! For me the issue is solved and there is a workaround for other users in the furture.

I am very grateful for your thoughts and your work/efforts in the past two months about this issue. Hopefully with this message you will be freed a little bit concerning the lack of time in this stage of the project.

THANK YOU!.

@Wiki591 Wiki591 closed this as completed Jun 2, 2018
@Wiki591
Copy link
Contributor Author

Wiki591 commented Jun 2, 2018

Hi,
double-checked: AP on channl 1-10: Connection to AP either hidden or not works fine, AP on channel 11 and above only works with AP SSID visble.

@TD-er
Copy link
Member

TD-er commented Jun 2, 2018

OK, that's strange to say the least.
Maybe the scan for networks is either not complete, or the hidden scan is using some regional setting, which is not set and just using the default (China)
I'll keep it in mind and when I'm browsing through some code related to this, I will have a look at it.

Glad to see this to work.

@Grovkillen Can you make some note about this on the Wiki?

@Grovkillen
Copy link
Member

@TD-er I will

@Wiki591
Copy link
Contributor Author

Wiki591 commented Jun 3, 2018

Hi,
the most strange thing is, that, scanning for networks, the hidden AP appeared in the list of found networks with its correct mac and the correct channel (ch 12), marked as hidden, but no connection possible. So for me the scan itself is absolutely correct. Thats why I didn't try the change of the channel, I found this workaround only by accident. After setting the AP to channel 9, I even had not to scan the networks, I only entered the ssid and key over the serial connection and the device connected immediately as it did on channel 12 when setting the the AP to visble.

After updating my productive devices to ESP_Easy_mega-20180522_normal_ESP8266_4096 I can report, all are doing their job stable and are performing good during the past 20 hours or so.

@TD-er
Copy link
Member

TD-er commented Jun 3, 2018

Good to hear it is working fine now.

@Grovkillen
Copy link
Member

@Wiki591
Copy link
Contributor Author

Wiki591 commented Jun 5, 2018

fyi:
today night I stepped down into my cellar and noticed, that the devices of my battery monitoring (mega-20180522) are pretty busy on switching between my hidden AP (RSSI between -55 and -60) and my fallback AP (different hardware, different SSID, different ip-net, RSSI between -82 and -84). They are sending robust and stable their data to my server, so I didn't notice that behaviour before from the far. I had upgraded them from mega-20180426, unchanged configuration, this behaviour is absolutely new. They now have built up their own funny lightshow in the dark ;-).

@enzon0
Copy link

enzon0 commented Dec 15, 2022

my configuration with hidden ssid:
wifi:
networks:

  • ssid: !secret wifi_ssid
    password: !secret wifi_password
    hidden: true

@TD-er
Copy link
Member

TD-er commented Dec 15, 2022

my configuration with hidden ssid: wifi: networks:

  • ssid: !secret wifi_ssid
    password: !secret wifi_password
    hidden: true

Not sure what you intend to tell us with this reply.
Can you elaborate what it is you're trying to explain or ask here, in this >4 year old issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Wifi Related to the network connectivity Status: Fixed Commit has been made, ready for testing Status: Needs Info Needs more info before action can be taken
Projects
None yet
Development

No branches or pull requests

7 participants