esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

Wifi disconnects and is unable to reconnect with WIFI_REASON_MIC_FAILURE code (IDFGH-5142)

Open robertoimai opened this issue 3 years ago • 48 comments

Environment

  • Module or chip used: ESP32-WROVER-E
  • IDF version (run git describe --tags to find it): v4.2
  • Build System: idf.py
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
  • Operating System: Windows
  • (Windows only) environment type: VSCode.
  • Using an IDE?: VSCode]
  • Power Supply: external 3.3V

Problem Description

Module is disconnecting from wifi with reason code 14 (WIFI_REASON_MIC_FAILURE). Any attempt to reconnect will also fail. You can see from the log that the failure did take a long time to show up. About 75hrs. I saw a reference similar here: https://github.com/espressif/esp-idf/issues/5023 But it led to stale. My router is a TPLink AC1750

Debug Logs

I (184827287) wifi:state: run -> init (6c0) I (184827297) wifi:pm stop, total sleep time: 101950385411 us / 120855147958 us

I (184827297) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184827307) SOUND: Send sound queue: 146-1[0m [0;32mI (184827347) WIFI: Disconnected from wifi:6[0m [0;32mI (184827347) SOUND: Playing: /spiffs/wifi_disconnected.mp3[0m [0;32mI (184827347) WIFI: connection_retry: 1[0m [0;32mI (184827397) WIFI: MQTT task stopping...[0m I (184828477) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184828477) wifi:state: init -> auth (b0) I (184828487) wifi:state: auth -> assoc (0) I (184828497) wifi:state: assoc -> run (10) I (184828497) wifi:state: run -> init (ea0) I (184828497) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184828497) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184828517) WIFI: Disconnected from wifi:14[0m [0;32mI (184828517) WIFI: connection_retry: 2[0m [0;32mI (184828787) SOUND: Finished: /spiffs/wifi_disconnected.mp3[0m [0;32mI (184831577) WIFI: Disconnected from wifi:205[0m [0;32mI (184831577) WIFI: connection_retry: 3[0m I (184832697) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184832697) wifi:state: init -> auth (b0) I (184832707) wifi:state: auth -> assoc (0) I (184832707) wifi:state: assoc -> run (10) I (184832717) wifi:state: run -> init (ea0) I (184832717) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184832717) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184832727) WIFI: Disconnected from wifi:14[0m [0;32mI (184832727) WIFI: connection_retry: 4[0m [0;32mI (184835787) WIFI: Disconnected from wifi:205[0m [0;32mI (184835787) WIFI: connection_retry: 5[0m I (184836907) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184836907) wifi:state: init -> auth (b0) I (184836907) wifi:state: auth -> assoc (0) I (184836917) wifi:state: assoc -> run (10) I (184836917) wifi:state: run -> init (ea0) I (184836917) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184836927) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184836937) WIFI: Disconnected from wifi:14[0m [0;32mI (184836937) WIFI: connection_retry: 6[0m [0;32mI (184839997) WIFI: Disconnected from wifi:205[0m [0;32mI (184839997) WIFI: connection_retry: 7[0m I (184841117) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184841117) wifi:state: init -> auth (b0) I (184841127) wifi:state: auth -> assoc (0) I (184841147) wifi:state: assoc -> run (10) I (184841147) wifi:state: run -> init (ea0) I (184841147) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184841147) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184841157) WIFI: Disconnected from wifi:14[0m [0;32mI (184841157) WIFI: connection_retry: 8[0m [0;32mI (184844217) WIFI: Disconnected from wifi:205[0m [0;32mI (184844217) WIFI: connection_retry: 9[0m I (184845337) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184845337) wifi:state: init -> auth (b0) I (184845347) wifi:state: auth -> assoc (0) I (184845357) wifi:state: assoc -> run (10) I (184845357) wifi:state: run -> init (ea0) I (184845357) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184845367) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184845377) WIFI: Disconnected from wifi:14[0m [0;32mI (184845377) WIFI: connection_retry: 10[0m [0;32mI (184848437) WIFI: Disconnected from wifi:205[0m [0;32mI (184848437) WIFI: connection_retry: 11[0m [0;32mI (184848437) WIFI: Scanning for wifi networks...[0m [0;32mI (184850557) WIFI: Scan Done[0m [0;32mI (184850557) WIFI: RAM left 4015652[0m [0;32mI (184850557) WIFI: provisioned: 1[0m [0;32mI (184850557) WIFI: SSID 0:Azena Guest[0m [0;32mI (184850567) WIFI: SSID 1:Azena F[0m [0;32mI (184850567) WIFI: Attempting to connect to wifi Azena F[0m [0;32mI (184850577) WIFI: SSID 2:DIRECT-C5-HP OfficeJet Pro 8710[0m [0;32mI (184850577) WIFI: SSID 3:PFF-2.4G[0m [0;32mI (184850587) WIFI: SSID 4:BridgeWC[0m [0;32mI (184850587) WIFI: SSID 5:GORDON REESE DESIGN BUILD[0m [0;32mI (184850587) WIFI: SSID 6:GORDON REESE guest[0m [0;32mI (184850597) WIFI: SSID 7:PFF-2.4G_RPT[0m [0;32mI (184850597) WIFI: SSID 8:DIRECT-ba-HP M277 LaserJet[0m [0;32mI (184850617) WIFI: SSID 9:PAD5[0m [0;32mI (184850617) WIFI: SSID 10:DIRECT-3e-HP M118 LaserJet[0m [0;32mI (184850617) WIFI: SSID 11:Pocklingtonlaw[0m [0;32mI (184850627) WIFI: SSID 12:evanjuliet-2.4[0m [0;32mI (184850627) WIFI: SSID 13:VAAK LLP[0m [0;32mI (184850627) WIFI: SSID 14:DIRECT-64-HP OfficeJet Pro 8710[0m [0;32mI (184850637) WIFI: SSID 15:Cappo-2.4[0m [0;32mI (184850637) WIFI: SSID 16:Ericsson2.4G-2-1[0m [0;32mI (184850647) WIFI: SSID 17:Citrus 2.4[0m [0;32mI (184850647) WIFI: SSID 18:DIRECT-bb-HP M183 LaserJet[0m [0;32mI (184850657) WIFI: SSID 19:ThomasWifi[0m [0;32mI (184850667) WIFI: SSID 20:HannonLaw[0m [0;32mI (184850667) WIFI: SSID 21:Linksys08645-guest[0m I (184850697) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184850697) wifi:state: init -> auth (b0) I (184850707) wifi:state: auth -> assoc (0) I (184850717) wifi:state: assoc -> run (10) I (184850717) wifi:state: run -> init (ea0) I (184850717) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 I (184850717) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 [0;32mI (184850737) WIFI: Disconnected from wifi:14[0m

robertoimai avatar Apr 22 '21 00:04 robertoimai