Skip to content

XIAO Esp32-S3 cannot connect to Wifi networks and cannot generate AP #8770

@viniciusbarozzi

Description

@viniciusbarozzi

Board

XIAO Esp32-S3

Device Description

WhatsApp Image 2023-10-13 at 09 10 01
Captura de tela 2023-10-15 131919

Hardware Configuration

Standard board

Version

v2.0.14

IDE Name

Arduino IDE 2.2.1

Operating System

Win10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

Hello, I have several XIAO Esp32-s3 and most of them cannot connect to any Wifi network or open AP for WifiManager...
I've already tried some solutions, but without success.

  • Update Arduino board and IDE package
    -Board and IDE package downgrade
  • Antenna replacement
  • Several different Wifi networks
  • Several .ino examples including WifiManager and simpler examples.
    And several other modifications.

I'm asking for your help so we can try to resolve this.

At first I'm starting to believe that it could be the Esp32 package for Arduino made available by Espressif....

Sketch

#include "WiFi.h"

// Replace with your network credentials
const char* ssid = "XXXXXXXXXX";
const char* password = "XXXXXXXXX";

void initWiFi() {
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  WiFi.setTxPower(WIFI_POWER_8_5dBm);
  Serial.print("Connecting to WiFi ..");
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print('.');
    delay(1000);
  }
  Serial.println();
  Serial.println(WiFi.localIP());
}

void setup() {
  Serial.begin(115200);

  // Set WiFi to station mode and disconnect from an AP if it was previously connected
  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  delay(100);

  initWiFi();
}

void loop() {
  
}

Debug Message

[   318][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): ConfigurConnecting to WiFi ....[  1978][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: BarozziEngineering, BSSID: 28:ee:52:27:4b:0c, Reason: 2
[  1979][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[  1987][W][WiFiGeneric.cpp:1061] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[  1993][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi Reconnect Running
[  2001][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
..[  3718][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: BarozziEngineering, BSSID: 28:ee:52:27:4b:0c, Reason: 2
[  3718][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[  3726][W][WiFiGeneric.cpp:1061] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[  3733][D][WiFiGeneric.cpp:1085] _eventCallback(): WiFi AutoReconnect Running
[  3741][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
..[  5459][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: BarozziEngineering, BSSID: 28:ee:52:27:4b:0c, Reason: 2
[  5460][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[  5467][W][WiFiGeneric.cpp:1061] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[  5474][D][WiFiGeneric.cpp:1085] _eventCallback(): WiFi AutoReconnect Running

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Area: WiFiIssue related to WiFiStatus: SolvedThe issue has been resolved and requires no further action.Type: QuestionOnly question

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions