TI论坛
直播中

李贤杰

7年用户 183经验值
私信 关注
[问答]

协调器清关联表,请问图上这句在哪里设置?


zigbee菜鸟问各位大大上面这句在哪里设置啊

回帖(3)

蒋美燕

2018-8-10 08:04:29
请看下文详解:
In case a ZigBee Router gets off network for a long period of time, its children will try to join an alternative parent. When the router is back online, the children will still appear in its child table, preventing proper routing of egress traffic to them.
In order to avoid this, it is recommended that routers prone to get off and on the network will have zgRouterOffAssocCleanup flag set to TRUE (mapped to NV item: ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP):
uint8 cleanupChildTable = TRUE;
zgSetItem( ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP, sizeof(cleanupChildTable),
&cleanupChildTable );
When enabled, deprecated end-device entries will be removed from the child table if traffic received from them was routed by another parent.
举报

李贤杰

2018-8-10 08:22:54
引用: bctwerwer 发表于 2018-8-10 08:04
请看下文详解:
In case a ZigBee Router gets off network for a long period of time, its children will try to join an alternative parent. When the router is back online, the children will still appear in its child table, preventing proper routing of egress traffic to them.
In order to avoid this, it i ...

大大 你好
uint8 cleanupChildTable = TRUE;zgSetItem( ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP, sizeof(cleanupChildTable),&cleanupChildTable );我在SampleApp.c文件里面的void SampleApp_Init( uint8 task_id )加入这句话,但是报错
Error[Pe020]: identifier "ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP" is undefined ,然后我在IAR->Edit->Find and Replace->Find in Files查找ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP
但是没有找到它的宏定义
举报

李贤杰

2018-8-10 08:37:42
引用: bctwerwer 发表于 2018-8-10 08:04
请看下文详解:
In case a ZigBee Router gets off network for a long period of time, its children will try to join an alternative parent. When the router is back online, the children will still appear in its child table, preventing proper routing of egress traffic to them.
In order to avoid this, it i ...

我用的是ZStack-CC2530-2.3.0-1.4.0
您说的确实没错,我重新下载了ZStack-CC2530-2.5.1a,里面的ZcomDef.h 文件 中定义了宏。
所以现在我只能手动是清除关联表是吗?
您有更好的建议吗?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分