【已解决】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
wink
Posts: 7

Hi 涂鸦的同仁们,
我在项目中想采用直接扫描二维码绑定的功能,demo中已经设置了shorturl回调,

Code: Select all

ipc_sdk_run_var.qrcode_active_cb = TUYA_IPC_qrcode_shorturl_cb;

但是TUYA_IPC_qrcode_shorturl_cb一直没触发,我已经根据文档设置好以下模式:

配网模式设置为:PARING_MODE_WIRED。
连接模式设置为:TUYA_IPC_LINK_WIRE。
需要适配 tkl_wired.c。

请问如何确认,“UUID 是否打标支持直连云能力”?当前项目没有直接对接的客户经理,所以无法询问,UUID是否默认直接直接云能力?

Last edited by wink on 2024年 Jan 9日 16:23, edited 1 time in total.

Tags:
郭老庄
Posts: 195

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

wink 2024年 Jan 9日 11:30

Hi 涂鸦的同仁们,
我在项目中想采用直接扫描寂寞绑定的功能,demo中已经设置了shorturl回调,

Code: Select all

ipc_sdk_run_var.qrcode_active_cb = TUYA_IPC_qrcode_shorturl_cb;

但是TUYA_IPC_qrcode_shorturl_cb一直没触发,我已经根据文档设置好以下模式:

配网模式设置为:PARING_MODE_WIRED。
连接模式设置为:TUYA_IPC_LINK_WIRE。
需要适配 tkl_wired.c。

请问如何确认,“UUID 是否打标支持直连云能力”?当前项目没有直接对接的客户经理,所以无法询问,UUID是否默认直接直接云能力?

你好,默认是不支持直接连云能力的。可以把配网日志贴出来帮你确认下

wink
Posts: 7

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

Hello,Log 如下,

[root@ATK-DLRV1126:/demo]# gdbserver :2345 ./tuyaos_demo_ipc -m 3 -c .
Process ./tuyaos_demo_ipc created; pid = 1619
Listening on port 2345
Remote debugging from host 192.168.1.200

[main, 572] Jan 9 2024,11:44:10 token[] raw_path[/tmp/] cfg_path[./tuya_device_cfg.json]
detect auto test enviroment, load config from ./tuya_device_cfg.json
buffer is {
"pid":"rambuyexhc6iibik",
"uuid": "qx06bf340fcdafc70521",
"authkey": "3UNk2zWTIzrxwO27CdZI6LJuCs0rLEca",
"storage": "./",
"media_path": "./",
"sd_path": "/tmp/",
"upgrade_file": "/tmp/upgrade.file",
"app_version": "1.2.3"
}

s_ipc_pid: rambuyexhc6iibik
s_ipc_uuid: qx06bf340fcdafc70521
s_ipc_authkey: 3UNk2zWTIzrxwO27CdZI6LJuCs0rLEca
s_ipc_storage: ./
s_raw_path: ./
s_ipc_sd_path: /tmp/
s_ipc_upgrade_file: /tmp/upgrade.file
s_app_version: 1.2.3
SDK Version:< TuyaOS V:6.1.0 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 >
< BUILD AT:2023_11_23_18_18_58 BY ci_manage FOR tuyaos-ipc AT arm-buildroot-linux-gnueabihf-rv1108 >
IOT DEFS < WIFI_GW:1 DEBUG:0 KV_FILE:0 LITTLE_END:1 SL:1 OPERATING_SYSTEM:100 RELIABLE_TRANSFER:0 >

MODE:3 LINK_TYPE:2
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_system,stackDepth:6144,totalstackDepth:10240,priority:3
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_highpri,stackDepth:5120,totalstackDepth:15360,priority:4
wifi state = -1605226128
[01-01 00:00:00 ty N][tal_wifi_reconnet.c:208] wifi status changed to 0
2024-01-09 05:47:56 tkl_wdt ERROR: 48,tkl_watchdog_init: Failed to open

[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:health_monitor,stackDepth:1536,totalstackDepth:16896,priority:5
[01-01 00:00:00 ty I][mqc_app.c:429] mqc app init ...
[01-01 00:00:00 ty I][kv_storge.c:45] Init Kvs With File:./
[01-01 00:00:00 ty N][tuya_tls.c:852] uni_random_init...
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:lan_sock_loop,stackDepth:4096,totalstackDepth:20992,priority:3
2024-01-09 05:47:56 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

[01-01 00:00:00 ty N][tuya_tls.c:279] tuya_tls_rand_init ok!
[01-01 00:00:00 ty N][tuya_wifi_connect.c:289] mf is open need stop fastconnect
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:97] media adapter init success. avaliable_res_size:5000
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:465] insert media info node success! device:[0] channel:[0]
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:0 Enable:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:577] video_bitrate 1024, video_fps 30
[01-01 00:00:00 ty D][tuya_ring_buffer.c:637] Init Ring Buffer. ch0st0tr0 bitrate:1024 fps:30
[01-01 00:00:00 ty D][tuya_ring_buffer.c:660] Ring buffer malloc 1310720 bytes for ch0st0tr0, max frame size 196608
[01-01 00:00:00 ty I][tuya_ring_buffer.c:681] Init Ring Buffer success: ch0st0tr0 size:1310720 nodes:300
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:585] init ring buffer success. channel:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:1 Enable:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:577] video_bitrate 512, video_fps 30
[01-01 00:00:00 ty D][tuya_ring_buffer.c:637] Init Ring Buffer. ch0st0tr1 bitrate:512 fps:30
[01-01 00:00:00 ty D][tuya_ring_buffer.c:660] Ring buffer malloc 655360 bytes for ch0st0tr1, max frame size 98304
[01-01 00:00:00 ty I][tuya_ring_buffer.c:681] Init Ring Buffer success: ch0st0tr1 size:655360 nodes:300
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:585] init ring buffer success. channel:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:2 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:3 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:4 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:5 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:6 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:7 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:8 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:9 Enable:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:568] audio_sample 8000, audio_databits 16, audio_fps 25
[01-01 00:00:00 ty D][tuya_ring_buffer.c:637] Init Ring Buffer. ch0st0tr9 bitrate:125 fps:25
[01-01 00:00:00 ty D][tuya_ring_buffer.c:660] Ring buffer malloc 160000 bytes for ch0st0tr9, max frame size 23936
[01-01 00:00:00 ty I][tuya_ring_buffer.c:681] Init Ring Buffer success: ch0st0tr9 size:160000 nodes:250
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:585] init ring buffer success. channel:9
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:10 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:11 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:12 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:13 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:14 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:559] init ring buffer Channel:0 Stream:15 Enable:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:494] Last reset reason: 7
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:299] gw_cntl->gw_wsm.stat:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_di isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:3 gw_di
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_di find value.Len:672
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:is_stride isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_devos_stride.c:55] stride from flash: 0.
[01-01 00:00:00 ty D][tuya_devos_stride.c:62] no actived, no upgrade:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:347] gw_cntl->gw_if.abi:0 input:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:348] gw_cntl->gw_if.product_key:rambuyexhc6iibik, input:rambuyexhc6iibik
[01-01 00:00:00 ty N][tuya_svc_devos.c:349] gw_cntl->gw_if.tp:0, input:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_ai isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:4 gw_ai
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_ai find value.Len:352
[01-01 00:00:00 ty D][ws_db_gw.c:454] gw_ai read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:523] enter success_proc
Detaching from process 1627
WIFI Get MAC 00-00-00-00-00-00
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:000000000000
[01-01 00:00:00 ty D][tuya_devos_utils.c:295] timer ID:2016648
[01-01 00:00:00 ty D][tuya_svc_upgrade.c:1291] tuya svc upgrade init success!
[01-01 00:00:00 ty D][simplekv.c:1128] read key:rcs.active isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_ws_db.c:657] rcs.active not found in kv, read from protected
[01-01 00:00:00 ty D][simplekv.c:1128] read key:rcs.mf isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_ws_db.c:657] rcs.mf not found in kv, read from protected
[01-01 00:00:00 ty D][tuya_register_center.c:350] use default rcs [-6]
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca_cnt isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:6 tls_ca_cnt
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca_cnt find value.Len:16
[01-01 00:00:00 ty D][tuya_cert_manager.c:467] tls_ca_cnt:1 and parse:1
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca0 find value.Len:736
[01-01 00:00:00 ty D][tuya_cert_manager.c:497] Parse DER tls_ca0:540 success
[01-01 00:00:00 ty D][tuya_register_center.c:308] def rcs url0:h3.iot-dns.com
[01-01 00:00:00 ty D][tuya_register_center.c:311] def rcs urlx:h6.iot-dns.com
[01-01 00:00:00 ty D][tuya_cert_manager.c:963] psk key was 1.0
[01-01 00:00:00 ty D][tuya_cert_manager.c:1058] cert manager init
[01-01 00:00:00 ty D][simplekv.c:1128] read key:kv.meta.report isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][ty_meta_report.c:97] meta in kv {"metas":{}}
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:300 cnt:3
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:302 cnt:4
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:304 cnt:5
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:307 cnt:6
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:308 cnt:7
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:312 cnt:8
[01-01 00:00:00 ty D][tuya_ipc_mqtt_subscribe.c:292] iot_register_extra_mqt_cb done
[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:105] sys add timer: 2015736

[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:111] sys start timer: 2015736

[01-01 00:00:00 ty D][tuya_iot_base_api.c:316] register wired network monitor. interval:1
[01-01 00:00:00 ty D][tuya_svc_devos.c:760] state change from 0 to 1
[01-01 00:00:00 ty D][main.c:347] tuya ipc sdk start is complete

[01-01 00:00:00 ty D][svc_netcfg_qrcode.c:127] start config
[01-01 00:00:00 ty D][tuya_svc_mqtt_direct.c:264] start direct mqtt
[01-01 00:00:00 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca_cnt isFuzzy:0
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty N][tuya_svc_netmgr_linkage.c:270] default linkage[1] is set
[01-01 00:00:00 ty D][simplekv.c:1279] delete key find 6
[01-01 00:00:00 ty D][simplekv.c:1311] Delete key:tls_ca_cnt 6 success
[01-01 00:00:00 ty D][simplekv.c:207] update crc 82600296
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:1320] Delete success
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca isFuzzy:1
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1273] fuzzy del find 5 tls_ca0 And set Arr[0]=0x20
[01-01 00:00:00 ty D][simplekv.c:1303] Delete key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:207] update crc 4118508104
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:1320] Delete success
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca_cnt isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_cert_manager.c:463] load tls_ca_cnt fail. no ca in local db
[01-01 00:00:00 ty D][iot_httpc.c:1367] http_iot_dns_get_cloud_url start
[01-01 00:00:00 ty D][iot_httpc.c:1412] http_dns region , send: {"env":"pro","config":[{"key":"httpUrl","need_ca":false},{"key":"mqttUrl","need_ca":false},{"key":"httpsPSKUrl","need_ca":false},{"key":"mqttsPSK3Url","need_ca":false},{"key":"httpsStdUrl","need_ca":true},{"key":"mqttsStdUrl","need_ca":true},{"key":"ghostUrl","need_ca":true}]}
[01-01 00:00:00 ty D][tuya_register_center.c:434] rcs.urlx:h6.iot-dns.com
[01-01 00:00:00 ty D][iot_httpc.c:1416] get url config:https://h6.iot-dns.com/v1/url_config
[01-01 00:00:00 ty D][httpc.c:620] Connect: h6.iot-dns.com Port: 443 -->>
[01-01 00:00:00 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 1
[01-01 00:00:00 ty D][uni_network.c:258] use system dns ip 42.192.31.176 for domain h6.iot-dns.com

[01-01 00:00:00 ty D][uni_network.c:185] cache dns [h6.iot-dns.com]<->[42.192.31.176]
[01-01 00:00:00 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:0 ok
[01-01 00:00:00 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:00 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect h6.iot-dns.com:443
[01-01 00:00:00 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:00 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:00 ty D][tuya_cert_manager.c:209] iot-dns url
[01-01 00:00:00 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:00 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:00 ty D][tuya_tls.c:1098] handshake finish for h6.iot-dns.com. set send/recv to user set
[01-01 00:00:00 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect h6.iot-dns.com:443 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:00 ty D][httpc.c:622] Connect: h6.iot-dns.com Port: 443 --<< ,r:0
[01-01 00:00:00 ty D][tls_transporter.c:93] tls transporter close socket fd:10
[01-01 00:00:00 ty D][tcp_transporter.c:177] tcp transporter close socket fd:10
[01-01 00:00:00 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9fa02b18
[01-01 00:00:00 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:00 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:00 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:00 ty D][iot_httpc.c:1437] httpUrl:[http://a.tuyacn.com/d.json][42.192.25.216]
[01-01 00:00:00 ty D][iot_httpc.c:1442] mqttUrl:[m2.tuyacn.com:1883][121.5.97.151]
[01-01 00:00:00 ty D][iot_httpc.c:1466] httpsStdUrl:[https://a6.tuyacn.com/d.json][81.69.183.170]
[01-01 00:00:00 ty D][iot_httpc.c:1467] mqttsStdUrl:[m6.tuyacn.com:8886][121.5.96.27]
[01-01 00:00:00 ty D][iot_httpc.c:1506] httpsPSKUrl:[https://a3.tuyacn.com/d.json][81.69.183.170]
[01-01 00:00:00 ty D][iot_httpc.c:1507] mqttsPSK3Url:[m3.tuyacn.com:8886][121.5.96.27]
[01-01 00:00:00 ty D][iot_httpc.c:1518] ghostUrl:[baal.tuyacn.com:443][42.192.35.108]
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca_cnt isFuzzy:0
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1287] key:tls_ca_cnt not find
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca isFuzzy:1
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1287] key:tls_ca not find
[01-01 00:00:00 ty D][tuya_cert_manager.c:438] tls_ca_name:tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][simplekv.c:369] write key:tls_ca0 And Value Len:736
[01-01 00:00:00 ty D][simplekv.c:401] 5 valid is false AND size old 804 >= new 736
[01-01 00:00:00 ty D][simplekv.c:415] find 5 available space
[01-01 00:00:00 ty D][simplekv.c:452] reuse available space 30512
[01-01 00:00:00 ty D][simplekv.c:207] update crc 1598234903
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:492] write success
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca_cnt isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][simplekv.c:369] write key:tls_ca_cnt And Value Len:16
[01-01 00:00:00 ty D][simplekv.c:401] 6 valid is false AND size old 84 >= new 16
[01-01 00:00:00 ty D][simplekv.c:415] find 6 available space
[01-01 00:00:00 ty D][simplekv.c:452] reuse available space 31316
[01-01 00:00:00 ty D][simplekv.c:207] update crc 2193166815
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:492] write success
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [http://a.tuyacn.com/d.json]<->[42.192.25.216]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [https://a6.tuyacn.com/d.json]<->[81.69.183.170]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [https://a3.tuyacn.com/d.json]<->[81.69.183.170]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m2.tuyacn.com:1883]<->[121.5.97.151]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m6.tuyacn.com:8886]<->[121.5.96.27]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m3.tuyacn.com:8886]<->[121.5.96.27]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [baal.tuyacn.com:443]<->[42.192.35.108]
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca_cnt isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:6 tls_ca_cnt
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca_cnt find value.Len:16
[01-01 00:00:00 ty D][tuya_cert_manager.c:467] tls_ca_cnt:1 and parse:1
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca0 find value.Len:736
[01-01 00:00:00 ty D][tuya_cert_manager.c:497] Parse DER tls_ca0:540 success
[01-01 00:00:00 ty D][iot_httpc.c:1529] end
[01-01 00:00:00 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:00 ty D][tuya_svc_mqtt_direct.c:179] SECURITY_LEVEL:1 direct connect MQTT URL:m6.tuyacn.com:8886 Port:8883 Sub:d/ai/qx06bf340fcdafc70521 tls:1
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:mqtt_thread,stackDepth:9216,totalstackDepth:30208,priority:4
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 0 -> 1
[01-01 00:00:00 ty D][tal_thread.c:204] Thread:mqtt_thread Exec Start. Set to Running Stat
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:79] status chaged: group[1] status[5]
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:32] __on_netcfg_start, netcfg start. You can start your own netcfg task now.
Set Country Code:0
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-01 00:00:00 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 1
[01-01 00:00:00 ty D][uni_network.c:246] use dynamic dns ip:121.5.96.27 for domain:m6.tuyacn.com
[01-01 00:00:00 ty D][tuya_wifi_reset.c:559] reset init mthd:0, short timer:0 long timer:0
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:424] do proxy actived work,mode:5,stat:0,nc_tp:0
[01-01 00:00:00 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:24280 ok
Exec Cmd:ifconfig eth0 up
Detaching from process 1633
[01-01 00:00:00 ty E][tls_transporter.c:53] tcp transporter connect failed,ret:-0x710a
[01-01 00:00:00 ty E][tuya_svc_mqtt_client.c:862] broker[m6.tuyacn.com] connect fail. ret:-28938 errno:-2
[01-01 00:00:00 ty D][uni_network.c:285] lower_dns_cache_priority:0
[01-01 00:00:00 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-01 00:00:00 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-01 00:00:00 ty D][tls_transporter.c:93] tls transporter close socket fd:-1
[01-01 00:00:00 ty D][tls_transporter.c:98] tls transporter already closed
[01-01 00:00:00 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:00 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:1, sleeptime:1976 ms
WIFI Set Mode 0
Detaching from process 1635
eth0 no wireless extensions.

[01-01 00:00:00 ty N][tuya_wifi_status.c:168] cur stat:0 0x0 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:171] wifi netstat changed to:0 -->>
[01-01 00:00:00 ty N][tuya_svc_devos.c:216] __devos_init_evt success
wifi state = 0
[01-01 00:00:15 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:11 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

[01-01 00:00:15 ty N][tuya_svc_lan.c:713] Not actived, use linkage addr[192.168.1.2][c0a80102]
[01-01 00:00:15 ty D][tuya_lan_sock.c:331] reg post queue 10
[01-01 00:00:15 ty D][tuya_lan_sock.c:331] reg post queue 11
wire status = 1
[01-01 00:00:15 ty D][tuya_iot_base_api.c:298] wired netstat changed to:1 -->>
[01-01 00:00:15 ty D][ty_sdk_status_callback.c:79] status chaged: group[3] status[21]
[01-01 00:00:15 ty D][ty_sdk_status_callback.c:86] status ignore. cb is null.
[01-01 00:00:15 ty D][tuya_iot_base_api.c:300] wired netstat changed to:1 <<--
[01-01 00:00:15 ty D][tuya_svc_netmgr_linkage.c:117] link[1] is_up[1] active_link[2] status[2]
[01-01 00:00:15 ty N][tuya_svc_netmgr_linkage.c:138] default linkage[1] is set, switch is disabled
[01-01 00:00:16 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-01 00:00:16 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-01 00:00:16 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 0
[01-01 00:00:16 ty D][uni_network.c:110] use dns service to get ip for domain m6.tuyacn.com

[01-01 00:00:16 ty D][tuya_register_center.c:434] rcs.urlx:h6.iot-dns.com
[01-01 00:00:16 ty D][iot_httpc.c:1585] dns_query:https://h6.iot-dns.com/v1/dns_query [{"domain":"m6.tuyacn.com"}]
[01-01 00:00:16 ty D][httpc.c:620] Connect: h6.iot-dns.com Port: 443 -->>
[01-01 00:00:16 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 0
[01-01 00:00:16 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:16 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 1
[01-01 00:00:16 ty D][uni_network.c:258] use system dns ip 42.192.31.176 for domain h6.iot-dns.com

[01-01 00:00:16 ty D][uni_network.c:185] cache dns [h6.iot-dns.com]<->[42.192.31.176]
[01-01 00:00:16 ty D][uni_network.c:312] set_dns_cache_priority:0
[01-01 00:00:16 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:0 ok
wifi state = 0
[01-01 00:00:16 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:16 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect h6.iot-dns.com:443
[01-01 00:00:16 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:16 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:16 ty D][tuya_cert_manager.c:209] iot-dns url
[01-01 00:00:16 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:16 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:16 ty D][tuya_tls.c:1098] handshake finish for h6.iot-dns.com. set send/recv to user set
[01-01 00:00:16 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect h6.iot-dns.com:443 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:16 ty D][httpc.c:622] Connect: h6.iot-dns.com Port: 443 --<< ,r:0
[01-01 00:00:16 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-01 00:00:16 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-01 00:00:16 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d5026a0
[01-01 00:00:16 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:16 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:16 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:16 ty D][uni_network.c:53] get ip 121.5.96.27
[01-01 00:00:16 ty D][uni_network.c:116] dns service get ip 121.5.96.27 for domain m6.tuyacn.com

[01-01 00:00:16 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-01 00:00:16 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:12940 ok
[01-01 00:00:16 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:16 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-01 00:00:16 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:16 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:16 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6.iot-dns.com
[01-01 00:00:16 ty D][tuya_cert_manager.c:236] tuya public url
[01-01 00:00:16 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-01 00:00:16 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:16 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
wire status = 1
[01-01 00:00:16 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-01 00:00:16 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:16 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-01 00:00:16 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-01 00:00:16 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-01 00:00:16 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-01 00:00:17 ty E][tuya_svc_mqtt_client.c:928] host[mqtts://m6.tuyacn.com:8886] mqtt connect resp err:5
[01-01 00:00:17 ty D][tuya_svc_mqtt_direct.c:132] mqtt connect deny:1
[01-01 00:00:17 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:17 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-01 00:00:17 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-01 00:00:17 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-01 00:00:17 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d5007b0
[01-01 00:00:17 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:17 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:17 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:17 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 1
[01-01 00:00:17 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-01 00:00:17 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:17 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:2, sleeptime:7012 ms
[01-01 00:00:17 ty D][tuya_lan_sock.c:127] reg lan sock 10,read:0x74f78
wifi state = 0
wire status = 1
wifi state = 0
[01-01 00:00:18 ty D][tuya_lan_sock.c:127] reg lan sock 11,read:0x77ef4
wire status = 1
wifi state = 0
[01-01 00:00:20 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:16 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-01 00:00:24 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 0
[01-01 00:00:24 ty D][uni_network.c:110] use dns service to get ip for domain m6.tuyacn.com

[01-01 00:00:24 ty D][tuya_register_center.c:434] rcs.urlx:h6.iot-dns.com
[01-01 00:00:24 ty D][iot_httpc.c:1585] dns_query:https://h6.iot-dns.com/v1/dns_query [{"domain":"m6.tuyacn.com"}]
[01-01 00:00:24 ty D][httpc.c:620] Connect: h6.iot-dns.com Port: 443 -->>
[01-01 00:00:24 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 0
[01-01 00:00:24 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:24 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 1
[01-01 00:00:24 ty D][uni_network.c:258] use system dns ip 42.192.31.176 for domain h6.iot-dns.com

[01-01 00:00:24 ty D][uni_network.c:185] cache dns [h6.iot-dns.com]<->[42.192.31.176]
[01-01 00:00:24 ty D][uni_network.c:312] set_dns_cache_priority:0
[01-01 00:00:24 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:0 ok
[01-01 00:00:24 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:24 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect h6.iot-dns.com:443
[01-01 00:00:24 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:24 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:24 ty D][tuya_cert_manager.c:209] iot-dns url
[01-01 00:00:24 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
wire status = 1
wifi state = 0
[01-01 00:00:24 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:24 ty D][tuya_tls.c:1098] handshake finish for h6.iot-dns.com. set send/recv to user set
[01-01 00:00:24 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect h6.iot-dns.com:443 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:24 ty D][httpc.c:622] Connect: h6.iot-dns.com Port: 443 --<< ,r:0
[01-01 00:00:24 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-01 00:00:24 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-01 00:00:24 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d503e78
[01-01 00:00:24 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:24 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:24 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:24 ty D][uni_network.c:53] get ip 121.5.96.27
[01-01 00:00:24 ty D][uni_network.c:116] dns service get ip 121.5.96.27 for domain m6.tuyacn.com

[01-01 00:00:24 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-01 00:00:24 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:36623 ok
[01-01 00:00:24 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:24 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-01 00:00:24 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:24 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:24 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6.iot-dns.com
[01-01 00:00:24 ty D][tuya_cert_manager.c:236] tuya public url
[01-01 00:00:24 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-01 00:00:24 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:24 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:24 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-01 00:00:24 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-01 00:00:24 ty E][tuya_svc_mqtt_client.c:928] host[mqtts://m6.tuyacn.com:8886] mqtt connect resp err:5
[01-01 00:00:24 ty D][tuya_svc_mqtt_direct.c:132] mqtt connect deny:2
[01-01 00:00:24 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-01 00:00:24 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-01 00:00:24 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-01 00:00:24 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d500760
[01-01 00:00:24 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:24 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:24 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:24 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 1
[01-01 00:00:24 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-01 00:00:24 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:24 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:3, sleeptime:2250 ms
wifi state = 0
[01-01 00:00:25 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:21 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wire status = 1
wifi state = 0
wire status = 1
[01-01 00:00:26 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-01 00:00:26 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-01 00:00:26 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 0
[01-01 00:00:26 ty D][uni_network.c:110] use dns service to get ip for domain m6.tuyacn.com

[01-01 00:00:26 ty D][tuya_register_center.c:434] rcs.urlx:h6.iot-dns.com
[01-01 00:00:26 ty D][iot_httpc.c:1585] dns_query:https://h6.iot-dns.com/v1/dns_query [{"domain":"m6.tuyacn.com"}]
[01-01 00:00:26 ty D][httpc.c:620] Connect: h6.iot-dns.com Port: 443 -->>
[01-01 00:00:26 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 0
[01-01 00:00:26 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:26 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 1
[01-01 00:00:26 ty D][uni_network.c:258] use system dns ip 42.192.31.176 for domain h6.iot-dns.com

[01-01 00:00:26 ty D][uni_network.c:185] cache dns [h6.iot-dns.com]<->[42.192.31.176]
[01-01 00:00:26 ty D][uni_network.c:312] set_dns_cache_priority:0
[01-01 00:00:26 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:0 ok
[01-01 00:00:26 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:26 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect h6.iot-dns.com:443
[01-01 00:00:26 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:26 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:26 ty D][tuya_cert_manager.c:209] iot-dns url
[01-01 00:00:26 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:26 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:26 ty D][tuya_tls.c:1098] handshake finish for h6.iot-dns.com. set send/recv to user set
[01-01 00:00:26 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect h6.iot-dns.com:443 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:26 ty D][httpc.c:622] Connect: h6.iot-dns.com Port: 443 --<< ,r:0
[01-01 00:00:27 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-01 00:00:27 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-01 00:00:27 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d509990
[01-01 00:00:27 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:27 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:27 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:27 ty D][uni_network.c:53] get ip 121.5.96.27
[01-01 00:00:27 ty D][uni_network.c:116] dns service get ip 121.5.96.27 for domain m6.tuyacn.com

[01-01 00:00:27 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-01 00:00:27 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:29635 ok
[01-01 00:00:27 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:27 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-01 00:00:27 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:27 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:27 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6.iot-dns.com
[01-01 00:00:27 ty D][tuya_cert_manager.c:236] tuya public url
[01-01 00:00:27 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-01 00:00:27 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:27 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:27 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-01 00:00:27 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:27 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-01 00:00:27 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-01 00:00:27 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-01 00:00:27 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-01 00:00:27 ty E][tuya_svc_mqtt_client.c:928] host[mqtts://m6.tuyacn.com:8886] mqtt connect resp err:5
[01-01 00:00:27 ty D][tuya_svc_mqtt_direct.c:132] mqtt connect deny:3
[01-01 00:00:27 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:27 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-01 00:00:27 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-01 00:00:27 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-01 00:00:27 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d500760
[01-01 00:00:27 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:27 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:27 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:27 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 1
[01-01 00:00:27 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-01 00:00:27 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-01 00:00:27 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:4, sleeptime:4054 ms
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-01 00:00:30 ty D][tuya_devos_utils.c:277] set time by rtc
wire status = 1
wifi state = 0
[01-09 05:48:24 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:26 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

[01-09 05:48:25 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-09 05:48:25 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-09 05:48:25 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 0
[01-09 05:48:25 ty D][uni_network.c:110] use dns service to get ip for domain m6.tuyacn.com

[01-09 05:48:25 ty D][tuya_register_center.c:434] rcs.urlx:h6.iot-dns.com
[01-09 05:48:25 ty D][iot_httpc.c:1585] dns_query:https://h6.iot-dns.com/v1/dns_query [{"domain":"m6.tuyacn.com"}]
[01-09 05:48:25 ty D][httpc.c:620] Connect: h6.iot-dns.com Port: 443 -->>
[01-09 05:48:25 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 0
[01-09 05:48:25 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-09 05:48:25 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 1
[01-09 05:48:25 ty D][uni_network.c:258] use system dns ip 42.192.31.176 for domain h6.iot-dns.com

[01-09 05:48:25 ty D][uni_network.c:185] cache dns [h6.iot-dns.com]<->[42.192.31.176]
[01-09 05:48:25 ty D][uni_network.c:312] set_dns_cache_priority:0
[01-09 05:48:25 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:0 ok
[01-09 05:48:25 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-09 05:48:25 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect h6.iot-dns.com:443
[01-09 05:48:25 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-09 05:48:25 ty D][tuya_tls.c:727] load tuya cert.
[01-09 05:48:25 ty D][tuya_cert_manager.c:209] iot-dns url
[01-09 05:48:25 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
wifi state = 0
[01-09 05:48:25 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-09 05:48:25 ty D][tuya_tls.c:1098] handshake finish for h6.iot-dns.com. set send/recv to user set
[01-09 05:48:25 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect h6.iot-dns.com:443 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-09 05:48:25 ty D][httpc.c:622] Connect: h6.iot-dns.com Port: 443 --<< ,r:0
[01-09 05:48:25 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-09 05:48:25 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
wire status = 1
[01-09 05:48:25 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d509990
[01-09 05:48:25 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-09 05:48:25 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-09 05:48:25 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-09 05:48:25 ty D][uni_network.c:53] get ip 121.5.96.27
[01-09 05:48:25 ty D][uni_network.c:116] dns service get ip 121.5.96.27 for domain m6.tuyacn.com

[01-09 05:48:25 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-09 05:48:25 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:48127 ok
[01-09 05:48:25 ty E][tls_transporter.c:53] tcp transporter connect failed,ret:-0x710a
[01-09 05:48:25 ty E][tuya_svc_mqtt_client.c:862] broker[m6.tuyacn.com] connect fail. ret:-28938 errno:-2
[01-09 05:48:25 ty D][uni_network.c:285] lower_dns_cache_priority:1
[01-09 05:48:25 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-09 05:48:25 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:25 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-09 05:48:25 ty D][tls_transporter.c:93] tls transporter close socket fd:-1
[01-09 05:48:25 ty D][tls_transporter.c:98] tls transporter already closed
[01-09 05:48:25 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-09 05:48:25 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:5, sleeptime:6849 ms
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-09 05:48:29 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:31 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-09 05:48:32 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 1
[01-09 05:48:32 ty D][uni_network.c:258] use system dns ip 121.5.96.27 for domain m6.tuyacn.com

[01-09 05:48:32 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-09 05:48:32 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:42720 ok
[01-09 05:48:32 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-09 05:48:32 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-09 05:48:32 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-09 05:48:32 ty D][tuya_tls.c:727] load tuya cert.
[01-09 05:48:32 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6.iot-dns.com
[01-09 05:48:32 ty D][tuya_cert_manager.c:236] tuya public url
[01-09 05:48:32 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-09 05:48:32 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-09 05:48:32 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-09 05:48:32 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-09 05:48:32 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-09 05:48:32 ty E][tuya_svc_mqtt_client.c:928] host[mqtts://m6.tuyacn.com:8886] mqtt connect resp err:5
[01-09 05:48:32 ty D][tuya_svc_mqtt_direct.c:132] mqtt connect deny:4
[01-09 05:48:32 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-09 05:48:32 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-09 05:48:32 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-09 05:48:32 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d500760
[01-09 05:48:32 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-09 05:48:32 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-09 05:48:32 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-09 05:48:32 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 1
[01-09 05:48:32 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-09 05:48:32 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:32 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:6, sleeptime:10375 ms
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-09 05:48:34 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:36 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wire status = 1
wifi state = 0
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-09 05:48:39 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:41 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wifi state = 0
wire status = 1
[01-09 05:48:42 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-09 05:48:42 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-09 05:48:42 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 1
[01-09 05:48:42 ty D][uni_network.c:258] use system dns ip 121.5.96.27 for domain m6.tuyacn.com

[01-09 05:48:42 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-09 05:48:42 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:5074 ok
[01-09 05:48:42 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-09 05:48:42 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-09 05:48:42 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-09 05:48:42 ty D][tuya_tls.c:727] load tuya cert.
[01-09 05:48:42 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6.iot-dns.com
[01-09 05:48:42 ty D][tuya_cert_manager.c:236] tuya public url
[01-09 05:48:42 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-09 05:48:42 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-09 05:48:42 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-09 05:48:42 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-09 05:48:42 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-09 05:48:42 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-09 05:48:42 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-09 05:48:42 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-09 05:48:42 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-09 05:48:43 ty E][tuya_svc_mqtt_client.c:928] host[mqtts://m6.tuyacn.com:8886] mqtt connect resp err:5
[01-09 05:48:43 ty D][tuya_svc_mqtt_direct.c:132] mqtt connect deny:5
[01-09 05:48:43 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:43 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-09 05:48:43 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-09 05:48:43 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-09 05:48:43 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d500760
[01-09 05:48:43 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-09 05:48:43 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-09 05:48:43 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-09 05:48:43 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 1
[01-09 05:48:43 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-09 05:48:43 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:43 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:7, sleeptime:12294 ms
wifi state = 0
wire status = 1
[01-09 05:48:44 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:46 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
[01-09 05:48:49 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:51 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wifi state = 0
wire status = 1
[01-09 05:48:53 ty D][tuya_devos_utils.c:277] set time by rtc
[01-09 05:48:54 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:48:56 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wifi state = 0
wire status = 1
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:846] mqtt client ip:192.168.1.2
[01-09 05:48:55 ty D][uni_network.c:230] unw_gethostbyname m6.tuyacn.com, prio 1
[01-09 05:48:55 ty D][uni_network.c:258] use system dns ip 121.5.96.27 for domain m6.tuyacn.com

[01-09 05:48:55 ty D][uni_network.c:185] cache dns [m6.tuyacn.com]<->[121.5.96.27]
[01-09 05:48:55 ty D][tcp_transporter.c:79] bind ip:c0a80102 port:45728 ok
[01-09 05:48:55 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-09 05:48:55 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect m6.tuyacn.com:8886
[01-09 05:48:55 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-09 05:48:55 ty D][tuya_tls.c:727] load tuya cert.
[01-09 05:48:55 ty D][tuya_cert_manager.c:213] p_url:m6.tuyacn.com:8886, rcs.urlx:h6.iot-dns.com
[01-09 05:48:55 ty D][tuya_cert_manager.c:236] tuya public url
[01-09 05:48:55 ty D][tuya_cert_manager.c:1099] parse crt <0> len <540> ret <0>
[01-09 05:48:55 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-09 05:48:55 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-09 05:48:55 ty D][tuya_tls.c:1098] handshake finish for m6.tuyacn.com. set send/recv to user set
[01-09 05:48:55 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect m6.tuyacn.com:8886 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:883] setup mqtt transporter success
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 1 -> 2
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:908] send mqtt connect success
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 2 -> 3
[01-09 05:48:55 ty E][tuya_svc_mqtt_client.c:928] host[mqtts://m6.tuyacn.com:8886] mqtt connect resp err:5
[01-09 05:48:55 ty D][tuya_svc_mqtt_direct.c:132] mqtt connect deny:6
[01-09 05:48:55 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[01-09 05:48:55 ty D][tls_transporter.c:93] tls transporter close socket fd:13
[01-09 05:48:55 ty D][tcp_transporter.c:177] tcp transporter close socket fd:13
[01-09 05:48:55 ty D][tls_transporter.c:101] tls transporter close tls handler:0x9d500760
[01-09 05:48:55 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-09 05:48:55 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-09 05:48:55 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-09 05:48:55 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 3 -> 1
[01-09 05:48:55 ty D][tuya_svc_mqtt_direct.c:124] mqtt disconnected
[01-09 05:48:55 ty N][svc_netcfg_qrcode.c:89] direct mqtt disconnected
[01-09 05:48:55 ty D][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:8, sleeptime:6516 ms
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
[01-09 05:48:59 ty D][tuya_devos_health.c:68] feed watchdog
2024-01-09 05:49:01 tkl_wdt ERROR: 110,tkl_watchdog_refresh: WDIOC_KEEPALIVE fail

wifi state = 0
wire status = 1
wifi state = 0
wire status = 1
wifi state = 0
wire status = 1

另外,我该如何得到支持短码直连的UUID呢?

wink
Posts: 7

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

我在购买授权码的页面里面看到以下说明,

授权码是涂鸦统一为设备颁发的安全加密证书,是智能设备运行涂鸦IoT操作系统的合法凭证,每台设备都具有唯一的授权码。

授权码支持两种写入方式:

使用涂鸦提供的生产工具或基于涂鸦 SDK 开发的生产工具向指定数量设备写入授权码。该种方式需要在提货时选择 生产凭证 或 生产凭证-仅授权 的交付形式。两种交付形式的区别是: 生产凭证 中包含固件和授权信息,而生产凭证-仅授权中仅包含授权信息,不含固件;
获取授权码清单文件(包含 UUID、authkey 字段信息),通过您的工具逐个写入设备。该种方式需要在提货时选择 授权码清单 的交付形式。
授权码权益说明如下:

一个授权码代表一个设备接入许可,仅用于一台设备连接访问涂鸦云。

每个授权码默认赠送云端设备连接服务,单台设备每天允许上报3500条不超过512Byte消息计量,涂鸦保留收取超出单日限制而造成额外的云端连接资源费用的权力。

这里说的“每个授权码默认赠送云端设备连接服务”指的是直连服务吗?

User avatar
pippin-bobo
Posts: 236

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

这个能力需要找到涂鸦项目经历,给您打标UUID才能支持

User avatar
pippin-bobo
Posts: 236

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

wink 2024年 Jan 9日 14:06

我在购买授权码的页面里面看到以下说明,

授权码是涂鸦统一为设备颁发的安全加密证书,是智能设备运行涂鸦IoT操作系统的合法凭证,每台设备都具有唯一的授权码。

授权码支持两种写入方式:

使用涂鸦提供的生产工具或基于涂鸦 SDK 开发的生产工具向指定数量设备写入授权码。该种方式需要在提货时选择 生产凭证 或 生产凭证-仅授权 的交付形式。两种交付形式的区别是: 生产凭证 中包含固件和授权信息,而生产凭证-仅授权中仅包含授权信息,不含固件;
获取授权码清单文件(包含 UUID、authkey 字段信息),通过您的工具逐个写入设备。该种方式需要在提货时选择 授权码清单 的交付形式。
授权码权益说明如下:

一个授权码代表一个设备接入许可,仅用于一台设备连接访问涂鸦云。

每个授权码默认赠送云端设备连接服务,单台设备每天允许上报3500条不超过512Byte消息计量,涂鸦保留收取超出单日限制而造成额外的云端连接资源费用的权力。

这里说的“每个授权码默认赠送云端设备连接服务”指的是直连服务吗?

这个不是直连服务哈

wink
Posts: 7

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

pippin-bobo 2024年 Jan 9日 15:18
wink 2024年 Jan 9日 14:06

我在购买授权码的页面里面看到以下说明,

授权码是涂鸦统一为设备颁发的安全加密证书,是智能设备运行涂鸦IoT操作系统的合法凭证,每台设备都具有唯一的授权码。

授权码支持两种写入方式:

使用涂鸦提供的生产工具或基于涂鸦 SDK 开发的生产工具向指定数量设备写入授权码。该种方式需要在提货时选择 生产凭证 或 生产凭证-仅授权 的交付形式。两种交付形式的区别是: 生产凭证 中包含固件和授权信息,而生产凭证-仅授权中仅包含授权信息,不含固件;
获取授权码清单文件(包含 UUID、authkey 字段信息),通过您的工具逐个写入设备。该种方式需要在提货时选择 授权码清单 的交付形式。
授权码权益说明如下:

一个授权码代表一个设备接入许可,仅用于一台设备连接访问涂鸦云。

每个授权码默认赠送云端设备连接服务,单台设备每天允许上报3500条不超过512Byte消息计量,涂鸦保留收取超出单日限制而造成额外的云端连接资源费用的权力。

这里说的“每个授权码默认赠送云端设备连接服务”指的是直连服务吗?

这个不是直连服务哈

这就尴尬了,要怎样才能得到一个项目经理 :? :? :? :? :? :?

User avatar
pippin-bobo
Posts: 236

Re: 【求助】【TuyaOS SDK】【TuyaOS 3.9.0版本】直连扫码激活绑定没有返回短码

请问你们有对接涂鸦的商务嘛,这个打标或者能力等非技术问题问题只能走商务流程去解决哈

Post Reply