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.

Some question about AddrMgr

1.In SECURE model,the Coordination will keep the Device's address information that is not its Child-Nod into AddrMgr with ADDRMGR_USER_SECURITY.But,in "nwk_globals_init",the size of AddrMgr is set by"AddrMgrInit( NWK_MAX_ADDRESSES )" and “NWK_MAX_ADDRESSES ” equals "NWK_MAX_DEVICES + NWK_MAX_REFLECTOR_ENTRIES + NWK_MAX_SECURE_PARTNERS".So the Coordination will turn to "AddrMgrIsFull" status and Can't be joined into.Can NWK_MAX_ADDRESSES be set larger?

2.Function "AddrMgrEntryGet",whatever the “user” of  param "entry" I fill,it callback same value.I have try to fill "ADDRMGR_USER_DEFAULT","ADDRMGR_USER_ASSOC" and "ADDRMGR_USER_SECURITY",but it read same value.

  • Hello Aries,

    For your first question: I want to clarify that the SECURE model that you are referring is the application layer security and not the network layer securrity?

    If it is application layer security, the trust center which typically is the coordinator will store the information of all devices in the network in the address manager. NWK_MAX_ADDRESS can be increased by increasing the value of the NWK_MAX_SECURE_PARTNERS if you dont want to increase the number of devices that the coordinator will support as child but only want to increase the secured device count in the network. Also,  you will have to increase the ZDSECMGR_DEVICE_MAX to number of secured devices in the network on the trust center application. 

    For your second question - the AddrMgrEntryGet is used to find the network address and the extended address based on the index field of the entry. Can you please help me understand the reason for this call. Thanks

    Hope this helps. 

    Regards

  • 1,What's the relations between NWK_MAX_SECURE_PARTNERS and ZDSECMGR_DEVICE_MAX?Their default alue is 1 and 3.When I set NWK_MAX_SECURE_PARTNERS to 12,how to set ZDSECMGR_DEVICE_MAX?

    2,Can I delete some secured device from AddrMgr?How to search them?I don't want delete any device of coord's AssocList by mistake.

  • Hi Aeries,

    For your first question:

    NWK_MAX_SECURE_PARTNERS is the number of devices that the device wants to talk to using the application layer security in addition to the devices in the association table or direct childs. 

    ZDSECMGR_DEVICE_MAX is the total number of nodes in the network the device wants to talk to using the application layer security. 

    When you set NWK_MAX_SECURE_PARTNERS = 12, and you want to talk to all the devices in the association table as well using the application layer security then ZDSECMGR_DEVICE_MAX = (12+NWK_MAX_DEVICES)

    For the second question:

    Are you using the application layer security in your application?

  • I set  "SECURE" in my IAR project,it may be application layer security.what is the difference between Nwk security and  application layer security?How to use Nwk security?

    It seem that  In a network with a coordination  and some router,the maximum device support is decided by coordination.Because the coordination will add all device‘s Addr into AddrMgr as ADDRMGR_USER_SECURITY.

  • Hello Aries,

    To use the network layer security set SECURE=1. What stack are you using. Also, are you developing Home Automation devices?

    Network layer security encrypts the ZigBee Packets at network layer. While when using the application layer security in addition to the network layer security, the ZigBee packets are also secured at APS layer. 

    If you want to increase number of devices that connect to a single parent. You can increase the NWK_MAX_DEVICE_LIST to a max of 32.  

    And If you want to increase the total number of devices further in the network  you can add routers in the network, which will allow more devices to connect in the network via them .

    Do you see that new devices are not joining network via routers as parents when the coordinator already  has maximum number of devices joined to it?. Do you have a sniffer log where the new devices are trying to join the network but the join process is not successful?