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.

Z-Stack3.0.2中父节点为终端保存非直接信息的时间的疑问。

Other Parts Discussed in Thread: CC2538, CC2530

协议栈:Z-Stack3.0.2

协调器处理器:CC2538

终端处理器:CC2530

问题描述:

请问在Z-Stack3.0.2中父节点为终端保存非直接信息的时间怎么调节?

在“nwk_globals.c”文件中有关于终端缓存功能的宏定义:

// 1-255 (0 -> 256) X RTG_TIMER_INTERVAL
// A known shortcoming is that when a message is enqueued as "hold" for a
// sleeping device, the timer tick may have counted down to 1, so that msg
// will not be held as long as expected. If NWK_INDIRECT_MSG_TIMEOUT is set to 1
// the hold time will vary randomly from 0 - CNT_RTG_TIMER ticks.
// So the hold time will vary within this interval:
// { (NWK_INDIRECT_MSG_TIMEOUT-1)*CNT_RTG_TIMER, NWK_INDIRECT_MSG_TIMEOUT*CNT_RTG_TIMER }

这里表明父节点为终端缓存消息的时间为: { (NWK_INDIRECT_MSG_TIMEOUT-1)*CNT_RTG_TIMER, NWK_INDIRECT_MSG_TIMEOUT*CNT_RTG_TIMER }

将“f8wConfig.cfg”中的“-DNWK_INDIRECT_MSG_TIMEOUT”设为1,然后将“CNT_RTG_TIMER ”设为3,那么协调器为直连睡眠终端保存信息的时间就为0-3秒吗?

我按照上面的设置将协调器为直连睡眠终端保存信息的时间改为0-3秒,然后使用按键将终端进入深睡眠,再让协调器发送读取属性命令给终端,5秒后通过按键将终端从深睡眠中唤醒“data request”父节点中的数据还是成功接收到了,这证明我的保存信息时间没有修改成功?