ESP32S3真愁死了,升级到4.4.4后wifi总是报auth -> init (200)

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

ESP32S3真愁死了,升级到4.4.4后wifi总是报auth -> init (200)

Postby X二X二X二X » Sat Mar 18, 2023 2:45 am

(3183) wifi:new:<13,2>, old:<1,0>, ap:<255,255>, sta:<13,2>, prof:1
I (3184) wifi:state: init -> auth (b0)
I (4184) wifi:state: auth -> init (200)
I (4185) wifi:new:<13,0>, old:<13,2>, ap:<255,255>, sta:<13,2>, prof:1
I (4186) ESP32_UDP: wifi disconnect reason:2
I (6595) ESP32_UDP: wifi disconnect reason:205

WIFI 账号,密码,模式都没有问题。
采用omnipeek抓包根本就没看到有请求包发出来,idf打印输出reason:2,三块板子,包括老板子也不行。
不知道哪里设置有问题。
路由器也换了俩,开始看到有说双频合一可能有问题,换了单频老路由问题同在。
WIFI底层代码是lib形式也看不到,所以也不能具体分析问题原因,厂家的FAE恢复速度也不给力。
下面是解决过程。
1、现在确认 WIFI 账号、密码、MODE、 authmode 都是设置无误。
2、更换路由问题继续存在。
3、采用omnipeek 空中抓包,没有发现ESP32 WIFI MAC号,对应请求包,也就是说wifi连接没有建立。
4、加大esp_wifi_set_max_tx_power(80)也没有变化。
5、提高信号过滤也没有效果。
wifi_config_t wifi_config =
{
.sta = {
.ssid = GATEWAY_SSID,
.password = GATEWAY_PASSWORD,
.scan_method=WIFI_FAST_SCAN,
.threshold.authmode = WIFI_AUTH_WPA_WPA2_PSK,
.bssid_set=false,
.threshold.rssi=-60,//-127
.pmf_cfg =
{
.capable = true,
.required = false
},
},
};
6、烧入micpython固件下开发测试WIFI
报错误码:RuntimeError: Wifi Unknown Error 0x1101
现在没招了,现在不知道ESP32 nvs存储的默认参数有问题,还是升级到IDF4.4.4后,wifi组件或者库有问题,或者sdkconfig设置问题,不想鼓捣回退乐鑫库,环境搭建怪麻烦,实在不行乐鑫方案不能用了。

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: ESP32S3真愁死了,升级到4.4.4后wifi总是报auth -> init (200)

Postby ESP_ICY » Tue Mar 21, 2023 9:37 am

从 LOG 来看,auth -> init (200)表示 Auth 超时,然后后面打印了连接失败,后面打印的 RuntimeError: Wifi Unknown Error 0x1101 这个和 micropython 有关,需要和 micropython 确认,我这边基于 IDF V4.4.4 编了个 Wi-Fi 连接 station 的固件,SSID 为 k, 密码为 espressif,你可以把这个固件烧录到 0 看看是否可以正常使用。
test.zip
(383.18 KiB) Downloaded 209 times

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

Re: ESP32S3真愁死了,升级到4.4.4后wifi总是报auth -> init (200)

Postby X二X二X二X » Thu Mar 30, 2023 1:23 am

测试了,不行。
设置:
esp.png
esp.png (7.92 KiB) Viewed 1385 times
I (5311) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (5311) wifi:state: init -> auth (b0)
I (6311) wifi:state: auth -> init (200)
I (6311) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (6321) wifi station: retry to connect to the AP
I (6321) wifi station: connect to the AP fail
I (8721) wifi station: retry to connect to the AP
I (8721) wifi station: connect to the AP fail
I (8791) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (8791) wifi:state: init -> auth (b0)
I (9791) wifi:state: auth -> init (200)
I (9801) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (9801) wifi station: retry to connect to the AP
I (9801) wifi station: connect to the AP fail
I (12201) wifi station: connect to the AP fail
I (12201) wifi station: Failed to connect to SSID:k, password:espressif
我在虚拟机重新搭建V4.4.4环境,结果一样芯片为ESP32S3FH4R2,同时测试原来在4.3版本能用板子(ESP32S2)在4.4下面WIFI也是不行
也是提示授权错误

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

Re: ESP32S3真愁死了,升级到4.4.4后wifi总是报auth -> init (200)

Postby X二X二X二X » Thu Mar 30, 2023 3:44 am

采用空中抓包omnipeek看了,配置一下AP和STA过滤条件,
esp2.png
esp2.png (37.78 KiB) Viewed 1376 times
可以看到ESP32S3根本没有rsp响应包发出来,乐鑫的FAE能看到?

codeblue
Posts: 1
Joined: Thu Jan 18, 2024 2:20 am

Re: ESP32S3真愁死了,升级到4.4.4后wifi总是报auth -> init (200)

Postby codeblue » Wed Mar 06, 2024 3:30 am

楼主有用到 Flash 加密吗?

Who is online

Users browsing this forum: No registered users and 45 guests