Tool/software: Linux
Hi,
I use znp_host_framework on linux and I want to bind onoff cluster.But I have some porblem about send zdoBindReq command from my coordinate to device.
First, my coordinate ieee address is 0x00124B00072564F6, and the device shortaddr is 0x82DA, ieee is 0x00137A000002CB96.
As I know from another forum, the bind is unidirection, " if you want to send message from A node to B node after ZDP_BindReq, you should put A as source and B as destination.". In fact, I wanna device wiil report to my coordinate. so, I make my coordinate as source. The following is my code:
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);
Is there any problem?