This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux:CAN't 成功发送 zdoBindReqcommand

Guru**** 2033340 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/569176/linux-can-t-send-zdobindreqcommand-successfully

工具/软件:Linux

您好!  

我在 Linux 上使用 ZNP_HOST_framework,并想绑定 onoff cluster。但我有一些关于将 zdoBindReq 命令从我的坐标发送到设备的讨论。

首先、我的坐标 IEEE 地址为 0x00124B00072564F6、器件 shortaddr 为0x82DA、IEEE 为 0x00137A000002CB96。

正如我在另一个论坛中所知、BIND 是单向的、" 如果要在 ZDP_BindReq 之后将消息从一个节点发送到 B 节点、则应将 A 作为源、将 B 作为目标。" 实际上、我想让设备向我的坐标报告。 因此、我将我的坐标作为源。 以下是我的代码:

BindReqFormat_t bind_req;

bind_req.DstAddr = 0x82DA;

bind_req.SrcAddress[0]= 0x00;
bind_req.SrcAddress[1]= 0x13;
bind_req.SrcAddress[2]= 0x7a;
bind_req.SrcAddress[3]= 0x00;
bind_req.SrcAddress[4]= 0x00;
bind_req.SrcAddress[5]= 0x02;
bind_req.SrcAddress[6]= 0xcb;
bind_req.SrcAddress[7]= 0x96;

bind_req.SrcEndpoint = 1;

bind_req.clusterid = 0x0006;

bind_req.DstAddrMode = afAddr16Bit;

bind_req.DstAddress[0]= 0x00;
bind_req.DstAddress[1]= 0x12;
bind_req.DstAddress[2]= 0x4b;
bind_req.DstAddress[3]= 0x00;
bind_req.DstAddress[4]= 0x07;
bind_req.DstAddress[5]= 0x25;
bind_req.DstAddress[6]= 0x64;
bind_req.DstAddress[7]= 0xf6;

bind_req.DstEndpoint = 1.

zdoBindReq (&bind_req);

有问题吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    这是哪个器件? 哪种内核?

    此致、
    Yordan
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    该器件符合从其他公司购买的标准 ZHA 规范。 因此、问题出在主机上
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    问题得到解决。 请参阅 e2e.ti.com/.../2101334