Page 1 of 1

【已解决】【TuyaOS SDK】ubuntu虚拟机环境 涂鸦 IPC 嵌入式 SDK,运行 SDK Demo报错

Posted: 2024年 Mar 15日 09:13
by liangcaimei

执行命令为:./tuya_ipc_demo -m 2 -p PID -u UUID -a AUTHKEY -t TOKEN
执行之后报以下错误,麻烦帮忙看看
Dbg:SDK Version:< TUYA IOT SDK V:5.3.40 BS:40.00_PT:2.2_LAN:3.4_CAD:1.0.4_CD:1.0.0 >
< BUILD AT:2023_09_11_10_16_11 BY ci_manage FOR ty_ipc_wr_wl_linux_sdk AT linux-ubuntu-6.2.0_64Bit >
IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:1 SHUTDOWN_MODE:1 LITTLE_END:1 TLS_MODE:4 ENABLE_CLOUD_OPERATION:1 OPERATING_SYSTEM:100 ENABLE_SYS_RPC:0 RELIABLE_TRANSFER:0 ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_DEV:0 >

Dbg:channel_enable:1 1 0
Dbg:fps:30
Dbg:gop:30
Dbg:bitrate:1024 kbps
Dbg:video_main_width:640
Dbg:video_main_height:360
Dbg:video_freq:90000
Dbg:video_codec:2
Dbg:audio_codec:101
Dbg:audio_sample:8000
Dbg:audio_databits:16
Dbg:audio_channel:0
Dbg:tuya_ipc_sdk_mqtt_online_proc thread start success

[01-01 18:12:15 TUYA D][tuya_ws_db.c:450] init fs. Path: /tmp/
[01-01 18:12:15 TUYA I][kv_storge.c:45] Init Kvs With File:/tmp/
[01-01 18:12:15 TUYA D][simplekv.c:945] path:/tmp/
[01-01 18:12:15 TUYA D][simplekv.c:981] get encrypt_key[���US����ykR��]
[01-01 18:12:15 TUYA D][simplekv.c:999] normal file exist. bak file not exist
[01-01 18:12:15 TUYA D][simplekv.c:310] size in: 0 and final: 28700 And mag_rec_max: 512
[01-01 18:12:15 TUYA D][simplekv.c:325] create data hd success
[01-01 18:12:15 TUYA D][simplekv.c:1055] read from normal file
[01-01 18:12:15 TUYA D][simplekv.c:765] curr db is V2. No need to upgrade
[01-01 18:12:15 TUYA D][simplekv.c:555] head check success
[01-01 18:12:15 TUYA D][simplekv.c:658] read and check head success
[01-01 18:12:15 TUYA D][simplekv.c:1075] read from normal file success
[01-01 18:12:15 TUYA I][uni_thread.c:228] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[01-01 18:12:15 TUYA D][simplekv.c:1111] init from normal file success.
[01-01 18:12:15 TUYA I][mqc_app.c:350] mqc app init ...
[01-01 18:12:15 TUYA I][uni_thread.c:228] thread_create name:cmmod,stackDepth:4096,totalstackDepth:8192,priority:4
[01-01 18:12:15 TUYA D][mqc_app.c:144] mq_pro:5 cnt:1
[01-01 18:12:15 TUYA D][mqc_app.c:144] mq_pro:31 cnt:2
[01-01 18:12:15 TUYA D][svc_online_log.c:295] svc online log init success
[01-01 18:12:15 TUYA E][log_seq.c:871] logseq empty
[01-01 18:12:15 TUYA D][uni_thread.c:250] Thread:sys_timer Exec Start. Set to Running Stat
[01-01 18:12:15 TUYA I][uni_thread.c:228] thread_create name:wk_th-0,stackDepth:5120,totalstackDepth:13312,priority:3
[01-01 18:12:15 TUYA D][simplekv.c:1211] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 18:12:15 TUYA D][simplekv.c:1247] no key find
[01-01 18:12:15 TUYA D][simplekv.c:1294] __read_kv_raw fail. -3
[01-01 18:12:15 TUYA D][simplekv.c:1336] __read_kv_with_decode fail. -3
[01-01 18:12:15 TUYA E][ws_db_gw.c:80] wd_protected_read fails gw_bi -6
[01-01 18:12:15 TUYA D][ws_db_gw.c:208] gw base read finish:-6
[01-01 18:12:15 TUYA D][tuya_bt_sdk.c:92] ty bt cmmod regist ok:1
[01-01 18:12:15 TUYA D][uni_thread.c:250] Thread:wk_th-0 Exec Start. Set to Running Stat
[01-01 18:12:15 TUYA D][uni_thread.c:250] Thread:cmmod Exec Start. Set to Running Stat
ioctl error
[01-01 18:12:15 TUYA D][tuya_ble_api.c:315] upd adv para, send conn_req beacon.
dev id key: 16
d4 1d 8c d9 8f 00 b2 04 e9 80 09 98 ec f8 42 7e
[01-01 18:12:15 TUYA E][tuya_ble_api.c:636] port_init error.
[01-01 18:12:15 TUYA E][tuya_bt_sdk.c:123] start bt sdk init failed,ret:-256
[01-01 18:12:15 TUYA D][tuya_ble_active.c:538] bt active uninit
[01-01 18:12:15 TUYA E][tuya_iot_com_api.c:425] ty_bt_init_env fails -256
[01-01 18:12:15 TUYA E][tuya_ipc_sdk_init.c:262] tuya_iot_init err -256
Err:init sdk is error

Dbg:ipc sdk start fail,please check run parameter,ret=-256


Re: ubuntu虚拟机环境 涂鸦 IPC 嵌入式 SDK,运行 SDK Demo报错

Posted: 2024年 Mar 15日 09:31
by 郭老庄

tuya_ext_bt_port_init 这个需要你们适配的接口报错了


Re: ubuntu虚拟机环境 涂鸦 IPC 嵌入式 SDK,运行 SDK Demo报错

Posted: 2024年 Mar 15日 10:49
by liangcaimei

谢谢,换个没有ble的sdk就不需要配置port了