Page 1 of 1

【已解决】不知道为什么运行着就关机了,可能跟串口接受有关

Posted: 2023年 Jan 13日 15:33
by 花露水

[01-13 15:29:07 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:07 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:07 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:07 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:07 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:07 TUYA D][app_switch.c:148] voltag :599b
[01-13 15:29:07 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:07 TUYA D][lr:0x770ff] schema get:{"schemaId":"000004w0p2","version":""}
[01-13 15:29:07 TUYA D][lr:0x93aad] Post Data: {"schemaId":"000004w0p2","version":"","t":1673594947}
[01-13 15:29:07 TUYA D][lr:0x93aed] Post URL: https://a3.tuyacn.com/d.json?a=tuya.dev ... 08bfebd901
[01-13 15:29:07 TUYA D][lr:0xb0b7f] Connect: a3.tuyacn.com Port: 443 -->>
[01-13 15:29:07 TUYA D][lr:0x975d5] unw_gethostbyname a3.tuyacn.com, prio 2

[01-13 15:29:07 TUYA D][lr:0x97671] use dynamic dns ip:121.5.96.248 for domain:a3.tuyacn.com
[01-13 15:29:07 TUYA D][lr:0xb86dd] bind ip:c0a8bc64 port:0 ok
[01-13 15:29:07 TUYA D][lr:0x9809f] ----enable_cert:1,DEFAULT_LOAD_CERT:0
[01-13 15:29:07 TUYA D][lr:0x98133] TUYA_TLS Begin Connect a3.tuyacn.com:443 CustomNet:TRUE Enable_Cert:TRUE Default:FALSE
[01-13 15:29:07 TUYA D][lr:0x9821b] socket fd is set. set to inner send/recv to handshake
[01-13 15:29:07 TUYA D][lr:0x9829f] handshake finish for a3.tuyacn.com. set send/recv to user set
[01-13 15:29:07 TUYA D][lr:0x982c9] TUYA_TLS Success Connect a3.tuyacn.com:443 CustomNet:TRUE Suit:TLS-PSK-WITH-AES-128-CBC-SHA256
[01-13 15:29:07 TUYA D][lr:0xb0b99] Connect: a3.tuyacn.com Port: 443 --<< ,r:0
[01-13 15:29:08 TUYA D][lr:0x943cf] Decode Rev:{"result":{"schema":"","schemaId":"000004w0p2"},"t":1673594948,"success":true}
[01-13 15:29:08 TUYA D][lr:0xb5d11] tls transporter close socket fd:4
[01-13 15:29:08 TUYA D][lr:0xb8769] tcp transporter close socket fd:4
[01-13 15:29:08 TUYA D][lr:0xb5d2b] tls transporter close tls handler:0x417fec
[01-13 15:29:08 TUYA D][lr:0x98483] TUYA_TLS Disconnect ENTER
[01-13 15:29:08 TUYA D][lr:0x984e7] TUYA_TLS Disconnect Success
[01-13 15:29:08 TUYA D][lr:0x77129] schema get result:{"schema":"","schemaId":"000004w0p2"}
[01-13 15:29:08 TUYA D][lr:0x76b2b] schema[000004w0p2] ver not update
[01-13 15:29:08 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:08 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:08 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:08 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:08 TUYA D][app_switch.c:148] voltag :59b5
[01-13 15:29:08 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:09 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:09 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:09 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:09 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:09 TUYA D][app_switch.c:148] voltag :5998
[01-13 15:29:09 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:10 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:10 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:11 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:11 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:11 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:11 TUYA D][app_switch.c:148] voltag :5999
[01-13 15:29:11 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:12 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:12 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:12 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:12 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:12 TUYA D][app_switch.c:148] voltag :5980
[01-13 15:29:12 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:12 TUYA D][lr:0x7cca5] set time by rtc
[01-13 15:29:12 TUYA D][lr:0x9e57d] close binding periond window!!
[01-13 15:29:13 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:13 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:29:13 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:13 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:13 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:13 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:13 TUYA D][app_switch.c:148] voltag :59a0
[01-13 15:29:13 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:14 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:14 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:14 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:14 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:14 TUYA D][app_switch.c:148] voltag :59a7
[01-13 15:29:14 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:15 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:16 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:16 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:16 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:16 TUYA D][app_switch.c:148] voltag :59a6
[01-13 15:29:16 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:16 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:17 TUYA D][lr:0x76cc3] next schema get slot 74196.
[01-13 15:29:17 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:17 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:17 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:17 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:17 TUYA D][app_switch.c:148] voltag :59bc
[01-13 15:29:17 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:17 TUYA D][lr:0xa78dd] feed watchdog
[01-13 15:29:18 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:18 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:18 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:18 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:18 TUYA D][app_switch.c:148] voltag :59b3
[01-13 15:29:18 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:19 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:19 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:19 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:20 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:21 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:21 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:21 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:21 TUYA D][app_switch.c:148] voltag :59ba
[01-13 15:29:21 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:22 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:22 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:22 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:22 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:22 TUYA D][app_switch.c:148] voltag :59bd
[01-13 15:29:22 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:23 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:23 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:23 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:23 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:23 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:23 TUYA D][app_switch.c:148] voltag :59b2
[01-13 15:29:23 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:24 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:24 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:24 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:24 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:24 TUYA D][app_switch.c:148] voltag :59cb
[01-13 15:29:24 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:25 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:25 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:26 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:26 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:26 TUYA D][app_switch.c:148] voltag :59d3
[01-13 15:29:26 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:26 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:27 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:27 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:27 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:27 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:27 TUYA D][app_switch.c:148] voltag :59d6
[01-13 15:29:27 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:28 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:28 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:28 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:28 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:28 TUYA D][app_switch.c:148] voltag :59d4
[01-13 15:29:28 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:29 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:29 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:29:29 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:29 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:30 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:30 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:30 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:30 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:30 TUYA D][app_switch.c:148] voltag :59c0
[01-13 15:29:30 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:31 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:32 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:32 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:32 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:32 TUYA D][app_switch.c:148] voltag :59cc
[01-13 15:29:32 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:32 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:33 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:33 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:33 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:33 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:33 TUYA D][app_switch.c:148] voltag :59d2
[01-13 15:29:33 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:34 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:34 TUYA D][lr:0x49509] RX_LEN:5
[01-13 15:29:34 TUYA D][lr:0x49509] RX_LEN:2
[01-13 15:29:35 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:35 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:35 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:35 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:35 TUYA D][app_switch.c:148] voltag :59da
[01-13 15:29:35 TUYA D][lr:0x4901f] Test_Data:230
[01-13 15:29:36 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:36 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:36 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:37 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:37 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:37 TUYA D][app_switch.c:148] voltag :59d2
[01-13 15:29:37 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:37 TUYA D][lr:0xa78dd] feed watchdog
[01-13 15:29:38 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:38 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:38 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:38 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:38 TUYA D][app_switch.c:148] voltag :59df
[01-13 15:29:38 TUYA D][lr:0x4901f] Test_Data:230
[01-13 15:29:39 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:39 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:29:39 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:39 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:39 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:39 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:39 TUYA D][app_switch.c:148] voltag :59c6
[01-13 15:29:39 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:40 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:40 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:40 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:40 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:40 TUYA D][app_switch.c:148] voltag :59be
[01-13 15:29:40 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:41 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:41 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:42 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:42 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:42 TUYA D][app_switch.c:148] voltag :59c7
[01-13 15:29:42 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:42 TUYA D][lr:0x7cca5] set time by rtc
[01-13 15:29:42 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:43 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:43 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:43 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:43 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:43 TUYA D][app_switch.c:148] voltag :59c0
[01-13 15:29:43 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:44 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:44 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:44 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:44 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:44 TUYA D][app_switch.c:148] voltag :59c2
[01-13 15:29:44 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:45 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:45 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:45 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:45 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:45 TUYA D][app_switch.c:148] voltag :59bf
[01-13 15:29:45 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:45 TUYA D][lr:0xb472f] host[m2.tuyacn.com] mqtt_ping -->>
[01-13 15:29:45 TUYA D][lr:0xb4797] host[m2.tuyacn.com] mqtt_ping <<--
[01-13 15:29:46 TUYA D][lr:0xb5737] host[m2.tuyacn.com] ping respond. update fail_cnt:0
[01-13 15:29:46 TUYA D][lr:0xb4f33] mqtt[m2.tuyacn.com] status:7
[01-13 15:29:46 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:46 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:46 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:46 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:46 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:46 TUYA D][app_switch.c:148] voltag :59d7
[01-13 15:29:46 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:48 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:48 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:48 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:48 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:48 TUYA D][app_switch.c:148] voltag :59ce
[01-13 15:29:48 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:49 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:49 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:29:49 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:49 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:49 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:49 TUYA D][app_switch.c:148] voltag :59ca
[01-13 15:29:49 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:49 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:50 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:50 TUYA D][lr:0x49509] RX_LEN:5
[01-13 15:29:50 TUYA D][lr:0x49509] RX_LEN:2
[01-13 15:29:51 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:51 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:51 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:51 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:51 TUYA D][app_switch.c:148] voltag :59d0
[01-13 15:29:51 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:52 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:52 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:53 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:53 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:53 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:53 TUYA D][app_switch.c:148] voltag :59c7
[01-13 15:29:53 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:54 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:54 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:54 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:54 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:54 TUYA D][app_switch.c:148] voltag :59ca
[01-13 15:29:54 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:55 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:55 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:55 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:55 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:55 TUYA D][app_switch.c:148] voltag :59c3
[01-13 15:29:55 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:55 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:56 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:56 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:56 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:56 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:56 TUYA D][app_switch.c:148] voltag :59c5
[01-13 15:29:56 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:57 TUYA D][lr:0xa78dd] feed watchdog
[01-13 15:29:57 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:57 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:58 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:58 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:58 TUYA D][app_switch.c:148] voltag :59c6
[01-13 15:29:58 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:29:59 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:29:59 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:29:59 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:29:59 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:29:59 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:29:59 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:29:59 TUYA D][app_switch.c:148] voltag :59c3
[01-13 15:29:59 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:00 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:00 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:00 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:00 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:00 TUYA D][app_switch.c:148] voltag :59a4
[01-13 15:30:00 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:01 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:01 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:01 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:01 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:01 TUYA D][app_switch.c:148] voltag :59bc
[01-13 15:30:01 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:02 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:30:02 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:02 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:03 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:03 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:03 TUYA D][app_switch.c:148] voltag :59c3
[01-13 15:30:03 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:04 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:04 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:04 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:04 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:04 TUYA D][app_switch.c:148] voltag :59d1
[01-13 15:30:04 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:05 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:05 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:05 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:05 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:05 TUYA D][app_switch.c:148] voltag :59d5
[01-13 15:30:05 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:05 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:30:06 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:06 TUYA D][lr:0x49509] RX_LEN:5
[01-13 15:30:06 TUYA D][lr:0x49509] RX_LEN:2
[01-13 15:30:07 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:07 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:07 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:07 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:07 TUYA D][app_switch.c:148] voltag :59c7
[01-13 15:30:07 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:08 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:08 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:30:09 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:09 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:09 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:09 TUYA D][app_switch.c:148] voltag :59b0
[01-13 15:30:09 TUYA D][[01-13 15:30:09 TUYA D][lr:0x49509] RX_LEN:6
lr:0x49509] RX_LEN:6
[01-13 15:30:10 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:10 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:10 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:10 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:10 TUYA D][app_switch.c:148] voltag :59c7
[01-13 15:30:10 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:11 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:11 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:11 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:11 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:11 TUYA D][app_switch.c:148] voltag :59dd
[01-13 15:30:11 TUYA D][lr:0x4901f] Test_Data:230
[01-13 15:30:12 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:30:12 TUYA D][lr:0x7cca5] set time by rtc
[01-13 15:30:12 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:12 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:12 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:12 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:12 TUYA D][app_switch.c:148] voltag :59d3
[01-13 15:30:12 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:13 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:14 TUYA D][lr:0x49509] RX_LEN:3
[01-13 15:30:14 TUYA D][lr:0x49509] RX_LEN:4
[01-13 15:30:14 TUYA D][lr:0x4901f] Test_Data:305
[01-13 15:30:15 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:15 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:15 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:15 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:15 TUYA D][app_switch.c:148] voltag :59db
[01-13 15:30:15 TUYA D][lr:0x4901f] Test_Data:230
[01-13 15:30:15 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:30:16 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:16 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:16 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:16 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:16 TUYA D][app_switch.c:148] voltag :59d0
[01-13 15:30:16 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:17 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:17 TUYA D][lr:0xa78dd] feed watchdog
[01-13 15:30:17 TUYA D][lr:0x49509] RX_LEN:3
[01-13 15:30:17 TUYA D][lr:0x49509] RX_LEN:4
[01-13 15:30:17 TUYA D][lr:0x4901f] Test_Data:434
[01-13 15:30:18 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:18 TUYA D][app_switch.c:329] uart_bit:111111111111111
[01-13 15:30:18 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:30:19 TUYA D][lr:0x49509] RX_LEN:7
[01-13 15:30:19 TUYA D][app_switch.c:143] voltag CRC:OK
[01-13 15:30:19 TUYA D][app_switch.c:146] voltag H:5900
[01-13 15:30:19 TUYA D][app_switch.c:148] voltag :59d7
[01-13 15:30:19 TUYA D][lr:0x4901f] Test_Data:229
[01-13 15:30:20 TUYA D][lr:0x4902d] APP_Switch_Task!
[01-13 15:30:20 TUYA D][lr:0x49509] RX_LEN:6
[01-13 15:30:20 TUYA D][lr:0x49509] RX_LEN:1
[01-13 15:30:22 TUYA D][lr:0x49509] RX_LEN:6
data abort
Current regs:
r0:0x000061d8 r1:0xffffffff r2:0x00000012 r3:0x0000cf7b
r4:0x00900000 r5:0x00403085 r6:0x000cca5e r7:0x0000dd89
r8:0x08080808 sb:0x09090909 sl:0x10101010 fp:0x11111111
ip:0x0042c334 sp:0x003faf50 lr:0x00048abe pc:0x00048abe
SPSR:0x0000003f
CPSR:0x00000097

separate regs:
SYS:cpsr r8-r14
0x0000009f
0x08080808
0x09090909
0x10101010
0x11111111
0x0042c334
0x00418e1c
0x00048f77
IRQ:cpsr spsr r8-r14
0x00000092
0x2000001f
0x08080808
0x09090909
0x10101010
0x11111111
0x0042c334
0x003fc788
0x0004aa44
FIR:cpsr spsr r8-r14
0x00000091
0x6000001f
0x00000000
0x00000000
0x00000000
0x00000000
0x00400df0
0x003fb798
0x0004a1b8
ABT:cpsr spsr r8-r14
0x00000097
0x0000003f
0x08080808
0x09090909
0x10101010
0x11111111
0x0042c334
0x003faf48
0x00048abe
UND:cpsr spsr r8-r14
0x0000009b
0x00000010
0x08080808
0x09090909
0x10101010
0x11111111
0x0042c334
0x003faf98
0x25f5d3bb
SVC:cpsr spsr r8-r14
0x00000093
0x0000003f
0x08080808
0x09090909
0x10101010
0x11111111
0x0042c334
0x003fcf58
0x00048abe

shutdown...


Re: 不知道为什么运行着就关机了,可能跟串口接受有关

Posted: 2023年 Jan 13日 15:36
by chenyisong

芯片由于程序异常,奔溃了!!!

检查一下哪里有代码出现了比如如下的一些问题:
1、野指针
2、空指针
3、内存是不是没有了

等等
特别是检查运行在奔溃之前的一些代码功能


Re: 不知道为什么运行着就关机了,可能跟串口接受有关

Posted: 2023年 Jan 13日 16:30
by 花露水

解决了,其他任务操作了串口的数组