如题,终端长poll时间为18秒。协调器断电重启后,终端设备如何保证最长18秒等待时间后进行数据通讯?
YiKai Chen:
跟parent node失聯後一直發beacon requests 直到重新連回網路為止
lisong zhong:
回复 YiKai Chen:
如何快速找到呢?
Alvin Chen:
回复 lisong zhong:
减小下面的值:
#define REJOIN_POLL_RATE 440
/* Rejoin retry backoff silent period timer duration in milliseconds – default 15 minutes according to HA test spec */#define REJOIN_BACKOFF 900000
/* Rejoin retry backoff scan timer duration in milliseconds – default 15 minutes according to HA test spec */#define REJOIN_SCAN 900000
lisong zhong:
回复 Alvin Chen:
在终端进入到路由设备中后,此时协调器断电重启,要等10分钟才能下发数据给终端(才有响应)【不跑到路由下面就给协调器断电可以在15秒左右就可通讯了】,请问这是什么情况,如何缩短这个时间?
YiKai Chen:
回复 lisong zhong:
感覺上因為路由變了,需要時間重建路由,試試看协调器使能Many-to-One看看能不能缩短这个时间
lisong zhong:
回复 YiKai Chen:
uint8 zgConcentratorEnable = CONCENTRATOR_ENABLE;
uint8 zgConcentratorDiscoveryTime = CONCENTRATOR_DISCOVERY_TIME;
uint8 zgConcentratorRadius = CONCENTRATOR_RADIUS;
uint8 zgConcentratorRC = CONCENTRATOR_ROUTE_CACHE;// concentrator with route cache (no memory constraints)
uint8 zgNwkSrcRtgExpiryTime = SRC_RTG_EXPIRY_TIME;void ZDO_ManytoOneFailureIndicationCB()
{// By default, the concentrator automatically redo many-to-one route// discovery to update all many-to-one routes in the network// If you want anything processing other than the default,// please replace the following code.
RTG_MTORouteReq();—-启用这个吗?
}
YiKai Chen:
回复 lisong zhong:
可以參考 www.ti.com/…/swra427c.pdf 的說明如何启用many-to-one