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.

CC2652P7: ZNP ZIGBEE COORDINATOR BACKUP & RESTORE NETWORK

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

Tool/software:

Hai,

  We developed the Zigbee coordinator based on cc2652p7 chip with the software of ZNP and its working.

Now we are planning to implement the Backup feature, my setup is ESP32 + CC2652P7.

I got some information from zigbee2mqtt like pan_id, ext_pan_id, nwk_key, ieee_address need to be saved. (check_here)

My doubts are 

1. How to get the device details from the znp coordinator?

2. How to get Group and scene information from the znp coordinator?

In which memory location its available? 

Which command is used for reading this information?

Best regards

Bose

  • Hello Bose,

    I hope you are doing well. I am looking into your inquiry and will be back to you shortly (tomorrow). 

    Thanks,
    Alex F

  • Hello Bose,

    For getting information related to the device you should be able to reference our Zigbee Designing a custom app SLA (link: Designing a Custom Zigbee 3.0 Certifiable Product Using SampleApp) which details how you go about setting up a network, and particular attributes; are you interested in the cluster attributes here? 

    On the topic of Group and Scene information we have a SLA directly on this as well: ZCL Keepalive, Poll Control, Group, and Scene Clusters.

    Thanks,
    Alex F

  • Hi Bose,

    Please refer to the Cloning Z-Stack Network Properties Application Report.

    Regards,
    Ryan

  • Hai Ryan,

       Thank you for response.

    I will try it out and update the results.

    Regards

    Bose

  • Hai Ryan,

     I tried to read the NV memory using the z-tool. 

    I added one door contact sensor and one relay. One Relay I added to the group. 

    I'm able to read below information

    ZCD_NV_PANID
    ZCD_NV_EXTADDR
    ZCD_NV_EXTENDED_PAN_ID
    ZCD_NV_BDBNODEISONANETWORK
    ZCD_NV_NIB
    ZCD_NV_NWK_ACTIVE_KEY_INFO
    ZCD_NV_NWK_ALTERN_KEY_INFO
    ZCD_NV_EX_NWK_SEC_MATERIAL_TABLE

    But,

    In ZCD_NV_EX_TCLK_TABLE, 

    <TX>02:56:47.37 COM6 SYS_NV_READ (0x2133)
        SysId: 0x01
        ItemId: 0x0004
        SubId: 0x0000
        Offset: 0x0000
        Length: 0x14
    
    <RX>02:56:47.38 COM6 SYS_NV_READ_SRSP (0x6133)
        Status: NV_SUCCESS (0x0)
        Len: 0x14
        Value: .................... (0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00)

    Always I'm receiving same value.
    I'm unable to read the ZCD_NV_GROUP_TABLE , which command is used to read this? (SYS_NV_READ or SYS_OSAL_NV_READ)
    what is the sys_id, item_id?
    Regards
    Bose
  • You will need to pre-define MT_SYS_KEY_MANAGEMENT in order to access ZCD_NV_EX_TCLK_TABLE.  This must be done before re-building the RCP.

    Use SYS_NV_READ for table entries such as ZCD_NV_EX_TCLK_TABLE and ZCD_NV_EX_TCLK_TABLE.  The Sys ID is 0x01 for Z-Stack (NVINTF_SYSID_ZSTACK) and the Item IDs are reflected in zcomdef.h (also see config_nv_regions.txt of the Network Cloning Tool download) and keep in mind that for tables you will need to call one SYS_NV_READ command per table entry, thus incrementing the sub ID up to the total possible number of entries.

    Regards,
    Ryan