Page 1 of 3

v3.0 to v3.1 migration guide? WiFi not working...

Posted: Mon Jan 28, 2019 11:15 am
by meowsqueak
Is there a guide to updating an ESP-IDF application from v3.0 to v3.1? Specifically I'm having trouble getting WiFi to connect to my access point after simply changing to release/3.1 (0e2eccfad0feb15629a931f1183a6d9841ee0487) and rebuilding. Before I start going through diffs with a fine-toothed comb, is there something obvious I should look at first? SSID/password is correct.

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Mon Jan 28, 2019 11:20 am
by meowsqueak
I downgraded ESP-IDF to v3.1.2 (rather than release/v3.1) and WiFi seems to connect properly. So something seems to have broken WiFi between Jan 2nd and Jan 25th. I'll stick with 3.1.2 for now.

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Tue Jan 29, 2019 11:02 pm
by brp80000
According to my observations in the new versions of IDF (it seems after 3.0.x) all password login modes on the WIFI_AUTH_WPA_WPA2_PSK access point do not work
however, logging in without a WIFI_AUTH_OPEN without password works fine.
I do my code in the process of creating use WIFI_AUTH_OPEN
I also noticed that apple devices (IOS) successfully connect via WIFI_AUTH_WPA_WPA2_PSK, while android does not work
I (27201) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (27203) wifi: station: 30:a8:db:cf:5a:62 join, AID=1, bgn, 20
I (63361) wifi: station: 30:a8:db:cf:5a:62 leave, AID = 1
I (63363) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (67905) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (67907) wifi: station: 30:a8:db:cf:5a:62 join, AID=1, bgn, 20
I (104057) wifi: station: 30:a8:db:cf:5a:62 leave, AID = 1
I (104059) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (108659) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (108661) wifi: station: 30:a8:db:cf:5a:62 join, AID=1, bgn, 20
I (144807) wifi: station: 30:a8:db:cf:5a:62 leave, AID = 1
I (144807) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (149367) wifi: n:11 2, o:11 2, ap:11 2, sta:11 2, prof:11
I (149369) wifi: station: 30:a8:db:cf:5a:62 join, AID=1, bgn, 20

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Tue Jan 29, 2019 11:43 pm
by meowsqueak
brp80000 wrote:
Tue Jan 29, 2019 11:02 pm
According to my observations in the new versions of IDF (it seems after 3.0.x) all password login modes on the WIFI_AUTH_WPA_WPA2_PSK access point do not work
Interesting - although I'm not sure this accounts for my case where 3.1.2 works, but head of the 3.1 branch doesn't. Can anyone from Espressif comment on this?

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Wed Jan 30, 2019 7:58 am
by brp80000
Now I tried to run an example from the IDF 3.1.2 a simple Wi-Fi.
It doesn't work)))

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Thu Jan 31, 2019 5:50 am
by brp80000
Run an example (in its pure form, without changes) from the IDF 3.1.2 a simple Wi-Fi
1. Sony device. With android 6.0.1
Connection hangs on .... Getting the IP address
2. Samsung device. With android 4.3
Connection hangs on .... Getting the IP address
3. Apple device. With IOS 4
Connection FINE
m.jpg
m.jpg (212.34 KiB) Viewed 10380 times

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Thu Jan 31, 2019 7:50 am
by brp80000
Someone working with the Wi-Fi WIFI_AUTH_WPA_WPA2_PSK authentication (password is not empty)
Is there a problem with me or someone else?

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Fri Feb 01, 2019 3:09 am
by brp80000
I did not expect from ESP problems with WiFi.
If i use .max_connection = 1 the connection hangs on getting the IP address when using WIFI_AUTH_WPA_WPA2_PSK. IOS devices connect perfectly. The problem is only when connecting with android I have tested three devices. If you use WIFI_AUTH_OPEN any devices connect successfully.
If i use .max_connection = 4 (for example) with WIFI_AUTH_WPA_WPA2_PSK. All devices are connected and get ip. But be sure to have a network device with IOS.
What could be the problem?

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Fri Feb 01, 2019 5:49 am
by brp80000
is it difficult to comment?
1. the problem have us we are working and are silent
2. you have problem ... look for the bug

Re: v3.0 to v3.1 migration guide? WiFi not working...

Posted: Fri Feb 01, 2019 6:13 am
by littlesky
Sorry for the issue introduced in IDFv3.1.2. We have found the root cause. And it will be fixed in release/v3.1 branch today. The commit ID will be be115ec3ab28f7bbea3f4c7e5be3dd6b17bb8912. Please update IDF after the bugfix is merged into release/v3.1 and check whether it solves your problem.