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

Light switch demo versus thingy52-mesh-provisioning-demo

Hello, developers! I am wondering if the Light switch demo and the thingy52-mesh-provisioning-demo serve the same purpose. I tried to run them combined: the first one on an nrf52840 and the second one on thingy52. But they do not exhibit the behaviour of the thingy52-mesh-provisioning-demo (i.e. the LED doesn't blink at the command of the switch). However, from my perspective, they achieve the same goal: publish-subscribe; light switch-light bulb.

Could someone confirm me if my understanding is correct? Maybe I could manage to make both work eventually. Thank you in advance.

Parents
  • Hi,

    However, from my perspective, they achieve the same goal: publish-subscribe; light switch-light bulb.

    Yes, you are correct. Both demo's are doing the same. meaning they both showcase how you can provision and configure a node to be a light switch or a light bulb. 

    The Thingy firmware is equiped with both Generic OnOff client and Generic OnOff Server, so it can be both a light switch and a light bulb. While the Light switch demo have two separate firmware: The light switch client(light switch) and light switch server(light bulb).

    I assume you want to run the nRF52840 as a light bulb/switch and the thingy52 as the other one?

  • Are you using the nRF Mesh app to provision the devices? 

    For step 1, can you give me the exact steps you have done?'

    As for step 2, the relay feature is enabled by default so you only need to provision all three devices into to same Mesh network. The server node in between will act as relay node, assuming it is in range of both client and server(end destination).

  • Hi, thanks for the answer. Yes, I use nRF Mesh for provisioning all devices.

    Step 1, detailed: downloaded from nRF_Mesh_v3.2.0\examples\light_switch, the client, respectively the server code on the boards. The set-up is the following, excluding the top-most Thingy. 

    These are the loaded files on the two boards:

    For the Switch (Client) - thingy:52:

    For the End Device (Server) - nRF52840:

    However, pressing the button on the client does not trigger any LED on the nRF52840. I am not sure how I should start debugging this issue. Thanks.

  • I forgot to tell you that for the Thingy you need to follow the steps in thingy52-mesh-provisioning-demo and flash the thingy firmware. Not the client firmware found in the Light switch example from the SDK.

    As for the nRF52840 board, you have flashed the correct server example.

Reply Children
Related