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

Door lock attributes sending

Hello Nordic!

I'm starting to develop my own Zigbee device with the nrf52840DK and I need to send some attributes to my coordinator, initially the door lock status is enough. I'm not using any other nrf board as coordinator, instead I'm using a CC2531 with Zigbee2MQTT firmware flashed in it. I've already configured my board as a supported device for Zigbee2MQTT and receiving at least the Zigbee linkquality.

The board seems to set the attribute (DoorLock state) correctly but the sending process to my cordinator does not work. I have also tried other examples as the zigbee_light_switch_groups and send the on_off request but when I tried to emulate the sending process in my door lock example it doesn't work.

I use the built-in buttons of the board to set the lock/unlock attribute. A button handler reads the pressed button (works properly) which calls a sending function using: zb_buf_get_out_delayed_ext(send_doorlock_status, ZB_ZCL_ATTR_DOOR_LOCK_LOCK_STATE_UNLOCKED, 0); Then, in the send_doorlock_status function I use ZB_ZCL_DOOR_LOCK_SEND_LOCK_DOOR_REQ or ZB_ZCL_DOOR_LOCK_SEND_UNLOCK_DOOR_REQ. I know there is another funcion to send responses, but I think that's not what I need.

Anyway, if it's possible, I would like to see some example of this process implemented. I've tried the Zigbee_Door_Lock_Nus and worked as expected, but the example doesn't have a sending status function to the coordinator.

Thanks to all.

Parents
  • Hi,

    We use attribute reporting for sending the the status in our examples. Is there a way you can configure attribute reporting from your coordinator?

    ZB_ZCL_DOOR_LOCK_SEND_LOCK_DOOR_REQ  and ZB_ZCL_DOOR_LOCK_SEND_UNLOCK_DOOR_REQ is used to send a "Door Lock" or a "Door Unlock" command from the DoorLock client cluster (coordinator) to the DoorLock server cluster (door lock example). So the request need to be send from the coordinator, and your coordinator need to have door lock client cluster support.'

    Best regards,

    Marjeris

  • Hi Marjeris,

    I don't know if I can configure attribute reporting in my coordinator, but I am sure it can bind to other devices. As right now I am using another NRF board as Coordinator and binding with it to my device, may I assume that would be enough with binding? Or do I need to activate attribute reporting specifically?

Reply Children
Related