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.

CC2531EMK: Curiosity regarding ZStack Packets

Part Number: CC2531EMK

Hi,

I have a quick curiosity regarding zstack frames.

One of my end devices sends me this message when I move the knob

<RX>11:44:24.87 COM4 AF_INCOMING_MSG (0x4481)
    GroupID: 0x0000
    ClusterID: 0x0201
    SrcAddr: 0x3448
    SrcEndpoint: 0x01
    DstEndpoint: 0x01
    WasBroadcast: 0x00
    LinkQuality: 0x4E
    SecurityUse: 0x00
    Timestamp: 0x000980A9
    TransSeqNumber: 0x00
    Len: 0x08
    Data: .....).. (0x08, 0x0F, 0x0A, 0x12, 0x00, 0x29, 0xD0, 0x07)

As you can see the payload is the command 0x0A, regarding attribute 0x0012 ( occupied_heating_setpoint).

But my other end device gives me this AF_INCOMING_MSG

<RX>11:44:33.24 COM4 AF_INCOMING_MSG (0x4481)
    GroupID: 0x0000
    ClusterID: 0x0201
    SrcAddr: 0x4F16
    SrcEndpoint: 0x01
    DstEndpoint: 0x01
    WasBroadcast: 0x00
    LinkQuality: 0x54
    SecurityUse: 0x00
    Timestamp: 0x0009E6D7
    TransSeqNumber: 0x00
    Len: 0x0C
    Data: .....)..0.0. (0x08, 0x1B, 0x0A, 0x12, 0x00, 0x29, 0xD0, 0x07, 0x30, 0x00, 0x30, 0x00)

The payload is longer. It reports the attribute 0x0012 with the value 0xD029 ( zcl general command 0x0A ) and after it the payload continues with "0x07 0x30 0x00 0x30 0x00"

Is it another ZCL Command attached to the one before or maybe i'm missing something.

EDIT:

  • Looking at the ZCL Specification the general command 0x07 is "Configure command response"

Regards,

Luca

  • Hi Luca,

    We are interpreting the data packets in a similar manner.  0x08 is the frame control, 0x0F/0x1B is the transaction sequence number, and 0x0A is the command ID (report attributes).  Since an attribute is being reported, 0x0012 would be the attribute and 0x29 is the datatype (ZCL_DATATYPE_INT16).  The data would then be 0x07D0.  There is no explanation as to why your second end devices provides four additional bytes of data, if multiple attributes were being reported then further data bytes would be provided.  You will need to contact the manufacturer to discover the root issue as it is most likely an error with the attribute report ZCL logic.  

    Regards,
    Ryan

  • Thank you for your answer.

    Regards,

    Luca