Skip to content

Unable to connect to Wifi via USB... Not more via AP #138

Description

@autourdupc

Description

I use an ESP32-C3 brand new so I have flashed file named "espectre-2.8.0-esp32c3.bin"

After flashing perfectly, I rebooted the device and wanted to pair on my local Wifi.
After selecting the wifi in drop down list, I enter the password but it fails.
I did this 5 or 6 times.
I also tested a second Wifi but same.
Both Wifi are 2,4 and 5 Ghz (one is personal wifi, second is IoT dedicated.
Wifi come from Ubiquiti controller and antennas (3 antennas).

Then i did the same using AP connection. I select the same wifi in the drop down list and enter the same password and it seem working... But no !

Image

Steps to Reproduce

  1. Go to '...'
  2. Configure '...'
  3. Run '...'
  4. See error

Expected Behavior

I can connect the ESP32-C3 to wifi via USB link.

Actual Behavior

I cannot connect. Need to use AP link but not better

Environment

Configuration

Logs

[18:43:54][I][logger:120]: Log initialized
[18:43:54][C][safe_mode:189]: Unsuccessful boot attempts: 0
[18:43:54][D][preferences:148]: Writing 1 items: 0 cached, 1 written, 0 failed
[18:43:54][D][CSI_Filters:049]: LowPass filter initialized: cutoff=11.0 Hz, enabled=0
[18:43:54][I][MVSDetector:031]: Initialized (window=100, threshold=1.00)
[18:43:54][D][CSI_Filters:049]: LowPass filter initialized: cutoff=11.0 Hz, enabled=0
[18:43:54][I][MLDetector:034]: Initialized (window=100, threshold=5.00)
[18:43:56][D][wifi:1458]: Found networks:
[18:43:56][I][wifi:1429]: - 'QraIoT' (82:45:58:11:37:11) [redacted]▂▄▆█ Ch: 6 -61dB P:0
[18:43:56][I][wifi:1429]: - 'QraIoT' (6E:D7:9A:DD:42:CE) [redacted]▂▄▆█ Ch: 6 -84dB P:0
[18:43:56][I][wifi:1429]: - 'QraIoT' (6A:22:32:29:AD:F6) [redacted]▂▄▆█ Ch:13 -57dB P:-1
[18:43:56][I][wifi:1097]: Connecting to 'QraIoT'[redacted] (82:45:58:11:37:11)[redacted] (priority 0, attempt 1/2 in phase SCAN_CONNECTING)...
[18:44:01][W][wifi_esp32:803]: Disconnected ssid='QraIoT' bssid=82:45:58:11:37:11[redacted] reason='Auth Expired'
[18:44:01][W][wifi:1673]: Connecting to network failed (callback)
[18:44:01][D][wifi:2032]: Failed 'QraIoT'[redacted] (82:45:58:11:37:11)[redacted], priority 0 → 0
[18:44:01][D][wifi:2103]: Retry attempt 2/2 in phase SCAN_CONNECTING
[18:44:01][I][wifi:1097]: Connecting to 'QraIoT'[redacted] (82:45:58:11:37:11)[redacted] (priority 0, attempt 2/2 in phase SCAN_CONNECTING)...
[18:44:01][W][WiFiLifecycle:328][sys_evt]: WiFi disconnected
[18:44:05][W][wifi_esp32:803]: Disconnected ssid='QraIoT' bssid=82:45:58:11:37:11[redacted] reason='Auth Expired'
[18:44:05][W][wifi:1673]: Connecting to network failed (callback)
[18:44:05][D][wifi:2032]: Failed 'QraIoT'[redacted] (82:45:58:11:37:11)[redacted], priority 0 → -1
[18:44:05][D][wifi:578]: Skipping hidden retry for visible network 'QraIoT'[redacted]
[18:44:05][D][wifi:1852]: Retry phase: SCAN_CONNECTING → RESTARTING
[18:44:05][W][wifi:736]: Restarting adapter
[18:44:05][W][WiFiLifecycle:328][sys_evt]: WiFi disconnected
[18:44:06][W][wifi:1690]: Connecting to network failed
[18:44:06][D][wifi:1852]: Retry phase: RESTARTING → SCAN_CONNECTING
[18:44:06][D][wifi:1298]: Starting scan
[18:44:14][D][wifi:1458]: Found networks:
[18:44:14][I][wifi:1429]: - 'QraIoT' (6E:D7:9A:DD:42:CE) [redacted]▂▄▆█ Ch: 6 -87dB P:0
[18:44:14][I][wifi:1429]: - 'QraIoT' (82:45:58:11:37:11) [redacted]▂▄▆█ Ch: 6 -56dB P:-1
[18:44:14][I][wifi:1429]: - 'QraIoT' (6A:22:32:29:AD:F6) [redacted]▂▄▆█ Ch:13 -57dB P:-1
[18:44:14][I][wifi:1097]: Connecting to 'QraIoT'[redacted] (6E:D7:9A:DD:42:CE)[redacted] (priority 0, attempt 1/2 in phase SCAN_CONNECTING)...
[18:44:19][W][wifi_esp32:803]: Disconnected ssid='QraIoT' bssid=6E:D7:9A:DD:42:CE[redacted] reason='Auth Expired'
[18:44:19][W][wifi:1673]: Connecting to network failed (callback)
[18:44:19][D][wifi:2032]: Failed 'QraIoT'[redacted] (6E:D7:9A:DD:42:CE)[redacted], priority 0 → 0
[18:44:19][D][wifi:2103]: Retry attempt 2/2 in phase SCAN_CONNECTING
[18:44:19][I][wifi:1097]: Connecting to 'QraIoT'[redacted] (6E:D7:9A:DD:42:CE)[redacted] (priority 0, attempt 2/2 in phase SCAN_CONNECTING)...
[18:44:19][W][WiFiLifecycle:328][sys_evt]: WiFi disconnected
[18:44:23][W][wifi_esp32:803]: Disconnected ssid='QraIoT' bssid=6E:D7:9A:DD:42:CE[redacted] reason='Auth Expired'
[18:44:23][W][wifi:1673]: Connecting to network failed (callback)
[18:44:23][D][wifi:2032]: Failed 'QraIoT'[redacted] (6E:D7:9A:DD:42:CE)[redacted], priority 0 → -1
[18:44:23][D][wifi:578]: Skipping hidden retry for visible network 'QraIoT'[redacted]
[18:44:23][D][wifi:1852]: Retry phase: SCAN_CONNECTING → RESTARTING
[18:44:23][W][wifi:736]: Restarting adapter
[18:44:23][W][WiFiLifecycle:328][sys_evt]: WiFi disconnected
[18:44:24][W][wifi:1690]: Connecting to network failed
[18:44:24][D][wifi:1852]: Retry phase: RESTARTING → SCAN_CONNECTING
[18:44:24][D][wifi:1298]: Starting scan
[18:44:30][I][safe_mode:142]: Boot seems successful; resetting boot loop counter
[18:44:33][D][wifi:1458]: Found networks:
[18:44:33][I][wifi:1429]: - 'QraIoT' (6A:22:32:29:AD:F6) [redacted]▂▄▆█ Ch:13 -45dB P:-1
[18:44:33][I][wifi:1429]: - 'QraIoT' (82:45:58:11:37:11) [redacted]▂▄▆█ Ch: 6 -49dB P:-1
[18:44:33][I][wifi:1429]: - 'QraIoT' (6E:D7:9A:DD:42:CE) [redacted]▂▄▆█ Ch: 6 -90dB P:-1
[18:44:33][I][wifi:1097]: Connecting to 'QraIoT'[redacted] (6A:22:32:29:AD:F6)[redacted] (priority -1, attempt 1/2 in phase SCAN_CONNECTING)...
[18:44:34][D][preferences:148]: Writing 1 items: 0 cached, 1 written, 0 failed
[18:44:37][W][wifi_esp32:803]: Disconnected ssid='QraIoT' bssid=6A:22:32:29:AD:F6[redacted] reason='Auth Expired'
[18:44:37][W][wifi:1673]: Connecting to network failed (callback)
[18:44:37][D][wifi:2032]: Failed 'QraIoT'[redacted] (6A:22:32:29:AD:F6)[redacted], priority -1 → -1
[18:44:37][D][wifi:2103]: Retry attempt 2/2 in phase SCAN_CONNECTING
[18:44:37][I][wifi:1097]: Connecting to 'QraIoT'[redacted] (6A:22:32:29:AD:F6)[redacted] (priority -1, attempt 2/2 in phase SCAN_CONNECTING)...
[18:44:37][W][WiFiLifecycle:328][sys_evt]: WiFi disconnected
[18:44:41][W][wifi_esp32:803]: Disconnected ssid='QraIoT' bssid=6A:22:32:29:AD:F6[redacted] reason='Auth Expired'
[18:44:41][W][wifi:1673]: Connecting to network failed (callback)
[18:44:41][D][wifi:2032]: Failed 'QraIoT'[redacted] (6A:22:32:29:AD:F6)[redacted], priority -1 → -2
[18:44:41][D][wifi:578]: Skipping hidden retry for visible network 'QraIoT'[redacted]
[18:44:41][D][wifi:1852]: Retry phase: SCAN_CONNECTING → RESTARTING
[18:44:41][W][wifi:736]: Restarting adapter
[18:44:41][W][WiFiLifecycle:328][sys_evt]: WiFi disconnected
[18:44:42][W][wifi:1690]: Connecting to network failed
[18:44:42][D][wifi:1852]: Retry phase: RESTARTING → SCAN_CONNECTING
[18:44:42][D][wifi:1298]: Starting scan

# Paste logs here

Crash Debug Files (if applicable)

If your bug involves a crash (kernel panic, guru meditation, stack overflow, segmentation fault, etc.), please attach the following files to help with debugging:

  • .elf file: The compiled firmware binary with debug symbols
  • .map file: The memory map file showing symbol addresses

These files are located in your build directory:

  • ESPHome: .esphome/build/<device-name>/.pioenvs/<device-name>/firmware.elf and firmware.map

Additional Context

Add any other context about the problem here (screenshots, related issues, etc.).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions