Page 1 of 1

【已解决】AP配网失败

Posted: 2024年 May 20日 15:37
by Finder_H

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配网是不是有涉及到蓝牙配网的逻辑


Re: AP配网失败

Posted: 2024年 May 21日 16:30
by 起个中文名

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