Zigbee binding a ON/OFF cluster

Hi, 

I have a problem, I would like to implement a light dimmer endpoint witch I could bind via coordinator to bulb(or something else...). I do not known how to implement this, because to send a on/off zigbee request I need to know a adres of bulb. 

ZB_ZCL_ON_OFF_SEND_REQ( buffer, ADDR, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, command_id, cb)
So I need a bulb address, which I can send to my device via binding request from coordinator. BUT I don't know how to receive this request. Also I don't see how to get into binding tabele in Zigbee stack. Because I can see in sniffer that my device send ack, and success message as response to binding request. 
How to resolve that?  
thanks.
Parents
  • Hi,

    Are you using the nRF Connect SDK or nRF5 SDK?

    We already have light switch and light bulb examples in both SDKs, so I would suggest starting by looking at one of those. For nRF Connect SDK you can find the documentation here: Zigbee: Light Switch sample. If you are new to the SDK you should start with the Getting started guide to learn how to download and install required tools and the SDK, and how to build and program samples. If you instead are using the nRF5 SDK, you can find documentation for the example here: Zigbee Light Control example.

    I do not known how to implement this, because to send a on/off zigbee request I need to know a adres of bulb. 

    In the existing examples, the light switch finds the light bulb by sending a match descriptor request looking for a device with the ON/OFF cluster, and getting the address from the resulting match descriptor response.

    BUT I don't know how to receive this request

    This is handled automatically by the Zigbee stack in our SDKs, so when you send a bind request to the device, the device should handle this internally and send a response back. However, I am not sure what you want to send the bind request for in this case. If you just want to get the address of the light bulb, then you should use a match descriptor request instead, as in the examples.

    Best regards,

    Marte

Reply
  • Hi,

    Are you using the nRF Connect SDK or nRF5 SDK?

    We already have light switch and light bulb examples in both SDKs, so I would suggest starting by looking at one of those. For nRF Connect SDK you can find the documentation here: Zigbee: Light Switch sample. If you are new to the SDK you should start with the Getting started guide to learn how to download and install required tools and the SDK, and how to build and program samples. If you instead are using the nRF5 SDK, you can find documentation for the example here: Zigbee Light Control example.

    I do not known how to implement this, because to send a on/off zigbee request I need to know a adres of bulb. 

    In the existing examples, the light switch finds the light bulb by sending a match descriptor request looking for a device with the ON/OFF cluster, and getting the address from the resulting match descriptor response.

    BUT I don't know how to receive this request

    This is handled automatically by the Zigbee stack in our SDKs, so when you send a bind request to the device, the device should handle this internally and send a response back. However, I am not sure what you want to send the bind request for in this case. If you just want to get the address of the light bulb, then you should use a match descriptor request instead, as in the examples.

    Best regards,

    Marte

Children
Related