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.

LP-CC2651P3: ZC: Open network with specific TC link key

Part Number: LP-CC2651P3
Other Parts Discussed in Thread: SYSCONFIG, Z-STACK

We are using centralized security. We need to open a network for joining using a specific TC link key. We don't know the MAC address of the ZED that is joining, but we do know its preconfigured TC link key.

I see the function APSME_AddTCLinkKey(uint8_t* pTCLinkKey, uint8_t* pExt). However, this call requires a MAC address and it doesn't appear to accept a wildcard. What is the correct way to do this?

Thanks,
Andy

  • Hi Andy,

    APSME_AddTCLinkKey is part of the process using install codes and adds a APS TC Link key (unique TCLKs).  This would certainly require knowing the MAC address.  Are you instead perhaps referring to the pre-configured Trust Center Link key?  The global DEFAULT_TC_LINK_KEY version is pre-defined in SysConfig -> Z-Stack -> Network.  This is the key used to securely transport the Network Key to joining devices and changing it would prevent other devices from being able to join.  Either of these options must be used as Zigbee 3.0 requires securely transporting network keys.

    Regards,
    Ryan

  • Looking more into this, it may be possible to temporarily change the existing TCLK on the ZC by setting bdb_acceptNewTrustCenterLinkKey to TRUE and using ZDSecMgrTclkReq with keyType KEY_TYPE_TC_LINK, but I have not tested this.

    Regards,
    Ryan

  • Thanks Ryan, I will try this method.

    Andy

  • You could also explore zgApsAllowR19Sec if this is a legacy Zigbee device.  Otherwise I would be interested to know more about the Zigbee system's process which allow for this unorthodox type of joining.

    Regards,
    Ryan