Other Parts Discussed in Thread: Z-STACK
I'm trying to understand the transaction ID counter fields that are used in various commands. For example, the ZDO_MSG_CB_INCOMING message includes a SeqNum field which I'd assumed would be the APS sequence? However, this always seems to be 0. Likewise, when sending messages, the AF_DATA_REQUEST command has a field "transId" - how does this relate to the APS counter (or is it only used for some internal use)?
Below shows a transaction sent to an Osram bulb with a transId of 0x0F, but the response is 0x00 in the seqNumber field.
16:18:08.891 DEBUG TX ZSTACK: ZstackAfDataRequestSreq [dstAddr=71DE, destEndpoint=00, srcEndpoint=00, clusterId=0003, transId=0F, options=[AF_ACK_REQUEST, AF_DISCV_ROUTE], radius=31, data=00 DE 71] 16:18:08.954 DEBUG RX ZSTACK: ZstackZdoMsgCbIncomingAreq [srcAddr=71DE, wasBroadcast=false, clusterId=8003, securityUse=false, seqNumber=00, dstAddr=0000, data=00 DE 71 70 C1]
Thanks.