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
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.
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.
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();
}
Please let me know if the issue still appears.
Regards,
Mario
Hi Mario:
Thanks for this modification, it solve my issue.
Chriss