【已解决】AP配网失败

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
Finder_H
Posts: 28

SDK版本:
ty_ipc_wr_wl_linux_sdk-TuyaOS2.3.2_ty_ipc_wr_wl_linux_sdk_5.3.41-beta.9_arm-gcc7-3-linux-musleabi_oem_wifi_wire_ble_0.0.1-beta.0.tar.gz

手机端可以连接上设备的AP热点,但是看串口信息,tuya_adapter_wifi_set_work_mode这个接口一直下发的是WWM_SOFTAP状态,根据流程说明SDK内部没有收到APP的AP配网信息?
SDK没有跳转至tuya_adapter_wifi_station_connect 接口下发SSID/PASSWD;

[05-19 00:55:32 TUYA D][tuya_ipc_p2p_common.c:248] passwd update failed [1]
[05-19 00:55:32 TUYA D][ap_netcfg.c:191] recv_data 111
[05-19 00:55:32 TUYA D][ap_netcfg.c:372] Frame Type Cannot Parse:1
[05-19 00:55:32 TUYA D][ap_netcfg.c:191] recv_data 111
[05-19 00:55:32 TUYA D][ap_netcfg.c:372] Frame Type Cannot Parse:1
[DBG][2024/05/18/14:43:18:867][<tuya_adapter_wifi_get_ip>:594]WIFI[1] Get IP:192.168.168.1

[05-19 00:55:33 TUYA D][ap_netcfg.c:191] recv_data 111
[05-19 00:55:33 TUYA D][ap_netcfg.c:372] Frame Type Cannot Parse:1
[05-19 00:55:33 TUYA D][ap_netcfg.c:191] recv_data 111
[05-19 00:55:33 TUYA D][ap_netcfg.c:372] Frame Type Cannot Parse:1
[05-19 00:55:33 TUYA D][ap_netcfg.c:191] recv_data 111
[05-19 00:55:33 TUYA D][ap_netcfg.c:372] Frame Type Cannot Parse:1
[05-19 00:55:33 TUYA D][ap_netcfg.c:191] recv_data 111
[05-19 00:55:33 TUYA D][ap_netcfg.c:372] Frame Type Cannot Parse:1
我看串口打印,新版本SDK的AP配网是不是有涉及到蓝牙配网的逻辑

Attachments
video(68).rar
(1.86 MiB) Downloaded 82 times
2024-05-20_153207_tuya_apconfig_error.log
(226.77 KiB) Downloaded 71 times

Tags:
User avatar
起个中文名
Posts: 152

Re: AP配网失败

关注下ap start接口中WF_AP_CFG_IF_S参数的情况。这个参数包含了ap的ip地址,请按照ip地址来设置ap的ip地址

Post Reply