TI中文支持网
TI专业的中文技术问题搜集分享网站

StackVersion Attribute of basic cluster value

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?

Alvin Chen:

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

#define ATTRID_BASIC_ZCL_VERSION0x0000
/// 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_VERSION0x0001
/// 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_VERSION0x0002
/// The HWVersion attribute is 8 bits in length and specifies the version
/// number of the hardware of the device.
#define ATTRID_BASIC_HW_VERSION0x0003

user5160623:

回复 Alvin Chen:

#define ATTRID_BASIC_STACK_VERSION 0x0002 这个值取0x02的根据是什么?是自己随意定义?我在TI zigbee 3.02里面提供的例子里面发现取值是0x01,在NXP zigbee 提供的例子里面发现有取值为0x01也有取值为0x02。

YiKai Chen:

回复 user5160623:

#define ATTRID_BASIC_STACK_VERSION 0x0002 这个值取0x02是根据zcl spec 3.2節來的

user5160623:

回复 YiKai Chen:

谢谢你回答,我想我理解清楚了,谢谢。

赞(0)
未经允许不得转载:TI中文支持网 » StackVersion Attribute of basic cluster value
分享到: 更多 (0)