How do I pair a light_bulb with an existing zigbee coordinator

At present, I used an nRF52840DK as the Adapter of zigbee2mqtt, flashed the corresponding NCP firmware, and successfully formed the zigbee network. I want to connect the light bulb to the network. I have compiled the firmware of the light_bulb to another nRF52840DK, but I can't find any way to connect the two NRF52840DKs. In addition, I did not find a definition in SDK2.7.0 that would change the zigbee channel. What should I do to connect the light_bulb to an existing zigbee network?

  • Well, as I mentioned, the light bulb will use all channels until it finds a network to connect to, so you shouldn't need to modify the channel on the light bulb. However, if you want to do it, you can add this to your prj.conf:

    CONFIG_ZIGBEE_CHANNEL=11

    and it will use only channel 11.

    I don't know how you add devices in the thing that you are running on your raspberry pi. I think you need to look it up in the documentation for whatever you have installed. The light bulb is just waiting for some network to tell it to connect, so there should not be anything you need to do to that device. 

    When you find out how to add devices to your network, try to power cycle (turn off and turn on) the light bulb DK, to make sure it is "awake" before trying to add it to your network.

    Best regards,

    Edvin

  • Well, thank you for your reply.

    I see what you mean, the light bulb will continuously scan each channel and wait for some network to tell it to connect, but in the frontend of my zigbee2mqtt,.The device was nowhere to be found and I was very confused. Is there a problem with the NCP firmware I flashed?

    My entire environment setup can be found here, please take a look:

    https://www.zigbee2mqtt.io/ 

    I'll try changing the prj.conf file first to see if it works.

    Best regards,

    Coco

  • So I ended up here:

    https://www.zigbee2mqtt.io/guide/usage/pairing_devices.html#allowing-devices-to-join

    Do you have a frontend? If not, what did you do to trigger your network to allow new devices to join?

    Best regards,

    Edvin

  • Yes, I was able to open the frontend of zigbee2mqtt, and when I added prj.conf:

    CONFIG_ZIGBEE_CHANNEL=11

    After re-flashed the new hex file, the light bulb device was automatically added to the zigbee network without requiring me to click or anything like that.

    I don't quite understand, the previous light bulb also scanned all channels, which should have included channel 11. However, the current situation is that you must specify channel 11 in order to connect to the zigbee network.

    Do you know the reason for the above phenomenon?

    Thank you for your help~

    Best regards,

    Coco

  • It spends some time on each channel, so perhaps there was a timeout on your coordinator that was too short? I didn't understand exactly. Did you need to "open the network" or "look for new devices" in order to add the lightbulb?

    BR,
    Edvin

Related