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

Controlling a Trådfri bulb with nRF52840 - how to make it join?

Hi,

I have an nRF52840 Development Kit, and am trying to control an IKEA Trådfri bulb. I'm following the commands from the SDK documentation, but it feels like they're missing a step, explaining how to make the bulb actually join the new network:

> bdb role zc
Coordinator set
Done
> bdb start
Started coordinator
Done
> bdb legacy enable
Done
> zdo match_desc 0xfffd 0xfffd 0xc05e 1 0 0
Sending broadcast request.
>
Done

Between enabling legacy mode and doing the match_desc, I toggle power to the bulb 6 times, to factory reset it. However, it still doesn't show up anywhere.

I've also tried changing the channel mask, so that all channels are used, as it's not clear to me which channel the Trådfri system is using, but that apparently has no effect.

What am I missing? How can I instruct the bulb to join my newly formed network?

Parents
  • Hi Ole,

    When you factory reset the bulb, does the bulb start to "flash" after the 6th time? You need to be sure it actually has been reset. If you have problems resetting the plain white (non-colour) IKEA bulb, try making the "ons" very brief (less than a second) and the "offs" longer, this has fixed some of my problems earlier.

    You can change the channel of the coordinator by using command 'bdb channel'. You can only open a network with a coordinator in one channel so changing the channel mask to all channels will not change that (but you can use this mask if using the CLI example as a router for example).

    It's been a while since I have tried to connect with IKEA trådfri but they should send a beacon request on each channel after factory reset, so which channel you set the coordinator shouldn't matter. You can perhaps check that the bulb is sending beacon requests in the same channel as your coordinator by using the nRF Sniffer.

    Best regards,

    Marjeris

Reply
  • Hi Ole,

    When you factory reset the bulb, does the bulb start to "flash" after the 6th time? You need to be sure it actually has been reset. If you have problems resetting the plain white (non-colour) IKEA bulb, try making the "ons" very brief (less than a second) and the "offs" longer, this has fixed some of my problems earlier.

    You can change the channel of the coordinator by using command 'bdb channel'. You can only open a network with a coordinator in one channel so changing the channel mask to all channels will not change that (but you can use this mask if using the CLI example as a router for example).

    It's been a while since I have tried to connect with IKEA trådfri but they should send a beacon request on each channel after factory reset, so which channel you set the coordinator shouldn't matter. You can perhaps check that the bulb is sending beacon requests in the same channel as your coordinator by using the nRF Sniffer.

    Best regards,

    Marjeris

Children
No Data
Related