-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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 connection failed with message "Association refused temporarily, comeback time 205824 mSec" (IDFGH-7909) #9428
Comments
I also submited this issue under esp_rainmaker, here is the link |
@FlynnMa can you pls share a wireless capture during the association of the STA.Come back time is send from the AP in the assoc response. |
Hi @FlynnMa |
@nishanth-radja Could you please explain what is wireless capture do you mean? How to capture it? |
Hi @MaxwellAlan what should I do in order to |
@FlynnMa wireless capture is for capturing the packets in the air.If you have a linux laptop,Pls do the following. |
Call esp_wifi_disconnect(); this api before reset. |
@MaxwellAlan I found to manual call esp_wifi_disconnect() might not easy, can you please tell me how to make this function call as a part of download pre-process automatically? |
Could you try calling this API in your GOT_IP event? |
@MaxwellAlan People usually just unplug usb cable (power-off) and replug usb cable (power-on). |
is there any quick patch or work round could temporaly fix this ? 205 seconds(3.4minutes) are just not acceptable looong |
Yes. we are working on limiting the maximum value of assoc comeback time to 5 seconds. Will update shortly |
is there any patch to this now? |
Hi @FlynnMa , Thank you for waiting. |
Could you please share me the git commit id? |
@sarveshb14
|
Please find esp32-wifi-lib. |
Yes. Issue is present on all SoCs and v4.x branches as well.
Yes. Will do |
Update wifi libs with below changes - 1. reject AP when assoc comeback time given is greater than 5 seconds 2. handle when assoc req is received before SA query procedure is finished Closes #9428
Hi @sarveshb14 can you please provide more details on how to update the esp_wifi-lib submodule? Update the submodule from linux console:
Then clean and rebuild the project:
The build process fails with: Do we need to update also other submodules to make this works? |
The esp_wifi fix is not yet available for v4.4 branch. (I'm also waitting for the fix for v4.3 branch) |
yeah can we get this one shipped please guys? this is a pain in the ass, every single flash requires a manual reboot to follow |
The main problem is not for developers that need to press the reboot button, but for our clients that when they pull out the power cable from the board they need to wait for ~5 minutes before the ESP gets connected again to their WiFi network (and some of them thinks that the board firmware is not working correctly and we need to explain them why...). |
Hi
|
Hi ! |
sounds something missing at the startup |
Just tried with ESP-IDF-v4.4.4 and the problem still remains. |
Hi All, fix for this issue 0c8ec2a0 was merged after v4.4.4 release. |
There is not need/use of invoking This issue is due to invalid association comeback value sent by an Access Point in association response frame. Provided fix is to reject AP when assoc comeback time sent by AP is > 5 seconds. (and try connecting again depending on connection retries configuration) Maybe you can try with rebooting the AP or if Router configuration permits, set Assoc Comeback to some valid value. Please let me know if this helped. |
Yes. This issue happened with esp32-c3 as well. |
@sarveshb14 I (6797) net80211: net80211 rom version: e7ae62f
I (6807) wifi:wifi driver task: 3fca9fc8, prio:23, stack:6656, core=0
I (6807) system_api: Base MAC address is not set
I (6807) system_api: read default base MAC address from EFUSE
I (6807) wifi:wifi firmware version: 6567a16
I (6807) wifi:wifi certification version: v7.0
I (6807) wifi:config NVS flash: disabled
I (6807) wifi:config nano formating: disabled
I (6807) wifi:Init data frame dynamic rx buffer num: 32
I (6807) wifi:Init management frame dynamic rx buffer num: 32
I (6807) wifi:Init management short buffer num: 32
I (6807) wifi:Init static tx buffer num: 16
I (6807) wifi:Init tx cache buffer num: 32
I (6807) wifi:Init static tx FG buffer num: 2
I (6807) wifi:Init static rx buffer size: 1600
I (6807) wifi:Init static rx buffer num: 10
I (6807) wifi:Init dynamic rx buffer num: 32
I (6807) wifi_init: rx ba win: 6
I (6807) wifi_init: tcpip mbox: 32
I (6807) wifi_init: udp mbox: 6
I (6807) wifi_init: tcp mbox: 6
I (6807) wifi_init: tcp tx win: 5744
I (6807) wifi_init: tcp rx win: 5744
I (6807) wifi_init: tcp mss: 1440
I (6807) wifi_init: WiFi IRAM OP enabled
I (6807) wifi_init: WiFi RX IRAM OP enabled
I (6807) phy_init: phy_version 540,a5d905b,Oct 20 2022,19:36:11
I (6847) wifi:mode : sta (f4:12:fa:d7:a3:9c)
I (6847) wifi:enable tsf
I (6847) wifi:Set ps type: 0
I (6847) MAIN: wifi started
I (6867) MAIN: wait for network up (00000002)...
I (9257) MAIN: wifi scan done: status 0, number 15
I (9257) MAIN: Total APs scanned = 15
I (9257) MAIN: 0 - Terrecablate_2.4Ghz_8941 [10] (-45) DE
I (9257) MAIN: 1 - blueup-guest [10] (-46) DE
I (9257) MAIN: 2 - B910_1990531478 [12] (-64) CN
I (9257) MAIN: 3 - Terrecablate_2.4Ghz_91E1 [4] (-67) DE
I (9257) MAIN: 4 - DIRECT-F6-HP DesignJet T630 [6] (-68)
I (9257) MAIN: 5 - AGRISOLVING [2] (-71)
I (9267) MAIN: 6 - GL-AR150-344 [11] (-71)
I (9267) MAIN: 7 - TIM-93898011 [1] (-73)
I (9267) MAIN: 8 - BOCCONBACCO [1] (-73)
I (9267) MAIN: 9 - staff@dinamo [11] (-84)
I (9267) MAIN: 10 - 1e6180b0 [1] (-86) CN
I (9267) MAIN: 11 - 1e6180df [1] (-87) CN
I (9267) MAIN: 12 - Zyxel_1401 [7] (-88) DE
I (9267) MAIN: 13 - DIRECT-F5-HP DeskJet 2600 series [6] (-89)
I (9267) MAIN: 14 - 1e617fc8 [1] (-90) CN
I (9267) MAIN: WiFi try connecting to Terrecablate_2.4Ghz_8941
I (11677) wifi:new:<10,0>, old:<1,0>, ap:<255,255>, sta:<10,0>, prof:1
I (12857) wifi:state: init -> auth (b0)
I (12867) wifi:state: auth -> assoc (0)
E (12877) wifi:Association refused temporarily, comeback time 268435 mSec |
Hi @sforconi , This commit was merged into release/v4.4 after v4.4.4 was forked out. Hence v4.4.4 does not have this fix. |
Thanks @sarveshb14, updating the to the latest commit has solved the problem, I can now see that the maximum allowed reconnection time is 5000ms.
|
Environment
git describe --tags
to find it): v5.0-dev-4257-g508661b03extensa-esp32-elf-gcc --version
to find it): riscv32-esp-elf-gcc (crosstool-NG esp-2022r1-RC1) 11.2.0Problem Description
after I flash and reboot, I some time get reported wifi failure:
20 seconds seem too long, how can I avoid it?
Full log looks like:
Expected Behavior
Actual Behavior
Steps to reproduce
download esp-idf and build it, source the export.sh like:
download esp-rainmaker
The text was updated successfully, but these errors were encountered: