在f8wConfig.cfg文件中找到
/* The number of milliseconds to wait between data request polls to the coordinator. */
-DPOLL_RATE=1000
然後你可以看一下這個定義在哪裏使用了。
enddevice採用POLL方式,就是週期性甦醒,然後查詢父節點是否有數據。可以看到Enddevice 在IAR的project options->c/c++compiler ->preprocessor->defined symbols中 定義了NWK_AUTO_POLL。然後POLL_RATE決定了甦醒的時間間隔,越長功耗越低,越短功耗越高