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

How can I get a zigbee end point to be discovered by a generic hub?

I am struggling with the Zigbee SDK for the nRF52840. I have successfully run the light switch demo with the PCA10056 board as the switch and two dongles behaving as coordinator and light bulb so I am now trying to make the switch work with a commercial hub by Samsung (SmartThings).

When I run the switch code the hub does not see it and the switch does not find a network to connect to. I tried to alter the code so that the switch uses the ZB_BDB_FINDING_N_BINDING parameter in the bdb_start_top_level_commissioning call whereby it then says it connects tot he network successfully. I then try to call zb_bdb_finding_binding_target but I get error 35 which tells me that the 'State is Incorrect'.

I cannot find any relevant examples for using the finding and binding function. Can anybody help me out here? I am new to this so my knowledge of the SDK is not good and my experience with finding stuff on the WEB site is somewhat lacking. If there is some example code or a step by step detail of the procedure to get this working I would very much appreciate some help.

Parents
  • It was the persistent config setting. The source code set the ERASE_PERSISTENT_CONFIG to ZB_FALSE and because I initially tested the three boards together in the light switch demo project the channel got fixed to 16. From then on it was picking it out of the configuration and ignoring anything I was giving it.

    A rookie mistake I suppose but then again I am just starting out with this!

    Having changed the setting and putting the channel number to 14 the demo switch was found by my SmartThing hub so now I can make some progress.

Reply
  • It was the persistent config setting. The source code set the ERASE_PERSISTENT_CONFIG to ZB_FALSE and because I initially tested the three boards together in the light switch demo project the channel got fixed to 16. From then on it was picking it out of the configuration and ignoring anything I was giving it.

    A rookie mistake I suppose but then again I am just starting out with this!

    Having changed the setting and putting the channel number to 14 the demo switch was found by my SmartThing hub so now I can make some progress.

Children
No Data
Related