This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Android nRF Mesh mobile application Generic On/Off

Hi all,

I was able to create a mesh network with two nrf5340 boards configured with the mesh light sample and the mesh light switch sample.

I am trying to substitute the mesh light switch with Qualcomm's QCA4020 board due to its wifi capabilities.

I was able to provision the nRF5340 but I do not know how to configure Generic On/Off to turn the nrf5340 lights on.

Can someone point me where in the Android nRF Mesh mobile application code https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library Generic On/Off is set up or how to find it?

Thanks

  • Hi,

    Can someone point me where in the Android nRF Mesh mobile application code https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library Generic On/Off is set up or how to find it?

    I'm not sure I understand your question, could you elaborate?

    To be able to control the light on the nRF5340, you need to set the correct publish addresss on the light switch, your Qualcomm's QCA4020 board in this case. Configure the Generic On/Off model you need to provision the device first. Did you provision both board with the nRF Mesh for Android app?

  • I didn't provision through the nRF Mesh for Android app, no. I want to use it as a high level reference for what I need to do on the provisioner side. I'm having a hard time navigating the source code looking for what to do after provisioning.

    After provisioning through the QCA4020 the nRF5340 console prints I: Primary Element: 0x000f

  • In order to set up GenericOnOff or any model for instance, you need to configure your mesh node. First by getting the composition data of a node, adding an app key as well as binding an app key to that model. Once an app key is bound, you could send a GenericOnOffSet message to turn on/off a light server model. the nRF Mesh app gets the Composition Data, Adds an app key right after provisioning which is the configuration phase. The user has to manually bind the application key to the model they want to. I would advise referring to the mesh profile specification.

  • Thank you, I can control the LEDs now

Related