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.

CC2538-CC2592EMK: Association Table in Zigbee coordinator

Part Number: CC2538-CC2592EMK
Other Parts Discussed in Thread: Z-STACK

We are implementing a zigbee mesh network using zigbee stack 3.0. We have given NWK_MAX_DEVICE_LIST=2 in the ZNP coordinator firmware.

We have enabled NV-RESTORE in co-ordinator, and not in routers.We are periodically calling permit join API in Co-ordinator to allow associations from routers always.

We have 3 routers. All three routers were connected to coordinator. We used  zdoIeeeAddrReq() to print the association table in router. But it returns the number of associated devices as zero, even though routers were connected to coordinator. Is this expected in zstack-3.0? This function returns list of associated devices, when we used in z-stack 1.0.0 

Even after connecting 3 devices to coordinator, the assoc flag remains true. As per our understanding, this should be false after connecting to number of devices set in parameter NWK_MAX_DEVICE_LIST.

  • ZR won't show in association list in Z-Stack 3.0.
  • What does the parameter NWK_MAX_DEVICE_LIST indicates ? Does it includes routers connected to coordinator ?

    If we set this parameter NWK_MAX_DEVICE_LIST=2, what is the maximum number of routers that will Directly connect to coordinator ?

    Is there any callback in coordinator to recognize that a router is disconnected from network in z-stack 3.0 ?

  • NWK_MAX_DEVICE_LIST is mapped to association size. If you set NWK_MAX_DEVICE_LIST=2, there is trouble of the following code in Z-Stack

    #define NWK_MAX_ROUTERS 6 --> This line is in nwk_globals.h
    CONST uint8 gNWK_MAX_SLEEPING_END_DEVICES = NWK_MAX_DEVICES - NWK_MAX_ROUTERS; -> This line is in nwk_globals.c

    I don't know what would happen if you set NWK_MAX_DEVICE_LIST=2.
    There is no callback in coordinator to recognize that a router is disconnected from network in z-stack.
  • What will happen in the following scenario ?

    If we set parameter NWK_MAX_DEVICE_LIST to 8, and allowing each devices to connect directly to coordinator. Turn off these 8 routers. And now turn on 9th router. How much time it takes for the 9th router to connect to coordinator ?

    As the NWK_LINK_STATUS_PERIOD = 15, and NWK_ROUTE_AGE_LIMIT = 3, Does it connects after 45 seconds ?
  • Child Aging is for end device only so I think router would join immediately in your case.