[17:53:50:888] ALW: MBL: First print. [17:53:50:991] ALW: MBL: Boot from Image 0. [17:53:50:991] ALW: MBL: Validate Image 0 OK. [17:53:51:204] ALW: MBL: Jump to Main Image (0x0800a000). [17:53:51:209] Build date: 2023/11/03 16:42:49 [17:53:51:218] === RF initialization finished === [17:53:51:298] === WiFi calibration done === [17:53:51:301] === PHY initialization finished === [17:53:51:338] === Adapter enable success === [17:53:51:338] === Tuya BLE Adapter enable complete === [17:53:51:907] [01-01 00:00:00 ty E][lr:0x812253e] magic 0xffffffff id1 65535 id2 1 [17:53:51:910] [01-01 00:00:00 ty E][lr:0x812253e] magic 0xffffffff id1 65535 id2 0 [17:53:51:997] [01-01 00:00:00 ty D][tal_thread.c:203] Thread:sys_timer Exec Start. Set to Running Stat [17:53:52:001] [01-01 00:00:00 ty I][tal_thread.c:184] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:8192,priority:5 [17:53:52:001] [01-01 00:00:00 ty I][tal_thread.c:184] thread_create name:wq_system,stackDepth:5120,totalstackDepth:13312,priority:3 [17:53:52:006] [01-01 00:00:00 ty D][tal_thread.c:203] Thread:wq_highpri Exec Start. Set to Running Stat [17:53:52:006] [01-01 00:00:00 ty I][tal_thread.c:184] thread_create name:wq_highpri,stackDepth:4096,totalstackDepth:17408,priority:4 [17:53:52:006] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:0 [17:53:52:006] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:1 [17:53:52:006] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:2 [17:53:52:011] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:3 [17:53:52:011] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:4 [17:53:52:011] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:5 [17:53:52:011] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:6 [17:53:52:011] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:7 [17:53:52:015] [01-01 00:00:00 ty D][lr:0x80e44ec] add new node,type:8 [17:53:52:015] [01-01 00:00:00 ty D][lr:0x80e470a] init watchdog, interval: 60 [17:53:52:015] [01-01 00:00:00 ty D][lr:0x80e4566] update type:7,period:10 [17:53:52:015] [01-01 00:00:00 ty D][lr:0x80e4744] watch_dog_interval:60, monitor_detect_interval:600 [17:53:52:019] [01-01 00:00:00 ty D][tal_thread.c:203] Thread:health_monitor Exec Start. Set to Running Stat [17:53:52:019] [01-01 00:00:00 ty I][tal_thread.c:184] thread_create name:health_monitor,stackDepth:2048,totalstackDepth:19456,priority:5 [17:53:52:019] [01-01 00:00:00 ty I][lr:0x8105d9c] mqc app init ... [17:53:52:024] [01-01 00:00:00 ty D][lr:0x8105c86] mq_pro:5 cnt:1 [17:53:52:024] [01-01 00:00:00 ty D][lr:0x8105c86] mq_pro:31 cnt:2 [17:53:52:024] [01-01 00:00:00 ty D][lr:0x8102656] svc online log init success [17:53:52:110] [01-01 00:00:00 ty E][lr:0x810541c] logseq empty [17:53:52:119] [01-01 00:00:00 ty D][lr:0x80dea42] init fs. Path: null [17:53:52:119] [01-01 00:00:00 ty D][lr:0x80faa40] *****************kvs_init. [17:53:52:119] [01-01 00:00:00 ty D][lr:0x811d70e] protected init. addr:0x003f9000 [17:53:52:131] [01-01 00:00:00 ty E][lr:0x811d514] protected key data is not matched magic(0x3a2d3e45),crc32(0xe2d8782c) [17:53:52:138] [01-01 00:00:00 ty N][lr:0x80fd232] sf protected init err, need backup [17:53:52:138] [01-01 00:00:00 ty N][lr:0x80fd282] key_addr: 0x3f0000 block_sz 4096 [17:53:52:152] [01-01 00:00:00 ty E][lr:0x80fd320] key data is not matched magic(0x3a2d3e45),crc32(0xe2d8782c) [17:53:52:159] [01-01 00:00:00 ty E][lr:0x80fd29a] flash is encrypted or empty [17:53:52:159] [01-01 00:00:00 ty N][lr:0x80fd262] protected not valid [17:53:52:159] [01-01 00:00:00 ty E][lr:0x80fafce] create_flash_hand_and_init err 10 [17:53:52:159] [01-01 00:00:00 ty E][lr:0x80dea5e] db init fails -1 [17:53:52:159] [01-01 00:00:00 ty E][lr:0x80e00a2] db init fails -1 [17:53:52:159] [01-01 00:00:00 ty E][tuya_iot_com_api.c:138] ret:-1 [17:53:52:171] [01-01 00:00:00 ty E][tuya_app_main.c:384] ret:-1 [17:53:52:171] [01-01 00:00:00 ty W][tuya_app_main.c:389] device_init in [17:53:52:171] [01-01 00:00:00 ty D][lr:0x80fb876] key_addr: 0x3f0000 block_sz 4096 [17:53:52:179] [01-01 00:00:00 ty E][lr:0x80fb92e] key data is not matched magic(0x3a2d3e45),crc32(0xe2d8782c) [17:53:52:284] [01-01 00:00:00 ty D][lr:0x811d70e] protected init. addr:0x003f9000 [17:53:52:302] [01-01 00:00:00 ty E][lr:0x811d514] protected key data is not matched magic(0x3a2d3e45),crc32(0xe2d8782c) [17:53:52:313] [01-01 00:00:00 ty N][lr:0x80fd232] sf protected init err, need backup [17:53:52:313] [01-01 00:00:00 ty N][lr:0x80fd282] key_addr: 0x3f0000 block_sz 4096 [17:53:52:323] [01-01 00:00:00 ty N][lr:0x80fd38e] get key: [17:53:52:324] 0x55 0x5a 0x9a 0xc3 0xfd 0x47 0x5e 0xa1 0x17 0xf9 0x25 0x21 0x8d 0x3d 0x42 0xa5 [17:53:52:334] [01-01 00:00:00 ty D][lr:0x811d72e] protected verify begin [17:53:52:343] [01-01 00:00:00 ty E][lr:0x811d614] protected key data is not matched magic(0x3a2d3e45),crc32(0xe2d8782c) [17:53:52:362] [01-01 00:00:00 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:52:374] [01-01 00:00:00 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:52:505] [01-01 00:00:00 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:52:506] [01-01 00:00:00 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:52:642] [01-01 00:00:00 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:52:644] [01-01 00:00:00 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:52:784] [01-01 00:00:00 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:52:786] [01-01 00:00:00 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:52:923] [01-01 00:00:00 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:52:925] [01-01 00:00:00 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:061] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:072] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:203] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:216] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:343] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:358] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:481] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:483] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:619] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:632] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:757] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:770] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:53:894] [01-01 00:00:01 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:53:896] [01-01 00:00:01 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:031] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:046] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:169] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:183] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:304] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:317] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:440] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:455] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:577] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:592] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:718] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:733] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:54:859] [01-01 00:00:02 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:54:861] [01-01 00:00:02 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:55:000] [01-01 00:00:03 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:55:002] [01-01 00:00:03 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:55:136] [01-01 00:00:03 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:55:138] [01-01 00:00:03 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:55:273] [01-01 00:00:03 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:55:275] [01-01 00:00:03 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:55:409] [01-01 00:00:03 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:55:411] [01-01 00:00:03 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:55:545] [01-01 00:00:03 ty N][lr:0x80fd966] block head check error, expect:magic=0x135726ab, max block_id=[0], 23], crc32=472274 [17:53:55:547] [01-01 00:00:03 ty N][lr:0x80fd9b6] block head check error, real:magic=0x8c0d28e4, block_id=52312, crc32=-1205980288 [17:53:55:682] [01-01 00:00:03 ty N][lr:0x80fd7e2] kv valid but protected invalid, format it [17:53:55:683] [01-01 00:00:03 ty D][lr:0x811d87e] protected format begin [17:53:55:801] [01-01 00:00:03 ty D][lr:0x811d8e0] protected format end 0 [17:53:55:802] [01-01 00:00:03 ty D][lr:0x811d87e] protected format begin [17:53:55:935] [01-01 00:00:03 ty D][lr:0x811d8e0] protected format end 0 [17:53:55:948] [01-01 00:00:03 ty D][lr:0x80debcc] gw_bi not found in kv, read from protected [17:53:55:948] [01-01 00:00:03 ty D][lr:0x811d902] protected read [gw_bi] [17:53:55:972] [01-01 00:00:04 ty D][lr:0x811d968] protected read ret:4 length:0 [17:53:55:973] [01-01 00:00:04 ty E][lr:0x80e28d4] wd_protected_read fails gw_bi -6 [17:53:55:987] [01-01 00:00:04 ty D][lr:0x80e2d40] gw_bi read ret:-6 [17:53:55:987] [01-01 00:00:04 ty D][lr:0x811d9c6] protected write [gw_bi][234] [17:53:56:141] [01-01 00:00:04 ty D][lr:0x811daca] protected write ret:0 [17:53:56:274] [01-01 00:00:04 ty D][lr:0x80e2d40] gw_bi write ret:0 [17:53:56:288] [01-01 00:00:04 ty D][lr:0x811d9c6] protected write [gw_wsm][140] [17:53:56:443] [01-01 00:00:04 ty D][lr:0x811daca] protected write ret:0 [17:53:56:577] [01-01 00:00:04 ty D][lr:0x80e2b1c] gw_wsm write ret:0 [17:53:56:590] [01-01 00:00:04 ty N][lr:0x80ea6b6] wifi soc init. pid:uiiyltkjmkhwumga firmwarekey:NULL ver:1.0.0 [17:53:56:590] [01-01 00:00:04 ty D][lr:0x80ee558] tuya wifi link init mthd:0,wifi start mode:4, enable_station_ap:0 [17:53:56:590] [01-01 00:00:04 ty D][lr:0x811d902] protected read [gw_wsm] [17:53:56:618] [01-01 00:00:04 ty D][lr:0x811d968] protected read ret:0 length:140 [17:53:56:631] [01-01 00:00:04 ty D][lr:0x80e2b1c] gw_wsm read ret:0 [17:53:56:631] [01-01 00:00:04 ty N][lr:0x80ee5e8] start wifi link params validate, nc_tp:0 md:0 [17:53:56:631] [01-01 00:00:04 ty N][lr:0x80ee628] wifi config method not fit [17:53:56:631] [01-01 00:00:04 ty D][lr:0x80f17de] nc_tp:10, wifi_start_mode:4 [17:53:56:631] [01-01 00:00:04 ty N][lr:0x80eddc4] reset wifi link params to factory state, nc_tp:10 md:0 mthd:0 start mode:4 [17:53:56:631] [01-01 00:00:04 ty D][lr:0x811d9c6] protected write [gw_wsm][141] [17:53:56:793] [01-01 00:00:04 ty D][lr:0x811daca] protected write ret:0 [17:53:56:936] [01-01 00:00:04 ty D][lr:0x80e2b1c] gw_wsm write ret:0 [17:53:56:938] [01-01 00:00:04 ty E][tuya_wifi_link.c:789] ret:-2819 [17:53:56:951] [01-01 00:00:04 ty D][lr:0x810a842] bt init... [17:53:56:951] [01-01 00:00:04 ty D][lr:0x810a458] get_wifi_list eanbled [17:53:56:951] [01-01 00:00:04 ty D][lr:0x810a47a] get_netcfg_stat eanbled [17:53:56:951] [01-01 00:00:04 ty D][lr:0x810a49c] get_dev_log eanbled [17:53:56:951] [01-01 00:00:04 ty D][lr:0x810a4bc] get_ap_name eanbled [17:53:56:951] [01-01 00:00:04 ty D][lr:0x811d902] protected read [gw_wsm] [17:53:56:981] [01-01 00:00:05 ty D][lr:0x811d968] protected read ret:0 length:141 [17:53:56:991] [01-01 00:00:05 ty D][lr:0x80e2b1c] gw_wsm read ret:0 [17:53:56:991] [01-01 00:00:05 ty E][lr:0x80f1834] read wf start mode err:-6 [17:53:56:991] [01-01 00:00:05 ty D][lr:0x80f1848] <__gw_upd_nc_type> wf start mode change:-6, 0->4 [17:53:56:991] [01-01 00:00:05 ty N][lr:0x810fc54] Last reset reason: 0 [17:53:56:991] [01-01 00:00:05 ty D][lr:0x811d902] protected read [gw_bi] [17:53:57:024] [01-01 00:00:05 ty D][lr:0x811d968] protected read ret:0 length:234 [17:53:57:035] [01-01 00:00:05 ty D][lr:0x80e2d40] gw_bi read ret:0 [17:53:57:035] [01-01 00:00:05 ty D][lr:0x811d902] protected read [gw_wsm] [17:53:57:054] [01-01 00:00:05 ty D][lr:0x80e435a] feed watchdog [17:53:57:054] free heap:119008 [17:53:57:065] [01-01 00:00:05 ty D][lr:0x811d968] protected read ret:0 length:141 [17:53:57:075] [01-01 00:00:05 ty D][lr:0x80e2b1c] gw_wsm read ret:0 [17:53:57:075] [01-01 00:00:05 ty N][lr:0x810f4ae] gw_cntl->gw_wsm.stat:0 [17:53:57:075] [01-01 00:00:05 ty E][lr:0x80de9e0] kvs_read fails gw_di -6 [17:53:57:075] [01-01 00:00:05 ty D][lr:0x80e300c] gw_di read ret:-6 [17:53:57:075] [01-01 00:00:05 ty E][lr:0x810f4e4] desc read err:-6 [17:53:57:075] [01-01 00:00:05 ty E][tuya_svc_devos.c:549] ret:-6 [17:53:57:075] [01-01 00:00:05 ty N][lr:0x810fca6] enter reset factory [17:53:57:075] [01-01 00:00:05 ty E][lr:0x80de9e0] kvs_read fails gw_di -6 [17:53:57:075] [01-01 00:00:05 ty D][lr:0x80e300c] gw_di read ret:-6 [17:53:57:210] [01-01 00:00:05 ty D][lr:0x80e300c] gw_di write ret:0 [17:53:57:210] [01-01 00:00:05 ty E][lr:0x80de9e0] kvs_read fails gw_ai -6 [17:53:57:221] [01-01 00:00:05 ty D][lr:0x80e2890] gw_ai read ret:-6 [17:53:57:346] [01-01 00:00:05 ty D][lr:0x80e2890] gw_ai write ret:0 [17:53:57:346] [01-01 00:00:05 ty D][lr:0x80ee992] fast connect mode:0 [17:53:57:356] [01-01 00:00:05 ty D][lr:0x80ee9c6] del fast info success [17:53:57:356] [01-01 00:00:05 ty D][lr:0x8104bd2] astro timer reset:0 [17:53:57:356] [01-01 00:00:05 ty D][lr:0x811d9c6] protected write [gw_wsm][141] [17:53:57:515] [01-01 00:00:05 ty D][lr:0x811daca] protected write ret:0 [17:53:57:781] [01-01 00:00:05 ty D][lr:0x80e2b1c] gw_wsm write ret:0 [17:53:57:781] [01-01 00:00:05 ty W][tuya_app_main.c:93] SOC TUYA-Cloud Status:2 [17:53:57:793] [01-01 00:00:05 ty N][lr:0x810ff8e] enter success_proc [17:53:57:793] [01-01 00:00:05 ty N][lr:0x810ffac] serial_no:7abcde000102 [17:53:57:793] [01-01 00:00:05 ty D][lr:0x80e346c] timer ID:537064304 [17:53:57:793] [01-01 00:00:05 ty D][lr:0x80debcc] rcs.active not found in kv, read from protected [17:53:57:793] [01-01 00:00:05 ty D][lr:0x811d902] protected read [rcs.active] [17:53:57:822] [01-01 00:00:05 ty D][lr:0x811d968] protected read ret:4 length:0 [17:53:57:832] [01-01 00:00:05 ty D][lr:0x80debcc] rcs.mf not found in kv, read from protected [17:53:57:832] [01-01 00:00:05 ty D][lr:0x811d902] protected read [rcs.mf] [17:53:57:860] [01-01 00:00:05 ty D][lr:0x811d968] protected read ret:4 length:0 [17:53:57:870] [01-01 00:00:05 ty D][lr:0x8102c3c] use default rcs [-6] [17:53:57:870] [01-01 00:00:05 ty D][lr:0x8100f38] load tls_ca_cnt fail. no ca in local db [17:53:57:870] [01-01 00:00:05 ty D][lr:0x81008a4] psk key was 1.0 [17:53:57:870] [01-01 00:00:05 ty D][lr:0x81013a6] cert manager init [17:53:57:870] [01-01 00:00:05 ty D][lr:0x80e1aec] tuya svc upgrade init success! [17:53:57:870] [01-01 00:00:05 ty D][lr:0x8102116] meta in kv {"metas":{}} [17:53:57:870] [01-01 00:00:05 ty D][lr:0x80ea444] register wifi network monitor. interval:1 [17:53:57:870] [01-01 00:00:05 ty I][tal_thread.c:184] thread_create name:led_task,stackDepth:2048,totalstackDepth:21504,priority:0 [17:53:57:870] [01-01 00:00:05 ty I][tal_thread.c:184] thread_create name:key_task,stackDepth:2048,totalstackDepth:23552,priority:0 [17:53:57:879] [01-01 00:00:05 ty D][tal_thread.c:244] Del Thrd:tuya_app_main [17:53:57:879] [01-01 00:00:05 ty D][lr:0x81101be] state change from 0 to 1 [17:53:57:879] [01-01 00:00:05 ty E][lr:0x80f1834] read wf start mode err:-6 [17:53:57:879] [01-01 00:00:05 ty D][lr:0x80f1848] <__gw_upd_nc_type> wf start mode change:-6, 0->4 [17:53:57:879] [01-01 00:00:05 ty D][tal_thread.c:95] del list not empty...deleting 0x2002a744, next 0x2002a6a0 [17:53:57:879] [01-01 00:00:05 ty D][tal_thread.c:98] Thread:tuya_app_main is still running.. [17:53:57:879] [01-01 00:00:05 ty D][tal_thread.c:203] Thread:wq_system Exec Start. Set to Running Stat [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80f16d2] reset init mthd:0, short timer:0 long timer:0 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80f1bee] do proxy actived work,mode:1,stat:0,nc_tp:10 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80f1ec4] nc_tp:10, md:0 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10020,is_set:0 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10100,is_set:0 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10020,is_set:1 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80edfd4] get work mode:1 [17:53:57:887] [01-01 00:00:05 ty D][lr:0x80edff6] start ap netcfg, wk_md:3 [17:53:57:894] [01-01 00:00:05 ty D][tal_thread.c:219] Thread:tuya_app_main Exec Finish. Set to Del Stat [17:53:57:894] [01-01 00:00:05 ty D][tal_thread.c:95] del list not empty...deleting 0x2002a744, next 0x2002a6a0 [17:53:57:894] [01-01 00:00:05 ty D][tal_thread.c:103] Final Free Thread:tuya_app_main, is_self:1 [17:53:57:894] [01-01 00:00:05 ty D][tal_thread.c:107] delay to delete thread self [17:53:57:894] [01-01 00:00:05 ty D][tal_thread.c:118] finally delete thread self [17:53:57:894] [01-01 00:00:05 ty D][tal_thread.c:73] real delete thread:0x2002b760 [17:53:57:902] [01-01 00:00:05 ty D][lr:0x80f1e38] start ap success:SmartLife-0102 [17:53:57:909] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10020,is_set:0 [17:53:57:909] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10100,is_set:0 [17:53:57:909] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10020,is_set:0 [17:53:57:909] [01-01 00:00:05 ty D][lr:0x80ec5e6] type:0x10100,is_set:0 [17:53:57:909] [01-01 00:00:05 ty N][lr:0x80ef2d2] cur stat:13 0x80dde28 -->> [17:53:57:909] [01-01 00:00:05 ty D][lr:0x80edf60] Get Rssi:0 [17:53:57:916] [01-01 00:00:05 ty D][lr:0x8111126] [6][36]:{"ts":5,"dt":6,"tp":10,"s":13,"r":0} [17:53:57:916] [01-01 00:00:05 ty D][lr:0x8110fd6] index:1 offset:-1, -2, -3, -4 [17:53:57:916] [01-01 00:00:05 ty E][lr:0x8122202] uf_open ty_data_file err 8 [17:53:58:016] [01-01 00:00:05 ty D][lr:0x8111016] first open data file ty_data_file [17:53:58:027] [01-01 00:00:05 ty D][lr:0x8111038] [6]'s offset is update to 0 [17:53:58:027] [01-01 00:00:05 ty E][lr:0x8110e7e] read file ty_data_file 's data of len [0], wanted 1024 [17:53:58:027] [01-01 00:00:05 ty D][lr:0x81111e4] data file do NOT have the type 6 data, normally the first one [17:53:58:163] [01-01 00:00:06 ty D][lr:0x8111192] available slot index:0, part index: 0, part offset:0 [17:53:58:322] [01-01 00:00:06 ty D][lr:0x8110dca] before file_size:0, after file_size:1024 [17:53:58:334] [01-01 00:00:06 ty E][lr:0x8111216] data update ret:0 [17:53:58:334] [01-01 00:00:06 ty N][lr:0x80ef34e] wifi netstat changed to:13 -->> [17:53:58:334] [01-01 00:00:06 ty N][lr:0x80ef366] report wifi netstat[13] to callback -->> [17:53:58:334] [01-01 00:00:06 ty W][tuya_app_main.c:203] network status:13 [17:53:58:334] [01-01 00:00:06 ty D][lr:0x80ec74a] netcfg module start type:0x10100 [17:53:58:334] [01-01 00:00:06 ty N][lr:0x80f1576] timer stated, short timer:0x0, long timer:0x0 [17:53:58:334] [01-01 00:00:06 ty D][lr:0x80f2178] nc_tp:10, md:0 [17:53:58:334] [01-01 00:00:06 ty N][lr:0x810a646] bt startup attr:ff [17:53:58:334] [01-01 00:00:06 ty D][lr:0x810a65a] bt link open [17:53:58:334] [01-01 00:00:06 ty N][lr:0x8109588] upd product_id type:0 uiiyltkjmkhwumga [17:53:58:334] [01-01 00:00:06 ty D][lr:0x8120a4e] read encrpt flag from flash: 0. [17:53:58:334] [01-01 00:00:06 ty D][lr:0x8109ebc] rev ble event 1 [17:53:58:344] [01-01 00:00:06 ty D][lr:0x8109e84] set ble serv stat:0, curr:0 [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810944e] start ble monitor [17:53:58:344] [01-01 00:00:06 ty N][lr:0x810954e] ty bt sdk init success finish [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810b8c0] net_cfg sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810a3e0] get_wifi_list sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810a3fa] get_netcfg_stat sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810a414] get_dev_log sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810a42e] get_ap_name sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810ddb0] net_active sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810a3e0] get_wifi_list sub session created [17:53:58:344] [01-01 00:00:06 ty D][lr:0x810a3fa] get_netcfg_stat sub session created [17:53:58:353] [01-01 00:00:06 ty D][lr:0x810a414] get_dev_log sub session created [17:53:58:353] [01-01 00:00:06 ty D][lr:0x810a42e] get_ap_name sub session created [17:53:58:353] [01-01 00:00:06 ty E][lr:0x811f0c2] read timer_full_key failed [17:53:58:353] [01-01 00:00:06 ty D][lr:0x811f0ec] no timer [17:53:58:353] [01-01 00:00:06 ty D][lr:0x811f0fc] --- timer_cnt = 0 [17:53:58:353] [01-01 00:00:06 ty N][lr:0x811028c] __devos_init_evt success [17:53:58:353] [01-01 00:00:06 ty D][lr:0x80ec59e] start 0x10100 ret:0 [17:53:58:353] [01-01 00:00:06 ty D][lr:0x80ec74a] netcfg module start type:0x10020 [17:53:58:353] [01-01 00:00:06 ty D][lr:0x80f1a78] nw cfg cb ret:0 [17:53:58:361] [01-01 00:00:06 ty D][lr:0x8108d6a] upd adv para, send conn_req beacon. [17:53:58:361] [01-01 00:00:06 ty D][tuya_ble_svc.c:113] adv_data 31 <0x20032ea9> [17:53:58:361] 02 01 06 03 02 50 fd 17 16 50 fd 43 04 00 10 75 69 69 79 6c 74 6b 6a 6d 6b 68 77 75 6d 67 61 [17:53:58:361] [17:53:58:361] [01-01 00:00:06 ty D][tuya_ble_svc.c:113] rsp_data 31 <0x20032ec9> [17:53:58:361] 17 ff d0 07 00 00 0c 09 c8 a1 39 06 ca 08 cd e7 19 d4 fb 1f e4 cc af f4 06 09 54 55 59 41 5f [17:53:58:361] [17:53:58:361] [01-01 00:00:06 ty D][lr:0x810976e] ble get conn stat:4 [17:53:58:361] [01-01 00:00:06 ty N][lr:0x81097c0] ble adv updated [17:53:58:361] [01-01 00:00:06 ty D][lr:0x80ec3bc] ap cfg start:65568 [17:53:58:369] [01-01 00:00:06 ty D][lr:0x80ec2f6] ap netcfg server ip:192.168.176.1 [17:53:58:369] [01-01 00:00:06 ty D][tal_thread.c:203] Thread:ap_tcp_v4 Exec Start. Set to Running Stat [17:53:58:369] [01-01 00:00:06 ty D][lr:0x80eb762] start TCP ap thread [17:53:58:369] [01-01 00:00:06 ty D][lr:0x80eb8c2] Waiting for a remote connection [17:53:58:369] [01-01 00:00:06 ty I][tal_thread.c:184] thread_create name:ap_tcp_v4,stackDepth:3584,totalstackDepth:27136,priority:5 [17:53:58:369] [01-01 00:00:06 ty D][lr:0x80ecb42] ----netcfgType:0x10020 [17:53:58:369] [01-01 00:00:06 ty D][lr:0x80ed6a0] ----register netcfgType:0x10020 [17:53:58:377] [01-01 00:00:06 ty D][lr:0x80ed4a2] ----start netcfgType:0x10020 [17:53:58:377] [01-01 00:00:06 ty E][lr:0x80ec9f6] timer is not run,wait [17:53:58:377] [01-01 00:00:06 ty D][lr:0x80ec59e] start 0x10020 ret:0 [17:53:58:377] [01-01 00:00:06 ty D][lr:0x8111126] [1][49]:{"ts":6,"dt":1,"tp":0,"m":4,"sy":0,"du":0,"sp":1} [17:53:58:377] [01-01 00:00:06 ty D][lr:0x8110fd6] index:0 offset:-1, 0, -3, -4 [17:53:58:384] [01-01 00:00:06 ty D][lr:0x81110a2] [1]'s offset is update to 1024 [17:53:58:519] [01-01 00:00:06 ty E][lr:0x8110e7e] read file ty_data_file 's data of len [0], wanted 1024 [17:53:58:520] [01-01 00:00:06 ty D][lr:0x81111e4] data file do NOT have the type 1 data, normally the first one [17:53:58:531] [01-01 00:00:06 ty D][lr:0x8110ed4] read tuya dev data's index len:16 ok [17:53:58:794] [01-01 00:00:06 ty D][lr:0x8111192] available slot index:0, part index: 1, part offset:1024 [17:53:58:916] [01-01 00:00:06 ty D][lr:0x8110dca] before file_size:1024, after file_size:2048 [17:53:58:918] [01-01 00:00:06 ty E][lr:0x8111216] data update ret:0 [17:53:58:928] [01-01 00:00:06 ty D][lr:0x8111126] [1][50]:{"ts":6,"dt":1,"tp":32,"m":4,"sy":0,"du":0,"sp":1} [17:53:58:928] [01-01 00:00:06 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:53:58:928] [01-01 00:00:06 ty D][lr:0x81111e4] read file ok at offset:1024 [17:53:59:203] [01-01 00:00:07 ty D][lr:0x8111192] available slot index:1, part index: 1, part offset:1024 [17:53:59:373] [01-01 00:00:07 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:53:59:385] [01-01 00:00:07 ty E][lr:0x8111216] data update ret:0 [17:53:59:385] handle_gatts_msg type 0 [17:53:59:385] adv state change 0x0 ==> 0x1, reason 0x0 [17:53:59:385] adv state change 0x1 ==> 0x1, reason 0x0 [17:53:59:385] [01-01 00:00:07 ty D][tal_threadadv state change 0x1 ==> 0x2, reason 0x0 [17:53:59:392] adv index 1 [17:53:59:392] adv state change 0x2 ==> 0x3, reason 0x0 [17:53:59:392] .c:203] Thread:led_task Exec Start. Set to Running Stat [17:53:59:392] [01-01 00:00:07 ty D][tal_tadv state change 0x3 ==> 0x4, reason 0x0 [17:53:59:392] adv state change 0x4 ==> 0x2, reason 0x0 [17:53:59:392] hread.c:203] Thread:key_task Exec Start. Set to Running Stat [17:53:59:403] adv state change 0x2 ==> 0x6, reason 0x0 [17:54:07:326] [01-01 00:00:15 ty D][lr:0x80e435a] feed watchdog [17:54:07:328] free heap:101104 [17:54:17:355] [01-01 00:00:25 ty D][lr:0x80e435a] feed watchdog [17:54:17:355] free heap:101104 [17:54:27:380] [01-01 00:00:35 ty D][lr:0x80e435a] feed watchdog [17:54:27:380] free heap:101104 [17:54:28:075] [01-01 00:00:35 ty D][lr:0x80e329c] set time by rtc [17:54:30:226] [12-31 16:00:51 ty D][lr:0x8109ebc] rev ble event 3 [17:54:30:227] [12-31 16:00:51 ty N][lr:0x8109f32] Ble Connected [17:54:30:238] [12-31 16:00:51 ty N][lr:0x810aa3e] ble reset sn [17:54:30:238] [12-31 16:00:51 ty N][lr:0x810974e] ble set conn stat:1 [17:54:30:238] [12-31 16:00:51 ty D][lr:0x810938a] conn monitor timer started [17:54:30:238] adv state change 0x6 ==> 0x2, reason 0x0 [17:54:30:238] adv state change 0x2 ==> 0x0, reason 0x0 [17:54:30:299] le pkt size info: conn idx 0, tx oct 251, tx time 2120, rx oct 27, rx time 328 [17:54:30:480] conn idx 0, intv_min 0x6, intv_max 0x6, latency 0, supv_tout 500 [17:54:30:974] conn idx 0, param update ind: interval 6, latency 0, sup to 500 [17:54:31:208] conn idx 0, intv_min 0x24, intv_max 0x24, latency 0, supv_tout 500 [17:54:31:335] conn idx 0, param update ind: interval 36, latency 0, sup to 500 [17:54:31:740] le pkt size info: conn idx 0, tx oct 251, tx time 2120, rx oct 250, rx time 17040 [17:54:31:966] [12-31 16:00:52 ty D][lr:0x8109ebc] rev ble event 13 [17:54:31:977] [12-31 16:00:52 ty D][lr:0x8109f6e] Dev Rev BT Package [17:54:31:977] [12-31 16:00:52 ty D][tuya_ble_svc.c:113] bt_rev_raw 36 <0x2000fe5c> [17:54:31:977] 00 21 20 0b db 89 0f c6 54 39 33 63 92 68 b5 8c 78 8e 66 c5 1b 61 af 6a c4 ea 0b 1c 18 65 8f 1b 32 b5 f7 78 [17:54:31:977] [17:54:31:977] [12-31 16:00:52 ty D][lr:0x810ae5c] recive sub_pkg desc:3, no:1, pack_len:33, total_len:33 [17:54:31:977] [12-31 16:00:52 ty D][tuya_ble_svc.c:113] ble rev data 33 <0x2002ac14> [17:54:31:977] 0b db 89 0f c6 54 39 33 63 92 68 b5 8c 78 8e 66 c5 1b 61 af 6a c4 ea 0b 1c 18 65 8f 1b 32 b5 f7 78 [17:54:31:977] [17:54:31:977] [12-31 16:00:52 ty D][tuya_ble_svc.c:113] ble decryped data 16 <0x2002b018> [17:54:31:977] 00 00 00 01 00 00 00 00 00 00 00 02 00 f3 78 4e [17:54:31:977] [17:54:31:977] [12-31 16:00:52 ty D][lr:0x810976e] ble get conn stat:1 [17:54:31:977] [12-31 16:00:52 ty D][lr:0x810b0cc] Parse BT Cmd:0x0 mode:11 [17:54:31:991] [12-31 16:00:52 ty D][lr:0x810b146] BT sub pkg lenth set:243 [17:54:31:991] [12-31 16:00:52 ty N][lr:0x810b166] tuya_ble_handle_dev_infor_req state:0, pkg_len:243 [17:54:31:991] [12-31 16:00:52 ty D][lr:0x810b304] buf len:121 [17:54:31:991] [12-31 16:00:52 ty D][lr:0x8109f8a] default resp generated. [17:54:31:991] [12-31 16:00:52 ty D][lr:0x810976e] ble get conn stat:1 [17:54:31:991] [12-31 16:00:52 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:4, send_data:161 [17:54:31:991] [12-31 16:00:52 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 165 <0x2002a908> [17:54:31:991] 00 a1 01 40 0b d0 eb ba a4 f1 25 bc dd 2a 31 42 43 ce 87 1a 4f 93 ce 24 27 54 71 04 2a 01 be 17 0a b1 3c c7 ae db 4b c0 76 01 90 c2 c1 54 f8 f6 e0 3b 12 2f 1f 8a 2a bf 82 d7 7b 20 7a a7 52 fb [17:54:31:991] de 43 7f 90 63 53 cd bf 67 d5 68 71 c6 4d 81 f4 59 18 99 68 c3 d1 2e 42 2b 06 68 e5 0a 7a 1a 7c 48 ed bd db 8c 48 d8 8d 46 46 fd dc 7a 3b 61 87 5d e6 6d 07 67 c0 41 a6 56 ed 38 5c 3f 43 8c 35 [17:54:31:999] ad f1 fe a7 2e 24 d8 c9 a3 c6 04 6a 26 ce 8e d8 45 c2 b6 3b 5f e7 d0 5b 8e 71 54 9f 7e 8d 57 0d da 99 bb 3d 3a [17:54:31:999] [17:54:31:999] handle_gatts_msg type 2 [17:54:32:013] [12-31 16:00:52 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:161, send_ret:0x0 [17:54:32:102] [12-31 16:00:53 ty D][lr:0x8109ebc] rev ble event 13 [17:54:32:102] [12-31 16:00:53 ty D][lr:0x8109f6e] Dev Rev BT Package [17:54:32:114] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] bt_rev_raw 116 <0x2000fe0c> [17:54:32:114] 00 71 20 0c 82 a8 ea 47 79 c0 2e cb a6 e4 db 5a a4 0c 1d 9e 2b 4a b9 dd 59 d2 10 e0 3d e2 32 68 82 bc 5f 03 85 1e 4a 64 79 79 da 78 7d a8 e1 57 5f 87 a2 59 14 c1 62 af 9e f3 df 7c 7d 99 2b 06 [17:54:32:114] ed e7 f1 02 cf 55 61 cc e7 98 11 62 42 c4 73 89 28 4c 1a bd cd 1d f6 9e 26 0f 76 f1 f3 55 ef a3 23 5f e8 a3 6c 8f cd 39 61 fd 5c 58 de 77 c9 fd b1 36 d0 8f [17:54:32:114] [17:54:32:114] [12-31 16:00:53 ty D][lr:0x810ae5c] recive sub_pkg desc:3, no:1, pack_len:113, total_len:113 [17:54:32:114] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] ble rev data 113 <0x2002ac14> [17:54:32:114] 0c 82 a8 ea 47 79 c0 2e cb a6 e4 db 5a a4 0c 1d 9e 2b 4a b9 dd 59 d2 10 e0 3d e2 32 68 82 bc 5f 03 85 1e 4a 64 79 79 da 78 7d a8 e1 57 5f 87 a2 59 14 c1 62 af 9e f3 df 7c 7d 99 2b 06 ed e7 f1 [17:54:32:114] 02 cf 55 61 cc e7 98 11 62 42 c4 73 89 28 4c 1a bd cd 1d f6 9e 26 0f 76 f1 f3 55 ef a3 23 5f e8 a3 6c 8f cd 39 61 fd 5c 58 de 77 c9 fd b1 36 d0 8f [17:54:32:124] [17:54:32:124] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] ble decryped data 96 <0x2002b018> [17:54:32:124] 00 00 00 02 00 00 00 00 00 01 00 52 79 e4 8d 34 a1 06 1c 93 c2 3c 11 86 10 43 c8 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 [17:54:32:124] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4f f6 [17:54:32:124] [17:54:32:124] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:1 [17:54:32:124] [12-31 16:00:53 ty D][lr:0x810b0cc] Parse BT Cmd:0x1 mode:12 [17:54:32:124] [12-31 16:00:53 ty D][lr:0x8109246] start up v2 ble encrpt v4 [17:54:32:131] [12-31 16:00:53 ty D][lr:0x8109174] set ble v2 encrpt! [17:54:32:131] [12-31 16:00:53 ty D][lr:0x81093b0] conn monitor timer stopped [17:54:32:131] [12-31 16:00:53 ty N][lr:0x810974e] ble set conn stat:3 [17:54:32:131] [12-31 16:00:53 ty N][lr:0x810b422] PAIR_REQ ok:0 [17:54:32:131] [12-31 16:00:53 ty N][lr:0x810b3d0] ble_time_req start... [17:54:32:131] [12-31 16:00:53 ty D][lr:0x810b3f2] no need to query time. network stat:0, work stat:0 [17:54:32:131] [12-31 16:00:53 ty D][lr:0x8109f8a] default resp generated. [17:54:32:131] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:138] [12-31 16:00:53 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:33 [17:54:32:138] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 36 <0x2002a968> [17:54:32:138] 00 21 41 0c 22 33 bf ce 92 8d 4d d3 69 6f 2b 0e 92 4a d2 95 cb 62 67 0c b5 00 38 1a 2f 28 53 1e 89 d1 06 92 [17:54:32:138] [17:54:32:138] handle_gatts_msg type 2 [17:54:32:156] [12-31 16:00:53 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:33, send_ret:0x0 [17:54:32:552] [12-31 16:00:53 ty D][lr:0x8109ebc] rev ble event 13 [17:54:32:563] [12-31 16:00:53 ty D][lr:0x8109f6e] Dev Rev BT Package [17:54:32:563] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] bt_rev_raw 165 <0x2000fdd8> [17:54:32:563] 00 a1 01 20 0c 88 c1 d5 44 b3 1c d7 ce 26 ac b7 75 43 82 96 df 55 f6 32 41 7e 39 ae 13 5d e5 b9 1c a8 e1 79 b0 cb d9 58 8e 7d f7 d2 e9 d7 47 c2 ff fa 03 b6 b4 3d 23 b4 ef 7d 5c aa 5d e7 e2 4d [17:54:32:563] 54 bd b6 4f 3b 8c 14 4d 9d 9b 47 f9 52 ca c5 5d 21 73 e1 21 43 86 0d 90 1f be 7b 42 78 13 09 81 1d ae 32 0c f0 96 86 db 36 12 08 8d df d7 0f 16 73 f5 36 2e 42 6c 18 7e 2f c4 54 64 90 7f 8b 58 [17:54:32:563] a8 c6 40 53 9b 36 10 ed e2 9a f8 80 28 d7 30 c6 9c bc 56 e9 64 bf d1 bf 46 db 98 4f b6 32 39 d2 29 48 44 e1 cf [17:54:32:563] [17:54:32:563] [12-31 16:00:53 ty D][lr:0x810ae5c] recive sub_pkg desc:3, no:1, pack_len:161, total_len:161 [17:54:32:563] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] ble rev data 161 <0x2002ac14> [17:54:32:563] 0c 88 c1 d5 44 b3 1c d7 ce 26 ac b7 75 43 82 96 df 55 f6 32 41 7e 39 ae 13 5d e5 b9 1c a8 e1 79 b0 cb d9 58 8e 7d f7 d2 e9 d7 47 c2 ff fa 03 b6 b4 3d 23 b4 ef 7d 5c aa 5d e7 e2 4d 54 bd b6 4f [17:54:32:577] 3b 8c 14 4d 9d 9b 47 f9 52 ca c5 5d 21 73 e1 21 43 86 0d 90 1f be 7b 42 78 13 09 81 1d ae 32 0c f0 96 86 db 36 12 08 8d df d7 0f 16 73 f5 36 2e 42 6c 18 7e 2f c4 54 64 90 7f 8b 58 a8 c6 40 53 [17:54:32:577] 9b 36 10 ed e2 9a f8 80 28 d7 30 c6 9c bc 56 e9 64 bf d1 bf 46 db 98 4f b6 32 39 d2 29 48 44 e1 cf [17:54:32:577] [17:54:32:577] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] ble decryped data 144 <0x2002b018> [17:54:32:577] 00 00 00 03 00 00 00 00 80 1b 00 81 00 00 00 01 7b 22 6d 61 63 22 3a 22 22 2c 22 70 77 64 22 3a 22 31 32 33 35 36 37 38 39 30 22 2c 22 72 65 67 22 3a 7b 22 63 6f 64 65 22 3a 22 41 59 2d 50 52 [17:54:32:577] 4f 44 22 2c 22 70 75 62 22 3a 31 2c 22 75 72 6c 30 22 3a 22 68 33 2d 61 79 2e 69 6f 74 2d 64 6e 73 2e 63 6f 6d 22 7d 2c 22 73 73 69 64 22 3a 22 32 37 22 2c 22 74 6f 6b 65 6e 22 3a 22 41 59 45 [17:54:32:585] 50 6c 71 4a 50 66 62 33 32 61 33 22 7d 5c 30 00 [17:54:32:585] [17:54:32:585] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:585] [12-31 16:00:53 ty D][lr:0x810b0cc] Parse BT Cmd:0x801b mode:12 [17:54:32:585] [12-31 16:00:53 ty D][lr:0x8108976] Rev BT user Data. type:801b [17:54:32:585] [12-31 16:00:53 ty D][lr:0x810898e] netcfg cb:810b7d8 [17:54:32:585] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] recv_downlink_frame 129 <0x2002a908> [17:54:32:585] 00 00 00 01 7b 22 6d 61 63 22 3a 22 22 2c 22 70 77 64 22 3a 22 31 32 33 35 36 37 38 39 30 22 2c 22 72 65 67 22 3a 7b 22 63 6f 64 65 22 3a 22 41 59 2d 50 52 4f 44 22 2c 22 70 75 62 22 3a 31 2c [17:54:32:592] 22 75 72 6c 30 22 3a 22 68 33 2d 61 79 2e 69 6f 74 2d 64 6e 73 2e 63 6f 6d 22 7d 2c 22 73 73 69 64 22 3a 22 32 37 22 2c 22 74 6f 6b 65 6e 22 3a 22 41 59 45 50 6c 71 4a 50 66 62 33 32 61 33 22 [17:54:32:592] 7d [17:54:32:592] [17:54:32:592] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] recv_downlink_cmd 129 <0x2002a908> [17:54:32:592] 00 00 00 01 7b 22 6d 61 63 22 3a 22 22 2c 22 70 77 64 22 3a 22 31 32 33 35 36 37 38 39 30 22 2c 22 72 65 67 22 3a 7b 22 63 6f 64 65 22 3a 22 41 59 2d 50 52 4f 44 22 2c 22 70 75 62 22 3a 31 2c [17:54:32:599] 22 75 72 6c 30 22 3a 22 68 33 2d 61 79 2e 69 6f 74 2d 64 6e 73 2e 63 6f 6d 22 7d 2c 22 73 73 69 64 22 3a 22 32 37 22 2c 22 74 6f 6b 65 6e 22 3a 22 41 59 45 50 6c 71 4a 50 66 62 33 32 61 33 22 [17:54:32:599] 7d [17:54:32:599] [17:54:32:599] [12-31 16:00:53 ty D][lr:0x8109338] Rev large data trans. subCmd:1 [17:54:32:607] [12-31 16:00:53 ty D][lr:0x810b934] Rev Net Cfg ex:{"mac":"","pwd":"123567890","reg":{"code":"AY-PROD","pub":1,"url0":"h3-ay.iot-dns.com"},"ssid":"27","token":"AYEPlqJPfb32a3"} [17:54:32:607] [12-31 16:00:53 ty D][lr:0x81102f8] set netcfgstat, stage:0, status:0 [17:54:32:607] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:607] [12-31 16:00:53 ty D][lr:0x811034a] get netcfg stat:{"type":0,"stage":0,"status":0} [17:54:32:607] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:607] [12-31 16:00:53 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x801f encrpyt:12 [17:54:32:614] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 35 <0x2002b488> [17:54:32:614] 00 00 00 04 7b 22 74 79 70 65 22 3a 30 2c 22 73 74 61 67 65 22 3a 30 2c 22 73 74 61 74 75 73 22 3a 30 7d [17:54:32:614] [17:54:32:614] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:614] [12-31 16:00:53 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:81 [17:54:32:614] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 84 <0x2002b520> [17:54:32:614] 00 51 42 0c fc 3d e0 0d 50 6e c4 6f ab 60 ec 47 ca a9 90 84 0d 8d 7b c0 40 3c 4d 87 9c 71 84 95 e3 76 34 49 fc e8 6e ae a0 0f 2f 9c d3 58 6c a5 61 68 05 be f3 eb d0 55 16 72 f3 54 69 60 0c 4f [17:54:32:622] 45 96 f9 37 9f 39 6d 87 06 ea 42 aa 98 49 72 40 21 01 f9 26 [17:54:32:622] [17:54:32:622] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:622] [12-31 16:00:53 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x801c encrpyt:12 [17:54:32:622] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 5 <0x2002b488> [17:54:32:622] 00 00 00 01 00 [17:54:32:622] [17:54:32:622] [12-31 16:00:53 ty D][lr:0x810976e] ble get conn stat:3 [17:54:32:629] [12-31 16:00:53 ty D][lr:0x80ee1aa] netcfg data evt [17:54:32:629] [12-31 16:00:53 ty D][lr:0x80e3ffe] set psk30 cfg 1 [17:54:32:629] [12-31 16:00:53 ty D][lr:0x811d9c6] protected write [rcs.active][55] [17:54:32:637] [12-31 16:00:53 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:81, send_ret:0x0 [17:54:32:643] [12-31 16:00:53 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:49 [17:54:32:643] [12-31 16:00:53 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 52 <0x2002b520> [17:54:32:643] 00 31 43 0c 08 12 f4 41 26 6d f7 2e 1e 86 9e 99 1b a3 24 a7 61 a1 c9 66 db 09 ba c6 f5 29 f2 d0 cc f9 f5 c7 6c 1e 8b 32 79 e9 6b 69 88 e8 d4 e6 8a fc e5 80 [17:54:32:643] [17:54:32:662] [12-31 16:00:53 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:49, send_ret:0x0 [17:54:32:801] [12-31 16:00:53 ty D][lr:0x811daca] protected write ret:0 [17:54:32:941] [12-31 16:00:53 ty D][lr:0x81008a4] psk key was 1.0 [17:54:32:941] [12-31 16:00:53 ty D][lr:0x80f6014] link[2] stage[0] type[0] [2] [17:54:32:952] [12-31 16:00:53 ty D][lr:0x810a7de] active event, type:0, stage:0 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x810fad2] activate type 0 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x81122ac] token activate start 0x2002b5b0 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x80f1f64] active event, type:0, stage:0 info->linkage:2 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x80ec8c6] netcfg module stop type:0x10020 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x80eb63a] ap cfg stop:65568,0 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x80ed77a] ----unregister netcfgType:0x10020 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x80ec8c6] netcfg module stop type:0x10100 [17:54:32:952] [12-31 16:00:53 ty D][lr:0x80ed482] ----destroy Transporter,session:0x200309d8 [17:54:32:961] [12-31 16:00:53 ty N][lr:0x80f18d2] stop smt cfg mthd:0, ret:0 [17:54:32:961] [12-31 16:00:53 ty D][lr:0x80f21a8] Netcfg Finish. type:0x10004, ssid:27, passwd:123567890 [17:54:32:961] [12-31 16:00:53 ty E][lr:0x80f18bc] all netcfg stop fail:-1 [17:54:32:961] [12-31 16:00:53 ty N][lr:0x80f18d2] stop smt cfg mthd:0, ret:0 [17:54:32:961] [12-31 16:00:53 ty D][lr:0x80f18fe] gw_wsm->md:0 [17:54:32:961] [12-31 16:00:53 ty N][lr:0x80ef2d2] cur stat:5 0x80dde28 -->> [17:54:32:961] [12-31 16:00:53 ty D][lr:0x80edf60] Get Rssi:0 [17:54:32:961] [12-31 16:00:53 ty D][lr:0x8111126] [6][43]:{"ts":946656053,"dt":6,"tp":10,"s":5,"r":0} [17:54:32:968] [12-31 16:00:53 ty D][lr:0x8110fd6] index:1 offset:1024, 0, -3, -4 [17:54:32:968] [12-31 16:00:53 ty D][lr:0x81111e4] read file ok at offset:0 [17:54:33:237] [12-31 16:00:54 ty D][lr:0x8111192] available slot index:1, part index: 0, part offset:0 [17:54:33:408] [12-31 16:00:54 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:33:419] [12-31 16:00:54 ty E][lr:0x8111216] data update ret:0 [17:54:33:419] [12-31 16:00:54 ty N][lr:0x80ef34e] wifi netstat changed to:5 -->> [17:54:33:419] [12-31 16:00:54 ty N][lr:0x80ef366] report wifi netstat[5] to callback -->> [17:54:33:419] [12-31 16:00:54 ty W][tuya_app_main.c:203] network status:5 [17:54:33:419] [12-31 16:00:54 ty D][lr:0x80ee77a] __wifi_net_conn. [17:54:33:419] [12-31 16:00:54 ty D][lr:0x80ee734] status:5,mode:3 [17:54:33:419] [12-31 16:00:54 ty D][lr:0x80ee78e] __wifi_net_conn, enable_station_ap:0 [17:54:33:419] [12-31 16:00:54 ty D][lr:0x80ee734] status:5,mode:3 [17:54:33:419] [12-31 16:00:54 ty D][lr:0x80ee864] start wf connect, ssid:27, pwd:123567890 [17:54:33:419] [12-31 16:00:54 ty D][lr:0x810ed1e] wifi auto reconn ssid 27 [17:54:33:419] [12-31 16:00:54 ty D][lr:0x8111126] [1][58]:{"ts":946656053,"dt":1,"tp":32,"m":4,"sy":0,"du":0,"sp":8} [17:54:33:428] [12-31 16:00:54 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:54:33:428] [12-31 16:00:54 ty D][lr:0x81111e4] read file ok at offset:1024 [17:54:33:691] [12-31 16:00:54 ty D][lr:0x8111192] available slot index:2, part index: 1, part offset:1024 [17:54:33:816] [12-31 16:00:54 ty D][lr:0x80eb6bc] ap thread exit [17:54:33:817] [12-31 16:00:54 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:33:827] [12-31 16:00:54 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:33:827] [12-31 16:00:54 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:33:827] [12-31 16:00:54 ty D][tal_thread.c:244] Del Thrd:ap_tcp_v4 [17:54:33:834] [12-31 16:00:54 ty D][tal_thread.c:219] Thread:ap_tcp_v4 Exec Finish. Set to Del Stat [17:54:33:834] [12-31 16:00:54 ty D][tal_thread.c:95] del list not empty...deleting 0x2003604c, next 0x2002a6a0 [17:54:33:834] [12-31 16:00:54 ty D][tal_thread.c:103] Final Free Thread:ap_tcp_v4, is_self:1 [17:54:33:834] [12-31 16:00:54 ty D][tal_thread.c:107] delay to delete thread self [17:54:33:841] [12-31 16:00:54 ty D][tal_thread.c:118] finally delete thread self [17:54:33:841] [12-31 16:00:54 ty D][tal_thread.c:73] real delete thread:0x20036e68 [17:54:33:880] [12-31 16:00:54 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:33:881] [12-31 16:00:54 ty E][lr:0x8111216] data update ret:0 [17:54:33:892] [12-31 16:00:54 ty D][lr:0x8111126] [1][57]:{"ts":946656053,"dt":1,"tp":0,"m":4,"sy":0,"du":0,"sp":8} [17:54:33:892] [12-31 16:00:54 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:54:33:892] [12-31 16:00:54 ty D][lr:0x81111e4] read file ok at offset:1024 [17:54:34:166] [12-31 16:00:54 ty D][lr:0x8111192] available slot index:3, part index: 1, part offset:1024 [17:54:34:341] [12-31 16:00:54 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:34:342] [12-31 16:00:54 ty E][lr:0x8111216] data update ret:0 [17:54:34:354] [12-31 16:00:54 ty D][lr:0x8111126] [2][44]:{"ts":946656053,"dt":2,"tp":2,"du":0,"re":0} [17:54:34:354] [12-31 16:00:54 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:54:34:354] [12-31 16:00:54 ty D][lr:0x81111e4] read file ok at offset:1024 [17:54:34:621] [12-31 16:00:55 ty D][lr:0x8111192] available slot index:4, part index: 1, part offset:1024 [17:54:34:794] [12-31 16:00:55 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:34:806] [12-31 16:00:55 ty E][lr:0x8111216] data update ret:0 [17:54:34:806] handle_gatts_msg type 2 [17:54:34:806] handle_gatts_msg type 2 [17:54:34:973] [12-31 16:00:55 ty D][lr:0x810a10e] nw stat change:0->0, rpt to app. [17:54:34:973] [12-31 16:00:55 ty D][lr:0x810a1aa] tuya_ble_send_dev_nw_stat:0, force:1 [17:54:34:984] [12-31 16:00:55 ty D][lr:0x810976e] ble get conn stat:3 [17:54:34:984] [12-31 16:00:55 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x1e encrpyt:12 [17:54:34:984] [12-31 16:00:55 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 1 <0x2002c75e> [17:54:34:984] 00 [17:54:34:984] [17:54:34:984] [12-31 16:00:55 ty D][lr:0x810976e] ble get conn stat:3 [17:54:35:310] tkl_wifi_station_get_status:stat:1 [17:54:35:543] [0] (-26 dBm) CH= 6 BSSID=06:13:c8:36:03:bf SSID=27 [RSN:WPA-PSK CCMP/CCMP] [17:54:35:584] MAC: auth req send [17:54:35:596] MAC: auth rsp received, status = 0 [17:54:35:596] MAC: assoc req send [17:54:35:596] MAC: assoc rsp received, status = 0 [17:54:36:669] WPA: 4-1 received [17:54:36:680] WPA: 4-2 send [17:54:36:686] WPA: 4-3 received [17:54:36:686] WPA: 4-4 send [17:54:37:172] tkl_wifi_station_get_status:stat:5 [17:54:37:689] WIFI_MGMT: DHCP got ip 172.20.10.5 [17:54:37:699] [12-31 16:00:58 ty D][lr:0x80ee8d6] wf connect success! [17:54:37:699] tkl_wifi_station_get_status:stat:6 [17:54:37:699] [12-31 16:00:58 ty N][lr:0x80ef2d2] cur stat:6 0x80dde28 -->> [17:54:37:699] tkl_wifi_station_get_status:stat:6 [17:54:37:699] [12-31 16:00:58 ty D][lr:0x80edf60] Get Rssi:-30 [17:54:37:699] [12-31 16:00:58 ty D][lr:0x8111126] [6][45]:{"ts":946656058,"dt":6,"tp":10,"s":6,"r":-30} [17:54:37:699] [12-31 16:00:58 ty D][lr:0x8110fd6] index:1 offset:1024, 0, -3, -4 [17:54:37:699] [12-31 16:00:58 ty D][lr:0x81111e4] read file ok at offset:0 [17:54:37:892] [12-31 16:00:58 ty D][lr:0x80e435a] feed watchdog [17:54:37:892] free heap:107776 [17:54:37:969] [12-31 16:00:58 ty D][lr:0x8111192] available slot index:2, part index: 0, part offset:0 [17:54:38:145] [12-31 16:00:58 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:38:147] [12-31 16:00:58 ty E][lr:0x8111216] data update ret:0 [17:54:38:157] [12-31 16:00:58 ty N][lr:0x80ef34e] wifi netstat changed to:6 -->> [17:54:38:157] [12-31 16:00:58 ty N][lr:0x80ef366] report wifi netstat[6] to callback -->> [17:54:38:157] [12-31 16:00:58 ty W][tuya_app_main.c:203] network status:6 [17:54:38:157] [12-31 16:00:58 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:33 [17:54:38:157] [12-31 16:00:58 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 36 <0x2002a908> [17:54:38:157] 00 21 44 0c 97 82 57 0f 4c e7 17 a5 56 75 a5 98 ae f0 cc 54 10 85 0a 14 db 69 f9 d3 11 85 56 5a ad d1 b9 70 [17:54:38:157] [17:54:38:157] [12-31 16:00:58 ty D][lr:0x8111126] [2][45]:{"ts":946656058,"dt":2,"tp":1,"du":5,"re":10} [17:54:38:157] [12-31 16:00:58 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:54:38:164] [12-31 16:00:58 ty D][lr:0x81111e4] read file ok at offset:1024 [17:54:38:174] [12-31 16:00:58 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:33, send_ret:0x0 [17:54:38:438] [12-31 16:00:58 ty D][lr:0x8111192] available slot index:5, part index: 1, part offset:1024 [17:54:38:612] [12-31 16:00:58 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:38:622] [12-31 16:00:58 ty E][lr:0x8111216] data update ret:0 [17:54:38:622] handle_gatts_msg type 2 [17:54:38:622] [12-31 16:00:58 ty N][lr:0x810edb6] wifi status changed to 0, stat: 1 [17:54:38:622] tkl_wifi_station_get_status:stat:6 [17:54:38:622] [12-31 16:00:58 ty D][lr:0x81102f8] set netcfgstat, stage:2, status:0 [17:54:38:622] [12-31 16:00:58 ty D][lr:0x810976e] ble get conn stat:3 [17:54:38:622] [12-31 16:00:58 ty D][lr:0x811034a] get netcfg stat:{"type":0,"stage":2,"status":0} [17:54:38:622] [12-31 16:00:58 ty D][lr:0x810976e] ble get conn stat:3 [17:54:38:622] [12-31 16:00:58 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x801f encrpyt:12 [17:54:38:632] [12-31 16:00:58 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 35 <0x2002a738> [17:54:38:632] 00 00 00 04 7b 22 74 79 70 65 22 3a 30 2c 22 73 74 61 67 65 22 3a 32 2c 22 73 74 61 74 75 73 22 3a 30 7d [17:54:38:632] [17:54:38:632] [12-31 16:00:58 ty D][lr:0x810976e] ble get conn stat:3 [17:54:38:632] [12-31 16:00:58 ty D][lr:0x80ee116] stat:6 [17:54:38:632] [12-31 16:00:58 ty D][lr:0x80f61aa] link[2] is_up[1] active_link[1] status[0] [17:54:38:632] [12-31 16:00:58 ty E][tuya_svc_mqtt_client.c:1398] handle null [17:54:38:632] [12-31 16:00:58 ty D][lr:0x811227e] token activate link up [17:54:38:639] tkl_wifi_station_get_status:stat:6 [17:54:38:639] [12-31 16:00:58 ty N][lr:0x80ef2d2] cur stat:6 0x80dde28 -->> [17:54:38:639] [12-31 16:00:58 ty I][tal_thread.c:184] thread_create name:lan_sock_loop,stackDepth:4096,totalstackDepth:31232,priority:3 [17:54:38:639] [12-31 16:00:58 ty D][lr:0x811a9d2] init sock loop success [17:54:38:639] [12-31 16:00:58 ty D][lr:0x80f5e06] lan init success [17:54:38:639] tkl_wifi_station_get_status:stat:6 [17:54:38:639] [12-31 16:00:58 ty E][lr:0x80eea44] ap_info_v2 read fail:-6 [17:54:38:646] [12-31 16:00:58 ty E][lr:0x80eebf8] ws_db_connect_ap_info_read fail:-6 [17:54:38:774] [12-31 16:00:59 ty D][lr:0x80eea14] ap_info_v2 write success [17:54:38:774] [12-31 16:00:59 ty D][lr:0x810edf0] wifi connected in check [17:54:38:786] [12-31 16:00:59 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:81 [17:54:38:786] [12-31 16:00:59 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 84 <0x20033838> [17:54:38:786] 00 51 45 0c 6b 4a 8e b0 09 9d 14 1e d6 d2 ef 68 10 37 b7 e0 62 36 95 8b 67 cf ee 19 d6 1f 8b 03 3d 25 70 8d b1 66 04 e4 37 d5 d3 5c 3b 1e 15 c4 81 21 e5 6b dc c7 a8 bb 6d 1c bd 25 ed d4 84 f2 [17:54:38:786] 3d 02 88 13 42 d2 fc 0f 3a fc 2c b0 db 81 1a 6e aa c6 66 9b [17:54:38:786] [17:54:38:786] [12-31 16:00:59 ty D][lr:0x811233e] token activate get cloud url [17:54:38:786] [12-31 16:00:59 ty D][tal_thread.c:203] Thread:lan_sock_loop Exec Start. Set to Running Stat [17:54:38:801] [12-31 16:00:59 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:81, send_ret:0x0 [17:54:38:808] [12-31 16:00:59 ty D][lr:0x8100f38] load tls_ca_cnt fail. no ca in local db [17:54:38:808] [12-31 16:00:59 ty D][lr:0x80feffa] http_iot_dns_get_cloud_url start [17:54:38:820] [12-31 16:00:59 ty D][lr:0x80ff0e8] http_dns region AY, send: {"region":"AY","env":"32a3","config":[{"key":"httpUrl","need_ca":false},{"key":"mqttUrl","need_ca":false},{"key":"httpsPSKUrl","need_ca":false},{"key":"mqttsPSK3Url","need_ca":false},{"key":"ghostUrl","need_ca":true}]} [17:54:38:820] [12-31 16:00:59 ty D][lr:0x8103044] rcs.url0:h3-ay.iot-dns.com [17:54:38:820] [12-31 16:00:59 ty D][lr:0x80ff11c] get url config:https://h3-ay.iot-dns.com/v2/url_config [17:54:38:820] tkl_wifi_station_get_status:stat:6 [17:54:38:820] [12-31 16:00:59 ty D][lr:0x811b7f0] Connect: h3-ay.iot-dns.com Port: 443 -->> [17:54:38:820] [12-31 16:00:59 ty D][lr:0x8103400] unw_gethostbyname h3-ay.iot-dns.com, prio 1 [17:54:38:826] --------------------------connect success [17:54:38:826] handle_gatts_msg type 2 [17:54:38:826] tkl_wifi_station_get_status:stat:6 [17:54:38:971] [12-31 16:00:59 ty D][lr:0x81035e6] use system dns ip 42.192.31.176 for domain h3-ay.iot-dns.com [17:54:38:971] [17:54:38:984] [12-31 16:00:59 ty D][lr:0x81032c8] cache dns [h3-ay.iot-dns.com]<->[42.192.31.176] [17:54:38:984] [12-31 16:00:59 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:39:034] [12-31 16:00:59 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:39:046] [12-31 16:00:59 ty D][lr:0x8103c42] TUYA_TLS Begin Connect h3-ay.iot-dns.com:443 [17:54:39:046] [12-31 16:00:59 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:39:046] [12-31 16:00:59 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:39:250] [12-31 16:00:59 ty D][lr:0x8103da0] handshake finish for h3-ay.iot-dns.com. set send/recv to user set [17:54:39:262] [12-31 16:00:59 ty D][lr:0x8103dca] TUYA_TLS Success Connect h3-ay.iot-dns.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:39:262] [12-31 16:00:59 ty D][lr:0x811b816] Connect: h3-ay.iot-dns.com Port: 443 --<< ,r:0 [17:54:39:443] [12-31 16:00:59 ty D][lr:0x8107caa] tls transporter close socket fd:0 [17:54:39:445] [12-31 16:00:59 ty D][lr:0x812018e] tcp transporter close socket fd:0 [17:54:39:456] [12-31 16:00:59 ty D][lr:0x8107cc8] tls transporter close tls handler:0x20034f18 [17:54:39:456] [12-31 16:00:59 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:39:456] [12-31 16:00:59 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:39:456] [12-31 16:00:59 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:39:456] [12-31 16:00:59 ty D][lr:0x80ff1b0] httpUrl:[http://a.tuyacn.com/d.json][42.192.25.216] [17:54:39:456] [12-31 16:00:59 ty D][lr:0x80ff1e4] mqttUrl:[m2.tuyacn.com:1883][42.192.30.165] [17:54:39:456] [12-31 16:00:59 ty D][lr:0x80ff30e] httpsPSKUrl:[https://a3.tuyacn.com/d.json][81.69.183.170] [17:54:39:456] [12-31 16:00:59 ty D][lr:0x80ff31e] mqttsPSKUrl:[m3.tuyacn.com:8886][121.5.96.27] [17:54:39:456] [12-31 16:00:59 ty D][lr:0x80ff330] ghostUrl:[baal.tuyacn.com:443][42.192.35.108] [17:54:39:615] [12-31 16:00:59 ty D][lr:0x81032c8] cache dns [http://a.tuyacn.com/d.json]<->[42.192.25.216] [17:54:39:616] [12-31 16:00:59 ty D][lr:0x81032c8] cache dns [https://a3.tuyacn.com/d.json]<->[81.69.183.170] [17:54:39:628] [12-31 16:00:59 ty D][lr:0x81032c8] cache dns [m2.tuyacn.com:1883]<->[42.192.30.165] [17:54:39:628] [12-31 16:00:59 ty D][lr:0x81032c8] cache dns [m3.tuyacn.com:8886]<->[121.5.96.27] [17:54:39:628] [12-31 16:00:59 ty D][lr:0x81032c8] cache dns [baal.tuyacn.com:443]<->[42.192.35.108] [17:54:39:628] [12-31 16:00:59 ty D][lr:0x8100f62] tls_ca_cnt:0 and parse:0 [17:54:39:628] [12-31 16:00:59 ty D][lr:0x80ff350] end [17:54:39:628] [12-31 16:00:59 ty D][lr:0x81121be] token activate get meta [17:54:39:628] [12-31 16:00:59 ty D][lr:0x80ffe52] modules:[{\"otaChannel\":9,\"softVer\":\"1.0.0\",\"online\":true}] [17:54:39:628] [12-31 16:00:59 ty D][lr:0x80fffaa] options:{\"isFK\":false,\"otaChannel\":0,\"sdkFullVer\":\"tuyaos-iot_3.8.1_gd32vw553_wifi_ble_com_0.0.2\"} [17:54:39:635] [12-31 16:00:59 ty D][lr:0x80fe504] Post Data: {"token":"EPlqJPfb","softVer":"1.0.0","productKey":"uiiyltkjmkhwumga","protocolVer":"2.3","baselineVer":"40.00","hid":"7abcde000102","modules":"[{\"otaChannel\":9,\"softVer\":\"1.0.0\",\"online\":true}]","devAttribute":12867,"cadVer":"1.0.5","cdVer":"1.0.0","options":"{\"isFK\":false,\"otaChannel\":0,\"sdkFullVer\":\"tuyaos-iot_3.8.1_gd32vw553_wifi_ble_com_0.0.2\"}","t":946656059} [17:54:39:641] [12-31 16:00:59 ty D][lr:0x80fe5bc] Post URL: https://a3.tuyacn.com/d.json?a=tuya.device.active&et=3&t=946656059&uuid=uuidda4679f2f16644f8&v=4.4&sign=9cb6a548efd9994a27a77ae0aecdfbb3 [17:54:39:641] tkl_wifi_station_get_status:stat:6 [17:54:39:641] [12-31 16:00:59 ty D][lr:0x811b7f0] Connect: a3.tuyacn.com Port: 443 -->> [17:54:39:649] [12-31 16:00:59 ty D][lr:0x8103400] unw_gethostbyname a3.tuyacn.com, prio 1 [17:54:39:649] [12-31 16:00:59 ty D][lr:0x810347a] use dynamic dns ip:81.69.183.170 for domain:a3.tuyacn.com [17:54:39:649] [12-31 16:00:59 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:39:694] tkl_wifi_station_get_status:stat:6 [17:54:39:695] tkl_wifi_station_get_status:stat:6 [17:54:39:708] [12-31 16:00:59 ty N][lr:0x80f5118] Not actived, use linkage addr[172.20.10.5][ac140a05] [17:54:39:708] [12-31 16:00:59 ty D][lr:0x811aa5c] reg post queue 1 [17:54:39:708] [12-31 16:00:59 ty D][lr:0x811aa5c] reg post queue 2 [17:54:39:708] [12-31 16:00:59 ty D][lr:0x811a6fc] reg lan sock 1,read:0x80f3a6e [17:54:39:731] [12-31 16:00:59 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:39:732] [12-31 16:00:59 ty D][lr:0x8103c42] TUYA_TLS Begin Connect a3.tuyacn.com:443 [17:54:39:743] [12-31 16:00:59 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:39:743] [12-31 16:00:59 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:39:856] tkl_wifi_station_get_status:stat:6 [17:54:39:967] [12-31 16:01:00 ty D][lr:0x8103da0] handshake finish for a3.tuyacn.com. set send/recv to user set [17:54:39:968] [12-31 16:01:00 ty D][lr:0x8103dca] TUYA_TLS Success Connect a3.tuyacn.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:39:979] [12-31 16:01:00 ty D][lr:0x811b816] Connect: a3.tuyacn.com Port: 443 --<< ,r:0 [17:54:40:614] [12-31 16:01:00 ty D][lr:0x80fed36] Decode Rev:{"result":{"schema":"[{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"type\":\"bool\"},\"id\":20},{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"range\":[\"white\",\"colour\",\"scene\",\"music\"],\"type\":\"enum\"},\"id\":21},{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":22},{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":23},{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":24},{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":25},{\"type\":\"obj\",\"mode\":\"rw\",\"property\":{\"min\":0,\"max\":86400,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":26},{\"mode\":\"rw\",\"id\":33,\"type\":\"raw\"}]","devId":"6ca3238e3a4acd8a2fnfju","resetFactory":false,"timeZone":"+08:00","capability":1025,"secKey":"dkf [17:54:41:187] 02 01 06 03 02 50 fd 17 16 50 fd 4b 0c 00 10 b2 35 17 ae a1 84 66 86 bb 4d 05 64 13 c2 07 dc [17:54:41:187] [17:54:41:187] [11-15 09:54:41 ty D][tuya_ble_svc.c:113] rsp_data 31 <0x20032ec9> [17:54:41:187] 17 ff d0 07 00 00 0c 89 db ef 1e d8 bf 3a 21 de fc 87 e8 5b 54 69 ca dc 06 09 54 55 59 41 5f [17:54:41:197] [17:54:41:197] [11-15 09:54:41 ty D][lr:0x810976e] ble get conn stat:3 [17:54:41:197] [11-15 09:54:41 ty N][lr:0x81097c0] ble adv updated [17:54:41:197] [11-15 09:54:41 ty D][lr:0x80f1c82] gw_wsm.stat[2] [17:54:41:197] [11-15 09:54:41 ty D][lr:0x81102f8] set netcfgstat, stage:3, status:9 [17:54:41:197] [11-15 09:54:41 ty D][lr:0x810976e] ble get conn stat:3 [17:54:41:197] [11-15 09:54:41 ty D][lr:0x811034a] get netcfg stat:{"type":0,"stage":3,"status":9} [17:54:41:197] [11-15 09:54:41 ty D][lr:0x810976e] ble get conn stat:3 [17:54:41:197] [11-15 09:54:41 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x801f encrpyt:15 [17:54:41:197] [11-15 09:54:41 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 35 <0x20033898> [17:54:41:197] 00 00 00 04 7b 22 74 79 70 65 22 3a 30 2c 22 73 74 61 67 65 22 3a 33 2c 22 73 74 61 74 75 73 22 3a 39 7d [17:54:41:205] [17:54:41:205] [11-15 09:54:41 ty D][lr:0x810976e] ble get conn stat:3 [17:54:41:205] [11-15 09:54:41 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:81 [17:54:41:205] [11-15 09:54:41 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 84 <0x200338e8> [17:54:41:205] 00 51 46 0f 87 18 d6 66 8a d1 71 98 89 13 ba 11 32 65 6a dc 81 cf 99 2d e0 b8 e9 af 7e eb 89 ad ee f5 c5 03 f7 7b 57 83 46 5a 10 21 d3 5b ef 82 1f 42 70 53 ee 70 12 aa 34 63 94 e0 47 21 cc e2 [17:54:41:205] fc a6 1a 45 23 80 89 3d b7 87 fc f2 36 3a 44 a5 8d cb c8 29 [17:54:41:212] [17:54:41:226] [11-15 09:54:41 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:81, send_ret:0x0 [17:54:41:273] [11-15 09:54:41 ty D][lr:0x810a10e] nw stat change:0->1, rpt to app. [17:54:41:274] tkl_wifi_station_get_status:stat:6 [17:54:41:285] [11-15 09:54:41 ty D][lr:0x810a1aa] tuya_ble_send_dev_nw_stat:1, force:0 [17:54:41:285] [11-15 09:54:41 ty D][lr:0x810976e] ble get conn stat:3 [17:54:41:285] [11-15 09:54:41 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x1e encrpyt:15 [17:54:41:285] [11-15 09:54:41 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 1 <0x2002c75e> [17:54:41:285] 01 [17:54:41:285] [17:54:41:285] [11-15 09:54:41 ty D][lr:0x810976e] ble get conn stat:3 [17:54:41:285] [11-15 09:54:41 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:33 [17:54:41:285] [11-15 09:54:41 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 36 <0x200339e8> [17:54:41:285] 00 21 47 0f ad 73 1e 56 57 c8 35 2c ee 84 bd 17 64 fe f7 34 c2 34 19 c6 6c bc f6 c5 63 cf 95 2b 59 da c7 da [17:54:41:285] [17:54:41:304] [11-15 09:54:41 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:33, send_ret:0x0 [17:54:41:489] [11-15 09:54:41 ty D][lr:0x80e2890] gw_ai write ret:0 [17:54:41:501] [11-15 09:54:41 ty D][lr:0x811d9c6] protected write [gw_wsm][159] [17:54:41:660] [11-15 09:54:41 ty D][lr:0x811daca] protected write ret:0 [17:54:41:806] tkl_wifi_station_get_status:stat:6 [17:54:41:807] [11-15 09:54:42 ty D][lr:0x80f52be] udp ip: 172.20.10.5 [17:54:41:929] [11-15 09:54:42 ty D][lr:0x80e2b1c] gw_wsm write ret:0 [17:54:42:338] [11-15 09:54:42 ty D][lr:0x810a7de] active event, type:0, stage:1 [17:54:42:339] [11-15 09:54:42 ty D][lr:0x810a7a4] bt netcfg fin [17:54:42:348] [11-15 09:54:42 ty E][base_event.c:152] ret:-2 [17:54:42:348] [11-15 09:54:42 ty D][lr:0x80f1f64] active event, type:0, stage:1 info->linkage:2 [17:54:42:348] [11-15 09:54:42 ty D][lr:0x81102f8] set netcfgstat, stage:3, status:9 [17:54:42:348] [11-15 09:54:42 ty D][lr:0x810976e] ble get conn stat:3 [17:54:42:348] [11-15 09:54:42 ty D][lr:0x811034a] get netcfg stat:{"type":0,"stage":3,"status":9} [17:54:42:348] [11-15 09:54:42 ty D][lr:0x810976e] ble get conn stat:3 [17:54:42:348] [11-15 09:54:42 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x801f encrpyt:15 [17:54:42:348] [11-15 09:54:42 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 35 <0x20033958> [17:54:42:348] 00 00 00 04 7b 22 74 79 70 65 22 3a 30 2c 22 73 74 61 67 65 22 3a 33 2c 22 73 74 61 74 75 73 22 3a 39 7d [17:54:42:358] [17:54:42:358] [11-15 09:54:42 ty D][lr:0x810976e] ble get conn stat:3 [17:54:42:358] [11-15 09:54:42 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:81 [17:54:42:358] [11-15 09:54:42 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 84 <0x20033ca0> [17:54:42:358] 00 51 48 0f 53 5e 3e f8 59 4f 91 15 2d bd 11 91 fd c9 fe 4c a1 d1 64 ba 28 00 dd 84 d9 a9 19 7a 5e b0 61 7c ef 53 0f bb ca 65 f4 28 a5 7e 0d eb d9 e6 62 02 c1 47 ca bd 52 cc 8c 53 f5 32 a3 7e [17:54:42:358] b8 26 cc a4 c6 23 73 cc 0e c9 8b 88 70 48 fe 66 cd 1b e4 0e [17:54:42:358] [17:54:42:358] [11-15 09:54:42 ty D][lr:0x80f2056] after activated mthd:0 start_mode:4 nc_tp [9] md [3] [17:54:42:365] [11-15 09:54:42 ty D][lr:0x81101be] state change from 1 to 3 [17:54:42:365] [11-15 09:54:42 ty D][lr:0x811d9c6] protected write [gw_wsm][159] [17:54:42:376] [11-15 09:54:42 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:81, send_ret:0x0 [17:54:42:378] [11-15 09:54:42 ty N][lr:0x810f90c] already bind [17:54:42:384] [11-15 09:54:42 ty W][tuya_app_main.c:93] SOC TUYA-Cloud Status:3 [17:54:42:384] [11-15 09:54:42 ty I][lr:0x8105e7c] mqc app start ... [17:54:42:384] [11-15 09:54:42 ty D][lr:0x8105ed2] MQTT Protocol URL:m3.tuyacn.com:8886 Port:8886 [17:54:42:384] [11-15 09:54:42 ty I][tal_thread.c:184] thread_create name:mqtt_thread,stackDepth:4096,totalstackDepth:35328,priority:4 [17:54:42:384] [11-15 09:54:42 ty D][lr:0x810600a] mqtt send topic:smart/device/out/6ca3238e3a4acd8a2fnfju [17:54:42:394] [11-15 09:54:42 ty D][lr:0x8106034] mqtt-media send topic:d/m/o/6ca3238e3a4acd8a2fnfju [17:54:42:394] [11-15 09:54:42 ty N][lr:0x8106696] [mqtts://m3.tuyacn.com:8886] mqtt state change 0 -> 1 [17:54:42:394] [11-15 09:54:42 ty D][tal_thread.c:203] Thread:mqtt_thread Exec Start. Set to Running Stat [17:54:42:394] [11-15 09:54:42 ty N][lr:0x8106cb2] connect to mqtt broker mqtts://m3.tuyacn.com:8886 port 8886 [17:54:42:394] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:64 cnt:3 [17:54:42:394] tkl_wifi_station_get_status:stat:6 [17:54:42:394] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:19 cnt:4 [17:54:42:394] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:22 cnt:5 [17:54:42:394] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:55 cnt:6 [17:54:42:401] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:15 cnt:7 [17:54:42:401] [11-15 09:54:42 ty N][lr:0x8106d00] mqtt client ip:172.20.10.5 [17:54:42:401] [11-15 09:54:42 ty D][lr:0x8103400] unw_gethostbyname m3.tuyacn.com, prio 1 [17:54:42:401] [11-15 09:54:42 ty D][lr:0x810347a] use dynamic dns ip:121.5.96.27 for domain:m3.tuyacn.com [17:54:42:408] [11-15 09:54:42 ty D][lr:0x8120130] bind ip:ac140a05 port:47999 ok [17:54:42:555] [11-15 09:54:42 ty D][lr:0x811daca] protected write ret:0 [17:54:42:565] [11-15 09:54:42 ty D][lr:0x80e1bb6] upgrade active success [17:54:42:565] [11-15 09:54:42 ty D][lr:0x81026b2] mqtt log topic init log/realtime/6ca3238e3a4acd8a2fnfju [17:54:42:565] [11-15 09:54:42 ty D][lr:0x81026bc] mqtt log topic init log/runstat/6ca3238e3a4acd8a2fnfju [17:54:42:565] [11-15 09:54:42 ty D][lr:0x81026f4] svc online log active success [17:54:42:565] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:11 cnt:8 [17:54:42:565] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:41 cnt:9 [17:54:42:565] [11-15 09:54:42 ty D][lr:0x8105c86] mq_pro:27 cnt:10 [17:54:42:565] [11-15 09:54:42 ty D][lr:0x8113208] localkey.init------>localkey[L] [17:54:42:565] [11-15 17:54:42 ty D][lr:0x80e4902] support log upd meta rept [17:54:42:575] [11-15 17:54:42 ty D][lr:0x8102188] need_report 1 mode 0 [17:54:42:575] [11-15 17:54:42 ty E][lr:0x8104692] astro timer read fail:-6 [17:54:42:575] [11-15 17:54:42 ty E][lr:0x8104b12] read fail:-6 [17:54:42:575] [11-15 17:54:42 ty D][lr:0x81040cc] update time tp:60000, delay:112s [17:54:42:575] [11-15 17:54:42 ty D][lr:0x8105c86] mq_pro:100 cnt:11 [17:54:42:575] [11-15 17:54:42 ty D][lr:0x80f0196] wifi protect ap info init [17:54:42:575] [11-15 17:54:42 ty D][lr:0x81090b8] meta rpt for ble v2 crpt [17:54:42:575] [11-15 17:54:42 ty D][lr:0x8102188] need_report 1 mode 0 [17:54:42:575] [11-15 17:54:42 ty D][lr:0x8102188] need_report 1 mode 0 [17:54:42:582] [11-15 17:54:42 ty N][lr:0x80f362c] lan recv devos run evt [17:54:42:582] [11-15 17:54:42 ty D][lr:0x81131c2] Localkey update run [17:54:42:582] [11-15 17:54:42 ty D][lr:0x8102188] need_report 1 mode 0 [17:54:42:979] [11-15 17:54:43 ty D][lr:0x80e2b1c] gw_wsm write ret:0 [17:54:42:980] [11-15 17:54:43 ty D][lr:0x8120a86] write encrpt flag to flash:1 [17:54:43:117] [11-15 17:54:43 ty D][lr:0x81090b8] meta rpt for ble v2 crpt [17:54:43:128] [11-15 17:54:43 ty D][lr:0x8102188] need_report 0 mode 0 [17:54:43:128] [11-15 17:54:43 ty E][lr:0x810a58c] tuya_ble_save_beacon_key err -1 [17:54:43:128] [11-15 17:54:43 ty N][lr:0x8109ce6] bt rpt conn stat:9 [17:54:43:128] [11-15 17:54:43 ty D][lr:0x810976e] ble get conn stat:3 [17:54:43:128] [11-15 17:54:43 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x22 encrpyt:12 [17:54:43:128] [11-15 17:54:43 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 2 <0x2002dc14> [17:54:43:128] 00 09 [17:54:43:128] [17:54:43:128] [11-15 17:54:43 ty D][lr:0x810976e] ble get conn stat:3 [17:54:43:128] [11-15 17:54:43 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:33 [17:54:43:128] [11-15 17:54:43 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 36 <0x20035138> [17:54:43:128] 00 21 49 0c ca 31 02 d2 1a 20 09 3c ae ba 9f eb 3e cf de 13 11 b4 2a 1a 7f ed 32 6a f7 be 7c 39 7f 96 59 51 [17:54:43:128] [17:54:43:128] [11-15 17:54:43 ty D][lr:0x8111126] [2][45]:{"ts":1700042082,"dt":2,"tp":2,"du":0,"re":9} [17:54:43:139] [11-15 17:54:43 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:54:43:139] [11-15 17:54:43 ty D][lr:0x81111e4] read file ok at offset:1024 [17:54:43:148] [11-15 17:54:43 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:33, send_ret:0x0 [17:54:43:396] [11-15 17:54:43 ty D][lr:0x8111192] available slot index:6, part index: 1, part offset:1024 [17:54:43:566] [11-15 17:54:43 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:54:43:577] [11-15 17:54:43 ty E][lr:0x8111216] data update ret:0 [17:54:43:577] handle_gatts_msg type 2 [17:54:43:583] handle_gatts_msg type 2 [17:54:43:583] handle_gatts_msg type 2 [17:54:43:583] handle_gatts_msg type 2 [17:54:43:583] tkl_wifi_station_get_status:stat:6 [17:54:43:642] [11-15 17:54:43 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:43:652] [11-15 17:54:43 ty D][lr:0x8103c42] TUYA_TLS Begin Connect m3.tuyacn.com:8886 [17:54:43:652] [11-15 17:54:43 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:43:652] [11-15 17:54:43 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:43:714] tkl_wifi_station_get_status:stat:6 [17:54:43:716] tkl_wifi_station_get_status:stat:6 [17:54:43:799] [11-15 17:54:43 ty D][lr:0x8109ebc] rev ble event 13 [17:54:43:810] [11-15 17:54:43 ty D][lr:0x8109f6e] Dev Rev BT Package [17:54:43:810] [11-15 17:54:43 ty D][tuya_ble_svc.c:113] bt_rev_raw 36 <0x2000fe5c> [17:54:43:810] 00 21 20 0c c8 ea fa f5 3f 2f b8 de 95 9d 1e 95 a3 b8 c6 e9 bb 57 35 b8 7b f3 21 2d 86 b2 ae 1b 47 42 17 6c [17:54:43:810] [17:54:43:810] [11-15 17:54:43 ty D][lr:0x810ae5c] recive sub_pkg desc:3, no:1, pack_len:33, total_len:33 [17:54:43:810] [11-15 17:54:43 ty D][tuya_ble_svc.c:113] ble rev data 33 <0x2002ac14> [17:54:43:810] 0c c8 ea fa f5 3f 2f b8 de 95 9d 1e 95 a3 b8 c6 e9 bb 57 35 b8 7b f3 21 2d 86 b2 ae 1b 47 42 17 6c [17:54:43:810] [17:54:43:810] [11-15 17:54:43 ty D][tuya_ble_svc.c:113] ble decryped data 16 <0x2002b018> [17:54:43:810] 00 00 00 04 00 00 00 00 00 22 00 01 00 d6 49 00 [17:54:43:810] [17:54:43:810] [11-15 17:54:43 ty D][lr:0x810976e] ble get conn stat:3 [17:54:43:819] [11-15 17:54:43 ty D][lr:0x810b0cc] Parse BT Cmd:0x22 mode:12 [17:54:43:819] [11-15 17:54:43 ty D][lr:0x810b0e2] check cmd encrpt mode err [17:54:43:841] [11-15 17:54:43 ty D][lr:0x8103da0] handshake finish for m3.tuyacn.com. set send/recv to user set [17:54:43:843] [11-15 17:54:43 ty D][lr:0x8103dca] TUYA_TLS Success Connect m3.tuyacn.com:8886 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:43:852] [11-15 17:54:43 ty N][lr:0x8106e3c] setup mqtt transporter success [17:54:43:852] [11-15 17:54:43 ty N][lr:0x8106696] [mqtts://m3.tuyacn.com:8886] mqtt state change 1 -> 2 [17:54:43:852] [11-15 17:54:43 ty N][lr:0x8106eec] send mqtt connect success [17:54:43:852] [11-15 17:54:43 ty N][lr:0x8106696] [mqtts://m3.tuyacn.com:8886] mqtt state change 2 -> 3 [17:54:43:939] [11-15 17:54:43 ty N][lr:0x8106f62] mqtt connect success [17:54:43:941] [11-15 17:54:43 ty N][lr:0x8106696] [mqtts://m3.tuyacn.com:8886] mqtt state change 3 -> 4 [17:54:43:952] [11-15 17:54:43 ty N][lr:0x8106fd4] mqtt topics cnt 1 [17:54:44:586] tkl_wifi_station_get_status:stat:6 [17:54:44:717] tkl_wifi_station_get_status:stat:6 [17:54:44:718] tkl_wifi_station_get_status:stat:6 [17:54:45:588] tkl_wifi_station_get_status:stat:6 [17:54:45:710] [11-15 17:54:45 ty D][lr:0x80fe504] Post Data: {"t":1700042085} [17:54:45:720] [11-15 17:54:45 ty D][lr:0x80fe5bc] Post URL: https://a3.tuyacn.com/d.json?a=tuya.device.uuid.pskkey.get&et=3&t=1700042085&uuid=uuidda4679f2f16644f8&v=1.0&sign=5ac039afe8eb5031745ce6cb6fbadf02 [17:54:45:720] tkl_wifi_station_get_status:stat:6 [17:54:45:720] [11-15 17:54:45 ty D][lr:0x811b7f0] Connect: a3.tuyacn.com Port: 443 -->> [17:54:45:720] [11-15 17:54:45 ty D][lr:0x8103400] unw_gethostbyname a3.tuyacn.com, prio 1 [17:54:45:720] [11-15 17:54:45 ty D][lr:0x810347a] use dynamic dns ip:81.69.183.170 for domain:a3.tuyacn.com [17:54:45:720] [11-15 17:54:45 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:45:816] [11-15 17:54:45 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:45:828] [11-15 17:54:45 ty D][lr:0x8103c42] TUYA_TLS Begin Connect a3.tuyacn.com:443 [17:54:45:828] [11-15 17:54:45 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:45:828] [11-15 17:54:45 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:46:151] [11-15 17:54:46 ty D][lr:0x8103da0] handshake finish for a3.tuyacn.com. set send/recv to user set [17:54:46:163] [11-15 17:54:46 ty D][lr:0x8103dca] TUYA_TLS Success Connect a3.tuyacn.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:46:163] [11-15 17:54:46 ty D][lr:0x811b816] Connect: a3.tuyacn.com Port: 443 --<< ,r:0 [17:54:46:323] [11-15 17:54:46 ty D][lr:0x80fed36] Decode Rev:{"result":{"pskKey":"Uf6COBuCTIKtTwRnpt86oiTux6iu7TiWjvESb"},"t":1700042086,"success":true} [17:54:46:325] [11-15 17:54:46 ty D][lr:0x8107caa] tls transporter close socket fd:4 [17:54:46:336] [11-15 17:54:46 ty D][lr:0x812018e] tcp transporter close socket fd:4 [17:54:46:336] [11-15 17:54:46 ty D][lr:0x8107cc8] tls transporter close tls handler:0x20037930 [17:54:46:336] [11-15 17:54:46 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:46:336] [11-15 17:54:46 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:46:336] [11-15 17:54:46 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:46:336] [11-15 17:54:46 ty D][lr:0x811d9c6] protected write [gw_bi][269] [17:54:46:500] [11-15 17:54:46 ty D][lr:0x811daca] protected write ret:0 [17:54:46:766] [11-15 17:54:46 ty D][lr:0x80e2d40] gw_bi write ret:0 [17:54:46:766] tkl_wifi_station_get_status:stat:6 [17:54:46:778] tkl_wifi_station_get_status:stat:6 [17:54:46:778] tkl_wifi_station_get_status:stat:6 [17:54:46:791] tkl_wifi_station_get_status:stat:6 [17:54:46:791] tkl_wifi_station_get_status:stat:6 [17:54:47:163] tkl_wifi_station_get_status:stat:6 [17:54:47:774] tkl_wifi_station_get_status:stat:6 [17:54:47:794] tkl_wifi_station_get_status:stat:6 [17:54:47:794] tkl_wifi_station_get_status:stat:6 [17:54:47:804] [11-15 17:54:47 ty D][lr:0x8101ffa] report meta to cloud [17:54:47:804] [11-15 17:54:47 ty D][lr:0x80fe504] Post Data: {"metas":{"supportLogUpd":true,"btScyChannel":"{\"enable\":1,\"version\":\"1.0\"}","timerCapability":1,"supportLocalKeyChange":true},"t":1700042087} [17:54:47:811] [11-15 17:54:47 ty D][lr:0x80fe5bc] Post URL: https://a3.tuyacn.com/d.json?a=tuya.device.meta.save&devId=6ca3238e3a4acd8a2fnfju&et=3&t=1700042087&v=1.0&sign=27a457ed6776d351d23244c6e28b30bb [17:54:47:811] tkl_wifi_station_get_status:stat:6 [17:54:47:811] [11-15 17:54:47 ty D][lr:0x811b7f0] Connect: a3.tuyacn.com Port: 443 -->> [17:54:47:818] [11-15 17:54:47 ty D][lr:0x8103400] unw_gethostbyname a3.tuyacn.com, prio 1 [17:54:47:818] [11-15 17:54:47 ty D][lr:0x810347a] use dynamic dns ip:81.69.183.170 for domain:a3.tuyacn.com [17:54:47:818] [11-15 17:54:47 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:47:891] [11-15 17:54:47 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:47:898] [11-15 17:54:47 ty D][lr:0x8103c42] TUYA_TLS Begin Connect a3.tuyacn.com:443 [17:54:47:898] [11-15 17:54:47 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:47:898] [11-15 17:54:47 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:48:113] [11-15 17:54:48 ty D][lr:0x8103da0] handshake finish for a3.tuyacn.com. set send/recv to user set [17:54:48:124] [11-15 17:54:48 ty D][lr:0x8103dca] TUYA_TLS Success Connect a3.tuyacn.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:48:124] [11-15 17:54:48 ty D][lr:0x811b816] Connect: a3.tuyacn.com Port: 443 --<< ,r:0 [17:54:48:296] [11-15 17:54:48 ty D][lr:0x80fed36] Decode Rev:{"result":true,"t":1700042088,"success":true} [17:54:48:307] [11-15 17:54:48 ty D][lr:0x8107caa] tls transporter close socket fd:4 [17:54:48:307] [11-15 17:54:48 ty D][lr:0x812018e] tcp transporter close socket fd:4 [17:54:48:307] [11-15 17:54:48 ty D][lr:0x8107cc8] tls transporter close tls handler:0x200384f0 [17:54:48:307] [11-15 17:54:48 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:48:307] [11-15 17:54:48 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:48:307] [11-15 17:54:48 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:48:577] [11-15 17:54:48 ty D][lr:0x80e435a] feed watchdog [17:54:48:577] free heap:93776 [17:54:48:832] tkl_wifi_station_get_status:stat:6 [17:54:48:834] tkl_wifi_station_get_status:stat:6 [17:54:48:943] tkl_wifi_station_get_status:stat:6 [17:54:49:834] tkl_wifi_station_get_status:stat:6 [17:54:49:845] tkl_wifi_station_get_status:stat:6 [17:54:49:945] tkl_wifi_station_get_status:stat:6 [17:54:50:836] tkl_wifi_station_get_status:stat:6 [17:54:50:838] tkl_wifi_station_get_status:stat:6 [17:54:50:946] tkl_wifi_station_get_status:stat:6 [17:54:51:838] tkl_wifi_station_get_status:stat:6 [17:54:51:839] tkl_wifi_station_get_status:stat:6 [17:54:51:948] tkl_wifi_station_get_status:stat:6 [17:54:52:210] tkl_wifi_station_get_status:stat:6 [17:54:52:831] [11-15 17:54:52 ty D][lr:0x80fe504] Post Data: {"type":"[\"timezone\",\"rateRule\",\"seniorAbility\"]","t":1700042092} [17:54:52:842] [11-15 17:54:52 ty D][lr:0x80fe5bc] Post URL: https://a3.tuyacn.com/d.json?a=tuya.device.dynamic.config.get&devId=6ca3238e3a4acd8a2fnfju&et=3&t=1700042092&v=2.0&sign=391334036755e449c7507a429bab25c4 [17:54:52:842] tkl_wifi_station_get_status:stat:6 [17:54:52:842] [11-15 17:54:52 ty D][lr:0x811b7f0] Connect: a3.tuyacn.com Port: 443 -->> [17:54:52:842] [11-15 17:54:52 ty D][lr:0x8103400] unw_gethostbyname a3.tuyacn.com, prio 1 [17:54:52:842] [11-15 17:54:52 ty D][lr:0x810347a] use dynamic dns ip:81.69.183.170 for domain:a3.tuyacn.com [17:54:52:842] [11-15 17:54:52 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:52:911] [11-15 17:54:52 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:52:922] [11-15 17:54:52 ty D][lr:0x8103c42] TUYA_TLS Begin Connect a3.tuyacn.com:443 [17:54:52:922] [11-15 17:54:52 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:52:922] [11-15 17:54:52 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:52:951] tkl_wifi_station_get_status:stat:6 [17:54:53:109] [11-15 17:54:52 ty D][lr:0x8103da0] handshake finish for a3.tuyacn.com. set send/recv to user set [17:54:53:110] [11-15 17:54:52 ty D][lr:0x8103dca] TUYA_TLS Success Connect a3.tuyacn.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:53:120] [11-15 17:54:52 ty D][lr:0x811b816] Connect: a3.tuyacn.com Port: 443 --<< ,r:0 [17:54:53:289] [11-15 17:54:53 ty D][lr:0x80fed36] Decode Rev:{"result":{"timezone":{"ackId":"0-0","validTime":1800,"time":1700042093,"config":{"stdTimeZone":"+08:00","dstIntervals":[]}},"seniorAbility":{}},"t":1700042093,"success":true} [17:54:53:302] [11-15 17:54:53 ty D][lr:0x8107caa] tls transporter close socket fd:4 [17:54:53:302] [11-15 17:54:53 ty D][lr:0x812018e] tcp transporter close socket fd:4 [17:54:53:302] [11-15 17:54:53 ty D][lr:0x8107cc8] tls transporter close tls handler:0x20037930 [17:54:53:302] [11-15 17:54:53 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:53:302] [11-15 17:54:53 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:53:302] [11-15 17:54:53 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:53:302] [11-15 17:54:53 ty D][lr:0x811276c] timezone:+08:00 [17:54:53:302] [11-15 17:54:53 ty D][lr:0x8112814] summer_time_zone:[] [17:54:53:568] [11-15 17:54:53 ty D][lr:0x80e2890] gw_ai write ret:0 [17:54:53:579] [11-15 17:54:53 ty D][lr:0x80e3c9a] reset dp rate rule finish. [17:54:53:579] [11-15 17:54:53 ty D][lr:0x80fe504] Post Data: {"ackList":[{"type":"timezone","ackId":"0-0"}],"t":1700042093} [17:54:53:579] [11-15 17:54:53 ty D][lr:0x80fe5bc] Post URL: https://a3.tuyacn.com/d.json?a=tuya.device.dynamic.config.ack&devId=6ca3238e3a4acd8a2fnfju&et=3&t=1700042093&v=2.0&sign=dcd7caec944ac05cef50c99a1aee587c [17:54:53:579] tkl_wifi_station_get_status:stat:6 [17:54:53:579] [11-15 17:54:53 ty D][lr:0x811b7f0] Connect: a3.tuyacn.com Port: 443 -->> [17:54:53:579] [11-15 17:54:53 ty D][lr:0x8103400] unw_gethostbyname a3.tuyacn.com, prio 1 [17:54:53:579] [11-15 17:54:53 ty D][lr:0x810347a] use dynamic dns ip:81.69.183.170 for domain:a3.tuyacn.com [17:54:53:587] [11-15 17:54:53 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:53:664] [11-15 17:54:53 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:53:675] [11-15 17:54:53 ty D][lr:0x8103c42] TUYA_TLS Begin Connect a3.tuyacn.com:443 [17:54:53:675] [11-15 17:54:53 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:53:675] [11-15 17:54:53 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:53:912] [11-15 17:54:53 ty D][lr:0x8103da0] handshake finish for a3.tuyacn.com. set send/recv to user set [17:54:53:924] [11-15 17:54:53 ty D][lr:0x8103dca] TUYA_TLS Success Connect a3.tuyacn.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:53:924] [11-15 17:54:53 ty D][lr:0x811b816] Connect: a3.tuyacn.com Port: 443 --<< ,r:0 [17:54:54:087] tkl_wifi_station_get_status:stat:6 [17:54:54:115] [11-15 17:54:53 ty D][lr:0x80fed36] Decode Rev:{"t":1700042094,"success":true} [17:54:54:127] [11-15 17:54:54 ty D][lr:0x8107caa] tls transporter close socket fd:4 [17:54:54:127] [11-15 17:54:54 ty D][lr:0x812018e] tcp transporter close socket fd:4 [17:54:54:127] [11-15 17:54:54 ty D][lr:0x8107cc8] tls transporter close tls handler:0x200384f0 [17:54:54:127] [11-15 17:54:54 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:54:127] [11-15 17:54:54 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:54:127] [11-15 17:54:54 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:54:127] [11-15 17:54:54 ty D][lr:0x80ffc18] dynamic cfg post data:{"ackList":[{"type":"timezone","ackId":"0-0"}],"t":1700042093}, ret:0. [17:54:54:127] [11-15 17:54:54 ty D][lr:0x80fe504] Post Data: {"data":"0","t":1700042094} [17:54:54:136] [11-15 17:54:54 ty D][lr:0x80fe5bc] Post URL: https://a3.tuyacn.com/d.json?a=atop.online.debug.log&devId=6ca3238e3a4acd8a2fnfju&et=3&t=1700042094&sign=1541efde2b69ca6d968839f22bcd73c1 [17:54:54:136] tkl_wifi_station_get_status:stat:6 [17:54:54:136] [11-15 17:54:54 ty D][lr:0x811b7f0] Connect: a3.tuyacn.com Port: 443 -->> [17:54:54:136] [11-15 17:54:54 ty D][lr:0x8103400] unw_gethostbyname a3.tuyacn.com, prio 1 [17:54:54:136] [11-15 17:54:54 ty D][lr:0x810347a] use dynamic dns ip:81.69.183.170 for domain:a3.tuyacn.com [17:54:54:136] [11-15 17:54:54 ty D][lr:0x8120130] bind ip:ac140a05 port:0 ok [17:54:54:229] [11-15 17:54:54 ty D][lr:0x8103c18] MAX SECURITY_LEVEL:0, TUYA SECURITY_LEVEL:0, mode:0 [17:54:54:242] [11-15 17:54:54 ty D][lr:0x8103c42] TUYA_TLS Begin Connect a3.tuyacn.com:443 [17:54:54:242] [11-15 17:54:54 ty D][lr:0x8103cd4] TUYA_TLS PSK Mode [17:54:54:242] [11-15 17:54:54 ty D][lr:0x8103d80] socket fd is set. set to inner send/recv to handshake [17:54:54:469] [11-15 17:54:54 ty D][lr:0x8103da0] handshake finish for a3.tuyacn.com. set send/recv to user set [17:54:54:480] [11-15 17:54:54 ty D][lr:0x8103dca] TUYA_TLS Success Connect a3.tuyacn.com:443 Suit:TLS-PSK-WITH-AES-128-CBC-SHA256 [17:54:54:480] [11-15 17:54:54 ty D][lr:0x811b816] Connect: a3.tuyacn.com Port: 443 --<< ,r:0 [17:54:54:675] [11-15 17:54:54 ty D][lr:0x80fed36] Decode Rev:{"result":true,"t":1700042095,"success":true} [17:54:54:687] [11-15 17:54:55 ty D][lr:0x8107caa] tls transporter close socket fd:4 [17:54:54:687] [11-15 17:54:55 ty D][lr:0x812018e] tcp transporter close socket fd:4 [17:54:54:687] [11-15 17:54:55 ty D][lr:0x8107cc8] tls transporter close tls handler:0x20037930 [17:54:54:687] [11-15 17:54:55 ty D][lr:0x8103ef2] TUYA_TLS Disconnect ENTER [17:54:54:687] [11-15 17:54:55 ty D][lr:0x8103f52] TUYA_TLS Disconnect Success [17:54:54:687] [11-15 17:54:55 ty D][lr:0x8103b96] tuya_tls_connect_destroy. [17:54:54:687] [11-15 17:54:55 ty D][lr:0x81128f4] put rst log finish [17:54:54:687] tkl_wifi_station_get_status:stat:6 [17:54:54:687] tkl_wifi_station_get_status:stat:6 [17:54:54:687] tkl_wifi_station_get_status:stat:6 [17:54:54:687] tkl_wifi_station_get_status:stat:6 [17:54:54:892] tkl_wifi_station_get_status:stat:6 [17:54:54:892] tkl_wifi_station_get_status:stat:6 [17:54:55:090] tkl_wifi_station_get_status:stat:6 [17:54:55:894] tkl_wifi_station_get_status:stat:6 [17:54:55:905] tkl_wifi_station_get_status:stat:6 [17:54:56:092] tkl_wifi_station_get_status:stat:6 [17:54:56:895] tkl_wifi_station_get_status:stat:6 [17:54:56:897] tkl_wifi_station_get_status:stat:6 [17:54:57:094] tkl_wifi_station_get_status:stat:6 [17:54:57:267] tkl_wifi_station_get_status:stat:6 [17:54:57:898] tkl_wifi_station_get_status:stat:6 [17:54:57:898] tkl_wifi_station_get_status:stat:6 [17:54:58:096] tkl_wifi_station_get_status:stat:6 [17:54:58:646] [11-15 17:54:58 ty D][lr:0x80e435a] feed watchdog [17:54:58:646] free heap:93632 [17:54:58:900] tkl_wifi_station_get_status:stat:6 [17:54:58:900] tkl_wifi_station_get_status:stat:6 [17:54:59:098] tkl_wifi_station_get_status:stat:6 [17:54:59:337] [11-15 17:54:59 ty D][lr:0x80e329c] set time by rtc [17:54:59:902] tkl_wifi_station_get_status:stat:6 [17:54:59:903] tkl_wifi_station_get_status:stat:6 [17:55:00:100] tkl_wifi_station_get_status:stat:6 [17:55:00:904] tkl_wifi_station_get_status:stat:6 [17:55:00:904] tkl_wifi_station_get_status:stat:6 [17:55:01:102] tkl_wifi_station_get_status:stat:6 [17:55:01:907] tkl_wifi_station_get_status:stat:6 [17:55:01:907] tkl_wifi_station_get_status:stat:6 [17:55:02:104] tkl_wifi_station_get_status:stat:6 [17:55:02:279] tkl_wifi_station_get_status:stat:6 [17:55:02:908] tkl_wifi_station_get_status:stat:6 [17:55:02:917] tkl_wifi_station_get_status:stat:6 [17:55:03:107] tkl_wifi_station_get_status:stat:6 [17:55:03:910] tkl_wifi_station_get_status:stat:6 [17:55:03:912] tkl_wifi_station_get_status:stat:6 [17:55:04:108] tkl_wifi_station_get_status:stat:6 [17:55:04:913] tkl_wifi_station_get_status:stat:6 [17:55:04:913] tkl_wifi_station_get_status:stat:6 [17:55:05:111] tkl_wifi_station_get_status:stat:6 [17:55:05:915] tkl_wifi_station_get_status:stat:6 [17:55:05:915] tkl_wifi_station_get_status:stat:6 [17:55:06:113] tkl_wifi_station_get_status:stat:6 [17:55:06:917] tkl_wifi_station_get_status:stat:6 [17:55:06:917] tkl_wifi_station_get_status:stat:6 [17:55:07:115] tkl_wifi_station_get_status:stat:6 [17:55:07:289] tkl_wifi_station_get_status:stat:6 [17:55:07:919] tkl_wifi_station_get_status:stat:6 [17:55:07:919] tkl_wifi_station_get_status:stat:6 [17:55:08:117] tkl_wifi_station_get_status:stat:6 [17:55:08:668] [11-15 17:55:14 ty D][lr:0x80e435a] feed watchdog [17:55:08:668] free heap:93632 [17:55:08:920] tkl_wifi_station_get_status:stat:6 [17:55:08:922] tkl_wifi_station_get_status:stat:6 [17:55:09:118] tkl_wifi_station_get_status:stat:6 [17:55:09:923] tkl_wifi_station_get_status:stat:6 [17:55:09:923] tkl_wifi_station_get_status:stat:6 [17:55:10:121] tkl_wifi_station_get_status:stat:6 [17:55:10:925] tkl_wifi_station_get_status:stat:6 [17:55:10:926] tkl_wifi_station_get_status:stat:6 [17:55:11:123] tkl_wifi_station_get_status:stat:6 [17:55:11:927] tkl_wifi_station_get_status:stat:6 [17:55:11:928] tkl_wifi_station_get_status:stat:6 [17:55:12:126] tkl_wifi_station_get_status:stat:6 [17:55:12:299] tkl_wifi_station_get_status:stat:6 [17:55:12:929] tkl_wifi_station_get_status:stat:6 [17:55:12:937] tkl_wifi_station_get_status:stat:6 [17:55:13:128] tkl_wifi_station_get_status:stat:6 [17:55:13:932] tkl_wifi_station_get_status:stat:6 [17:55:13:932] tkl_wifi_station_get_status:stat:6 [17:55:14:130] tkl_wifi_station_get_status:stat:6 [17:55:14:934] tkl_wifi_station_get_status:stat:6 [17:55:14:934] tkl_wifi_station_get_status:stat:6 [17:55:15:132] tkl_wifi_station_get_status:stat:6 [17:55:15:935] tkl_wifi_station_get_status:stat:6 [17:55:15:935] tkl_wifi_station_get_status:stat:6 [17:55:16:133] tkl_wifi_station_get_status:stat:6 [17:55:16:937] tkl_wifi_station_get_status:stat:6 [17:55:16:939] tkl_wifi_station_get_status:stat:6 [17:55:17:136] tkl_wifi_station_get_status:stat:6 [17:55:17:309] tkl_wifi_station_get_status:stat:6 [17:55:17:939] tkl_wifi_station_get_status:stat:6 [17:55:17:940] tkl_wifi_station_get_status:stat:6 [17:55:18:138] tkl_wifi_station_get_status:stat:6 [17:55:18:690] [11-15 17:55:24 ty D][lr:0x80e435a] feed watchdog [17:55:18:690] free heap:93632 [17:55:18:943] tkl_wifi_station_get_status:stat:6 [17:55:18:943] tkl_wifi_station_get_status:stat:6 [17:55:19:141] tkl_wifi_station_get_status:stat:6 [17:55:19:944] tkl_wifi_station_get_status:stat:6 [17:55:19:945] tkl_wifi_station_get_status:stat:6 [17:55:20:143] tkl_wifi_station_get_status:stat:6 [17:55:20:415] [11-15 17:55:26 ty N][lr:0x810edb6] wifi status changed to 2, stat: 2 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x810ee88] wifi disconnected event 2 [17:55:20:424] tkl_wifi_station_get_status:stat:1 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x80ee0ac] upload wifi connect err:4 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x80f1bee] do proxy actived work,mode:2,stat:2,nc_tp:9 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x81102f8] set netcfgstat, stage:2, status:4 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x810976e] ble get conn stat:3 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x811034a] get netcfg stat:{"type":0,"stage":2,"status":4} [17:55:20:424] [11-15 17:55:26 ty D][lr:0x810976e] ble get conn stat:3 [17:55:20:424] [11-15 17:55:26 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x801f encrpyt:15 [17:55:20:433] [11-15 17:55:26 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 35 <0x20036210> [17:55:20:433] 00 00 00 04 7b 22 74 79 70 65 22 3a 30 2c 22 73 74 61 67 65 22 3a 32 2c 22 73 74 61 74 75 73 22 3a 34 7d [17:55:20:433] [17:55:20:433] [11-15 17:55:26 ty D][lr:0x810976e] ble get conn stat:3 [17:55:20:790] [11-15 17:55:26 ty D][lr:0x80ee116] stat:1 [17:55:20:790] [11-15 17:55:26 ty D][lr:0x80f61aa] link[2] is_up[0] active_link[1] status[2] [17:55:20:799] tkl_wifi_station_get_status:stat:1 [17:55:20:799] [11-15 17:55:26 ty N][lr:0x80ef2d2] cur stat:5 0x80dde28 -->> [17:55:20:799] tkl_wifi_station_get_status:stat:1 [17:55:20:799] [11-15 17:55:26 ty D][lr:0x80edf60] Get Rssi:-23 [17:55:20:799] [11-15 17:55:26 ty D][lr:0x8111126] [6][46]:{"ts":1700042126,"dt":6,"tp":10,"s":5,"r":-23} [17:55:20:799] [11-15 17:55:26 ty D][lr:0x8110fd6] index:1 offset:1024, 0, -3, -4 [17:55:20:799] [11-15 17:55:26 ty D][lr:0x81111e4] read file ok at offset:0 [17:55:21:012] [11-15 17:55:26 ty D][lr:0x810a10e] nw stat change:1->0, rpt to app. [17:55:21:012] tkl_wifi_station_get_status:stat:1 [17:55:21:022] [11-15 17:55:26 ty D][lr:0x810a1aa] tuya_ble_send_dev_nw_stat:0, force:0 [17:55:21:022] [11-15 17:55:26 ty D][lr:0x810976e] ble get conn stat:3 [17:55:21:022] [11-15 17:55:26 ty D][lr:0x810990e] tuya_ble_sdk_send. cmd:0x1e encrpyt:15 [17:55:21:022] [11-15 17:55:26 ty D][tuya_ble_svc.c:113] bt_ack_uncrypt 1 <0x2002c75e> [17:55:21:022] 00 [17:55:21:022] [17:55:21:022] [11-15 17:55:26 ty D][lr:0x810976e] ble get conn stat:3 [17:55:21:077] [11-15 17:55:26 ty D][lr:0x8111192] available slot index:3, part index: 0, part offset:0 [17:55:21:250] [11-15 17:55:26 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:55:21:259] [11-15 17:55:26 ty E][lr:0x8111216] data update ret:0 [17:55:21:259] [11-15 17:55:26 ty N][lr:0x80ef34e] wifi netstat changed to:5 -->> [17:55:21:259] [11-15 17:55:26 ty N][lr:0x80ef366] report wifi netstat[5] to callback -->> [17:55:21:259] [11-15 17:55:26 ty W][tuya_app_main.c:203] network status:5 [17:55:21:259] [11-15 17:55:26 ty D][lr:0x8111126] [2][46]:{"ts":1700042126,"dt":2,"tp":2,"du":44,"re":4} [17:55:21:259] [11-15 17:55:26 ty D][lr:0x8110fd6] index:0 offset:1024, 0, -3, -4 [17:55:21:259] [11-15 17:55:26 ty D][lr:0x81111e4] read file ok at offset:1024 [17:55:21:528] [11-15 17:55:26 ty D][lr:0x8111192] available slot index:7, part index: 1, part offset:1024 [17:55:21:703] [11-15 17:55:27 ty D][lr:0x8110dca] before file_size:2048, after file_size:2048 [17:55:21:714] [11-15 17:55:27 ty E][lr:0x8111216] data update ret:0 [17:55:21:714] tkl_wifi_station_get_status:stat:1 [17:55:21:714] tkl_wifi_station_get_status:stat:1 [17:55:21:714] --------------------------disconnected [17:55:22:189] tkl_wifi_station_get_status:stat:1 [17:55:22:191] tkl_wifi_station_get_status:stat:1 [17:55:22:213] tkl_wifi_station_get_status:stat:1 [17:55:22:412] Can not found candidate AP: 27. [17:55:22:421] [11-15 17:55:27 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:81 [17:55:22:421] [11-15 17:55:27 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 84 <0x20037510> [17:55:22:421] 00 51 4a 0f b1 7e 30 1e 84 34 00 e3 a8 cb ec 1b 68 19 39 b5 2d f1 81 b4 4e b3 ed e9 b6 5c dd 8e ec 9a e8 df 0d ef 4c 50 8c 7f b9 af 39 13 64 6f c2 fd 3d e5 6b 36 cd a7 0c c1 c7 7a 0c 67 a3 5c [17:55:22:421] 51 50 04 30 16 39 cf 55 11 fc 3b a7 da 3b b2 66 62 ed 02 d8 [17:55:22:421] [17:55:22:421] handle_gatts_msg type 2 [17:55:22:430] --------------------------connect fail [17:55:22:439] [11-15 17:55:27 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:81, send_ret:0x0 [17:55:22:441] [11-15 17:55:27 ty D][lr:0x8120c62] pkg max len:243, sunpkg_offset:3, send_data:33 [17:55:22:447] [11-15 17:55:27 ty D][tuya_ble_svc.c:113] tuya_sdk_bt_send 36 <0x20032770> [17:55:22:447] 00 21 4b 0f 9a 8b c2 9a a7 db 4e d7 a2 cc 72 a3 57 99 9b 4f 95 80 73 0f 68 3a 34 e5 9a f9 38 44 31 1a a0 6b [17:55:22:447] [17:55:22:447] handle_gatts_msg type 2 [17:55:22:464] [11-15 17:55:27 ty D][lr:0x8108c9e] ble_send_data_to_app finish. len:33, send_ret:0x0 [17:55:22:475] [11-15 17:55:27 ty N][lr:0x810edb6] wifi status changed to 1, stat: 1 [17:55:22:475] [11-15 17:55:27 ty D][lr:0x810ee2c] wifi connect wait 0-1 [17:55:22:561] tkl_wifi_station_get_status:stat:0 [17:55:23:191] tkl_wifi_station_get_status:stat:0 [17:55:23:193] tkl_wifi_station_get_status:stat:0 [17:55:23:215] tkl_wifi_station_get_status:stat:0 [17:55:23:469] [11-15 17:55:28 ty D][lr:0x810eef8] auto reconn timeout 3 [17:55:24:211] Can not found candidate AP: 27. [17:55:24:222] tkl_wifi_station_get_status:stat:1 [17:55:25:225] tkl_wifi_station_get_status:stat:1 [17:55:26:226] tkl_wifi_station_get_status:stat:1 [17:55:27:228] tkl_wifi_station_get_status:stat:1 [17:55:28:228] tkl_wifi_station_get_status:stat:1 [17:55:28:955] [11-15 17:55:34 ty D][lr:0x80e435a] feed watchdog [17:55:28:955] free heap:94296 [17:55:29:230] tkl_wifi_station_get_status:stat:1 [17:55:30:232] tkl_wifi_station_get_status:stat:1 [17:55:31:233] tkl_wifi_station_get_status:stat:1 [17:55:32:235] tkl_wifi_station_get_status:stat:1 [17:55:33:237] tkl_wifi_station_get_status:stat:1 [17:55:34:226] WIFI_MGMT: retry to connect, remaining times 1 [17:55:34:237] tkl_wifi_station_get_status:stat:1 [17:55:34:964] Can not found candidate AP: 27. [17:55:35:242] tkl_wifi_station_get_status:stat:1 [17:55:36:244] tkl_wifi_station_get_status:stat:1 [17:55:37:246] tkl_wifi_station_get_status:stat:1 [17:55:38:247] tkl_wifi_station_get_status:stat:1 [17:55:38:974] [11-15 17:55:44 ty D][lr:0x80e435a] feed watchdog [17:55:38:974] free heap:94296 [17:55:39:249] tkl_wifi_station_get_status:stat:1 [17:55:40:249] tkl_wifi_station_get_status:stat:1