ESP32 C3-wifi touch配网失败

Moderator: ESP_XCGuang

felix81
Posts: 3
Joined: Tue Jul 04, 2023 1:26 am

ESP32 C3-wifi touch配网失败

Postby felix81 » Tue Jul 04, 2023 1:33 am

ESP32 C3-wifi touch配网失败 ,使用esp touch V2 ,麻烦技术支持下,看看是否我们自己写的代码有问题,还是什么原因
失败log如下:
[2023-07-04 08:50:12.684]# RECV ASCII>
[0;32mI (995483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:50:13.684]# RECV ASCII>
[0;32mI (996483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:50:14.675]# RECV ASCII>
[0;32mI (997483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:50:15.674]# RECV ASCII>
[0;32mI (998483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:50:16.673]# RECV ASCII>
[0;32mI (999483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:50:17.674]# RECV ASCII>
[0;32mI (1000483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:50:18.678]# RECV ASCII>
[0;32mI (1001483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:51:03.334]# RECV ASCII>
[0;32mI (1046143) MAIN_TASK: Test time() and localtime_r(). Time: 2000-01-01 01:18:25[0m
[0;32mI (1046143) TAG: Test ctime(). Time: Sat Jan 1 01:18:25 2000
[0m
[0;32mI (1046143) TAG: Test asctime(). Time: Sat Jan 1 01:18:25 2000
[0m
data_buf_len = 7
crc = 872e
hex data:
ee c1 c0 4e 30 90 f5 60 00 07 00 01 01 06 01 12
19 87 2e


[2023-07-04 08:51:03.683]# RECV ASCII>
[0;32mI (1046483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:51:04.683]# RECV ASCII>
[0;32mI (1047483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:51:05.677]# RECV ASCII>
[0;32mI (1048483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:52:08.748]# RECV ASCII>
[0;32mI (1111553) MAIN_TASK: Test time() and localtime_r(). Time: 2000-01-01 01:19:31[0m
[0;32mI (1111553) TAG: Test ctime(). Time: Sat Jan 1 01:19:31 2000
[0m
[0;32mI (1111553) TAG: Test asctime(). Time: Sat Jan 1 01:19:31 2000
[0m
data_buf_len = 7
crc = d4d9
hex data:
ee c1 c0 4e 30 90 f5 60 00 07 00 01 01 06 01 13
1f d4 d9


[2023-07-04 08:52:09.670]# RECV ASCII>
[0;32mI (1112483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:52:10.675]# RECV ASCII>
[0;32mI (1113483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:52:11.676]# RECV ASCII>
[0;32mI (1114483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:52:12.677]# RECV ASCII>
[0;32mI (1115483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:53:13.668]# RECV ASCII>
[0;32mI (1176483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:53:14.060]# RECV ASCII>
[0;32mI (1176873) MAIN_TASK: Test time() and localtime_r(). Time: 2000-01-01 01:20:36[0m
[0;32mI (1176873) TAG: Test ctime(). Time: Sat Jan 1 01:20:36 2000
[0m
[0;32mI (1176873) TAG: Test asctime(). Time: Sat Jan 1 01:20:36 2000
[0m
data_buf_len = 7
crc = ca76
hex data:
ee c1 c0 4e 30 90 f5 60 00 07 00 01 01 06 01 14
24 ca 76


[2023-07-04 08:53:14.669]# RECV ASCII>
[0;32mI (1177483) tcp_client: WAIT STA CON[0m


[2023-07-04 08:53:15.668]# RECV ASCII>
[0;32mI (1178483) tcp_client: WAIT STA CON[0m

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: ESP32 C3-wifi touch配网失败

Postby bidrohini » Tue Jul 04, 2023 7:33 am

根据提供的日志,可以看到您在ESP32-S3板上使用ESP-Touch V2进行配网的过程中遇到了连接失败的问题。根据日志中的信息,板子一直处于"WAIT STA CON"状态,即等待与WiFi路由器建立连接。

有几个可能的原因和排查步骤可以帮助您解决该问题:

检查WiFi信息:确保您通过BLE从移动设备成功传输了正确的WiFi SSID和密码信息到ESP32-S3板上。检查日志中的数据(hex data)是否与您预期的WiFi信息匹配。

检查WiFi环境:确保您的WiFi环境正常工作,并且您的ESP32-S3板在范围内能够找到并连接到正确的WiFi路由器。可以尝试将其他设备(如手机或电脑)连接到相同的WiFi网络,以验证网络的可用性。

检查ESP32-S3的WiFi配置:确保您在ESP32-S3板上正确配置了WiFi连接参数,包括SSID和密码。您可以查看您的代码,确保在配置WiFi之前正确设置了这些参数。

调试网络连接:您可以尝试使用其他WiFi连接库或示例代码来手动连接WiFi,而不是使用ESP-Touch V2库。这将帮助您确定是ESP-Touch V2库的问题还是其他方面导致的连接失败。

更新ESP-IDF和ESP-Touch V2库:确保您使用的是最新版本的ESP-IDF和ESP-Touch V2库,以获得最新的功能和修复可能存在的错误。

如果上述步骤仍无法解决问题,建议参考ESP32-S3和ESP-Touch V2的官方文档和论坛,以获取更多关于配网故障排除和问题解决的技术支持。

felix81
Posts: 3
Joined: Tue Jul 04, 2023 1:26 am

Re: ESP32 C3-wifi touch配网失败

Postby felix81 » Tue Jul 04, 2023 8:18 am

OK,我们在来排查下,谢谢

Who is online

Users browsing this forum: No registered users and 23 guests