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
您好!
我在 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);
有问题吗?