WiFi disconnect before getting IP address

0xffff
Posts: 39
Joined: Tue Jun 19, 2018 1:53 am

WiFi disconnect before getting IP address

Postby 0xffff » Thu Apr 02, 2020 12:24 am

I have 2 systems running the same code - one works well, the other doesn't. In the working system, WiFi connectivity is no problem - In my logs I see:

Code: Select all

[2020-04-02T00:07:24.360] W (25242325) WIFI: waiting for Wifi connection to SolSense [sys 0] status=1 - try 21
[2020-04-02T00:07:25.346] I (25243317) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
[2020-04-02T00:07:25.906] I (25243874) wifi: state: init -> auth (b0)
[2020-04-02T00:07:25.943] I (25243877) wifi: state: auth -> assoc (0)
[2020-04-02T00:07:25.949] I (25243894) wifi: state: assoc -> run (10)
[2020-04-02T00:07:25.985] I (25243943) wifi: connected with SolSense, channel 1
[2020-04-02T00:07:25.985] W (25243949) WIFI: Wifi Connected to AP SolSense w/BSSID B8:27:EB:84:DA:96 (but no IP yet)
[2020-04-02T00:07:26.359] W (25244325) WIFI: waiting for Wifi connection to SolSense [sys 0] status=0 - try 22
[2020-04-02T00:07:26.617] I (25244582) event: sta ip: 10.42.0.209, mask: 255.255.255.0, gw: 10.42.0.1
[2020-04-02T00:07:26.620] W (25244583) WIFI: Wifi fully connected! (Got IP address)
[2020-04-02T00:07:27.619] W (25245585) WIFI: Wifi is Connected
In the second system, where it cannot connect easily, I see:

Code: Select all

[2020-04-02T00:03:09.685] W (3183699) WIFI: waiting for Wifi connection to SolSense [sys 0] status=1 - try 181
[2020-04-02T00:03:10.674] I (3184690) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
[2020-04-02T00:03:11.231] I (3185247) wifi: state: init -> auth (b0)
[2020-04-02T00:03:11.233] I (3185251) wifi: state: auth -> assoc (0)
[2020-04-02T00:03:11.258] I (3185268) wifi: state: assoc -> run (10)
[2020-04-02T00:03:11.292] I (3185294) wifi: connected with SolSense, channel 1
[2020-04-02T00:03:11.310] W (3185303) WIFI: Wifi Connected to AP SolSense w/BSSID B8:27:EB:B3:82:DE (but no IP yet)
[2020-04-02T00:03:11.342] I (3185340) wifi: state: run -> auth (ec0)
[2020-04-02T00:03:11.344] I (3185341) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
[2020-04-02T00:03:11.376] W (3185386) WIFI: Got WiFi disconnected event
Where the messages with tag wifi come from the IDF and those with WIFI are my log messages and the result of the callback for WiFi events from the arduino library.

I'm trying to figure out what's going on - why could the wifi system go from state run back to auth, and what does the ec0 mean? Note that the access points, although with same name, are in geographically different locations (not the same network).

What does wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1 mean? It seems like a reset type of message.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 33 guests