Other Parts Discussed in Thread: Z-STACK
Hi Greetings,
I need support in getting lighting load status of a Zigbee module.
I used the CC2530-CC2591 module and loaded ZNP firmware in that, and using Z-tool to send and receive commands.
The ON-OFF module which I am trying to integrate is not giving discrete feedback for ON and OFF status from manual switch, it is giving a toggle type feedback like shown below,
<RX>10:18:34.38 COM5 ZDO_SRC_RTG_IND (0x45C4)
DstAddr: 0x5856
Relay Count: 0x00
Relay List
So in order to get the load status after a manual switch operation, I am sending the following command from Z-tool
<TX>10:18:34.33 COM5 AF_DATA_REQUEST (0x2401)
DstAddr: 0x5856
DestEndpoint: 0x01
SrcEndpoint: 0x07
ClusterID: 0x0006
TransID: 0x01
Options: 0x04
Radius: 0x01
Len: 0x05
Data: ..... (0x00, 0x00, 0x00, 0x00, 0x00)
And it send the feedback like the one below;
<RX>10:18:34.34 COM5 AF_DATA_REQUEST_SRSP (0x6401)
Status: afStatus_SUCCESS (0x0)
<RX>10:18:34.35 COM5 AF_DATA_CONFIRM (0x4480)
Status: afStatus_SUCCESS (0x0)
Endpoint: 0x07
TransID: 0x01
<RX>10:18:34.38 COM5 ZDO_SRC_RTG_IND (0x45C4)
DstAddr: 0x5856
Relay Count: 0x00
Relay List
<RX>10:18:34.43 COM5 AF_INCOMING_MSG (0x4481)
GroupID: 0x0000
ClusterID: 0x0006
SrcAddr: 0x5856
SrcEndpoint: 0x01
DstEndpoint: 0x07
WasBroadcast: 0x00
LinkQuality: 0x00
SecurityUse: 0x00
Timestamp: 0x000A5B6C
TransSeqNumber: 0x00
Len: 0x08
Data: ........ (0x18, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x01)
Now i am getting the status of the load; but now I am facing a problem like it throws 4 different data frames as shown above in that the same frame when I get on manual switch operation also included which cause issue in validating through device drivers for app control.
My device driver is in a flow that when it receives a feedback command on pressing the manual switch, i will send a status request frame as a reply and update it in my app as manual switch status, but the receiving frame also having the same command like the one below, and due to this it act as a loop and it keeps on running
<RX>10:18:34.38 COM5 ZDO_SRC_RTG_IND (0x45C4)
DstAddr: 0x5856
Relay Count: 0x00
Relay List
Now i need to exclude this from the receiving frame for the feedback, please help me in this.