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

meowsqueak
Posts: 136
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

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

Postby meowsqueak » Mon Jan 28, 2019 11:15 am

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.

meowsqueak
Posts: 136
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

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

Postby meowsqueak » Mon Jan 28, 2019 11:20 am

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.

User avatar
brp80000
Posts: 115
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » 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
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
Last edited by brp80000 on Wed Jan 30, 2019 6:20 am, edited 1 time in total.

meowsqueak
Posts: 136
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

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

Postby meowsqueak » Tue Jan 29, 2019 11:43 pm

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?

User avatar
brp80000
Posts: 115
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » Wed Jan 30, 2019 7:58 am

Now I tried to run an example from the IDF 3.1.2 a simple Wi-Fi.
It doesn't work)))

User avatar
brp80000
Posts: 115
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » Thu Jan 31, 2019 5:50 am

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 1264 times

User avatar
brp80000
Posts: 115
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » Thu Jan 31, 2019 7:50 am

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?

User avatar
brp80000
Posts: 115
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » Fri Feb 01, 2019 3:09 am

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?

User avatar
brp80000
Posts: 115
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » Fri Feb 01, 2019 5:49 am

is it difficult to comment?
1. the problem have us we are working and are silent
2. you have problem ... look for the bug

littlesky
Posts: 47
Joined: Fri Jun 09, 2017 7:49 am

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

Postby littlesky » Fri Feb 01, 2019 6:13 am

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.

Who is online

Users browsing this forum: newsettler_AI and 25 guests