Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200) [solved:update to latest master]

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby jcsbanks » Thu Feb 21, 2019 5:37 pm

Not fixed here updating to latest master ESP-IDF right now, rebuilding and reflashing:

boot: ESP-IDF v3.3-beta1-328-gabea9e4c0 2nd stage bootloader

Turning on the Android wifi hotspot, I can scan for it, then connect and receive an IP address:

Code: Select all

I (59247) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (59252) APP: 0x11
I (62466) wifi: switch to channel 12
I (62466) wifi: ap channel adjust o:1,1 n:12,2
I (62466) wifi: new:<12,2>, old:<1,1>, ap:<12,2>, sta:<0,0>, prof:1
I (62469) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:1
I (63231) wifi: state: init -> auth (b0)
I (63363) wifi: state: auth -> assoc (0)
I (63370) wifi: state: assoc -> run (10)
I (63584) wifi: connected with Nokia 8, channel 12, bssid = cc:9f:7a:9d:6a:17
I (63588) wifi: pm start, type: 0

I (63589) APP: 0x4
I (65626) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (65627) wifi: station: 70:c9:4e:d3:b6:17 join, AID=1, bgn, 40D
[{"NVS_STA":{"SSID":"Nokia 8","BSSID":"","IP":"0.0.0.0"}}]
AP SSID ESP_1BB559
AP pass
I (65644) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (65644) APP: 0x11
6E 76 73 nvs
[{"NVS_STA":{"SSID":"Nokia 8","BSSID":"","IP":"0.0.0.0"}}]
AP SSID ESP_1BB559
AP pass
I (66701) event: sta ip: 192.168.43.13, mask: 255.255.255.0, gw: 192.168.43.137
I (66701) APP: SYSTEM_EVENT_STA_GOT_IP
I (66702) APP: Got IP: '192.168.43.13'
Then I reset the ESP32 leaving the hotspot running:

Code: Select all

I (747) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
[{"NVS_STA":{"SSID":"Nokia 8","BSSID":"","IP":"0.0.0.0"}}]
AP SSID ESP_1BB559
AP pass
I (761) APP: 0x11
I (3248) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (4005) wifi: state: init -> auth (b0)
I (4010) wifi: state: auth -> assoc (0)
I (5011) wifi: state: assoc -> init (400)
I (5011) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (5011) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:4
I (17846) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (30677) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (30678) wifi: state: init -> auth (b0)
I (31678) wifi: state: auth -> init (200)
I (31678) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (31679) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:2
I (44514) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
6E 76 73 nvs
[{"NVS_STA":{"SSID":"Nokia 8","BSSID":"","IP":"0.0.0.0"}}]
AP SSID ESP_1BB559
AP pass
I (57344) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (57344) wifi: state: init -> auth (b0)
I (58345) wifi: state: auth -> init (200)
I (58345) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (58345) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:2
I (71180) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
Then I switch the Android hotspot off then on, then it manages to connect:

Code: Select all

I (84410) wifi: switch to channel 1
I (84410) wifi: ap channel adjust o:12,2 n:1,1
I (84410) wifi: new:<1,1>, old:<12,2>, ap:<1,1>, sta:<12,0>, prof:12
I (84413) wifi: new:<1,1>, old:<1,1>, ap:<1,1>, sta:<1,0>, prof:12
I (84419) wifi: state: init -> auth (b0)
I (84425) wifi: state: auth -> assoc (0)
I (84438) wifi: state: assoc -> run (10)
I (84461) wifi: connected with Nokia 8, channel 1, bssid = cc:9f:7a:9d:6a:17
I (84466) wifi: pm start, type: 0

I (84467) APP: 0x4
I (85218) event: sta ip: 192.168.43.13, mask: 255.255.255.0, gw: 192.168.43.35
I (85218) APP: SYSTEM_EVENT_STA_GOT_IP
I (85219) APP: Got IP: '192.168.43.13'
The Android has been updated to Android 9 in this time, but behaviour is the same as Android 8 and previous ESP-IDF.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby Ritesh » Sun Feb 24, 2019 8:00 pm

Hi Espressif SDK Developers,

Would you guys please confirm like into which IF version or commit id this issue has been fixed?

Or let us know when you are going to fix if not fixed it yet?
Regards,
Ritesh Prajapati

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby jcsbanks » Sun Mar 03, 2019 9:14 am

littlesky wrote:
Fri Feb 15, 2019 9:03 am
The bug has been fixed. Please update the IDF branch to check whether it works for you.
@littlesky as above it does not work for me.

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

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby littlesky » Mon Mar 04, 2019 2:53 am

jcsbanks wrote:
Sun Mar 03, 2019 9:14 am
littlesky wrote:
Fri Feb 15, 2019 9:03 am
The bug has been fixed. Please update the IDF branch to check whether it works for you.
@littlesky as above it does not work for me.
What was the IDF version did you use?

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby Ritesh » Mon Mar 04, 2019 3:46 am

Hi Espressif SDK Developer,

Would you guys please confirm IDF version with commit id in which version this issue has been fixed if already done? if not fixed yet then what is your plan or timeline like when it will be fixed?

So that we can plan according to that for current issue which we are also facing issue.
Regards,
Ritesh Prajapati

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby jcsbanks » Mon Mar 04, 2019 9:00 am

littlesky wrote:
Mon Mar 04, 2019 2:53 am
jcsbanks wrote:
Sun Mar 03, 2019 9:14 am
littlesky wrote:
Fri Feb 15, 2019 9:03 am
The bug has been fixed. Please update the IDF branch to check whether it works for you.
@littlesky as above it does not work for me.
What was the IDF version did you use?
The output is in my post Feb 21. v3.3-beta1-328-gabea9e4c0 is what I updated to just after it was said to be fixed.

I updated again last night to test again but cannot build using that:
https://www.esp32.com/viewtopic.php?f=13&t=9503

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby jcsbanks » Mon Mar 04, 2019 1:14 pm

With the latest master esp-idf installed today (after some problems solved by wiping sdkconfig as in thread linked in previous post), it does now reconnect after programmatic reset, button reset or power cycle, and sometimes much quicker than this.

Code: Select all

I (482) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (490) APP: 0x11
I (2866) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (3623) wifi: state: init -> auth (b0)
I (4623) wifi: state: auth -> init (200)
I (4624) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (4624) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:2
I (17069) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (29508) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (29509) wifi: state: init -> auth (b0)
I (30509) wifi: state: auth -> init (200)
I (30509) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (30510) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:2
I (42954) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (55394) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (55395) wifi: state: init -> auth (b0)
I (55398) wifi: state: auth -> init (1c0)
I (55398) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (55404) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:202
I (67849) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (80289) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (80290) wifi: state: init -> auth (b0)
I (80293) wifi: state: auth -> assoc (0)
I (80300) wifi: state: assoc -> run (10)
I (80313) wifi: connected with Nokia 8, channel 12, bssid = cc:9f:7a:9d:6a:17
I (80318) wifi: pm start, type: 0

I (80320) APP: 0x4
I (81221) event: sta ip: 192.168.43.13, mask: 255.255.255.0, gw: 192.168.43.222
I (81221) APP: SYSTEM_EVENT_STA_GOT_IP
I (81223) APP: Got IP: '192.168.43.13'

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200)

Postby Ritesh » Mon Mar 04, 2019 5:15 pm

jcsbanks wrote:
Mon Mar 04, 2019 1:14 pm
With the latest master esp-idf installed today (after some problems solved by wiping sdkconfig as in thread linked in previous post), it does now reconnect after programmatic reset, button reset or power cycle, and sometimes much quicker than this.

Code: Select all

I (482) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (490) APP: 0x11
I (2866) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (3623) wifi: state: init -> auth (b0)
I (4623) wifi: state: auth -> init (200)
I (4624) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (4624) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:2
I (17069) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (29508) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (29509) wifi: state: init -> auth (b0)
I (30509) wifi: state: auth -> init (200)
I (30509) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (30510) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:2
I (42954) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (55394) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (55395) wifi: state: init -> auth (b0)
I (55398) wifi: state: auth -> init (1c0)
I (55398) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (55404) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:202
I (67849) APP: SYSTEM_EVENT_STA_DISCONNECTED ssid:Nokia 8 reason:201
I (80289) wifi: new:<12,2>, old:<12,2>, ap:<12,2>, sta:<12,0>, prof:12
I (80290) wifi: state: init -> auth (b0)
I (80293) wifi: state: auth -> assoc (0)
I (80300) wifi: state: assoc -> run (10)
I (80313) wifi: connected with Nokia 8, channel 12, bssid = cc:9f:7a:9d:6a:17
I (80318) wifi: pm start, type: 0

I (80320) APP: 0x4
I (81221) event: sta ip: 192.168.43.13, mask: 255.255.255.0, gw: 192.168.43.222
I (81221) APP: SYSTEM_EVENT_STA_GOT_IP
I (81223) APP: Got IP: '192.168.43.13'
Thanks for update regarding same.

Would you please send me commit ID which you have used into master branch means last commit ID?
Regards,
Ritesh Prajapati

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200) [solved:update to latest mas

Postby jcsbanks » Mon Mar 04, 2019 5:22 pm

Code: Select all

jcsba@LENOVO-720S MINGW32 ~/esp/esp-idf
$ git log
commit ebdcbe8c60a3b5a228d9e80335d869cc01c527ab (HEAD -> master, origin/master, origin/HEAD)
Merge: 6c49f1924 299e4ca71
Author: Jiang Jiang Jian <jack@espressif.com>
Date:   Fri Mar 1 10:03:03 2019 +0800

    Merge branch 'doc/crc_apis_usage' into 'master'

    Add CRC APIs usage

    See merge request idf/esp-idf!4351


Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Android hotspot requires restarting for ESP32 to reconnect or fails: auth -> init (200) [solved:update to latest mas

Postby Ritesh » Tue Mar 05, 2019 10:36 am

jcsbanks wrote:
Mon Mar 04, 2019 5:22 pm

Code: Select all

jcsba@LENOVO-720S MINGW32 ~/esp/esp-idf
$ git log
commit ebdcbe8c60a3b5a228d9e80335d869cc01c527ab (HEAD -> master, origin/master, origin/HEAD)
Merge: 6c49f1924 299e4ca71
Author: Jiang Jiang Jian <jack@espressif.com>
Date:   Fri Mar 1 10:03:03 2019 +0800

    Merge branch 'doc/crc_apis_usage' into 'master'

    Add CRC APIs usage

    See merge request idf/esp-idf!4351

Thanks for update regarding same. We will also check with that commit ID and let you know if need any further help regarding same.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 67 guests