Zigbee终端如何定时接收数据和休眠?
我一开始终端节点都收不到来自协调器广播和点播的数据
后来发现需要打开f8wConfig.cfg中的-DRFD_RCVC_ALWAYS_ON=TRUE才可以.
但是打开之后,休眠又不行了.
我需要它休眠,并且定时起来收数据,应该怎么设置呢?万分感谢大家赐教啊!
终端节点休眠之后是不会接收无线信息的,当唤醒之后才会从父节点接收
您可以设置睡眠定时器,在一定时间后唤醒接收数据
知道为什么接收不到数据了 。因为我没打开NWK_AUTO_POLL
现在打开了NWK_AUTO_POLL,终端节点收数据正常了。
但是休眠进不去了。求大神搭救啊
如果我把OSAL_SET_CPU_INTO_SLEEP( next );
改成OSAL_SET_CPU_INTO_SLEEP( 0); 就一直进休眠了。
我的设置
预编译:
ZIGBEEPRO
ZTOOL_P1
xMT_TASK
xMT_SYS_FUNC
xMT_ZDO_FUNC
LCD_SUPPORTED=DEBUG
NV_RESTORE
POWER_SAVING
NWK_AUTO_POLL
f8wConfig.cfg 中的 poll_rate
/****************************************
* The following are for End Devices only
***************************************/
-DRFD_RCVC_ALWAYS_ON=FALSE
/* The number of milliseconds to wait between data request polls to the coordinator. */
-DPOLL_RATE=1000
/* This is used after receiving a data indication to poll immediately
* for queued messages...in milliseconds.
*/
-DQUEUED_POLL_RATE=100
/* This is used after receiving a data confirmation to poll immediately
* for response messages...in milliseconds
*/
-DRESPONSE_POLL_RATE=100
/* This is used as an alternate response poll rate only for rejoin request.
* This rate is determined by the response time of the parent that the device
* is trying to join.
*/
-DREJOIN_POLL_RATE=440