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.

CC2531: Coordinator kicking Router because bdbTrustCenterRequireKeyExchange

Part Number: CC2531
Other Parts Discussed in Thread: Z-STACK

Hello,

I'm trying to join a router to a coordinator with secure active.

But I'm facing a problem that when router connects, after some time it is kicked from the network.

At coordinator side, I can see that it's giving timeout for this node. The code that is doing this is:

if(tempJoiningDescNode->NodeJoinTimeout == 0)
{
        //Check if the key exchange is required 
        if(bdbAttributes.bdbTrustCenterRequireKeyExchange)
        {
            AddrMgrEntry_t entry;
            
            entry.user = ADDRMGR_USER_DEFAULT;
            osal_memcpy(entry.extAddr,tempJoiningDescNode->bdbJoiningNodeEui64, Z_EXTADDR_LEN);
            
            if(AddrMgrEntryLookupExt(&entry))
            {
              ZDSecMgrAPSRemove(entry.nwkAddr,entry.extAddr,tempJoiningDescNode->parentAddr);
            }
    }

Variable bdbTrustCenterRequireKeyExchange is set to true. The consequence of this is that coordinator is sending a leave request.

Should I set some variable on router side so it can exchange the key?

I tested one of your examples (samplelight and sampleswitch) with a coordinator and end device, and it works properly.

My code base for developing is yours GeneraApp project.

I'm using Z-stack 3.0

Thanks in advance.

BR,

Igor