【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

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


Post Reply
jiejun.huang
Posts: 38

我们设备默认开启pir唤醒,有时候pir唤醒然后手机进入预览,会出现构建加密通道失败,详细见附件log
[20230516_19:37:48_291][05-16 19:37:48 TUYA E][app_agent.c:920] unsupport frame type:32
[20230516_19:37:48_500][05-16 19:37:48 TUYA E][tuya_svc_upgrade.c:436] result null
[20230516_19:37:48_500][05-16 19:37:48 TUYA N][tuya_svc_timer_task.c:796] Update Timer from cloud
[20230516_19:37:48_515][05-16 19:37:48 TUYA E][app_agent.c:920] unsupport frame type:32
[20230516_19:37:48_521][05-16 19:37:48 TUYA E][app_agent.c:920] unsupport frame type:32
[20230516_19:37:48_568][05-16 19:37:48 TUYA E][app_agent.c:920] unsupport frame type:32
[20230516_19:37:48_598][05-16 19:37:48 TUYA E][app_agent.c:920] unsupport frame type:32
[20230516_19:37:48_619][05-16 19:37:48 TUYA E][app_agent.c:920] unsupport frame type:32
手机app端log也上传了:
LOG上传时间:20:57
账号:17769497351
设备ID: 6cd9e3b90133a32b43yw3n
手机型号:Huawei nova 6

Attachments
serial-com8_161934.log
(533.85 KiB) Downloaded 168 times
0x1abin
Posts: 23

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

ENABLE_MQTT_P2P 这个配置打开了吗?

jiejun.huang
Posts: 38

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

没有,请问怎么打开?

jiejun.huang
Posts: 38

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

不好意思,应该是打开了的:
//
// this is media service Kconfig
//
#define TUYA_P2P 4
#define ENABLE_CLOUD_STREAM 1
#define ENABLE_MQTT_P2P 1
#define ENABLE_MQTT_WEBRTC 1
#define IPC_SDK_VER "5.3.22"
#define SUPPORT_VOICE 1

0x1abin
Posts: 23

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

能否确定下 tuya_ipc_media_stream_init 这个接口在唤醒后有没有被调用过,我在你的最后一次唤醒 log 没有看到它被调用的相关 log。

jiejun.huang
Posts: 38

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

Searching 168 files for "tuya_ipc_media_stream_init"

0 matches

没有搜到这个API呀。

0x1abin
Posts: 23

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

我看错了,你是 5.3 版本,接口叫 tuya_ipc_tranfser_init,你这个现象好复现吗?能否把 debug log 打开,确定下 frame type:32 已被注册。

jiejun.huang
Posts: 38

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

问题找到了:
[20230516_19:37:33_221]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c730]Init P2P With Max Users:5
[20230516_19:37:33_221]malloc failed!
[20230516_19:37:33_221]iot/tuya_ipc_sdk/tuya_ipc/5.5.29/tuya_ipc.c752]19:37:33.002501: tuya_ipc_tranfser_init over

tuya_ipc_tranfser_init失败了,后面没有再去调用了。感谢。

jiejun.huang
Posts: 38

Re: 【求助】【TuyaOS SDK】unsupport frame type:32 手机app不出预览

TUYA_APP_Enable_P2PTransfer() 这个API在mqtt没有上线之前调用,是有可能失败的,请问如果失败后,有没有可能引发段错误?
我们抓到几次出现进程段错误了。具体log见附件。

Attachments
ok.txt
(43.46 KiB) Downloaded 125 times
NG.txt
(21.1 KiB) Downloaded 117 times
Post Reply