nrf mesh light client group control

Hi 

board: nrf52832 DK

sdk: nrf connect sdk v2.6.1

I have successfully integrated the provisioner and light switch client together. Now I can control the light switch server on/off and read the status.

I now want to add the light switch server to a specific group in this integration program, and control the on/off action of this group.

According to the mesh mobile app, I need to first set the light switch server subscribe to the specified group ID,

and then use the light switch client to publush the specified group ID to control the group

I would like to ask if there is any example of Mesh Group control in NRF Connect SDK

  • Hi

    As far as I know there are no samples that explicetly handles this, but there are multiple samples that have servers that can be added to a specific group. My colleague explains it briefly here:  Extracting individual address from group address in BLE Mesh  i.e 

    "Group addresses in Bluetooth mesh is not a centralized concept. Models can subscribe to group addresses, and models can publish to group addresses, but there is not central overview of which models are subscribed to what groups.

    The provisioner or provisioners of the network may know how the nodes were configured (and thereby what models on what nodes are subscribed to the group address,) but this will not necessarily give a definite answer to what models subscribe to the group address (as nodes may self-configure or otherwise change their configuration without the provisioner knowing. The provisioner must then read the configuration of all the devices to know if anything has changed"

    Using the nRF Mesh mobile app you can do this through

    1. Provision your device to the mesh network
    2. Navigate to the server model you want to configure
    3. In the subscriptions section, tap Subscribe
    4. Select an existing group or create a new one
    5. Apply the changes

    Among the samples I mentioned:

    • Bluetooth Mesh: Light switch - This sample can be used to change the state of light sources on other devices within the same mesh network, demonstrating group control through the Generic OnOff Client model. It works together with the Light sample to demonstrate functionality in a Bluetooth Mesh network. Bluetooth Mesh: Light switch
    • Bluetooth Mesh: Light dimmer and scene selector - This sample demonstrates how to set up a light dimmer and scene selector application, controlling dimmable LEDs with Bluetooth Mesh using Generic Level models, Generic OnOff models, and Scene models. It specifically implements:
    • Bluetooth Mesh: Light fixture - This sample has been updated in various releases to include support for the Scene Server model and demonstrates the use of a Sensor Server model to report additional device information. Bluetooth Mesh: Light fixture

    Kind regards,
    Andreas

  • Hi,

    thanks for your reply 


    so you suggest using nRF Mesh mobile app to create a group and let the server subscribe this group?


    It seems that there is currently no API in the nrf connect sdk that allows the client to control the server to

    subscribe a specified group right?

Related