[root@sololinker sdcard]# ./tuyaos_demo_ipc -m 2 -c . [main, 711] Jul 16 2025,13:44:42 token[] raw_path[/tmp/] cfg_path[./tuya_device_cfg.json] detect auto test enviroment, load config from ./tuya_device_cfg.json buffer is { "pid":"aqkn2swkmvj4gv47", "uuid": "uuidc3cbb98688b20a25", "authkey": "8XJbtztIpbAa1X4n67tTgba4tKTdyENN", "storage": "./", "media_path": "./", "sd_path": "/tmp/", "upgrade_file": "/tmp/upgrade.file", "app_version": "1.2.3" } s_ipc_pid: aqkn2swkmvj4gv47 s_ipc_uuid: uuidc3cbb98688b20a25 s_ipc_authkey: 8XJbtztIpbAa1X4n67tTgba4tKTdyENN s_ipc_storage: ./ s_raw_path: ./ s_ipc_sd_path: /tmp/ s_ipc_upgrade_file: /tmp/upgrade.file s_app_version: 1.2.3 SDK Version:< TuyaOS V:6.2.12 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 > < BUILD AT:2025_05_21_15_30_36 BY ci_manage FOR tuyaos-ipc AT rk1106B > IOT DEFS < WIFI_GW:1 DEBUG:0 KV_FILE:0 LITTLE_END:1 SL:1 OPERATING_SYSTEM:100 RELIABLE_TRANSFER:0 > MODE:2 LINK_TYPE:1 IP_MODE_TYPE:0 [01-01 00:00:00 ty I][31c0][tal_thread.c:185] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,pr5 [01-01 00:00:00 ty I][31c0][tal_thread.c:185] thread_create name:wq_system,stackDepth:6144,totalstackDepth:10240,p3 [01-01 00:00:00 ty I][31c0][tal_thread.c:185] thread_create name:wq_highpri,stackDepth:5120,totalstackDepth:15360,4 [01-01 00:00:00 ty I][31c0][tal_thread.c:185] thread_create name:health_monitor,stackDepth:1536,totalstackDepth:165 71, wifi_status_event_cb: WiFi : first_stat=0 [01-01 00:00:00 ty I][31c0][mqc_app.c:490] mqc app init ... [01-01 00:00:00 ty E][31c0][log_seq.c:869] logseq empty [01-01 00:00:00 ty I][31c0][kv_storge.c:45] Init Kvs With File:./ [01-01 00:00:00 ty N][31c0][tuya_tls.c:876] uni_random_init... [01-01 00:00:00 ty N][31c0][tuya_tls.c:303] tuya_tls_rand_init ok! [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:338] gw_cntl->gw_wsm.stat:0 [01-01 00:00:00 ty D][31c0][tuya_ipc_media_adapter.c:103] media adapter init success. avaliable_res_size:5000 [01-01 00:00:00 ty D][31c0][tuya_ipc_media_adapter.c:518] insert media info node success! device:[0] channel:[0] [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:0 Enable:1 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:640] video_bitrate 1024, video_fps 30 [01-01 00:00:00 ty D][31c0][tuya_ring_buffer.c:649] Init Ring Buffer. ch0st0tr0 bitrate:1024 fps:30 [01-01 00:00:00 ty D][31c0][tuya_ring_buffer.c:672] Ring buffer malloc 1310720 bytes for ch0st0tr0, max frame size8 [01-01 00:00:00 ty I][31c0][tuya_ring_buffer.c:694] Init Ring Buffer success: ch0st0tr0 size:1310720 nodes:300 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:648] init ring buffer success. channel:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:1 Enable:1 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:640] video_bitrate 512, video_fps 30 [01-01 00:00:00 ty D][31c0][tuya_ring_buffer.c:649] Init Ring Buffer. ch0st0tr1 bitrate:512 fps:30 [01-01 00:00:00 ty D][31c0][tuya_ring_buffer.c:672] Ring buffer malloc 655360 bytes for ch0st0tr1, max frame size 4 [01-01 00:00:00 ty I][31c0][tuya_ring_buffer.c:694] Init Ring Buffer success: ch0st0tr1 size:655360 nodes:300 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:648] init ring buffer success. channel:1 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:2 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:3 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:4 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:5 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:6 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:7 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:8 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:9 Enable:1 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:631] audio_sample 8000, audio_databits 16, audio_fps 25 [01-01 00:00:00 ty D][31c0][tuya_ring_buffer.c:649] Init Ring Buffer. ch0st0tr9 bitrate:125 fps:25 [01-01 00:00:00 ty D][31c0][tuya_ring_buffer.c:672] Ring buffer malloc 160000 bytes for ch0st0tr9, max frame size 6 [01-01 00:00:00 ty I][31c0][tuya_ring_buffer.c:694] Init Ring Buffer success: ch0st0tr9 size:160000 nodes:250 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:648] init ring buffer success. channel:9 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:10 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:11 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:12 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:13 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:14 Enable:0 [01-01 00:00:00 ty D][31c0][ty_sdk_media_callback.c:622] init ring buffer Channel:0 Stream:15 Enable:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:gw_bi isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1168] find key:1 gw_bi [01-01 00:00:00 ty D][31c0][simplekv.c:1194] key:gw_bi find value.Len:224 [01-01 00:00:00 ty D][31c0][tuya_ws_db.c:711] sync to protected len[223] [01-01 00:00:00 ty D][31c0][ws_db_gw.c:148] gw_bi read ret:0 [01-01 00:00:00 ty D][31c0][tuya_wifi_link.c:901] tuya wifi link init mthd:0,wifi start mode:0, enable_station_ap:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:gw_wsm isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1168] find key:2 gw_wsm [01-01 00:00:00 ty D][31c0][simplekv.c:1194] key:gw_wsm find value.Len:192 [01-01 00:00:00 ty D][31c0][tuya_ws_db.c:711] sync to protected len[188] [01-01 00:00:00 ty D][31c0][ws_db_gw.c:259] gw_wsm read ret:0 [01-01 00:00:00 ty N][31c0][tuya_wifi_link.c:85] start wifi link params validate, nc_tp:2 md:0 [01-01 00:00:00 ty N][31c0][tuya_wifi_link.c:107] gw_wsm.nc_tp:2 [01-01 00:00:00 ty N][31c0][tuya_wifi_link.c:108] gw_wsm.md:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:gw_wsm isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1168] find key:2 gw_wsm [01-01 00:00:00 ty D][31c0][simplekv.c:1194] key:gw_wsm find value.Len:192 [01-01 00:00:00 ty D][31c0][tuya_ws_db.c:711] sync to protected len[188] [01-01 00:00:00 ty D][31c0][ws_db_gw.c:259] gw_wsm read ret:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:wf_start_md isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1165] no key find [01-01 00:00:00 ty D][31c0][simplekv.c:1207] __read_kv_raw fail. -3 [01-01 00:00:00 ty D][31c0][simplekv.c:1246] __read_kv_with_decode fail. -3 [01-01 00:00:00 ty E][31c0][tuya_wifi_reset.c:675] read wf start mode err:-6 [01-01 00:00:00 ty D][31c0][tuya_wifi_reset.c:712] <__gw_upd_nc_type> wf start mode change:-6, 0->0 [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:563] Last reset reason: 7 [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:gw_di isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1168] find key:3 gw_di [01-01 00:00:00 ty D][31c0][simplekv.c:1194] key:gw_di find value.Len:672 [01-01 00:00:00 ty D][31c0][ws_db_gw.c:376] gw_di read ret:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:is_stride isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1165] no key find [01-01 00:00:00 ty D][31c0][simplekv.c:1207] __read_kv_raw fail. -3 [01-01 00:00:00 ty D][31c0][simplekv.c:1246] __read_kv_with_decode fail. -3 [01-01 00:00:00 ty D][31c0][tuya_devos_stride.c:55] stride from flash: 0. [01-01 00:00:00 ty D][31c0][tuya_devos_stride.c:62] no actived, no upgrade:0 [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:395] gw_cntl->gw_if.abi:0 input:0 [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:396] gw_cntl->gw_if.product_key:aqkn2swkmvj4gv47, input:aqkn2swkmvj4g7 [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:397] gw_cntl->gw_if.tp:0, input:0 [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:596] enter success_proc -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Adapter MAC. [Bunny Layer] Get MAC of interface wlan0 is 38:54:39:6d:29:d3. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:00 ty N][31c0][tuya_svc_devos.c:599] serial_no:3854396d29d3 [01-01 00:00:00 ty D][31c0][tuya_svc_upgrade.c:1369] tuya svc upgrade init success! [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:kv.meta.report isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1165] no key find [01-01 00:00:00 ty D][31c0][simplekv.c:1207] __read_kv_raw fail. -3 [01-01 00:00:00 ty D][31c0][simplekv.c:1246] __read_kv_with_decode fail. -3 [01-01 00:00:00 ty D][31c0][ty_meta_report.c:111] meta in kv {"metas":{}} [01-01 00:00:00 ty D][31c0][mqc_app.c:109] mq_pro:300 cnt:3 [01-01 00:00:00 ty D][31c0][mqc_app.c:109] mq_pro:302 cnt:4 [01-01 00:00:00 ty D][31c0][mqc_app.c:109] mq_pro:304 cnt:5 [01-01 00:00:00 ty D][31c0][mqc_app.c:109] mq_pro:307 cnt:6 [01-01 00:00:00 ty D][31c0][mqc_app.c:109] mq_pro:308 cnt:7 [01-01 00:00:00 ty D][31c0][mqc_app.c:109] mq_pro:312 cnt:8 [01-01 00:00:00 ty D][31c0][tuya_ipc_mqtt_subscribe.c:292] iot_register_extra_mqt_cb done [01-01 00:00:00 ty D][31c0][tuya_ipc_hardware_info.c:285] IS HARDware [01-01 00:00:00 ty D][31c0][tuya_ipc_hardware_info.c:291] IS HARDware ok [01-01 00:00:00 ty D][31c0][tuya_ipc_hardware_info.c:308] IS HARDware okok [01-01 00:00:00 ty D][31c0][tuya_ipc_hardware_info.c:252] traversal over [01-01 00:00:00 ty E][31c0][tuya_ipc_hardware_info.c:173] NO sensor info. Please check if you need. [01-01 00:00:00 ty D][31c0][tuya_ipc_hardware_info.c:115] not found device wifi info [01-01 00:00:00 ty D][31c0][tuya_ipc_hardware_info.c:355] hard info ="skillParam":"{\"type\":4,\"skill\":{\"localS} [01-01 00:00:00 ty D][31c0][simplekv.c:1137] read key:func_restrict isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][31c0][simplekv.c:1165] no key find [01-01 00:00:00 ty D][31c0][simplekv.c:1207] __read_kv_raw fail. -3 [01-01 00:00:00 ty D][31c0][simplekv.c:1246] __read_kv_with_decode fail. -3 [01-01 00:00:00 ty D][f5a7][tuya_svc_devos.c:854] state change from 0 to 1 [01-01 00:00:00 ty D][31c0][tuya_iot_wifi_api.c:452] register wifi network monitor. interval:1 [01-01 00:00:00 ty D][f5a7][ty_sdk_status_callback.c:86] status chaged: group[1] status[9] [01-01 00:00:00 ty D][31c0][main.c:436] tuya ipc sdk start is complete [01-01 00:00:00 ty D][f5a7][ty_sdk_status_callback.c:32] __on_netcfg_start, netcfg start. You can start your own n. [01-01 00:00:00 ty I][31c0][tal_thread.c:185] thread_create name:md_proc,stackDepth:524288,totalstackDepth:541184,3 [01-01 00:00:00 ty D][3ff7][tal_thread.c:209] Thread:md_proc Exec Start. Set to Running Stat 0xa43ff780 [01-01 00:00:00 ty D][f5a7][simplekv.c:1137] read key:wf_start_md isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][f5a7][simplekv.c:1165] no key find [01-01 00:00:00 ty D][f5a7][simplekv.c:1207] __read_kv_raw fail. -3 [01-01 00:00:00 ty D][f5a7][simplekv.c:1246] __read_kv_with_decode fail. -3 [01-01 00:00:00 ty E][f5a7][tuya_wifi_reset.c:675] read wf start mode err:-6 [01-01 00:00:00 ty D][f5a7][tuya_wifi_reset.c:712] <__gw_upd_nc_type> wf start mode change:-6, 0->0 [01-01 00:00:00 ty D][f5a7][simplekv.c:1137] read key:kv.ccode.avtive isFuzzy:0 skipCnt:0 [01-01 00:00:00 ty D][f5a7][simplekv.c:1165] no key find [01-01 00:00:01 ty D][f5a7][simplekv.c:1207] __read_kv_raw fail. -3 [01-01 00:00:01 ty D][f5a7][simplekv.c:1246] __read_kv_with_decode fail. -3 ERROR: 1358, tkl_net_get_wifi_type: WIFI chip type doesn't support 253, tkl_wifi_set_work_mode: WIFI SET work mode success, set mode :station mode [01-01 00:00:01 ty D][f5a7][tuya_wifi_reset.c:596] reset init mthd:0, short timer:0 long timer:0 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:01 ty D][f5a7][tuya_wifi_netcfg.c:437] do proxy actived work,mode:2,stat:0,nc_tp:2 [01-01 00:00:01 ty D][f5a7][tuya_wifi_netcfg.c:734] nc_tp:2, md:0 253, tkl_wifi_set_work_mode: WIFI SET work mode success, set mode :station mode 55, tkl_wifi_scan_ap: #####: test func=tkl_wifi_scan_ap, line=55 wlan0 Interface doesn't support scanning. ERROR: 58, tkl_wifi_scan_ap: scan ap failed [01-01 00:00:01 ty D][f5a7][netcfg_module.c:133] type:0x10002,is_set:0 [01-01 00:00:01 ty D][f5a7][netcfg_module.c:133] type:0x10100,is_set:0 [01-01 00:00:01 ty D][f5a7][netcfg_module.c:133] type:0x10002,is_set:1 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:01 ty D][f5a7][tuya_wifi_link.c:140] get work mode:2 [01-01 00:00:01 ty D][f5a7][tuya_wifi_link.c:147] start ap netcfg, wk_md:3 ERROR: 1584, tkl_net_sta_disconnect: station disconnect failed 256, tkl_wifi_set_work_mode: WIFI SET work mode success, set mode :softap mode -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Adapter MAC. [Bunny Layer] Get MAC of interface wlan0 is 38:54:39:6d:29:d3. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] WiFi start AP. killall: wpa_supplicant: no process killed killall: udhcpc: no process killed killall: hostapd: no process killed killall: udhcpd: no process killed [Bunny Layer] IP:192.168.176.1 Netmask:255.255.255.0 Gateway:192.168.176.1 [Bunny Layer] Start:192.168.176.100 End:192.168.176.200 Configuration file: hostapd.conf -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:01 ty D][f5a7][tuya_wifi_netcfg.c:600] start ap success:SmartLife-29D3 [12472.705949] change_if: 2 to 3, 8, 2 [12472.706282] rwnx_send_msg1 (9)MM_REMOVE_IF_CFM reqcfm:1 in_[01-01 00:00:01 irqty D][f5a7][netcf:0 in_softirq:0 0 [12472.706499] change_if from 2 24:0 72.[01-01 00:00:01 70ty D][f5a7][netcf6710] chg_module.c:133] tange_if to ype:0x10100,is_se3 t:0 [01-01 00:00:01 ty D][f5a7][netcfg_module.c:133] t n_2472.714094] rwnx_cfg80211_del_statype:0x10002,is_seiot:0 comp[01-01 00:00:01 at: (nty D][f5a7][netcfullg_module.c:133] t) ype:0x10100,is_set:0 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- Using interface wlan0 with hwaddr 38:54:39:6d:29:d3 and ssid "SmartLife-29D3[01-01 00:00:01 ty N][f5a7][tuya_wifi_> " [01-01 00:00:01 ty N][f5a7][tuya_wifi_status.c:169] wifi netstat changed to:2 -->> [01-01 00:00:01 ty N][f5a7][tuya_wifi_status.c:173] report wifi netstat[2] to callback -->> [01-01 00:00:01 ty E][f5a7][tuya_ipc_sdk_init.c:392] wf nw status changed to [2], but not notify [01-01 00:00:01 ty D][f5a7][netcfg_module.c:338] netcfg module start type:0x10100 [01-01 00:00:01 ty N][f5a7][tuya_wifi_reset.c:438] timer stated, short timer:0x0, long timer:0x0 [01-01 00:00:01 ty D][f5a7][tuya_wifi_netcfg.c:815] nc_tp:2, md:0 [01-01 00:00:01 ty N][f5a7][tuya_svc_devos.c:246] __devos_init_evt success [01-01 00:00:01 ty D][f5a7][netcfg_module.c:116] start 0x10100 ret:0 [01-01 00:00:01 ty D][f5a7][netcfg_module.c:338] netcfg module start type:0x10002 [01-01 00:00:01 ty D][f5a7][ap_netcfg.c:1467] ap cfg start:65538 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:01 ty D][f5a7][ap_netcfg.c:1345] ap netcfg server ip:192.168.176.1 [12473.063661] aicwf_sdio mmc2:390b:1 wlan0: AP started: ch=0, bcmc_idx=35wlan0: interface state UNINITIALIZED->END wlan0: channel=2437 bw=[01-01 00:00:01 0 ty I][f5a7][tal_thread.c:185] thread_create name:ap_tcp_v4,stackDepth:3584,totalstackDepth:544768,priority:5 AP-ENABLED [01-01 00:00:01 ty D][9ff7][tal_thread.c:209] Thread:ap_tcp_v4 Exec Start. Set to Running Stat 0xa39ff780 [01-01 00:00:01 ty D][f5a7][netcfg_module.c:116] start 0x10002 ret:0 [01-01 00:00:01 ty D][9ff7][ap_netcfg.c:864] start TCP ap thread [01-01 00:00:01 ty D][9ff7][ap_netcfg.c:907] Waiting for a remote connection -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [12496.813869] rwnx_cfg80211_del_station_compat: (null) wlan0: STA 4e:22:e1:4f:62:ee IEEE 802.11: associated (aid 1) wlan0: AP-STA-CONNECTED 4e:22:e1:4f:62:ee [12496.814842] aicwf_sdio mmc2:390b:1 wlan0: Add sta 11 (4e:22:e1:4f:62:ee) flags=[AUTHENTICATED][ASSOCIATED] [12496.815338] debugfs: Directory '4e:22:e1:4f:62:ee' with parent 'rc' already present! [12496.815378] aicwf_sdio mmc2:390b:1: Error while (un)registering debug entry for sta 11 [12496.817416] done=1 retry_required=0 sw_retry_required=0 acknowledged=1 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi AP IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:26 ty D][9ff7][ap_netcfg.c:931] active socket num:1 [01-01 00:00:26 ty D][9ff7][ap_netcfg.c:941] recv tcp packets,tls+gcm mode [01-01 00:00:26 ty D][9ff7][ap_netcfg.c:970] new client connect. nums:1 cfd:10 ip:0xc0a8b066 [01-01 00:00:26 ty D][9ff7][tuya_tls.c:979] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:0 [01-01 00:00:26 ty D][9ff7][tuya_tls.c:988] TUYA_TLS Begin Connect :0 [01-01 00:00:26 ty D][9ff7][tuya_tls.c:1027] TUYA_TLS PSK Mode [01-01 00:00:26 ty D][9ff7][tuya_tls.c:1077] socket fd is set. set to inner send/recv to handshake [01-01 00:00:27 ty D][9ff7][tuya_tls.c:1139] handshake finish for . set send/recv to user set [01-01 00:00:27 ty D][9ff7][tuya_tls.c:1144] TUYA_TLS Success Connect :0 Suit:TLS-ECDHE-PSK-WITH-AES-128-CBC-SHA256 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:931] active socket num:1 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:141] start AP rcv_parse [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:151] recv_len:147,frame_len:143,head_len:125 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:197] Parse ssid:ShineKitOffice [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:203] Parse token:AYHl0iAsLX5Lm6 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:210] Parse passwd:xq18353256591 [01-01 00:00:27 ty D][9ff7][tuya_devos_utils.c:1539] set psk30 cfg 0 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:229] Parse reg [01-01 00:00:27 ty D][9ff7][tuya_devos_utils.c:1539] set psk30 cfg 1 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:232] app reg:{} [01-01 00:00:27 ty N][9ff7][tuya_register_center.c:237] rcs restore failed -9 [01-01 00:00:27 ty E][9ff7][ap_netcfg.c:235] save to reg center err [01-01 00:00:27 ty D][9ff7][tuya_wifi_link.c:627] app set ccode CN ERROR: 1358, tkl_net_get_wifi_type: WIFI chip type doesn't support [01-01 00:00:27 ty D][9ff7][tuya_wifi_netcfg.c:256] Ap Netcfg Finish mthd:0, type:0x10002 ssid:ShineKitOffice pass0 [01-01 00:00:27 ty D][9ff7][tuya_svc_netmgr_linkage.c:187] link[2] stage[0] type[0] [2] [01-01 00:00:27 ty D][9ff7][ty_sdk_status_callback.c:86] status chaged: group[1] status[10] [01-01 00:00:27 ty D][9ff7][ty_sdk_status_callback.c:39] __on_netcfg_stop, netcfg stop. You can stop your own netc. [01-01 00:00:27 ty D][9ff7][tuya_svc_devos.c:190] activate type 0 [01-01 00:00:27 ty D][f5a7][tuya_svc_devos_activate_token.c:112] token activate start 0x3434f0 [01-01 00:00:27 ty D][f5a7][tuya_svc_devos.c:854] state change from 1 to 2 [01-01 00:00:27 ty D][9ff7][tuya_wifi_netcfg.c:356] active event, type:0, stage:0 info->linkage:2 [01-01 00:00:27 ty D][f5a7][netcfg_module.c:413] netcfg module stop type:0x10002 [01-01 00:00:27 ty D][f5a7][ap_netcfg.c:1524] ap cfg stop:65538,1 [01-01 00:00:27 ty D][9ff7][tuya_wifi_netcfg.c:269] <__ap_nw_cfg_proc> nc_tp:4 [01-01 00:00:27 ty D][9ff7][tuya_wifi_netcfg.c:107] gw_wsm->md:0 [01-01 00:00:27 ty D][f5a7][netcfg_module.c:413] netcfg module stop type:0x10100 -------------------- [Debug Info] Enter -------------------- [01-01 00:00:27 ty D][f5a7][wifi_netcfg_frame_transporter.c:530] ----destroy Transporter,session:0x329ba8 [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:27 ty N][f5a7][tuya_wifi_netcfg.c:205] stop smt cfg mthd:0, ret:0 [01-01 00:00:27 ty N][9ff7][tuya_wifi_status.c:167] cur stat:5 0x20e64 -->> [01-01 00:00:27 ty N][9ff7][tuya_wifi_status.c:169] wifi netstat changed to:5 -->> [01-01 00:00:27 ty N][9ff7][tuya_wifi_status.c:173] report wifi netstat[5] to callback -->> [01-01 00:00:27 ty D][9ff7][ty_sdk_status_callback.c:86] status chaged: group[2] status[20] [01-01 00:00:27 ty D][9ff7][ty_sdk_status_callback.c:93] status ignore. cb is null. [01-01 00:00:27 ty D][f5a7][tuya_wifi_connect.c:319] __wifi_net_conn. -------------------- [Debug Info] Enter -------------------- [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:259] Send Parsed Result Success [01-01 00:00:27 ty D][9ff7][tuya_svc_devos.c:864] set netcfgstat, stage:0, status:0 [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [01-01 00:00:27 ty D][9ff7][tuya_svc_devos.c:886] get netcfg stat:{"type":0,"stage":0,"status":0} [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:496] tls write :122 [01-01 00:00:27 ty D][9ff7][tuya_ble_svc.c:1665] ble get conn stat:4 [01-01 00:00:27 ty D][f5a7][tuya_wifi_connect.c:217] status:5,mode:3 [01-01 00:00:27 ty D][f5a7][tuya_wifi_connect.c:321] __wifi_net_conn, enable_station_ap:0 [01-01 00:00:27 ty D][9ff7][ap_netcfg.c:496] tls write :54 253, tkl_wifi_set_work_mode: WIFI SET work mode success, set mode :station mode -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:27 ty D][f5a7][tuya_wifi_connect.c:217] status:5,mode:3 [01-01 00:00:27 ty D][f5a7][tuya_wifi_connect.c:339] start wf connect, ssid:ShineKitOffice, pwd:xq18353256591 [01-01 00:00:27 ty D][f5a7][tal_wifi_reconnet.c:92] wifi auto reconn ssid ShineKitOffice [01-01 00:00:27 ty D][f5a7][ty_sdk_status_callback.c:86] status chaged: group[2] status[22] -------------------- [Debug Info] Enter -------------------- killall: udhcpc: no process killed killall: wpa_supplicant: no process killed wlan0: interface state ENABLED->DISABLED wlan0: AP-STA-DISCONNECTED 4e:22:e1:4f:62:ee wlan0: AP-DISABLED nl80211: deinit ifname=wlan0 disabled_11b_rates=0 [12498.967418] rwnx_cfg80211_del_station_compat: (null) [12498.967453] aicwf_sdio mmc2:390b:1 wlan0: Del sta 11 (4e:22:e1:4f:62:ee) [12498.967534] deinit:macaddr:4e,22,e1,4f,62,ee [12498.967982] aicwf_sdio mmc2:390b:1 wlan0: AP Stopped [12498.969372] change_if: 3 to 2, 8, 2 [12498.969810] rwnx_send[Bunny Layer] WiFi station connect to AP. SSID:ShineKitOffice PASSWD:xq18353256591 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] WiFi stop AP. _msg1 (9)MM_REMOVE_IF_CFM reqcfm:1 in_irq:0 in_softirq:0 in_atomic:0 [12498.970048] change_if from 3 [12498.970250] change_if to 0 killall: hostapd: no process killed -------------------- [Debug Info] Leave with OPRT_OK -------------------- Successfully initialized wpa_supplicant -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:27 ty D][f5a7][tuya_wifi_connect.c:350] wf connect success! -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi Working Mode. -------------------- [Debug Info] Enter -------------------- udhcpc: started, v1.36.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.176.1 Netmask: 255.255.255.0 Gateway: 0����) -------------------- [Debug Info] Enter -------------------- -------------------- [Debug Info] Leave with OPRT_OK -------------------- [Bunny Layer] Get Wifi station status. -------------------- [Debug Info] Leave with OPRT_OK, Stat = 0 -------------------- [01-01 00:00:27 ty N][f5a7][tuya_wifi_status.c:167] cur stat:5 0x20e64 -->> udhcpc: broadcasting discover -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:28 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:276 ret:-1,errno:-18 [12501.054706] rwnx_send_sm_connect_req drv_vif_index:0 connect to ShineKitOffice(14) channel:2437 auth_type:0 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:29 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:276 ret:-1,errno:-18 [12501.438290] debugfs: Directory 'cc:d8:43:af:29:53' with parent 'rc' already present! [12501.438328] aicwf_sdio mmc2:390b:1: Error while (un)registering debug entry for sta 12 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:30 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:276 ret:-1,errno:-18 udhcpc: broadcasting discover udhcpc: broadcasting select for 192.168.31.174, server 192.168.31.1 udhcpc: lease of 192.168.31.174 obtained from 192.168.31.1, lease time 43200 deleting routers adding dns 192.168.31.1 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:31 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:32 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:33 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:34 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:35 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:36 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:37 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 -------------------- [Debug Info] Enter -------------------- [Bunny Layer] Get Wifi station IP. [Bunny Layer] Got ip information. interface: wlan0 IP: 192.168.31.174 Netmask: 255.255.255.0 Gateway: 192.168.31.1 -------------------- [Debug Info] Leave with OPRT_OK -------------------- [01-01 00:00:38 ty E][f5c7][ap_netcfg.c:1304] sendto broadcast Failed,len:290 ret:-1,errno:-18 ^C[signal_handle, 82] get signal(2) name(tuyaos_demo_ipc)