esp32 smartconfig 不成功

yekun1996
Posts: 24
Joined: Mon Apr 12, 2021 3:53 am

esp32 smartconfig 不成功

Postby yekun1996 » Fri Aug 27, 2021 1:26 am

使用两个设备下载 smartconfig程序 发现一个可以,另一个不行,配网不成功的卡在 I (7389) smartconfig: SC version: V2.9.0 不知道为什么

I (1009) wifi:Init management short buffer num: 32
I (1019) wifi:Init dynamic tx buffer num: 32
I (1019) wifi:Init static rx buffer size: 1600
I (1019) wifi:Init static rx buffer num: 10
I (1029) wifi:Init dynamic rx buffer num: 32
I (1029) wifi_init: rx ba win: 6
I (1039) wifi_init: tcpip mbox: 32
I (1039) wifi_init: udp mbox: 6
I (1039) wifi_init: tcp mbox: 6
I (1049) wifi_init: tcp tx win: 5744
I (1049) wifi_init: tcp rx win: 5744
I (1059) wifi_init: tcp mss: 1440
I (1059) wifi_init: WiFi IRAM OP enabled
I (1059) wifi_init: WiFi RX IRAM OP enabled
I (1069) phy_init: phy_version 4660,0162888,Dec 23 2020
I (1169) wifi:mode : sta (94:b9:7e:41:5d:dc)
I (1169) smartconfig_example: event_id 02

I (1169) smartconfig_example: start connect wifi

I (3219) smartconfig_example: event_id 05

I (3219) smartconfig_example: s_retry_num:0
I (3219) smartconfig_example: retry to connect to the AP
I (3229) smartconfig_example: connect to the AP fail
I (5279) smartconfig_example: event_id 05

I (5279) smartconfig_example: s_retry_num:1
I (5279) smartconfig_example: retry to connect to the AP
I (5279) smartconfig_example: connect to the AP fail
I (7329) smartconfig_example: event_id 05

I (7329) smartconfig_example: s_retry_num:2
I (7329) smartconfig_example: connect to the AP fail
I (7389) smartconfig: SC version: V2.9.0

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: esp32 smartconfig 不成功

Postby ESP_Gargamel » Tue Aug 31, 2021 2:05 am

你先看下你代码的逻辑,从 log 上看,你在能获取到 ssid 和 password 的情况下还是起了 smartconfig。可以是在不能获取到的时候起 smartconfig,其他情况不起。然后再加上复位功能,清除 ssid 和 password。当前你可以 idf.py erase_flash 再试一下。

Who is online

Users browsing this forum: No registered users and 124 guests