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.

StackVersion Attribute of basic cluster value

Other Parts Discussed in Thread: Z-STACK

when i use Z-Stack 3.0.2 develop my project,the StackVersion Attribute of basic cluster is 302?But the StackVersion attribute is 8 bits in length,the vlaue can't be 302.

Is i misunderstand?

  • 用中文表达你的意思。
    CL_CLUSTER_ID_GEN_BASIC这个cluster 里面的

    #define ATTRID_BASIC_ZCL_VERSION 0x0000
    /// The ApplicationVersion attribute is 8 bits in length and specifies the
    /// version number of the application software contained in the device.
    #define ATTRID_BASIC_APPL_VERSION 0x0001
    /// The StackVersion attribute is 8 bits in length and specifies the version
    /// number of the implementation of the stack contained in the device.
    #define ATTRID_BASIC_STACK_VERSION 0x0002
    /// The HWVersion attribute is 8 bits in length and specifies the version
    /// number of the hardware of the device.
    #define ATTRID_BASIC_HW_VERSION 0x0003
  • #define ATTRID_BASIC_STACK_VERSION 0x0002 这个值取0x02的根据是什么?是自己随意定义?我在TI zigbee 3.02里面提供的例子里面发现取值是0x01,在NXP zigbee 提供的例子里面发现有取值为0x01也有取值为0x02。
  • #define ATTRID_BASIC_STACK_VERSION 0x0002 这个值取0x02是根据zcl spec 3.2節來的
  • 谢谢你回答,我想我理解清楚了,谢谢。