您好,ti工程师,我想向您请教几个关于zll协议栈的问题,我最近正在看ti的zll协议栈,我有几个问题不太懂
1.ti的zll协议栈有没有定时功能,若我要定时开关灯,该怎么做,是自己写程序还是说ti的协议栈已经实现了,我只需要调用。
2.zll网络如何返回灯的状态呢,这个函数,zll协议栈是否已经写好了呢?
3.遥控器只要touchlink就可以控制某盏灯了,那我如何保证非授权的touchlink或者控制呢?
谢谢,希望ti工程师能百忙之中抽出时间帮我解答一下。
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.
你好,
1:CC2530有4个定时器,目前已经使用的是time1 做4 channel PWM输出,time2 做MAC 定时器用,timer3和timer4 并没有使用,但是对定时器的配置的API已经完成一些,你可以参考C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\hal\target\CC2530PMP4712\hal_timer.c
2:灯的状态,zll cluster有专门的 resd attribute的功能的,你知道cluster/ep 等就可以读了。
CONST zclAttrRec_t zllSampleLight_Attrs[SAMPLELIGHT_NUM_ATTRIBUTES] =里面有个
// *** On/Off Cluster Attributes ***
{
ZCL_CLUSTER_ID_GEN_ON_OFF,
{ // Attribute record
ATTRID_ON_OFF,
ZCL_DATATYPE_BOOLEAN,
ACCESS_CONTROL_READ,
(void *)&zllSampleLight_OnOff
}
3:toucklink过程以后需要有key的验证的,过了zigbee联盟zll认证的产品都会得到一个key,没有过认证的产品是无法对其操作的。
具体你可以看下ZLL specification里面的security部门。
Classical Commissioning allows a ZLL device join any ZigBee network. If it joins a ZLL network it uses the ZLL security key, if it joins a HA network it used the HA trust center link key.
参考CC2530的数据手册 http://www.ti.com.cn/cn/lit/ug/swru191e/swru191e.pdf 第22页可以知道 CC2530有4个定时器 Timer 1 2 3 4