This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee CLI ZCL generic commands

Hello,

It might be a stupid question but I wonder if it is possible to use the ZCL generic command from the CLI to send ZDO commands? I tried it with the ieee_addr ZDO command but it didn't work, no response except for Done (and no errors).

// Device short address is 0x2605
// Endpoint 0
// Cluster id is 0x0001 (for the IEEE_addr_req command)
// Profile is 0x0000
// Cmd_id and payload I don't really know what to use 

zcl cmd 0x2605 0 0x0001 -p 0x0000 0x00 -l 0x26050000

Is it even possible to do?

BR,

Parents
  • Hi,

    Short answer is no. For starters ZDO and ZCL are different modules in the Zigbee application layer. ZDO is application running on endpoint 0 and manages Zigbee device on the network: controls joining/leaving the network, discovering/maintaining devices at the network. ZCL is  a set of clusters and cluster commands based on which application can be developed and there may multiple applications using ZCL on endpoint 1-240.

    The "zcl cmd" command in the CLI example is ment for sending cluster-specific commands, where command ID and payload are specified by the Zigbee Cluster Specification.

    The Zigbee Base Device Behaviour specification says the following about cluster commands:

    "Application transaction:
    An application (or functional) transaction is a cluster command, and possible response, that is generated to perform the device’s persistent function, such as attribute reporting (e.g. reporting a sensor’s measured value) or actuation commands (e.g. On, Off, Toggle, etc.). An application transaction is not a ZDO transaction, one-time transaction, or commissioning transaction."

    ZDO transactions as for example IEEE address discovery is called  "ZDO discovery service commands".

    For ZDO service and discovery requests please see the ZDO API on the infocenter.

    Best regards,

    Marjeris

Reply
  • Hi,

    Short answer is no. For starters ZDO and ZCL are different modules in the Zigbee application layer. ZDO is application running on endpoint 0 and manages Zigbee device on the network: controls joining/leaving the network, discovering/maintaining devices at the network. ZCL is  a set of clusters and cluster commands based on which application can be developed and there may multiple applications using ZCL on endpoint 1-240.

    The "zcl cmd" command in the CLI example is ment for sending cluster-specific commands, where command ID and payload are specified by the Zigbee Cluster Specification.

    The Zigbee Base Device Behaviour specification says the following about cluster commands:

    "Application transaction:
    An application (or functional) transaction is a cluster command, and possible response, that is generated to perform the device’s persistent function, such as attribute reporting (e.g. reporting a sensor’s measured value) or actuation commands (e.g. On, Off, Toggle, etc.). An application transaction is not a ZDO transaction, one-time transaction, or commissioning transaction."

    ZDO transactions as for example IEEE address discovery is called  "ZDO discovery service commands".

    For ZDO service and discovery requests please see the ZDO API on the infocenter.

    Best regards,

    Marjeris

Children
Related