找回密码
 立即注册

微信扫码登录

楼主: fff

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

[复制链接]

10

主题

19

回帖

118

积分

荣耀黄金

积分
118
 楼主| 发表于 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.

12

主题

44

回帖

258

积分

华贵铂金

积分
258
发表于 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.

27

主题

215

回帖

707

积分

版主

积分
707
发表于 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);
}

10

主题

19

回帖

118

积分

荣耀黄金

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

12

主题

44

回帖

258

积分

华贵铂金

积分
258
发表于 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 ( 沪ICP备17008231号-1 )

GMT+8, 2025-2-5 14:56 , Processed in 0.088142 second(s), 22 queries .

Powered by Telink 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

快速回复 返回顶部 返回列表