Other Parts Discussed in Thread: Z-STACK
请问一下TI的大神们,在3.0中用到ZCL来进行数据的收发。1.为什么要根据端点号和簇ID,找到对应的发送选项值。(发送选项值到底是什么意思,有什么作用)2.为什么要根据簇ID到合适的处理插件(plugin)(插件又是什么呢,有什么作用呢)。
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.
Other Parts Discussed in Thread: Z-STACK
请问一下TI的大神们,在3.0中用到ZCL来进行数据的收发。1.为什么要根据端点号和簇ID,找到对应的发送选项值。(发送选项值到底是什么意思,有什么作用)2.为什么要根据簇ID到合适的处理插件(plugin)(插件又是什么呢,有什么作用呢)。
请依据ZigBee alliance specific :
www.zigbee.org/.../07-5123-06-zigbee-cluster-library-specification.pdf
配合Z-Stack 1.22a 或者Z-stack3.0.1去学习
比如on/off 这个cluster 包含了 on off toggle state ,
/*******************************/
/*** On/Off Cluster Commands ***/
/*******************************/
#define COMMAND_OFF 0x00
#define COMMAND_ON 0x01
#define COMMAND_TOGGLE 0x02
#define COMMAND_OFF_WITH_EFFECT 0x40
#define COMMAND_ON_WITH_RECALL_GLOBAL_SCENE 0x41
#define COMMAND_ON_WITH_TIMED_OFF 0x42
在之前的你可以随便定义,但是那样如果两个不同厂家的产品就无法互通,但是有个zcl 大家的规范是一样的,就可以兼容。
就是这个函数zclGetClusterOption(uint8 endpoint,uint16 clusterID)---它的意思就是根据端点和簇ID,找到发送选项值。我就没有懂发送选项值是什么意思,有什么作用。 然后就是这个zcl_registerPlugin(uint16 startclusterID ,uint16 endcluster)这个插件,又是什么呢