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.

CC2531: How to control RGBW Light from the Z tool

Part Number: CC2531


   I Beginner for Zigbee RGBW Module 

   How to control RGBW light from Z tool , I added the RGBW Module in Network  but I don't know how to give an inputs

   and parameters in AF Data Request in z tool  for controlling RGBW light.

   Please help me to control RGBW

  • You need to request active endpoint of  light and request simple descriptor of each active endpoint to know which ZCL clusters the light device supports. Then, you can send ZCL command to control it accordingly. For ZCL commands to control light device, you can refer to ZCL spec.

  • Hi,

    Thanks Yikai Chen for reply.

    I got simple description for each active endpoints but I need to how to give input parameters in AF Data Request  to control RGBW Light

    i got below data,

    <RX>12:40:27.02 COM20 ZDO_ACTIVE_EP_RSP (0x4585)
    SrcAddr: 0x0B2F
    Status: ZDP_SUCCESS (0x0)
    NwkAddr: 0x0B2F
    ActiveEPCount: 0x02
    ActiveEPList: .. (0x0B, 0x0D)


    <RX>12:41:07.5 COM20 ZDO_SIMPLE_DESC_RSP (0x4584)
    SrcAddr: 0x0B2F
    Status: ZDP_SUCCESS (0x0)
    NwkAddr: 0x0B2F
    Len: 0x16
    Endpoint: 0x0B
    ProfileID: 0xC05E
    DeviceID: 0x0210
    DeviceVersion: 2 (0x2)
    NumInClusters: 0x07
    InClusterList: 0x0000, 0x0003, 0x0004, 0x0005, 0x0006, 0x0008, 0x0300
    NumOutClusters: 0x00


    <RX>12:42:14.07 COM20 ZDO_SIMPLE_DESC_RSP (0x4584)
    SrcAddr: 0x0B2F
    Status: ZDP_SUCCESS (0x0)
    NwkAddr: 0x0B2F
    Len: 0x0C
    Endpoint: 0x0D
    ProfileID: 0xC05E
    DeviceID: 0x0210
    DeviceVersion: 2 (0x2)
    NumInClusters: 0x01
    InClusterList: 0x1000
    NumOutClusters: 0x01
    OutClusterList: 0x1000

  • You have to refer to ZCL spec to compose AF Data Request payload to send ZCL commands.

  • Hi,

    I sent the Payload value but couldn't control RGBW light please define the Payload valuve and description

    <TX>02:01:45.73 COM20 AF_DATA_REQUEST (0x2401)
    DstAddr: 0x0B2F
    DestEndpoint: 0x0B
    SrcEndpoint: 0x01
    ClusterID: 0x0300
    TransID: 0x01
    Options: 0x02
    Radius: 0x07
    Len: 0x10
    Data: ......FY........ (0x00, 0x11, 0x11, 0x11, 0x11, 0x11, 0x46, 0x59, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01)

    <RX>02:01:45.75 COM20 AF_DATA_REQUEST_SRSP (0x6401)
    Status: afStatus_SUCCESS (0x0)

    <RX>02:01:46.37 COM20 AF_DATA_CONFIRM (0x4480)
    Status: afStatus_NO_ROUTE (0xCD)
    Endpoint: 0x01
    TransID: 0x01

  • It seems the message cannot be delivered to the light device. I would suggest you to use sniffer to check what exactly happens over the air.

  • Hi Praveen,

    It appears that in the time between the ZDO_SIMPLE_DESC_REQ and AF_DATA_REQUEST that either the RGBW Light has been disconnected from the ZC or lost power, or that the ZC itself has been factory reset or removed the light as a neighbor.  So you should attempt to re-establish the connection between these devices.  I also recommend using a sniffer device and a known RGBW light control interface to further understand the structure of the data packet which should be sent.  You can furthermore contact the manufacturers of the RGBW light so that they might share insight concerning expected commands/control