楼主: fff

芯片主动上报level 状态, 这样是否可以?

[复制链接]

19

主题

40

回帖

233

积分

积分
233
 楼主| 发表于 2024-12-24 16:54:57 | 显示全部楼层 来自 广东深圳
thanks for your info. ! But I don't have this problem using the x labs chips,.   no binding level , this chips also can send level report.

22

主题

113

回帖

587

积分

积分
587
发表于 2024-12-24 18:00:00 | 显示全部楼层 来自 澳大利亚
本帖最后由 wes58 于 2024-12-24 18:01 编辑
fff 发表于 2024-12-24 16:54
thanks for your info. ! But I don't have this problem using the x labs chips,.   no binding level , ...

Well, maybe they are doing it some other way, without you having to do it. You may check their documentation.
Binding is not specific to Telink. It is specified in the Zigbee specifications.

30

主题

372

回帖

1188

积分

积分
1188
发表于 2024-12-24 19:33:59 | 显示全部楼层 来自 上海
Hi,
wes58的回答是正确的。
或者你也可以参考这个。
void reportTemp(void){
        epInfo_t dstEpInfo;
        TL_SETSTRUCTCONTENT(dstEpInfo, 0);

        dstEpInfo.dstAddrMode = APS_SHORT_DSTADDR_WITHEP;
        dstEpInfo.dstEp = 1;
        dstEpInfo.dstAddr.shortAddr = 0x0000;
        dstEpInfo.profileId = HA_PROFILE_ID;
        dstEpInfo.txOptions |= APS_TX_OPT_ACK_TX;//enable aps ack request

        u8 level = 127;

        zcl_report(1, &dstEpInfo, TRUE, ZCL_FRAME_SERVER_CLIENT_DIR,
                        ZCL_SEQ_NUM, MANUFACTURER_CODE_NONE,
                        ZCL_CLUSTER_GEN_LEVEL_CONTROL, ZCL_ATTRID_LEVEL_CURRENT_LEVEL,
                        ZCL_DATA_TYPE_UINT8, (u8 *)&level);
}

19

主题

40

回帖

233

积分

积分
233
 楼主| 发表于 2024-12-24 21:30:32 | 显示全部楼层 来自 中国
感谢, 有一个问题,为什么有的网关level binding 没问题,有的网关不level binding ?

22

主题

113

回帖

587

积分

积分
587
发表于 2024-12-25 05:54:25 | 显示全部楼层 来自 澳大利亚
本帖最后由 wes58 于 2024-12-25 08:04 编辑

You won't get an answer why it works differently on anothre manufacter chips.

That's all you have to do to bind it:
image.png

Or you can remove the references to cheking the binding table in the zcl_reporting.c

You were talking about x labs chips.
When I read here https://community.silabs.com/s/article/creating-bindings-and-reporting-entries-using-the-emberznet-cli?language=en_US it looks like the same what Telink is doing.


本版积分规则

关注公众号
隐私政策|Telink forum

相关侵权、举报、投诉及建议等,请发 E-mail:forum@telink-semi.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|沪ICP备17008231号-1 |沪公网安备31011502403548号

在本版发帖返回顶部
公告×