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: ZED association limit on znp.

Guru 14820 points
Part Number: CC2538
Other Parts Discussed in Thread: Z-STACK

Hello ,

I am setting #define NWK_MAX_DEVICE_LIST     30  

in znp code.

out of 30 device space available I want to allow only 10 ZED to associate directly to ZNP.

Remaining 20 device i want to keep reserved for routers.

Is there any way to achieve this?

  • Hello Dhanraj,

    gNWK_MAX_SLEEPING_END_DEVICES = NWK_MAX_DEVICES - NWK_MAX_ROUTERS, so set NWK_MAX_ROUTERS accordingly.

    Regards,
    Ryan
  • NWK_MAX_ROUTERS i have already set to 20 but that is not helping.
  • Please further describe the exact issues you are experiencing, also focus on MAX_NEIGHBOR_ENTRIES.

    Regards,
    Ryan
  • I am setting #define NWK_MAX_DEVICE_LIST     30  

    in znp code.

    that means total 30 device (Router+ZED) can get associated to znp directly.

    what I want -

    --------------------------------------------------------------------------------------------------------------

    Now out of 30  I want to keep 20 entries reserved for ZR to associate directly to znp .

    And remaining 10 entries I want to reserve for ZED (sleeping devices ) to associate directly to znp.

    In this case znp association list get full only N only if 20 ZR and 10 ZED associates directly to znp

    ------------------------------------------------------------------------------------------------------------

    what is happening -

    --------------------------------------------------------------

    I am setting #define NWK_MAX_DEVICE_LIST     30  

    in znp code.

    and I have set #define NWK_MAX_ROUTERS           20

    #define NWK_MIN_ROUTER_CHILDREN 0
    #define NWK_MIN_ENDDEVICE_CHILDREN 0

    In this case, ZNP  is allowing ZED to get associated until the association list gets full . in result ZNP stops functioning.

    -------------------------------------------------------------------------------------------------------

     

  • NWK_MAX_ROUTERS and gNWK_MAX_SLEEPING_END_DEVICES are old macros/variables from an archived Z-Stack implementation and cannot be used for your intended purposes. I suggest that you issue a Management Leave Request if the Device Announce of a joining device indicates that it is an end device type.

    Regards,
    Ryan
  • this will not allow any ZED to associate to znp directly not even single ZED.
    I want znp to allow ZED to get associate with it directly but only 10 not more then that.
  • Resolve this by keeping a count of active end devices inside your application.

    Regards,
    Ryan
  • Why do you need to constrain this? You can elaborate the reason so there might be alternative to solve your issue.
  • In one of the scenario  as discussed here https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/t/777940

    We have observed that znp association list is getting full, which results in unexpected behavior of znp.

    So we wanted to reserve space to allow only a limited device to get associated to ZNP (ex-10) and reserve space to allow more routers( ex- 20) to get associated to znp.

    in case this we know that in our network we never going to add 20 routers so the ZNP will always have some space from the reserved space for the routers in the association list.

  • I see Ryan ask you to provide sniffer log to check your issue. I suppose you should find the root cause and fix the original problem.