PS C:\Users\marti> plink -serial COM15 -sercfg 115200,8,1,n,n
[01-01 01:01:46 TUYA Notice][uni_work_queue.c:146] work_queue add task:423d80
[01-01 01:01:46 TUYA Notice][uni_work_queue.c:146] work_queue add task:423d80
[01-01 01:01:46 TUYA Notice][uni_work_queue.c:146] work_queue add task:423d80
[01-01 01:01:46 TUYA Notice][uni_work_queue.c:146] work_queue add task:423ca0
[01-01 01:01:51 TUYA Notice][uni_work_queue.c:146] work_queue add task:423ca0
[01-01 01:01:51 TUYA Notice][uni_work_queue.c:146] work_queue add task:423ca0
[01-01 01:01:51 TUYA Notice][uni_work_queue.c:146] work_queue add task:423d80
[01-01 01:01:54 TUYA Err][httpc.c:532] tcp connect failed a3.tuyaeu.com:443 errno=0
[01-01 01:01:54 TUYA Err][http_inf.c:47] Open session failed: https://a3.tuyaeu.com/d.json?a=tuya.device.timer.astronomical.list&devId=bf8b7b4786bf21912d3gvv&et=1&t=114&v=1.0&sign=6aa264ac0cc8550bbec07864f521cbda (-7)
[01-01 01:01:54 TUYA Err][iot_httpc.c:1035] Post Data Return Fail.-7
[01-01 01:01:54 TUYA Err][astro_timer.c:326] httpc_astro_timer_list error:-7
[01-01 01:01:54 TUYA Err][astro_timer.c:402] astro timer update failed -7, next update time 43200s
[01-01 01:01:56 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
[01-01 01:01:56 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
[01-01 01:01:56 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:01 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:01 TUYA Notice][gw_intf.c:6391] gw is long time(60) disconnected to router/failed to connect mqtt,now go to reconnect!!
[01-01 01:02:01 TUYA Notice][gw_intf.c:6392] netstat:5
[01-01 01:02:01 TUYA Notice][gw_intf.c:6408] tuya_hal_wifi_station_disconnect
oper_state: state 0, operstate 0
fast_connect
no ht in scan
scan_start_req_handler
[01-01 01:02:01 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:01 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:01 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
[01-01 01:02:06 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
no ht in scan
scan_start_req_handler
[01-01 01:02:06 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
[01-01 01:02:06 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:11 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:11 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
[01-01 01:02:11 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
no ht in scan
scan_start_req_handler
cipher2security 2 2 16 16
sm_auth_req_handler: SM_IDLE, auth_type 0
sm_auth_send:1
sm_auth_handler
sm_assoc_req_handler 201
me_set_ps_disable:840 0 0 0 467769 932748
ht in assoc req
sm_assoc_rsp_handler
rc_init: station_id=0 format_mod=0 pre_type=2 short_gi=478625 max_bw=934078
rc_init: nss_max=0 mcs_max=0 r_idx_min=7 r_idx_max=478667 no_samples=934145
sm_assoc_ind set stats to SM_IDLE
WPA: TK 0f8a8e74eace0ac41c7805c7430653c8
sta_mgmt_add_key
WPA: GTK 66364cc76b54aad997fab9fa784d2614
ctrl_port_hdl:1
me_set_ps_disable:840 0 0 0 467769 932748
configuring interface mlan (with DHCP client)writed fci to flash
oper_state: state 0, operstate 1
new ie: 0 : 42 69 65 72
new ie: 1 : 82 84 8b 96 24 30 48 6c
new ie: 3 : 1
new ie: 30 : 1 0 0 f ac 4 1 0 0 f ac 4 1 0 0 f ac 2 c 0
new ie: 2d : 21 1 17 ff ff 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[01-01 01:02:16 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
[01-01 01:02:16 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
do td cur_t:283--last:idx:12,t:268 -- new:idx:13,t:280
--0xc:08, shift_b:-1, shift_g:-1, X:0
[01-01 01:02:16 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c90
[01-01 01:02:16 TUYA Notice][uni_work_queue.c:146] work_queue add task:423cd0
me_send_ps_req 2 0 0
set_ps_mode_cfm:963 1 0 4 467357 932692
[01-01 01:02:17 TUYA Notice][light_system.c:197] last wifi stat:5, wifi stat 6
[01-01 01:02:17 TUYA Notice][ffc_app.c:140] ffc slaver mac [7c:f6:66:4b:35:2d]
[01-01 01:02:17 TUYA Notice][ffc_app.c:168] ffc slaver uuid -> bede5624e3bef6d8
[01-01 01:02:17 TUYA Err][tuya_ws_db.c:314] kvs_read fails slaver -901
[01-01 01:02:17 TUYA Err][tuya_ws_db.c:314] kvs_read fails master0 -901
[01-01 01:02:17 TUYA Err][tuya_ws_db.c:314] kvs_read fails master1 -901
[01-01 01:02:17 TUYA Err][tuya_ws_db.c:314] kvs_read fails master2 -901
[01-01 01:02:17 TUYA Err][tuya_ws_db.c:314] kvs_read fails master3 -901
[01-01 01:02:17 TUYA Err][tuya_ws_db.c:314] kvs_read fails master4 -901
[01-01 01:02:17 TUYA Notice][ffc_slave.c:885] ffc info -> master num 5, slaver status 0, capacity 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:890] ffc master[0], mac[00:00:00:00:00:00], capacity 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[0] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[1] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[2] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[3] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:890] ffc master[1], mac[00:00:00:00:00:00], capacity 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[0] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[1] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[2] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[3] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:890] ffc master[2], mac[00:00:00:00:00:00], capacity 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[0] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[1] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[2] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[3] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:890] ffc master[3], mac[00:00:00:00:00:00], capacity 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[0] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[1] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[2] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[3] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:890] ffc master[4], mac[00:00:00:00:00:00], capacity 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[0] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[1] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[2] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][ffc_slave.c:893] master group[3] -> state 0, ctrl seq 0
[01-01 01:02:17 TUYA Notice][light_ffc_ctrl.c:21] ###local_wifi_mesh_state_cb_start__:0
me_set_ps_disable:840 1 0 0 467769 932748
me_set_ps_disable 0 1
set_ps_mode_cfm:963 1 0 5 467357 932692
[01-01 01:02:17 TUYA Notice][mqtt_client.c:1317] mqtt get serve ip success
[01-01 01:02:17 TUYA Notice][light_ffc_ctrl.c:21] ###local_wifi_mesh_state_cb_start__:2
[01-01 01:02:17 TUYA Notice][tuya_tls.c:554] ret = 0
[01-01 01:02:17 TUYA Notice][mqtt_client.c:1347] mqtt socket create success. begin to connect
[01-01 01:02:17 TUYA Notice][mqtt_client.c:1373] mqtt socket connect success. begin to subscribe [smart/device/in/bf8b7b4786bf21912d3gvv]
[01-01 01:02:18 TUYA Notice][light_system.c:197] last wifi stat:6, wifi stat 7
[01-01 01:02:19 TUYA Err][uf_flash_file_app.c:266] uf_open netcfg_log err 8
errno is: 0
629 upolad net_cfg log: router | 40.00 | 11-28 14:09:15 | erc:0 | [10:7 | 11:5]/mid_mqtt | 40.00 | 11-28 14:09:37 | erc:0 | [17:-27]/mid_mqtt | 40.00 | 11-28 14:09:37 | erc:0 | [15:0]/svc_timer_task | 40.00 | 01-01 00:00:01 | erc:0 | [1]/mid_http | 40.00errno is: 0
629 upolad net_cfg log: mid_http | 40.00 | 01-01 00:01:54 | erc:0 | [11:-15]/svc_http | 40.00 | 01-01 00:01:54 | erc:0 | [10:0x32c34367]/mid_http | 40.00 | 01-01 12:08:24 | erc:0 | [11:-7]/mid_http | 40.00 | 01-02 00:10:54 | erc:0 | [11:-15]/mid_http | 4errno is: 0
629 upolad net_cfg log: svc_http | 40.00 | 01-08 13:26:06 | erc:15 | [10:0x32c34367]/mid_http | 40.00 | 01-09 01:31:56 | erc:0 | [11:-15]/mid_http | 40.00 | 01-09 13:34:36 | erc:0 | [11:-7]/mid_http | 40.00 | 01-10 01:39:06 | erc:0 | [11:-15]/mid_http | errno is: 0
629 upolad net_cfg log: svc_timer_task | 40.00 | 01-01 00:00:01 | erc:0 | [1]/svc_timer_task | 40.00 | 01-01 00:00:01 | erc:0 | [1]/svc_timer_task | 40.00 | 01-01 00:00:01 | erc:0 | [1]/svc_timer_task | 40.00 | 01-01 00:00:01 | erc:0 | [1]/svc_timer_task[01-01 01:02:21 TUYA Notice][uni_work_queue.c:146] work_queue add task:423ea0
[01-01 01:02:21 TUYA Notice][tuya_tls.c:554] ret = 0
[01-01 01:02:21 TUYA Notice][uni_work_queue.c:146] work_queue add task:423d20
[01-01 01:02:21 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c60
[12-12 18:07:38 TUYA Err][tuya_svc_upgrade.c:281] result is null!
bk_rst:0 tuya_rst:0[12-12 18:07:38 TUYA Notice][tuya_tls.c:554] ret = 0
!!!!!!!!!!tuya_bt_close:3
gapm_cmp_evt_handler operation = 0xd, status = 0x44
[12-12 18:07:38 TUYA Notice][tuya_tls.c:554] ret = 0
[12-12 18:07:47 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c60
[12-12 18:07:47 TUYA Notice][tuya_tls.c:554] ret = 0
do td cur_t:290--last:idx:13,t:280 -- new:idx:14,t:292
--0xc:08, shift_b:0, shift_g:0, X:2
[12-12 18:08:01 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c60
[12-12 18:08:03 TUYA Notice][light_ffc_ctrl.c:21] ###local_wifi_mesh_state_cb_start__:4
[12-12 18:08:16 TUYA Notice][uni_work_queue.c:146] work_queue add task:423c60
[12-12 18:16:46 TUYA Notice][uni_work_queue.c:146] work_queue add task:423d50
V:BK7231S_1.0.6
CPSR:000000D3
R0:1BA6C631
R1:55210587
R2:DF6FD7FF
R3:0C7DEBBF
R4:7EAF1D32
R13:6FF9F7FF
R14(LR):FD5DBEB6
ST:252D3D56
J 0x10000
prvHeapInit-start addr:0x4205f8, size:129544
[01-01 18:12:15 TUYA Debug][light_control.c:549] light way 4
[01-01 18:12:15 TUYA Debug][light_control.c:569] light def color 1
[01-01 18:12:15 TUYA Debug][light_control.c:615] light net color 1
[01-01 18:12:15 TUYA Debug][user_pwm.c:104] no ctrl pin!
[01-01 18:12:15 TUYA Debug][soc_flash.c:161] file name 1
[01-01 18:12:15 TUYA Debug][soc_flash.c:81] uf open OK
[01-01 18:12:15 TUYA Debug][soc_flash.c:83] uf file 1 read data 2575!
bk_rst:0 tuya_rst:0[01-01 18:12:15 TUYA Debug][light_system.c:162] reset info -> reason is 0
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 0:000e0d0000000000000000c80000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 1:010e0d0000000000000003e801f4
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 2:020e0d0000000000000003e803e8
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 3:030e0d0000000000000001f401f4
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 4:04464602007803e803e800000000464602007803e8000a00000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 5:05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 6:06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 7:07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 8:08464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 9:09464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 10:0a464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000
[01-01 18:12:15 TUYA Debug][light_control.c:690] scene 11:0b464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000
[01-01 18:12:15 TUYA Notice][light_system.c:1018] goto first bright up!
[01-01 18:12:15 TUYA Debug][light_control.c:2223] current mode 0
[01-01 18:12:15 TUYA Debug][light_control.c:1899] stop scene time!!!!!
[01-01 18:12:15 TUYA Debug][light_control.c:1034] Bright 1000
[01-01 18:12:15 TUYA Debug][light_control.c:1039] cw limit proc
[01-01 18:12:15 TUYA Debug][light_control.c:1042] usBrightTmep 1000
[01-01 18:12:15 TUYA Debug][light_control.c:1047] usBrightTmep 1000
[01-01 18:12:15 TUYA Debug][light_control.c:1136] set bright 1000 temper 1000,calc ctrl data 0 0 0 1000 0
[01-01 18:12:15 TUYA Debug][light_control.c:2289] 0 0 0 1000 0
[01-01 18:12:15 TUYA Debug][light_control.c:752] start shade >>>
bk_rst:0 tuya_rst:0[01-01 18:12:15 TUYA Debug][light_system.c:162] reset info -> reason is 0
[01-01 18:12:15 TUYA Debug][light_control.c:2733] Light hardware reboot, turn on light!
[01-01 18:12:15 TUYA Debug][soc_flash.c:161] file name 0
[01-01 18:12:15 TUYA Debug][soc_flash.c:81] uf open OK
[01-01 18:12:15 TUYA Debug][soc_flash.c:83] uf file 0 read data 1!
[01-01 18:12:15 TUYA Debug][light_control.c:2739] read reset cnt 0
[01-01 18:12:15 TUYA Debug][light_control.c:2748] start reset cnt clear timer!!!!!
[01-01 18:12:15 TUYA Err][base_event.c:150] call entry->cb(data) return 923159
[01-01 18:12:15 TUYA Err][base_event.c:312] call _event_node_dispatch(event, data) return 923159
[01-01 18:12:15 TUYA Info][mqc_app.c:175] mqc app init ...
[01-01 18:12:15 TUYA Info][sf_mqc_cb.c:42] register mqc app callback
[01-01 18:12:15 TUYA Debug][mqc_app.c:118] mq_pro:5 mqc_handler_cnt:1
[01-01 18:12:15 TUYA Debug][mqc_app.c:118] mq_pro:31 mqc_handler_cnt:2
[01-01 18:12:15 TUYA Debug][uni_thread.c:215] Thread:sys_timer Exec Start. Set to Running Status
[01-01 18:12:15 TUYA Debug][log_seq.c:732] read from uf. max:0 first:0 last:0
[01-01 18:12:15 TUYA Debug][svc_online_log.c:288] svc online log init success
[01-01 18:12:15 TUYA Err][tuya_ws_db.c:314] kvs_read fails gw_bi -1
[01-01 18:12:15 TUYA Err][ws_db_gw.c:111] gw base read fails -935
[01-01 18:12:15 TUYA FATAL ERROR: Error reading from serial device