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.

CC2652R7: network setup with two ZR semples

Part Number: CC2652R7
Other Parts Discussed in Thread: Z-STACK, SYSCONFIG

I am trying to set up a ZigBee experiment using two router examples but I do not see a network being formed.  Am I missing a step?

  • CCS Version: 20.3.1.5__1.9.1 
  • simplelink_cc13xx_cc26xx_sdk 7.41.00.17
  • Launcpad CC2652R7 x 2
  • Board 1: Zigbee Router Thermostat Example App
  • Board 2: Zigbee Router Temperature Sensor Example App

According to the readme for both projects, they should form a Distributed Network.

I tried resetting and leaving them alone, running "COMMISSION" from one, the other, both.

I do not see a network being formed.

TI Sample Temperature Sensor

<   COMMISSION   >

Device Info: [IEEE Addr] 00124B002BCB7DEF [Power Mode] N/A
   NWK Info: [PAN ID] 0xfffe [Channel] 00 [Short Address] 0xfffe
   ZDO Info: [Logical Device] Router [State] Initialized
   BDB Info: -- NotOnNwk Id000 Srch000/00
  Bind Info: --
    GP Info: [GPP Commissioning] DISABLED
   APP Info: [Local Temperature] 17C

TI Sample Thermostat

<   COMMISSION   >

Device Info: [IEEE Addr] 00124B0029A5AC30 [Power Mode] N/A
   NWK Info: [PAN ID] 0xfffe [Channel] 00 [Short Address] 0xfffe
   ZDO Info: [Logical Device] Router [State] Initialized
   BDB Info: -- NotOnNwk Id000 Srch000/00
  Bind Info: --
    GP Info: [GPP Commissioning] DISABLED
   APP Info: [Remote Temperature] Invalid [System Mode] OFF
   APP Info: [Cooling Set Temp] 24C [Heating Set Temp] 20C

  • Hello Nadi Findikli,

    Pulling from the readme:

    Commissioning the Device Into the Network

    Zigbee router devices can create a network with limited security capabilities (Distributed network) or join a network. The commissioning process to be done can be configured in the Config screen menu. Note that if both Formation Mode and Steering Mode are enabled when Commissioning is executed, the device will first try to join a network, after which if it fails, the device will create its own network. This sample applications uses the stack notifications (zstackmsg_CmdIDs_BDB_NOTIFICATION) on a successful network formation process to open the network and allow new devices join, even if the Steering Mode is not enabled from the common user interface. In the same way, if the device joins a network, it will open the network for 180 seconds. If the network is closed, it can be open again by enabling the Steering Mode and execute the commissioning process in the Commissioning Screen.

    Interfacing with the Temperature Sensor Example App

    Once the Temperature Sensor and Thermostat are in the same network, enable the Finding and Binding Mode and execute it from the Commissioning Screen. When Finding and Binding is executed, the Thermostat device is set in Identify mode for 180 seconds. During this time the Temperature Sensor device must perform Finding and Binding as well to find the Thermostat device in Identify mode and create a bind to it. The status of the Identify process is shown in the BDB status line.

    Finding and binding status in the BDB status line

    IdXXX shows the remaining XXX seconds in Identify mode, SrchYYY/ZZ shows the remaining YYY seconds searching for devices in Identify mode and ZZ the number of binds created during this process.

    Once the Temperature Sensor device has the bind to the Thermostat, it will periodically send Reporting Attribute commands according to the reporting configuration set by Zstackapi_bdbRepAddAttrCfgRecordDefaultToListReq(). The Thermostat will process those reporting attributes by updating zclSampleThermostat_LocalTemperature (which is actually the temperature of the remote device) which will also be displayed in the application status line.

    If you have the logs we could also take a look at thouse, but I think here we need to look into the config screen a bit.

    Thanks,
    Alex F

  • Hi Nadi,

    Z-Stack only allows Cetralized Networks by default, where a ZC (Coordinator) forms the network.  The Routers are defined as Joining device types.

    #if ZG_BUILD_COORDINATOR_TYPE
    //By default, Coordiantor has Formation selected in the UI menu
    #define DEFAULT_COMISSIONING_MODE (BDB_COMMISSIONING_MODE_NWK_STEERING | BDB_COMMISSIONING_MODE_NWK_FORMATION | BDB_COMMISSIONING_MODE_FINDING_BINDING)
    #else
    //By default, joining devices such as Router and ZED do not have formation selected. It can be enabled in the UI if needed.
    #define DEFAULT_COMISSIONING_MODE (BDB_COMMISSIONING_MODE_NWK_STEERING | BDB_COMMISSIONING_MODE_FINDING_BINDING)
    #endif

    #if !defined(CUI_DISABLE) || defined(USE_DMM) && defined(BLE_START)
      // set up default application BDB commissioning modes based on build type
      if(ZG_BUILD_COORDINATOR_TYPE && ZG_DEVICE_COORDINATOR_TYPE)
      {
        zclSampleLight_BdbCommissioningModes = BDB_COMMISSIONING_MODE_NWK_FORMATION | BDB_COMMISSIONING_MODE_NWK_STEERING | BDB_COMMISSIONING_MODE_FINDING_BINDING;
      }
      else if (ZG_BUILD_JOINING_TYPE && ZG_DEVICE_JOINING_TYPE)
      {
        zclSampleLight_BdbCommissioningModes = BDB_COMMISSIONING_MODE_NWK_STEERING | BDB_COMMISSIONING_MODE_FINDING_BINDING;
      }
    #endif // !defined(CUI_DISABLE) || defined(USE_DMM) && defined(BLE_START)

    What you are asking for seems to be a Distributed Network, in which case the ZR need to have BDB_COMMISSIONING_MODE_NWK_FORMATION enabled during commissioning, ex. zclSampleLight_BdbCommissioningModes.  I'm fairly certain this can be controlled in the UI.

    https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_8_31_00_11/docs/zigbee/html/zigbee/application_overview.html#formation 
    https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_8_31_00_11/docs/zigbee/html/zigbee/z-stack-overview.html#z-stack-overview-commissioning 

    Regards,
    Ryan

  • Since our end network includes a Coordinator, it seems more efficient to use the ZC thermostat example.  that still does not form a network so I'll collect some logs and see what is going on.  thanks

  • I don't know if it will fit your use case but you can consider using a Zigbee Network Processor (ZNP) + Zigbee2MQTT host as your ZC solution.

    Regards,
    Ryan

  • we need to build the ZC with the CC2652 because it is already in the HW.  

    I have tried both zc_light and zc_thermostat.  According to the Project Zero description, all I should need to do is press BTN1 or select COMMISION form the ZC UI.  in both cases nothing happens.

  • Make sure to erase all device memory or factory reset both devices before commissioning.  Also, ensure that both project SysConfig have the same Zigbee channel settings.Do you have a sniffer log set up?

    Regards,
    Ryan

  • factory reset was the issue, thank you.