Part Number:LAUNCHXL-CC2650Other Parts Discussed in Thread:CC2650, Z-STACK
硬件:cc2650
协议栈版本:z-stack home 1.2.2a
ZStackCore-EndDevice
SECURE=1
MODULE_CC26XX_7X7
xZDO_API_ADVANCED
ZDO_API_BASIC
CC26XX
FLASH_ROM_BUILD
USE_ICALL
TC_LINKKEY_JOIN
HAL_ASSERT_SPIN
xHALNODEBUG
xDEBUG
xDEBUG_SW_TRACE
xDBG_ENABLE
OAD_KEEP_NV_PAGES
NV_RESTORE
NV_INIT
FEATURE_MAC_SECURITY
FEATURE_GREEN_POWER
FEATURE_ENHANCED_BEACON
xHOLD_AUTO_START
POWER_SAVING
ewarm
NEAR_FUNC=
DATA=
App-SmartRF06
xZSTACK_MANUAL_START
ZCL_READ
ZCL_WRITE
ZCL_BASIC
ZCL_ON_OFF
ZCL_IDENTIFY
xZCL_EZMODE
xZCL_GROUPS
xZCL_SCENES
ZCL_STANDALONE
ZG_SECURE_ENABLED
ewarm
USE_ICALL
HEAPMGR_SIZE=4096
ICALL_HOOK_ABORT_FUNC=halAssertHandler
xdc_runtime_Log_DISABLE_ALL
xdc_runtime_Assert_DISABLE_ALL
MODULE_CC26XX_7X7
xTI_DRIVERS_LCD_INCLUDED
cc2650入网后,调用Switch_setPollRate(0);,不能关闭Data Request,反而Data Request间隔变快
Kevin Qiu1:
在哪里调用的Switch_setPollRate(0)?
,
YiKai Chen:
我在xxx_processZStackMsgs的"case zstackmsg_CmdIDs_DEV_STATE_CHANGE_IND:"的"pInd->req.state == zstack_DevState_DEV_END_DEVICE"狀態下透過Switch_setPollRate去改變poll rate是沒有問題的
,
qq81679:
在xxx_processZStackMsgs的"case zstackmsg_CmdIDs_DEV_STATE_CHANGE_IND:"的"pInd->req.state == zstack_DevState_DEV_END_DEVICE"调用的。
,
YiKai Chen:
檢查看看是不是其他地方有調用Switch_setPollRate去改變poll rate影響到了
,
qq81679:
Switch_setPollRate()非0值是可以更改,如果我想关闭poll rate,写入0可以吗?
,
YiKai Chen:
想关闭poll rate為什麼不直接到f8wconfig去改-DPOLL_RATE=1000為-DPOLL_RATE=0就好
,
qq81679:
关闭poll rate后,就不能接收数据了,程序这样写是测试能不能在app层关闭poll rate
,
YiKai Chen:
你在xxx_processZStackMsgs的"case zstackmsg_CmdIDs_DEV_STATE_CHANGE_IND:"的"pInd->req.state == zstack_DevState_DEV_END_DEVICE"狀態下透過Switch_setPollRate去改變poll rate為0不也是一樣就不能接收数据了?
,
qq81679:
现在是Switch_setPollRate( 0 );是无法关闭poll rate。
zstack_DevState_DEV_END_DEVICE状态调用是测试在应用层能否把poll rate关闭。正常是在其他情况下关闭poll rate
,
YiKai Chen:
試試設個timer event 在3秒後去把poll rate关闭