-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
wifi can not reach STA_CONNECTED randomly (wifi: Set status to INIT. ) #1747
Comments
Hi, I've been encountering a similar issue where the device connects fine the first time and then after a reboot/restart it won't connect. I get the same statuses as you, when it fails it gets stuck on In
I'd be interested to know if this works for you. |
this worked for Bradshaw in Buzzards Bay! thank you. |
This did not work for me. The esp is currently stuck in immediately in: Did anyone have any luck for restricting the set status to INIT at all? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
Ran into the same issue. Found that it happened after reconfiguring my router from Mixed mode 802.11 b/g/n to Mixed 802.11 g/n. Switching it back to b/g/n solved the problem. |
Had the same issue. The solution posted by dmk99 resolved the issue. |
Hardware:
Board: ESP32 DevKItC
Core Installation/update date: 11/Aug/2018
IDE name: Arduino 1.8.5(ESP32 Dev Module)
Flash Frequency: 80Mhz/DOUT
Upload Speed: 921600
Description:
wifi can not connect randomly.
I found this by hard reset the board repeatly.
I get 50% success and 50% failure just like #234 and #1733
when i get failure , there only dot no matter how long no I wait.
This happens only in some type of router, the other is working normal even hard set so many times.
when success:
Connecting to SC
I (1029) wifi: wifi driver task: 3ffb7240, prio:23, stack:4096, core=0
I (2071) wifi: wifi firmware version: 4fd6a2c
I (2072) wifi: config NVS flash: enabled
I (2074) wifi: config nano formating: disabled
I (2089) wifi: Init dynamic tx buffer num: 32
I (2089) wifi: Init data frame dynamic rx buffer num: 10
I (2089) wifi: Init management frame dynamic rx buffer num: 10
I (2093) wifi: Init static rx buffer size: 1600
I (2097) wifi: Init static rx buffer num: 4
I (2101) wifi: Init dynamic rx buffer num: 10
I (2162) wifi: mode : sta (30:ae:a4:17:a7:d4)
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 2 - STA_START
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 0 - WIFI_READY
I (3335) wifi: n:3 0, o:1 0, ap:255 255, sta:3 0, prof:1
.I (4068) wifi: state: init -> auth (b0)
I (4072) wifi: state: auth -> assoc (0)
I (4080) wifi: state: assoc -> run (10)
.I (4641) wifi: connected with SC, channel 3
I (4645) wifi: pm start, type: 1
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 4 - STA_CONNECTED
.[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 7 - STA_GOT_IP
[D][WiFiGeneric.cpp:389] _eventCallback(): STA IP: 192.168.50.174, MASK: 255.255.252.0, GW: 192.168.51.254
.
when failure:
Connecting to SC
I (1028) wifi: wifi driver task: 3ffb7240, prio:23, stack:4096, core=0
I (2069) wifi: wifi firmware version: 4fd6a2c
I (2070) wifi: config NVS flash: enabled
I (2072) wifi: config nano formating: disabled
I (2087) wifi: Init dynamic tx buffer num: 32
I (2087) wifi: Init data frame dynamic rx buffer num: 10
I (2087) wifi: Init management frame dynamic rx buffer num: 10
I (2091) wifi: Init static rx buffer size: 1600
I (2095) wifi: Init static rx buffer num: 4
I (2099) wifi: Init dynamic rx buffer num: 10
I (2158) wifi: mode : sta (30:ae:a4:17:a7:d4)
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 2 - STA_START
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 0 - WIFI_READY
I (3296) wifi: n:3 0, o:1 0, ap:255 255, sta:3 0, prof:1
.I (4029) wifi: state: init -> auth (b0)
I (4033) wifi: state: auth -> assoc (0)
E (4041) wifi: Set status to INIT.
I (4041) wifi: state: assoc -> init (11)
I (4041) wifi: n:3 0, o:3 0, ap:255 255, sta:3 0, prof:1
..............................................................................
Sketch:
The text was updated successfully, but these errors were encountered: