Tool/software:
The new node associate with this Zigbee 3.0 Router, and the Router send Update-Device to Trust-Center and encrypt Update-Device command with "ZigbeeAlliance09". But the R20 Coordinate can't accept the Update-Device command which is encrypted with "ZigbeeAlliance09".
In "ZDSecMgrDeviceJoinFwd", the code should be fixed like this
ZStatus_t ZDSecMgrDeviceJoinFwd( ZDSecMgrDevice_t* device )
{
....
APSME_TCLinkKeyNVEntry_t TCLKDevEntry; // fixed by luoyiming 2024-06-18
....
APSME_SearchTCLinkKeyEntry(TC_ExtAddr, &found, &TCLKDevEntry); //load the key data, fixed by luoyiming, 2024-06-18
....
if ( ( zgApsLinkKeyType == ZG_GLOBAL_LINK_KEY ) && ( (found == FALSE) || (TCLKDevEntry.keyAttributes != ZG_VERIFIED_KEY) ) ) // Link-key is invalid, fixed by luoyiming 2024-06-18
{
req.apsSecure = FALSE;
// send and APSME_UPDATE_DEVICE request to the trust center
status = APSME_UpdateDeviceReq( &req );
}
....
}