Search found 41 matches

by shiliang
2025年 Mar 25日 16:38
Forum: TuyaOS-Zigbee Device Development
Topic: Tuya Zigbee Thermostat
Replies: 7
Views: 114

Re: Tuya Zigbee Thermostat

Please refer to the packet capture data:

Image

by shiliang
2025年 Mar 25日 14:42
Forum: TuyaOS-Zigbee Device Development
Topic: Tuya Zigbee Thermostat
Replies: 7
Views: 114

Re: Tuya Zigbee Thermostat

OK, The following answers may help you. If you want to report DP data, please use 0x02 command id, ZG_ZCL_FRAME_TYPE_SPEC_TO_CLUSTER (0x01) data type and the payload uses the received data. send_data->delay_time = 0; send_data->random_time = 0; send_data->manu_code = 0x0000; send_data->manu_spec = 0...
by shiliang
2025年 Mar 25日 13:51
Forum: TuyaOS-Zigbee Device Development
Topic: Tuya Zigbee Thermostat
Replies: 7
Views: 114

Re: Tuya Zigbee Thermostat

Can you provide more detailed information, such as what functions are implemented?
After the module receives the dp message sent by the gateway, it reports it to the gateway and pushes it to the app, and the status changes synchronously?

by shiliang
2025年 Mar 25日 13:34
Forum: TuyaOS-Zigbee Device Development
Topic: Tuya Zigbee Thermostat
Replies: 7
Views: 114

Re: Tuya Zigbee Thermostat

Please refer to the following:
DP Type

https://developer.tuya.com/cn/docs/mcu- ... 4%EF%BC%89

by shiliang
2025年 Mar 21日 14:03
Forum: TuyaOS-Zigbee Device Development
Topic: Zigbee Thermostat Cluster
Replies: 8
Views: 254

Re: Zigbee Thermostat Cluster

Hello, The parsing format of this data is as follows:
2 bytes seq number
1 byte DP id 0x03 0xb1
1 byte DP type 0x02
2 bytes DP length 0x00 0x04
4 bytes DP value 0x00 0x00 0x00 0x16

by shiliang
2024年 Sep 27日 18:02
Forum: TuyaOS-Zigbee设备开发
Topic: 如何判断当前设备已经连上网络
Replies: 4
Views: 5998

Re: 如何判断当前设备已经连上网络

tal_zg_nwk_status_changed_callback回调只提示当前设备的zigbee网络状态,无法提示互联网状态:

如果当前设备已组网,重启后状态为TAL_ZG_NWK_POWER_ON_ONLINE

如果网关掉电,可通过report数据是否成功判断

by shiliang
2024年 Aug 27日 16:30
Forum: TuyaOS-Zigbee设备开发
Topic: 涂鸦网关会有主动读取设备状态的机制,是通过哪个接口实现的?
Replies: 1
Views: 4364

Re: 涂鸦网关会有主动读取设备状态的机制,是通过哪个接口实现的?

cluster 0xEF00,cmd 0x07命令功能为:

Gw→Zigbee,触发模组侧把当前全部DP上报/部分DP上报

注:设备端可以做个策略,数据最好不要集中上报。

by shiliang
2024年 Aug 26日 15:24
Forum: TuyaOS-Zigbee设备开发
Topic: 自定义DP 是否支持多DP聚合上报?
Replies: 4
Views: 4783

Re: 自定义DP 是否支持多DP聚合上报?

data[0] data[1]需要填充seq(uint16),后续数据按照dp格式上报,dp id(1 字节),dp type(1字节),dp length(2字节),dp value(N字节,实际字节数根据dp length)。

by shiliang
2024年 Aug 26日 15:01
Forum: TuyaOS-Zigbee设备开发
Topic: 自定义DP 是否支持多DP聚合上报?
Replies: 4
Views: 4783

Re: 自定义DP 是否支持多DP聚合上报?

如果上述所说的自定义DP为IOT前台,大于100的DP,走透传通道的,可以使用
/**
@enum zigbee private data(include command data)
*/
typedef struct {
UINT8_T len; ///< data length
UINT8_T data[64]; ///< data buff
} TAL_PRIVATE_DATA_T;

可多个DP一起上报,data部分总长度不能超过64,并且dp数量不能超过10个

by shiliang
2024年 Aug 26日 14:57
Forum: TuyaOS-Zigbee设备开发
Topic: 自定义DP 是否支持多DP聚合上报?
Replies: 4
Views: 4783

Re: 自定义DP 是否支持多DP聚合上报?

标准dp或者私有dp,只要是属性类的数据,都可以使用 typedef struct { UINT8_T attr_sum; ///< attribute number TAL_ATTR_VALUE_T attr[8]; ///< attribute instantiation } TAL_ZG_DATA_T; 如果是命令类的数据,才需要使用: /** @enum zigbee private data(include command data) */ typedef struct { UINT8_T len; ///< data length UINT8_T data[64]; ///< da...