Forums - Zigbee attribute write command for occupancy cluster not working

1 post / 0 new
Zigbee attribute write command for occupancy cluster not working
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Wed, 2020-05-27 10:23

Hello, 

We are facing issue that when a write attribute command is send for QAPI_ZB_CL_OCCUPANCY_ATTR_ID_PIR_OCCUPIED_TO_UNOCCUPIED_DELAY attribute, the server callback is not been hit for any event.

We have used zcl_occupancy_demo.c file from QCLI_demo example code to create zigbee server and callback for occupancy cluster QAPI_ZB_CL_CLUSTER_ID_OCCUPANCY_SENSING.

After creating server on qca4020 and adding devide to zigbee server, when a write command for QAPI_ZB_CL_OCCUPANCY_ATTR_ID_PIR_OCCUPIED_TO_UNOCCUPIED_DELAY  is send, below response is recieved. Below are sniffer log for command send and receive.

 

ZIGBEE WRITE COMMAND SEND TO QCA4020

ZigBee Cluster Library Frame, Command: Write Attributes, Seq: 6
Frame Control Field: Profile-wide (0x00)
Sequence Number: 6
Command: Write Attributes (0x02)

Attribute Field, Bitmap: c0
Attribute: PIR Occupied to Unoccupied Delay (0x0010)
Data Type: 8-Bit Bitmap (0x18)
Bitmap8: 0xc0

 

ZIGBEE WRITE COMMAND RESPONSE RECEIVED FROM QCA4020

ZigBee Cluster Library Frame, Command: Write Attributes Response, Seq: 6
Frame Control Field: Profile-wide (0x18)
Sequence Number: 6
Command: Write Attributes Response (0x04)

Status Record
Status: Read Only (0x88)
Attribute: PIR Occupied to Unoccupied Delay (0x0010)
 

 

 

Regards,

Ashaay

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.