[root@/sd]# ./gdbserver 192.168.60.96:1111 EasyCam  &
[root@/sd]# Process EasyCam created; pid = 578
Listening on port 1111
Remote debugging from host 192.168.60.96
[LOG_I][RingBuffer.c:  459] Create ring buffer success, bufName:LogBuf, usrName:LogWriter, memAddr:0x77ce1008, usrIndex:0
[LOG_I][RingBuffer.c:  459] Create ring buffer success, bufName:LogBuf, usrName:LogReader, memAddr:0x77ce1008, usrIndex:0
[LOG_I][FactoryData.c:   54] Read factory data success, len:812
[LOG_W][FactoryData.c:   98] Station Sn not exist
[LOG_W][main.c:   89] Use tuya platform
[LOG_I][PDTParam.c:   58] Read PDT param success, len:2420
[LOG_I][PDTParam.c:  165] Read PDT param success, size:2420
[LOG_I][PDTParam.c:  195] PDT param check success, crc:0x6ad5cc76
[LOG_W][AppConfig.c:  120] Start read configs, size:0x1318
[LOG_I][AppConfig.c:   47] Read app data success, len:4888
[LOG_I][AppConfig.c:   47] Read app data success, len:4888
[LOG_W][AppConfig.c:  123] Read configs complete
[DBG_][main.c:  178] *************************************************
[DBG_][main.c:  179] FW compile date =[Jan 19 2024 12:59:26]
[DBG_][main.c:  180] BUILD_FW_TYPE_VER: 1
[DBG_][main.c:  181] FW_VER_CODE      : 1000
[DBG_][main.c:  182] modelName        : D2PT
[DBG_][main.c:  183] customerName     : STD
[DBG_][main.c:  184] *************************************************
[DBG_][AVTask.c:  122] enter av_task_app_main
[DBG_][AVStream.c: 1172] Start video stream 
[DBG_][AVStream.c:  227] imp_system_init start
[DBG_][AVStream.c:  236] IMP_ISP_Open succ
[DBG_][NetTask.c:  563] enter net_task_app_main
sh: write error: Device or resource busy
sh: write error: Device or resource busy
[LOG_I][DevStatusLedTask.c:  210] LED started
[LOG_I][DevStatusLedTask.c:  127] led_set led = 2 status = 1
[LOG_W][SdCard.c:  820] enter sd_card_task_app_main
[LOG_I][DevMngTask.c:  330] enter dev_mng_task_app_main
[LOG_I][UpgradeTask.c:  694] enter upgrade_task_app_main
sh: write error: Device or resource busy
[LOG_I][EasyCamTask.c:  678] enter easycam_task_app_main
[DBG_][TuyaService.c:  562] initTuyaService => Tuya SDK Version: < TuyaOS V:6.1.1 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 >
< BUILD AT:2024_01_19_11_03_35 BY dandi.guo FOR tuyaos-ipc AT T23_uclibc >
IOT DEFS < WIFI_GW:1 DEBUG:0 KV_FILE:0 LITTLE_END:1 SL:1 OPERATING_SYSTEM:100 RELIABLE_TRANSFER:0 >
 
[DBG_][TuyaService.c:  542] tuya_init_get_env_cfg => pid:cvl9vkajuag8etrx, uuid:yy11f2a0f48d3263a866, auth_key:ZZidB9FX033L886HW6wt2FJROxrTp1DJ, fw version:10.0.0[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[LOG_I][RecordTask.c:  114] enter record_task_app_main
[DBG_][main.c:  260] start main CmdLoop!!!
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_system,stackDepth:6144,totalstackDepth:10240,priority:3
[LOG_I][DevKeyScanTask.c:  128] start key_task_main
[01-01 00:00:00 tackDepth:5120,totalstackDepth:15360,priority:4ighpri,st
sh: write error: Device or resource busy
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:health_monitor,stackDepth:1536,totalstackDepth:16896,priority:5
[01-01 00:00:00 ty I][mqc_app.c:429] mqc app init ...
[01-01 00:00:00 ty I][kv_storge.c:45] Init Kvs With File:/tuya_config/
[01-01 00:00:00 ty N][tuya_tls.c:852] uni_random_init...
sh: write error: Device or resource busy
[LOG_W][NightVision.c:  281] IRCut status in uboot is day
[LOG_I][NightVision.c:   63] close_infra_led
[01-01 00:00:00 ty N][tuya_tls.c:279] tuya_tls_rand_init ok!
[01-01 00:00:00 ty N][tuya_wifi_connect.c:289] mf is open need stop fastconnect
[01-01 00:00:00 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:97] media adapter init success. avaliable_res_size:5000
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:465] insert media info node success! device:[0] channel:[0]
[DBG_][TuyaMediaService.c: 1315] video_bitrate 1024, video_fps 15[01-01 00:00:00 ty D][tuya_ring_buffer.c:637] Init Ring Buffer. ch0st0tr0 bitrate:1024 fps:15
[01-01 00:00:00 ty D][tuya_ring_buffer.c:660] Ring buffer malloc 1310720 bytes for ch0st0tr0, max frame size 196608
[01-01 00:00:00 ty I][tuya_ring_buffer.c:681] Init Ring Buffer success: ch0st0tr0 size:1310720 nodes:150
[DBG_][TuyaMediaService.c: 1321] init ring buffer success => stream_type:0 
[DBG_][TuyaMediaService.c: 1315] video_bitrate 512, video_fps 15[01-01 00:00:00 ty D][tuya_ring_buffer.c:637] Init Ring Buffer. ch0st0tr1 bitrate:512 fps:15
[01-01 00:00:00 ty D][tuya_ring_buffer.c:660] Ring buffer malloc 655360 bytes for ch0st0tr1, max frame size 98304
[01-01 00:00:00 ty I][tuya_ring_buffer.c:681] Init Ring Buffer success: ch0st0tr1 size:655360 nodes:150
[DBG_][TuyaMediaService.c: 1321] init ring buffer success => stream_type:1 
[DBG_][TuyaMediaService.c: 1303] audio_sample 8000, audio_databits 16, audio_fps 25
[01-01 00:00:00 ty D][tuya_ring_buffer.c:637] Init Ring Buffer. ch0st0tr9 bitrate:125 fps:25
[01-01 00:00:00 ty D][tuya_ring_buffer.c:660] Ring buffer malloc 160000 bytes for ch0st0tr9, max frame size 23936
[01-01 00:00:00 ty I][tuya_ring_buffer.c:681] Init Ring Buffer success: ch0st0tr9 size:160000 nodes:250
[DBG_][TuyaMediaService.c: 1321] init ring buffer success => stream_type:9 
[DBG_][TuyaService.c:  449] tuya_ipc_start_sdk start, mode:1
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:272
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[258]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][tuya_wifi_link.c:762] tuya wifi link init mthd:0,wifi start mode:0, enable_station_ap:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:176
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[160]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:83] start wifi link params validate, nc_tp:6 md:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:105] gw_wsm.nc_tp:6
[01-01 00:00:00 ty N][tuya_wifi_link.c:106] gw_wsm.md:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:176
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[160]
[DBG_][TuyaService.c:  604] initTuyaService => succ!!!
[LOG_I][NightVision.c:   78] ircut_day
[LOG_W][DevWatchdog.c:   36] debug mode, dis_watchdog!!!
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:494] Last reset reason: 7
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:272
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[258]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:176
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[160]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:299] gw_cntl->gw_wsm.stat:2
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_di isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:3 gw_di
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_di find value.Len:704
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:is_stride isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:8 is_stride
[01-01 00:00:00 ty D][simplekv.c:1185] key:is_stride find value.Len:16
[01-01 00:00:00 ty D][tuya_devos_stride.c:55] stride from flash: 0.
[01-01 00:00:00 ty D][tuya_devos_stride.c:83] ver no change.
[01-01 00:00:00 ty N][tuya_svc_devos.c:347] gw_cntl->gw_if.abi:0 input:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:348] gw_cntl->gw_if.product_key:cvl9vkajuag8etrx, input:cvl9vkajuag8etrx
[01-01 00:00:00 ty N][tuya_svc_devos.c:349] gw_cntl->gw_if.tp:0, input:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_ai isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:11 gw_ai
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_ai find value.Len:592
[01-01 00:00:00 ty D][ws_db_gw.c:454] gw_ai read ret:0
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [http://a.tuyacn.com/d.json]<->[42.192.25.216]
[DBG_][AVStream.c:  246] IMP_ISP_AddSensor succ
[DBG_][AVStream.c:  255] IMP_ISP_EnableSensor succ
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [https://a6.tuyacn.com/d.json]<->[81.69.183.170]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [https://a3.tuyacn.com/d.json]<->[81.69.183.170]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m2.tuyacn.com:1883]<->[42.192.30.165]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m6.tuyacn.com:8886]<->[121.5.96.27]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m3.tuyacn.com:8886]<->[121.5.96.27]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [baal.tuyacn.com:443]<->[42.192.35.108]
[01-01 00:00:00 ty D][simplekv.c:1128] read key:000003f9fd isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:9 000003f9fd
[01-01 00:00:00 ty D][simplekv.c:1185] key:000003f9fd find value.Len:1520
[01-01 00:00:00 ty D][ws_db_gw.c:531] schema 000003f9fd read success
[01-01 00:00:00 ty D][tuya_devos_utils.c:1119] create dev_cntl Success 
[01-01 00:00:00 ty N][tuya_svc_devos.c:523] enter success_proc
[LOG_I][tkl_wifi.c:  519] hwl_wf_get_mac[98:03:CF:62:C9:6F]
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:9803cf62c96f
[01-01 00:00:00 ty D][tuya_devos_utils.c:295] timer ID:11546888
[LOG_I][EasyCamTask.c:  734] upgrade_status:0
[LOG_I][EasyCamTask.c:  735] upgrade_err_code:0
[LOG_I][EasyCamTask.c:   84] easycam_task_handle_msg, msg_id:0x7, msg_param:0
[LOG_I][DevMngTask.c:  222] devmng_task_handle_msg, msg_id:0x6, msg_param:0x1
[LOG_I][DevStatusLedTask.c:  127] led_set led = 2 status = 2
[DBG_][AVStream.c:  263] IMP_System_Init succ
[DBG_][AVStream.c:  274] IMP_ISP_EnableTuning succ
[DBG_][AVStream.c:  311] ImpSystemInit success
[01-01 00:00:00 ty D][tuya_svc_upgrade.c:1291] tuya svc upgrade init success!
[01-01 00:00:00 ty D][simplekv.c:1128] read key:rcs.active isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:7 rcs.active
[01-01 00:00:00 ty D][simplekv.c:1185] key:rcs.active find value.Len:624
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[612]
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca_cnt isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:6 tls_ca_cnt
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca_cnt find value.Len:16
[01-01 00:00:00 ty D][tuya_cert_manager.c:467] tls_ca_cnt:1 and parse:1
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca0 find value.Len:736
[01-01 00:00:00 ty D][tuya_cert_manager.c:497] Parse DER tls_ca0:540 success
[01-01 00:00:00 ty D][tuya_register_center.c:308] def rcs url0:h3-ay.iot-dns.com
[01-01 00:00:00 ty D][tuya_register_center.c:311] def rcs urlx:h6-ay.iot-dns.com
[01-01 00:00:00 ty D][tuya_cert_manager.c:956] psk key was 2.0
[01-01 00:00:00 ty D][tuya_cert_manager.c:897] psk_id len:49
[01-01 00:00:00 ty D][tuya_cert_manager.c:898] psk_id_arr 49 <0xb0bd68>
02 7c 3f 67 4d 68 95 d0 38 a8 c6 68 63 7e 3f 24 69 41 c6 3a 83 63 60 bf 56 24 c4 1d 63 d7 47 b1 5c 97 f5 e2 51 3d 50 8d b5 19 f0 f5 97 db d6 df 2d 

[01-01 00:00:00 ty D][tuya_cert_manager.c:1058] cert manager init
[01-01 00:00:00 ty D][simplekv.c:1128] read key:kv.meta.report isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][ty_meta_report.c:97] meta in kv {"metas":{}}
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:300 cnt:3
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:302 cnt:4
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:304 cnt:5
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:307 cnt:6
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:308 cnt:7
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:312 cnt:8
[01-01 00:00:00 ty D][tuya_ipc_mqtt_subscribe.c:292] iot_register_extra_mqt_cb done
[01-01 00:00:00 ty D][tuya_svc_devos.c:760] state change from 0 to 3
[01-01 00:00:00 ty D][tuya_wifi_reset.c:559] reset init mthd:0, short timer:0 long timer:0
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:424] do proxy actived work,mode:5,stat:2,nc_tp:6
[01-01 00:00:01 ty N][tuya_svc_devos.c:216] __devos_init_evt success
[01-01 00:00:01 ty N][tuya_svc_devos.c:66] already bind
[01-01 00:00:01 ty E][tuya_ipc_sdk_init.c:370] gw status changed to [3], but not notify

[01-01 00:00:01 ty I][mqc_app.c:463] mqc app start ...
[01-01 00:00:01 ty D][mqc_app.c:506] MQTT Protocol URL:m6.tuyacn.com:8886 Port:8883
i264e[info]: profile High, level 5.0
[01-01 00:00:01 ty D][tuya_iot_wifi_api.c:443] register wifi network monitor. interval:1
[DBG_][TuyaService.c:  454] tuya_ipc_start_sdk complete
[01-01 00:25:14 ty I][tal_thread.c:185] thread_create name:mqtt_thread,stackDepth:9216,totalstackDepth:26112,priority:4
[01-01 00:25:14 ty D][mqc_app.c:550] mqtt send topic:smart/device/out/6c473d08d4b9a4e2c7bv2i
[01-01 00:25:14 ty D][mqc_app.c:552] mqtt-media send topic:d/m/o/6c473d08d4b9a4e2c7bv2i
[01-01 00:25:14 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 0 -> 1
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:64 cnt:9
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:22 cnt:10
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:55 cnt:11
[01-01 00:25:14 ty D][simplekv.c:1128] read key:timer_arr isFuzzy:0 skipCnt:0
[01-01 00:25:14 ty D][simplekv.c:1156] no key find
[01-01 00:25:14 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:25:14 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:25:14 ty D][tuya_svc_timer_task.c:312] no timer
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:13 cnt:12
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:15 cnt:13
[01-01 00:25:14 ty D][tuya_svc_upgrade.c:1312] upgrade active success
[01-01 00:25:14 ty D][tuya_svc_online_log.c:189] mqtt log topic init log/realtime/6c473d08d4b9a4e2c7bv2i
[01-01 00:25:14 ty D][tuya_svc_online_log.c:190] mqtt log topic init log/runstat/6c473d08d4b9a4e2c7bv2i
[01-01 00:25:14 ty D][tuya_svc_online_log.c:245] svc online log active success
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:11 cnt:14
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:41 cnt:15
[01-01 00:25:14 ty D][mqc_app.c:103] mq_pro:27 cnt:16
[01-01 08:25:14 ty D][simplekv.c:1128] read key:wf_pt isFuzzy:0 skipCnt:0
[01-01 08:25:14 ty D][simplekv.c:1156] no key find
[01-01 08:25:14 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 08:25:14 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 08:25:14 ty D][wf_protect.c:1621] wifi protect ap info init
[01-01 08:25:14 ty D][tuya_wifi_connect.c:388] __wifi_net_conn.
[01-01 08:25:14 ty D][tuya_wifi_connect.c:264] status:0,mode:5
[01-01 08:25:14 ty D][tuya_wifi_connect.c:392] __wifi_net_conn, enable_station_ap:0
[DBG_][tkl_wifi.c:  464] enter tkl_wifi_stop_ap
[LOG_I][tkl_wifi.c:  526] hwl_wf_wk_mode_set, mode:2
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 0
[01-01 08:25:14 ty D][tuya_wifi_connect.c:264] status:5,mode:2
[01-01 08:25:14 ty D][tuya_wifi_connect.c:424] start wf connect, ssid:tuya, pwd:tuya
[01-01 08:25:14 ty D][tal_wifi_reconnet.c:91] wifi auto reconn ssid tuya
[DBG_][tkl_wifi.c:  697] tkl_wifi_station_connect => ssid:tuya, passwd:tuya
[LOG_I][NetTask.c:   77] net_task_handle_msg, msg_id:0xc, msg_param:0
[LOG_I][NetTask.c:  193] NET_TASK_MSG_ID_CONNECT_TO_AP
[DBG_][tkl_wifi.c:   76] tuya_wifi_set_StationState changed, from state[0] to state[1]
[LOG_I][WiFiManager.c:  772] connectToAP, ssid:tuya, password:tuya
[DBG_][WiFiManager.c:  805] connectToAP => ip is ready!!!
[LOG_I][WiFiManager.c:  820] ip: 192.168.60.102
[LOG_I][WiFiManager.c:  823] WiFi connection complete, errorCode:0
[DBG_][tkl_wifi.c:   76] tuya_wifi_set_StationState changed, from state[1] to state[6]
[LOG_I][EasyCamTask.c:   84] easycam_task_handle_msg, msg_id:0x7, msg_param:0
[LOG_I][EasyCamTask.c:   84] easycam_task_handle_msg, msg_id:0x8, msg_param:0
[LOG_I][EasyCamTask.c:  149] ip:192.168.60.102, mask:255.255.255.0, gate:192.168.60.1, dns1:114.114.114.114, dns2:8.8.8.8
[LOG_W][EasyCamTask.c:  161] Connect to router success
[LOG_I][EasyCamTask.c:  189] Set sleep at tick:1526024
i264e[info]: profile High, level 2.2
[DBG_][tkl_wifi.c:   76] tuya_wifi_set_StationState changed, from state[6] to state[1]
[DBG_][tkl_wifi.c:   97] tuya_wifi_set_StationState => report 2 event complete!!!
[01-01 08:25:14 ty D][tal_thread.c:204] Thread:mqtt_thread Exec Start. Set to Running Stat
[LOG_I][EasyCamDiscovery.c:  339] start discovery service success, socket:21
[LOG_I][DevMngTask.c:  222] devmng_task_handle_msg, msg_id:0x6, msg_param:0x2
[LOG_I][DevStatusLedTask.c:  127] led_set led = 2 status = 4
[LOG_I][EasyCamDiscovery.c:  243] Start listen discovery port
i264e[info]: profile High, level 2.2
[LOG_I][Osd.c:  198] Osd group:0 created
[LOG_I][Osd.c:  198] Osd group:1 created
[LOG_I][Osd.c:  293] Osd group:0 handle:2 created
[LOG_I][Osd.c:  293] Osd group:0 handle:3 created
[LOG_I][Osd.c:  293] Osd group:0 handle:4 created
[LOG_I][Osd.c:  293] Osd group:0 handle:5 created
[LOG_I][Osd.c:  293] Osd group:0 handle:6 created
[LOG_I][Osd.c:  293] Osd group:1 handle:7 created
[LOG_I][Osd.c:  293] Osd group:1 handle:8 created
[LOG_I][Osd.c:  293] Osd group:1 handle:9 created
[LOG_I][Osd.c:  293] Osd group:1 handle:10 created
[LOG_I][Osd.c:  293] Osd group:1 handle:11 created
[DBG_][AVStream.c: 1265] Start video stream success!!!
[LOG_I][RingBuffer.c:  462] Create ring buffer success, bufName:MainVideo, usrName:Encoder, memAddr:0x67a90008
[LOG_I][RingBuffer.c:  462] Create ring buffer success, bufName:SubVideo, usrName:Encoder, memAddr:0x67a4d008
[LOG_I][Osd.c:  428] Osd timestamp length changed, oldLen:0, newLen:17
[LOG_I][Osd.c:  428] Osd timestamp length changed, oldLen:0, newLen:17
[DBG_][AVStream.c:  838] *****Got first video frame, chn: 1
[DBG_][AVStream.c:  838] *****Got first video frame, chn: 0
warn: shm_init,53shm init already
[DBG_][AVStream.c: 1431] av_imp_audio_start_ai => succ!!!
[DBG_][AVStream.c: 1640] Enter ai AudioEnc_Thread!!!
[LOG_I][RingBuffer.c:  462] Create ring buffer success, bufName:AudioStream, usrName:Encoder, memAddr:0xb97778
[LOG_I][RingBuffer.c:  462] Create ring buffer success, bufName:PCMAudioStream, usrName:Encoder, memAddr:0xbca1c8
warn: shm_init,53shm init already
[DBG_][AVStream.c: 1956]  start_audio_stream => succ!!!
INFO(jzdl): jzdl version:1.4.0(00010400_0a593ef)  built:20230925-1744(4.7.2 c)
[DBG_][AVStream.c: 1754] Enter AudioOutput_Thread_Proc!!!
[LOG_I][RingBuffer.c:  459] Create ring buffer success, bufName:AudioPlay, usrName:Player, memAddr:0xcc8388, usrIndex:0
INFO(persondet): Ingenic DL PersonDet Promotion Version:0.0.8(00000008_111fcc8)  built:20231008-1729(5.4.0 simd)
param frameWidth: 640 frameHeight: 360  sense: 4 score: 0.500000 detdist: 0 ptime: 0 count: 0 mod: 0 enable_perm: 0 enable_move: 0 track_mode: 0 observation_period: 5 active_count: 2 move_scale: 1.000000
[DBG_][AIProcess.c:  776] AI_Detect_JzIvsInit => succ!!!
[DBG_][AIProcess.c:  382] push motion detect event!!! 
[LOG_I][EasyCamTask.c:   84] easycam_task_handle_msg, msg_id:0x1f, msg_param:0x172696
[DBG_][tkl_wifi.c:   76] tuya_wifi_set_StationState changed, from state[1] to state[6]
[DBG_][tkl_wifi.c:   97] tuya_wifi_set_StationState => report 0 event complete!!!
[01-01 08:25:18 ty D][tuya_wifi_connect.c:430] wf connect success!
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:18 ty N][tuya_wifi_status.c:168] cur stat:6  0x45bc30 -->>
[01-01 08:25:18 ty N][tuya_wifi_status.c:171] wifi netstat changed to:6  -->>
[01-01 08:25:18 ty N][tuya_wifi_status.c:175] report wifi netstat[6] to callback  -->>
[DBG_][TuyaService.c:  216] status chaged: group[2] status[11]
[DBG_][TuyaService.c:  229] status ignore. cb is null.
[01-01 08:25:18 ty N][tal_wifi_reconnet.c:208] wifi status changed to 2
[01-01 08:25:18 ty D][tal_wifi_reconnet.c:228] wifi connect wait 0-1
[01-01 08:25:18 ty N][tal_wifi_reconnet.c:208] wifi status changed to 0
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:18 ty D][tuya_svc_devos.c:770] set netcfgstat, stage:2, status:0
[01-01 08:25:18 ty D][tuya_ble_svc.c:1369] ble get conn stat:4
[01-01 08:25:18 ty D][tuya_wifi_link.c:286] stat:6
[01-01 08:25:18 ty D][tuya_svc_netmgr_linkage.c:117] link[2] is_up[1] active_link[1] status[0]
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.60.102
[01-01 08:25:18 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 1
[01-01 08:25:18 ty D][uni_network.c:246] use dynamic dns ip:121.5.96.27 for domain:m6.tuyacn.com
[01-01 08:25:18 ty D][tcp_transporter.c:79] bind ip:c0a83c66 port:18702 ok
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:18 ty N][tuya_wifi_status.c:168] cur stat:6  0x45bc30 -->>
[01-01 08:25:18 ty I][tal_thread.c:185] thread_create name:lan_sock_loop,stackDepth:4096,totalstackDepth:30208,priority:3
[01-01 08:25:18 ty D][tuya_lan_sock.c:312] init sock loop success
[01-01 08:25:18 ty D][tuya_wifi_link.c:209] reg wifi lan enable
[01-01 08:25:18 ty D][tuya_svc_lan.c:2490] lan init success
[01-01 08:25:18 ty D][tal_wifi_reconnet.c:241] wifi connected in wait
[01-01 08:25:18 ty D][tal_thread.c:204] Thread:lan_sock_loop Exec Start. Set to Running Stat
[01-01 08:25:18 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 08:25:18 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-01 08:25:18 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 08:25:18 ty D][tuya_tls.c:727] load tuya cert.
[01-01 08:25:18 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6-ay.iot-dns.com
[01-01 08:25:18 ty D][tuya_cert_manager.c:236] tuya public url
[01-01 08:25:18 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-01 08:25:18 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 08:25:18 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 08:25:18 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-01 08:25:18 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:938] mqtt connect success
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 4
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:977] mqtt topics cnt 1
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:991] send mqtt subscribe success
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 4 -> 5
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:1016] mqtt subscribe success
[01-01 08:25:18 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 5 -> 6
[01-01 08:25:18 ty D][mqc_app.c:383] mqtt connect success
[01-01 08:25:18 ty D][smart_frame.c:2440] sync chan:1
[01-01 08:25:18 ty D][tuya_ipc_moto_mqtt.c:69] book topic start
[01-01 08:25:18 ty D][tuya_ipc_moto_mqtt.c:75] book topic done, ret:0
[DBG_][TuyaService.c:  216] status chaged: group[4] status[30]
[01-01 08:25:19 ty D][simplekv.c:1128] read key:em_sys_env isFuzzy:0 skipCnt:0
[01-01 08:25:19 ty D][simplekv.c:1159] find key:4 em_sys_env
[01-01 08:25:19 ty D][simplekv.c:1185] key:em_sys_env find value.Len:32
[01-01 08:25:19 ty D][tuya_svc_online_log.c:145] load env success T23_uclibc
[01-01 08:25:19 ty D][tuya_svc_online_log.c:148] env T23_uclibc same. need not to update
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:19 ty D][tuya_lan_sock.c:331] reg post queue 31
[01-01 08:25:19 ty D][tuya_lan_sock.c:331] reg post queue 32
[01-01 08:25:19 ty D][tuya_svc_lan.c:1114] udp ip: 192.168.60.102
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:23 ty D][smart_frame.c:2357] Start To Sync Dev:6c473d08d4b9a4e2c7bv2i, dp_rept_chan:1
[01-01 08:25:23 ty D][smart_frame.c:2692] Pack local dp, reset_flow_ctl:1,dpnum:22.
[01-01 08:25:23 ty D][smart_frame.c:2781] Nothing To Pack
[01-01 08:25:23 ty D][smart_frame.c:2381] OUT IS NULL
[01-01 08:25:23 ty D][smart_frame.c:2431] Sync Finish
[01-01 08:25:23 ty D][tuya_lan_sock.c:127] reg lan sock 31,read:0x471de0
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_W][TuyaService.c:  179] online: network status MQTT connected
[DBG_][AVStream.c: 1612] av_imp_ai_enable_aec_mode => mode: 0!!!
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:33 ty D][tuya_ipc_sdk_info.c:330] ipc sdk info: mqstat change to :1
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:39 ty N][tuya_wifi_status.c:168] cur stat:7  0x45bc30 -->>
[01-01 08:25:39 ty N][tuya_wifi_status.c:171] wifi netstat changed to:7  -->>
[01-01 08:25:39 ty N][tuya_wifi_status.c:175] report wifi netstat[7] to callback  -->>
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:25:43 ty D][tuya_devos_utils.c:277] set time by rtc
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:26:13 ty D][tuya_devos_utils.c:277] set time by rtc
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[01-01 08:26:19 ty D][tuya_svc_mqtt_client.c:797] mqtt_ping -->>
[01-01 08:26:19 ty D][tuya_svc_mqtt_client.c:812] mqtt_ping <<--
[01-01 08:26:19 ty D][tuya_svc_mqtt_client.c:1087] ping respond. update fail_cnt:0
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
[LOG_I][tkl_wifi.c:  746] tkl_wifi_station_get_status => status: 6
