Search found 71 matches

by shiliang
2025年 Sep 1日 17:45
Forum: TuyaOS-Zigbee设备开发
Topic: 【已解决】TuyaOS-3.11.1 持续上报数据返回SEND_ST_MEMORY_ERR 问题
Replies: 8
Views: 466

Re: 【求助】TuyaOS-3.11.1 持续上报数据返回SEND_ST_MEMORY_ERR 问题

麻烦确认下:
1.上报数据是否比较多,看之前代码超时时间3s,正常3s后会释放恢复发送前heap,可监测确认;
2.确认是否代码中有其他地方调用tal_malloc,占用较多的ram;

by shiliang
2025年 Sep 1日 16:39
Forum: TuyaOS-Zigbee设备开发
Topic: 【已解决】TuyaOS-3.11.1 持续上报数据返回SEND_ST_MEMORY_ERR 问题
Replies: 8
Views: 466

Re: 【求助】TuyaOS-3.11.1 持续上报数据返回SEND_ST_MEMORY_ERR 问题

SEND_ST_MEMORY_ERR代表填充发送函数时malloc错误,可以尝试增加memory heap看是否能解决问题:
#define APP_HEAP_SIZE 11*1024
STATIC UINT8_T gs_heap[APP_HEAP_SIZE];
VOID_T tkl_memory_cfg(UINT8_T **out_buff, UINT32_T *out_buff_len)
{
*out_buff = gs_heap;
*out_buff_len = APP_HEAP_SIZE;
}

by shiliang
2025年 Jul 11日 15:43
Forum: TuyaOS-Zigbee设备开发
Topic: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?
Replies: 27
Views: 46653

Re: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?

您好,

使用你发送的demo,增加了分包能力注册,并更改app_config.yaml中manufacture_name是可以的,之前应该是分包能力值未开启。

Image

Image

可参考附件测试demo

by shiliang
2025年 Jul 11日 10:20
Forum: TuyaOS-Zigbee设备开发
Topic: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?
Replies: 27
Views: 46653

Re: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?

您好: 1.麻烦在tuya_init_first中增加tal_zigbee_local_auto_func_enable(); (需是router设备) 2.非router设备增加,router设备hulve: BOOL_T __tal_inner_local_auto_action_device_enable(VOID_T) { return TRUE; } 3.修改file_send_transfer_end_callback如下: extern UINT8_T *__inner_file_send_buf; BOOL_T file_send_transfer_end_callback(U...
by shiliang
2025年 Jul 10日 18:15
Forum: TuyaOS-Zigbee设备开发
Topic: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?
Replies: 27
Views: 46653

Re: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?

您好:

result为0时发送失败,result为1发送成功。

可以提供下发送接口函数。

by shiliang
2025年 Jul 10日 17:42
Forum: TuyaOS-Zigbee设备开发
Topic: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?
Replies: 27
Views: 46653

Re: 请问上报的dp数据长度超过64byte的时候该怎么上传? 分包?如何分?

你好,
这个问题是由于SDK会check是否已经注册了cluster和attribute造成的。

BOOL_T tal_inner_file_transfer_check_cluster_register(void)
{
return FALSE;
}
可通过此虚函数跳过。