1、* The number of milliseconds to wait between data request polls to the coordinator. */
-DPOLL_RATE=1000
-DPOLL_RATE=20000
POLL_RATE向父节点请求消息,
问题1:如果不请求,是不是得不到消息?这个请求轮询,最大间隔为多少?
问题二:如果不休眠,一直开接收,是不是就不用去请求了?
2* This is used after receiving a data indication to poll immediately for queued messages...in milliseconds. */
-DQUEUED_POLL_RATE=100
在收到数据指示后,立即轮询消息队列。
问题三:请问消息队列存放在哪里?父节点那里吗?
问题四:100是说在100微秒的时刻去询问,还是在100微秒内去询问,又或者询问100次?
问题五:是在发出data request (就是使用与POLL_RATE有关的函数后)后,然后收到数据指示( receiving a data indication ),开始队列询问吗?
3、This is used after receiving a data confirmation to poll immediately * for response messages...in milliseconds
-DRESPONSE_POLL_RATE=100
这个参考二,就不问问题了。
4、/* 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
与重新加入网络有关。
问题六:休眠会断网,醒来不会自动恢复吗?为什么是重新加入?二者有什么区别?
问题七:这个轮询,是在醒来后轮询吗?以440微秒的速率轮询吗,如果不是,它是什么意思?可不可以10s?它的值除了受数据类型(如uint16<65536)限制还有其他限制吗?怎样设置才更节能。
我第一次写好了,准备发表,断网了。现在这是第二遍!希望能够得到解答。我对低功耗不熟,是因为我对其机制不熟悉,这几个参数,不知道怎样才是最优的。