当前环境是虚拟机Ubuntu20,使用桥接模式进行联网,SDK是通过IDE下载获取的,可以正常编译,相关配置文件的PID等信息也已经填写完毕。
执行命令:./output/x86_64_tuyaos_demo_ipc/firmware/tuyaos_demo_ipc -m 2 -c "/home/jiayi/Documents/tuya/Projects/X86_64_TuyaOS-3.10.6/software/TuyaOS/apps/tuyaos_demo_ipc" -t "AYWfDqJHfB2j1f"
问题现象:反复提示以下信息
WIFI Get Mode [] 2
[01-01 08:00:03 ty N][a9a7][tuya_wifi_status.c:167] cur stat:7 0x311d5800 -->>
[01-01 08:00:03 ty N][a9a7][tuya_wifi_status.c:169] wifi netstat changed to:7 -->>
[01-01 08:00:03 ty N][a9a7][tuya_wifi_status.c:173] report wifi netstat[7] to callback -->>
[01-01 08:00:03 ty D][a9a7][ty_sdk_status_callback.c:86] status chaged: group[4] status[40]
[01-01 08:00:03 ty I][a9a7][ty_sdk_status_callback.c:59] online: network status MQTT connected
[01-01 08:00:03 ty D][a9a7][smart_frame.c:2497] sync chan:1
[01-01 08:00:03 ty D][a9a7][tuya_ipc_moto_mqtt.c:69] book topic start
[01-01 08:00:03 ty D][a9a7][tuya_ipc_moto_mqtt.c:75] book topic done, ret:0
[01-01 08:00:03 ty D][a9a7][ty_sdk_status_callback.c:86] status chaged: group[4] status[40]
[01-01 08:00:03 ty I][a9a7][ty_sdk_status_callback.c:59] online: network status MQTT connected
[01-01 08:00:03 ty D][a9a7][tuya_ipc_sdk_info.c:354] ipc sdk info: mqstat change to :1
[01-01 08:00:04 ty D][a9a7][simplekv.c:1133] read key:em_sys_env isFuzzy:0 skipCnt:0
[01-01 08:00:04 ty D][a9a7][simplekv.c:1164] find key:4 em_sys_env
[01-01 08:00:04 ty D][a9a7][simplekv.c:1190] key:em_sys_env find value.Len:32
[01-01 08:00:04 ty D][a9a7][tuya_svc_online_log.c:160] load env success x86_64
[01-01 08:00:04 ty D][a9a7][tuya_svc_online_log.c:163] env x86_64 same. need not to update
ens33 no wireless extensions.
WIFI Get Mode [] 2
Interface: ens33
IP Address: 192.168.31.173
Netmask: 255.255.255.0
Gateway: 192.168.31.255
WIFI mode[0] Get IP:192.168.31.173
[01-01 08:00:04 ty D][a9c7][tuya_lan_sock.c:331] reg post queue 7
[01-01 08:00:04 ty D][a9c7][tuya_lan_sock.c:331] reg post queue 8
[01-01 08:00:04 ty D][a9c7][tuya_svc_lan.c:988] udp ip: 192.168.31.173
ens33 no wireless extensions.
WIFI Get Mode [] 2
Interface: ens33
IP Address: 192.168.31.173
Netmask: 255.255.255.0
Gateway: 192.168.31.255
WIFI mode[0] Get IP:192.168.31.173
ens33 no wireless extensions.
WIFI Get Mode [] 2
Interface: ens33
IP Address: 192.168.31.173
Netmask: 255.255.255.0
Gateway: 192.168.31.255
WIFI mode[0] Get IP:192.168.31.173
ens33 no wireless extensions.
WIFI Get Mode [] 2
[01-01 08:00:05 ty D][a987][tuya_devos_health.c:69] feed watchdog
[01-01 08:00:05 ty D][7fe7][tuya_lan_sock.c:127] reg lan sock 7,read:0x559e311ccbc0
ens33 no wireless extensions.
WIFI Get Mode [] 2
[01-01 08:00:05 ty D][a9a7][smart_frame.c:2412] Start To Sync Dev:6cee48fcbb7dabcd10t8jv, dp_rept_chan:1
[01-01 08:00:05 ty D][a9a7][smart_frame.c:2802] Pack local dp, reset_flow_ctl:1,dpnum:5.
[01-01 08:00:05 ty D][a9a7][smart_frame.c:2888] Nothing To Pack
[01-01 08:00:05 ty D][a9a7][smart_frame.c:2437] OUT IS NULL
[01-01 08:00:05 ty D][a9a7][smart_frame.c:2488] Sync Finish
[01-01 08:00:06 ty D][7fe7][tuya_lan_sock.c:127] reg lan sock 8,read:0x559e311ca9e0
ens33 no wireless extensions.
WIFI Get Mode [] 2
ens33 no wireless extensions.
另外,此情况是是在main函数中,开启某循环之后,会出现这个问题,想问一下这个SDK配网虚拟机必须使用无线网卡吗还是其他的问题?虚拟机在当前桥接模式下可正常联网。
另,看到其他帖子有使用IPC TuyaOS V:6.1.6,想问一下这个版本哪里获取?我当前的IDE所有的获取的版本都是3.10.5类似这样的,谢谢。