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.
1.assocCnt,终端每断电重启一次,会加1,如果加到FF会有什么后果吗?
2.通过timeoutCounter去判断终端是否在线(终端会定期POLL),如果某些终端直接被移走了,
我也不知道他们的地址信息,我该如何在AssociatedDevList里删除这些终端的信息以释放空间给新的终端加入?
问题来了?你地址都不知到你怎么确定设备不在线,所以如上所述尽量不要自己搞用childaging就行。
具体去看code:
// Child aging management default values // Values are specified in table of nwk_globals.h module //timeoutValue[15] // 10, // 0 10 seconds // 2, // 1 2 minutes // 4, // 2 4 minutes // 8, // 3 8 minutes // 16, // 4 16 minutes // 32, // 5 32 minutes // 64, // 6 64 minutes // 128, // 7 128 minutes // 256, // 8 256 minutes // 512, // 9 512 minutes // 1024, // 10 1024 minutes // 2048, // 11 2048 minutes // 4096, // 12 4096 minutes // 8192, // 13 8192 minutes // 16384 // 14 16384 minutes // // This value is used by the parent ROUTER #if !defined ( NWK_END_DEV_TIMEOUT_DEFAULT ) #define NWK_END_DEV_TIMEOUT_DEFAULT 8 // Default value per ZigBee core specification is 8 #endif //Timeout after which an EndDevice will be removed from from the indirect MAC messages queue // NOTE: End devices which poll rate is slower than this will not receive the leave request #if !defined ( NWK_END_DEVICE_LEAVE_TIMEOUT ) #define NWK_END_DEVICE_LEAVE_TIMEOUT 9 #endif // Value used by END DEVICE when sending End Device Timeout Request // This is an index into table timeoutValue[] defined in nwk_globals.c #if !defined ( END_DEV_TIMEOUT_VALUE ) #define END_DEV_TIMEOUT_VALUE 8 // Default value per ZigBee core specification is 8 #endif // Value used by END DEVICE when sending End Device Timeout Request #if !defined ( END_DEV_CONFIGURATION ) #define END_DEV_CONFIGURATION 0 // Per ZigBee Core spec R21, 0 is the only valid value #endif
当然你自己可以搞一个逻辑。
CC2530终端模块的链接如下:
PCB天线,4DB
https://item.taobao.com/item.htm?spm=a230r.1.14.54.41757d3cmpE567&id=538155647949&ns=1&abbucket=10#detail
抓包如下“”: