【已解决】使用的tuya_ipc_SDK版本是sdk_6.1.2,ubuntu x86平台,开发方式SDK独立开发方式,提取SDK,编译生成demo运行程序后,日志发现token 是空的,没法激活设备,请问如何解决?

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


Post Reply
linfeng
Posts: 13

[main, 585] May 9 2024,09:37:03 token[AYG8F4rsRs5UA] raw_path[/tmp/] cfg_path[../tuya_device_cfg.json]
detect auto test enviroment, load config from ../tuya_device_cfg.json
buffer is {
"pid":"lnejpaq0ycn921xb",
"uuid": "uuid06e5fbc1ae976385",
"authkey": "FRjOJUU9LqhwLMzt6Ina0UdFcTAlWYBN",
"storage": "./",
"media_path": "../",
"sd_path": "/tmp/",
"upgrade_file": "/tmp/upgrade.file",
"app_version": "1.2.3"
}

s_ipc_pid: lnejpaq0ycn921xb
s_ipc_uuid: uuid06e5fbc1ae976385
s_ipc_authkey: FRjOJUU9LqhwLMzt6Ina0UdFcTAlWYBN
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.2 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 >
< BUILD AT:2024_02_21_20_51_05 BY ci_manage FOR tuyaos-ipc AT x86_64 >
IOT DEFS < WIFI_GW:1 DEBUG:0 KV_FILE:0 LITTLE_END:1 SL:1 OPERATING_SYSTEM:100 RELIABLE_TRANSFER:0 >

MODE:2 LINK_TYPE:1
p_token :AYG8F4rsRs5UA
ipc_sdk_run_var.debug_info.qrcode_token :AYG8F4rsRs5UA
[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
[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 N][tal_wifi_reconnet.c:208] wifi status changed to 0
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:lan_sock_loop,stackDepth:4096,totalstackDepth:20992,priority:3
[01-01 00:00:00 ty E][log_seq.c:873] logseq empty
[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 E][ws_db_gw.c:84] wd_protected_read fails gw_bi -6
[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:639] init ring buffer Channel:0 Stream:0 Enable:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:657] 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:665] init ring buffer success. channel:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:1 Enable:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:657] 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:665] init ring buffer success. channel:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:2 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:3 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:4 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:5 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:6 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:7 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:8 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:9 Enable:1
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:648] 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:665] init ring buffer success. channel:9
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:10 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:11 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:12 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:13 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] init ring buffer Channel:0 Stream:14 Enable:0
[01-01 00:00:00 ty D][ty_sdk_media_callback.c:639] 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: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] gw_bi not found in kv, read from protected
[01-01 00:00:00 ty E][ws_db_gw.c:84] wd_protected_read fails gw_bi -6
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:-6
[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: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:gw_bi And Value Len:224
[01-01 00:00:00 ty D][simplekv.c:437] new space 1 startpos:28848 size:292
[01-01 00:00:00 ty D][simplekv.c:459] new space. seek to end and write zero
[01-01 00:00:00 ty D][simplekv.c:207] update crc 2819525148
[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][ws_db_gw.c:146] gw_bi write 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: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:gw_wsm And Value Len:144
[01-01 00:00:00 ty D][simplekv.c:437] new space 2 startpos:29140 size:212
[01-01 00:00:00 ty D][simplekv.c:459] new space. seek to end and write zero
[01-01 00:00:00 ty D][simplekv.c:207] update crc 2066613749
[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][ws_db_gw.c:255] gw_wsm write ret:0
[01-01 00:00:00 ty D][tuya_wifi_link.c:762] tuya wifi link init mthd:0,wifi start mode:0, enable_station_ap:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len: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_wifi_link.c:83] start wifi link params validate, nc_tp:0 md:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:95] wifi config method not fit
[01-01 00:00:00 ty D][tuya_wifi_reset.c:625] nc_tp:2, wifi_start_mode:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:45] reset wifi link params to factory state, nc_tp:2 md:0 mthd:0 start mode: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][simplekv.c:369] write key:gw_wsm And Value Len:144
[01-01 00:00:00 ty D][simplekv.c:387] 2 key same AND size old 212 >= new 144
[01-01 00:00:00 ty D][simplekv.c:415] find 2 available space
[01-01 00:00:00 ty D][simplekv.c:452] reuse available space 29140
[01-01 00:00:00 ty D][simplekv.c:207] update crc 1841977527
[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][ws_db_gw.c:255] gw_wsm write ret:0
[01-01 00:00:00 ty E][tuya_wifi_link.c:769] ret:-2819
[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 D][simplekv.c:1128] read key:wf_start_md 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 E][tuya_wifi_reset.c:638] read wf start mode err:-6
[01-01 00:00:00 ty D][tuya_wifi_reset.c:675] <
gw_upd_nc_type> wf start mode change:-6, 0->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: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 E][tuya_ws_db.c:319] kvs_read fails gw_di -6
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:-6
[01-01 00:00:00 ty E][tuya_svc_devos.c:315] desc read err:-6
[01-01 00:00:00 ty E][tuya_svc_devos.c:501] ret:-6
[01-01 00:00:00 ty N][tuya_svc_devos.c:661] enter reset factory
[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: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 E][tuya_ws_db.c:319] kvs_read fails gw_di -6
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:-6
[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: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:gw_di And Value Len:672
[01-01 00:00:00 ty D][simplekv.c:437] new space 3 startpos:29352 size:740
[01-01 00:00:00 ty D][simplekv.c:459] new space. seek to end and write zero
[01-01 00:00:00 ty D][simplekv.c:207] update crc 1747949602
[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][ws_db_gw.c:372] gw_di write ret: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: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 E][tuya_ws_db.c:319] kvs_read fails gw_ai -6
[01-01 00:00:00 ty D][ws_db_gw.c:454] gw_ai read ret:-6
[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: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:gw_ai And Value Len:352
[01-01 00:00:00 ty D][simplekv.c:437] new space 4 startpos:30092 size:420
[01-01 00:00:00 ty D][simplekv.c:459] new space. seek to end and write zero
[01-01 00:00:00 ty D][simplekv.c:207] update crc 1982811944
[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][ws_db_gw.c:454] gw_ai write ret:0
STA Disconn AP
[01-01 00:00:00 ty D][tal_wifi_reconnet.c:130] auto reconnect stop 4
[01-01 00:00:00 ty D][tuya_wifi_connect.c:95] fast connect mode:0
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:ap_info_v2 isFuzzy:0
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:5 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1287] key:ap_info_v2 not find
[01-01 00:00:00 ty D][tuya_wifi_connect.c:362] del fast info success
[01-01 00:00:00 ty N][tuya_svc_lan.c:2316] lan recv devos reset evt
[01-01 00:00:00 ty D][tuya_svc_lan.c:2553] lan disable
[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][ws_db_gw.c:255] gw_wsm write ret:0
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:79] status chaged: group[1] status[1]
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:86] status ignore. cb is null.
[01-01 00:00:00 ty N][tuya_svc_devos.c:523] enter success_proc
WIFI Get MAC 00-0C-29-9F-31-64
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:000c299f3164
[01-01 00:00:00 ty D][tuya_devos_utils.c:295] timer ID:2067203680
[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: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][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_hardware_info.c:252] traversal over
[01-01 00:00:00 ty E][tuya_ipc_hardware_info.c:173] NO sensor info. Please check if you need.
[01-01 00:00:00 ty D][tuya_ipc_hardware_info.c:115] not found device wifi info
[01-01 00:00:00 ty D][tuya_ipc_hardware_info.c:355] hard info ="skillParam":"{\"type\":4,\"skill\":{\"localStorage\":1,\"cloudStorage\":1,\"webrtc\":2,\"security_ability\":28,\"video_num\":2,\"sdk_version\":\"6.1.2\"},\"hardware\":{\"toolchain\":\"x86_64\",\"cpu\":{\"model\":\"Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz\",\"bogomips\":\"6000.01\"}}
[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:109] sys add timer: 2067208272

[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:115] sys start timer: 2067208272

[01-01 00:00:00 ty D][tuya_iot_wifi_api.c:443] register wifi network monitor. interval:1
[01-01 00:00:00 ty D][main.c:352] tuya ipc sdk start is complete

[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][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.
[01-01 00:00:00 ty D][simplekv.c:1128] read key:wf_start_md 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 E][tuya_wifi_reset.c:638] read wf start mode err:-6
[01-01 00:00:00 ty D][tuya_wifi_reset.c:675] <
gw_upd_nc_type> wf start mode change:-6, 0->0
Set Country Code:0
[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:2
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:709] nc_tp:2, md:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:1
[01-01 00:00:00 ty D][tuya_wifi_link.c:138] start ap netcfg, wk_md:3
Exec Cmd:ifconfig ens33 up
Exec Cmd:iwconfig ens33 mode Master
Error for wireless request "Set Mode" (8B06) :
SET failed on device ens33 ; Operation not supported.
WIFI Set Mode 3
WIFI Get MAC 00-0C-29-9F-31-64
Start AP SSID:SmartLife-3164
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:575] start ap success:SmartLife-3164
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10100,is_set:0
ens33 no wireless extensions.

[01-01 00:00:00 ty N][tuya_wifi_status.c:168] cur stat:2 0x790bc630 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:171] wifi netstat changed to:2 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:175] report wifi netstat[2] to callback -->>
[01-01 00:00:00 ty E][tuya_ipc_sdk_init.c:343] wf nw status changed to [2], but not notify

[01-01 00:00:00 ty D][netcfg_module.c:334] netcfg module start type:0x10100
[01-01 00:00:00 ty N][tuya_wifi_reset.c:404] timer stated, short timer:0x0, long timer:0x0
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:787] nc_tp:2, md:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:216] __devos_init_evt success
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:634] user netcfg ssid:tuya, token:
ens33 no wireless extensions.

[01-01 00:00:00 ty D][tuya_svc_netmgr_linkage.c:184] link[2] stage[255] type[0] [2]
[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:229] tuya ipc activate statage 255 not notify

[01-01 00:00:00 ty N][tuya_svc_devos.c:165] stop current activate
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:341] active event, type:0, stage:255 info->linkage:2
ens33 no wireless extensions.

[01-01 00:00:00 ty N][tuya_wifi_status.c:168] cur stat:6 0x790bc630 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:171] wifi netstat changed to:6 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:175] report wifi netstat[6] to callback -->>
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:79] status chaged: group[2] status[11]
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:86] status ignore. cb is null.
[01-01 00:00:00 ty D][netcfg_module.c:116] start 0x10100 ret:0
[01-01 00:00:00 ty D][netcfg_module.c:334] netcfg module start type:0x10002
[01-01 00:00:00 ty D][netcfg_module.c:405] netcfg module stop type:0x10100
[01-01 00:00:00 ty D][wifi_netcfg_frame_transporter.c:485] ----destroy Transporter,session:0x55b27b36fd30
[01-01 00:00:00 ty N][tuya_wifi_netcfg.c:212] stop ap cfg mthd:0, ret:0
[01-01 00:00:00 ty E][tuya_wifi_netcfg.c:183] all netcfg stop fail:-1
[01-01 00:00:00 ty N][tuya_wifi_netcfg.c:188] stop smt cfg mthd:0, ret:0
[01-01 00:00:00 ty D][tuya_wifi_connect.c:388] __wifi_net_conn.
ens33 no wireless extensions.

ens33 no wireless extensions.

[01-01 00:00:00 ty D][tuya_wifi_connect.c:264] status:6,mode:2
ens33 no wireless extensions.

ens33 no wireless extensions.

[01-01 00:00:00 ty D][tuya_wifi_connect.c:264] status:6,mode:2
ens33 no wireless extensions.

[01-01 00:00:00 ty N][tuya_wifi_status.c:168] cur stat:6 0x790bc630 -->>
ens33 no wireless extensions.

WIFI[0] Get IP:192.168.252.136
ens33 no wireless extensions.

WIFI[0] Get IP:192.168.252.136
[01-01 00:00:01 ty N][tuya_svc_lan.c:713] Not actived, use linkage addr[192.168.252.136][c0a8fc88]
[01-01 00:00:01 ty D][tuya_lan_sock.c:331] reg post queue 6
[01-01 00:00:01 ty D][tuya_lan_sock.c:331] reg post queue 7
ens33 no wireless extensions.

WIFI[0] Get IP:192.168.252.136
ens33 no wireless extensions.

WIFI[0] Get IP:192.168.252.136
[01-01 00:00:01 ty D][tal_wifi_reconnet.c:139] auto reconn timeout 4
[01-01 00:00:01 ty D][tuya_wifi_link.c:260] upload wifi connect err:0
ens33 no wireless extensions.

[01-01 00:00:01 ty D][tuya_wifi_netcfg.c:424] do proxy actived work,mode:2,stat:0,nc_tp:6
[01-01 00:00:01 ty D][tuya_svc_devos.c:770] set netcfgstat, stage:2, status:0
[01-01 00:00:01 ty D][tuya_ble_svc.c:1377] ble get conn stat:4
[01-01 00:00:01 ty D][tuya_svc_devos.c:770] set netcfgstat, stage:2, status:0
[01-01 00:00:01 ty D][tuya_ble_svc.c:1377] ble get conn stat:4
[01-01 00:00:01 ty D][tuya_wifi_link.c:286] stat:6
[01-01 00:00:01 ty D][tuya_svc_netmgr_linkage.c:117] link[2] is_up[1] active_link[1] status[2]
ens33 no wireless extensions.

[01-01 00:00:01 ty N][tuya_wifi_status.c:168] cur stat:6 0x790bc630 -->>
[01-01 00:00:02 ty D][tuya_svc_lan.c:432] close all socket
[01-01 00:00:02 ty D][tuya_lan_sock.c:345] unreg post queue 6
[01-01 00:00:02 ty D][tuya_lan_sock.c:345] unreg post queue 7
[01-01 00:00:02 ty D][tuya_svc_lan.c:2542] lan exit
[01-01 00:00:02 ty D][tal_thread.c:245] Del Thrd:lan_sock_loop
[01-01 00:00:02 ty D][tuya_lan_sock.c:103] deinit sock loop success
[01-01 00:00:02 ty D][tal_thread.c:220] Thread:lan_sock_loop Exec Finish. Set to Del Stat
[01-01 00:00:02 ty D][tal_thread.c:95] del list not empty...deleting 0x7f2c98000bf8, next 0x55b27b357750
[01-01 00:00:02 ty D][tal_thread.c:103] Final Free Thread:lan_sock_loop, is_self:1
[01-01 00:00:02 ty D][tal_thread.c:107] delay to delete thread self
[01-01 00:00:02 ty D][tal_thread.c:119] finally delete thread self
[01-01 00:00:02 ty D][tal_thread.c:73] real delete thread:0x7f2c980013b0
[01-01 00:00:05 ty D][tuya_devos_health.c:68] feed watchdog
[01-01 00:00:10 ty D][tuya_devos_health.c:68] feed watchdog
[01-01 00:00:15 ty D][tuya_devos_health.c:68] feed watchdog


Tags:
User avatar
pippin-bobo
Posts: 180

Re: 使用的tuya_ipc_SDK版本是sdk_6.1.2,ubuntu x86平台,开发方式SDK独立开发方式,提取SDK,编译生成demo运行程序后,日志发现token 是空的,没法激活设备,请问如何解决?

token为空是6.1.2版本问题导致,只影响token激活,可正常使用。
如果想通过token入网快速体验,可以更新tuyaOS版本3.9.5

Post Reply