trust center default link key when factory reset

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

trust center default link key when factory reset

844 Views
chriswei
Contributor II

Hi NXP:

I am new to NXP zigbee, and still getting familiar with application Note-1217

I may find an issue cause some inconvenient,

When flashing a new coordinator on 5169-dongle, there is a default link key which is “ZigBeeAlliance09”, 

I can see the key value from "print" serial command as following, So I can use this key and using wireshark to decrypt the zigbee traffic

未命名2.png

But the key looks like gone after I send serial "factory reset" command to coordinator, below is the "print" command response, so "factory reset" seems no use for me, I need to reprogram whenever I want to clear coordinator's data.

未命名.png

I'd like to ask, is "factory reset" also delete the default link key? How to keep it after factory reset?

Or do I misunderstand the operation of this application Note?

Regards.

Labels (1)
2 Replies

710 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Chris,

Could you please modify the factory reset records function?

PUBLIC void APP_vFactoryResetRecords(void)
{
    /* clear out the stack */
    DBG_vPrintf(TRACE_APP, "Call clear stack\n");
    ZPS_vDefaultStack();
    (void)ZPS_eAplAibSetApsUseExtendedPanId(0);

    ZPS_vSetKeys();
    DBG_vPrintf(TRACE_APP, "Reset BDB Security\n");

    /* save everything */
    eNodeState = E_STARTUP;
    DBG_vPrintf(TRACE_APP, "Save App Record\n");
    PDM_eSaveRecordData(PDM_ID_APP_COORD,&eNodeState,sizeof(teNodeState));

    ZPS_vSaveAllZpsRecords();
}

pastedImage_1.png

Please let me know if the issue still appears.

Regards,

Mario

710 Views
chriswei
Contributor II

Hi Mario:

Thanks for this modification, it solve my issue.

Chriss