EmotiBit/EmotiBit_FeatherWing

WiFi connection issue with Feather ESP32

Opened this issue · 0 comments

Describe the bug

  • The ESP32 seems to get stuck in a loop trying to connect to a WiFi network.
  • It is a spurious behavior which is hard to recreate.
  • Attaching serup log below indicating the connection loop
Setting up WiFi
[{"info":{
"source_id":"EmotiBit FeatherWing",
"hardware_version":"V04a",
"sku":"MD",
"device_id":"MD-V4-0000305",
"feather_version":"Adafruit Feather HUZZAH32",
"feather_wifi_mac_addr":"00:df:9c:57:dd:c4",
"firmware_version":"1.5.4",
"firmware_variant":"EmotiBit_stock_firmware",
}}]
[  8939][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 0 - WIFI_READY
[  9080][V][WiFiGeneric.cpp:283] _arduino_event_cb(): STA Started
[  9081][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 2 - STA_START
Attempting to connect to SSID: MySpectrumWiFi89-2G
[ 12184][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
WiFi.begin() duration = 28
[ 12283][V][WiFiGeneric.cpp:295] _arduino_event_cb(): STA Connected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Channel: 11, Auth: WPA2_PSK
[ 12284][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
WiFi.status() = 0, total duration = 629
<<<<<<< Switching WiFi Networks >>>>>>>
[ 13500][V][WiFiGeneric.cpp:305] _arduino_event_cb(): STA Got New IP:192.168.1.12
[ 13501][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 13502][D][WiFiGeneric.cpp:914] _eventCallback(): STA IP: 192.168.1.12, MASK: 255.255.255.0, GW: 192.168.1.1
Attempting to connect to SSID: MySpectrumWiFi89-2G
[ 13515][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[ 13516][V][WiFiGeneric.cpp:300] _arduino_event_cb(): STA Disconnected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Reason: 8
[ 13517][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[ 13517][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 8 - ASSOC_LEAVE
WiFi.begin() duration = 31
[ 13620][V][WiFiGeneric.cpp:295] _arduino_event_cb(): STA Connected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Channel: 11, Auth: WPA2_PSK
[ 13621][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
WiFi.status() = 0, total duration = 632
<<<<<<< Switching WiFi Networks >>>>>>>
[ 14864][V][WiFiGeneric.cpp:305] _arduino_event_cb(): STA Got Same IP:192.168.1.12
[ 14865][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 14865][D][WiFiGeneric.cpp:914] _eventCallback(): STA IP: 192.168.1.12, MASK: 255.255.255.0, GW: 192.168.1.1
Attempting to connect to SSID: MySpectrumWiFi89-2G
[ 14949][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[ 14950][V][WiFiGeneric.cpp:300] _arduino_event_cb(): STA Disconnected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Reason: 8
[ 14951][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[ 14951][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 8 - ASSOC_LEAVE
WiFi.begin() duration = 32
[ 15038][V][WiFiGeneric.cpp:295] _arduino_event_cb(): STA Connected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Channel: 11, Auth: WPA2_PSK
[ 15039][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
WiFi.status() = 0, total duration = 633
<<<<<<< Switching WiFi Networks >>>>>>>
[ 16262][V][WiFiGeneric.cpp:305] _arduino_event_cb(): STA Got Same IP:192.168.1.12
[ 16263][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 16264][D][WiFiGeneric.cpp:914] _eventCallback(): STA IP: 192.168.1.12, MASK: 255.255.255.0, GW: 192.168.1.1
Attempting to connect to SSID: MySpectrumWiFi89-2G
[ 16282][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[ 16283][V][WiFiGeneric.cpp:300] _arduino_event_cb(): STA Disconnected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Reason: 8
[ 16284][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[ 16285][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 8 - ASSOC_LEAVE
WiFi.begin() duration = 31
[ 16385][V][WiFiGeneric.cpp:295] _arduino_event_cb(): STA Connected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Channel: 11, Auth: WPA2_PSK
[ 16386][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
WiFi.status() = 0, total duration = 632
<<<<<<< Switching WiFi Networks >>>>>>>
[ 17613][V][WiFiGeneric.cpp:305] _arduino_event_cb(): STA Got Same IP:192.168.1.12
[ 17614][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 17614][D][WiFiGeneric.cpp:914] _eventCallback(): STA IP: 192.168.1.12, MASK: 255.255.255.0, GW: 192.168.1.1
Attempting to connect to SSID: MySpectrumWiFi89-2G
[ 17715][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[ 17716][V][WiFiGeneric.cpp:300] _arduino_event_cb(): STA Disconnected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Reason: 8
[ 17717][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[ 17718][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 8 - ASSOC_LEAVE
WiFi.begin() duration = 33
[ 17813][V][WiFiGeneric.cpp:295] _arduino_event_cb(): STA Connected: SSID: MySpectrumWiFi89-2G, BSSID: 58:19:f8:d4:a2:8a, Channel: 11, Auth: WPA2_PSK
[ 17814][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
WiFi.status() = 0, total duration = 633
<<<<<<< Switching WiFi Networks >>>>>>>

To Reproduce

  • No known steps to reproduce

Expected behavior

  • It should connect in a single try or at least not be in an infinite loop