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

Subscribe a group address for the Mesh Message

Currently, I am working with the Nordic SimpleOnOff Model of the Light switch in the Bluetooth Mesh.

I am good that the light in the mesh can be set on/off after Provisioned.

Now, i would like to divide the Board into 2 Groups, let's said Group A and Group B.

But i am not very sure how to work with that?

How can i drive a specify device to bind to a specific Group Address? I believe that i should subscribe to some service, but any sample code or pointer that can show how can I subscribe the service for that "group"?

After that, how should i send the message to "This Group" of light for On/Off.

I tried to study the code of access_model_publish, from the Mesh SDK, but seems it did not have a way to specify the Group address for boardcast.

And how about the Receiver? Should i define another set of OpCode, like SIMPLE_ON_OFF_OPCODE_GROUP_SET to do the operation there?

Parents
  • Some study here, may i confirm it is the correct approach?

    It seems i need extend the two Nordic models for the device.

    Simplie On/Off Model- it is many to handle the optcode for light On/Off, and may be if in case, can add on the intensity parameters for the control of the brightness.

    Configuration Model- besides the existing feature that Nordic defined, i need to extend the model, such that it can handle about the Group setting of the Light, such that i can assign the Group ID to the specific device.

    ?? But I still not very clear, how to link the Group ID that i set above, to the Group address of the Nordic Mesh Arch?? This is some confusion for me yet...

    Hope i can make my questions clear.

Reply
  • Some study here, may i confirm it is the correct approach?

    It seems i need extend the two Nordic models for the device.

    Simplie On/Off Model- it is many to handle the optcode for light On/Off, and may be if in case, can add on the intensity parameters for the control of the brightness.

    Configuration Model- besides the existing feature that Nordic defined, i need to extend the model, such that it can handle about the Group setting of the Light, such that i can assign the Group ID to the specific device.

    ?? But I still not very clear, how to link the Group ID that i set above, to the Group address of the Nordic Mesh Arch?? This is some confusion for me yet...

    Hope i can make my questions clear.

Children
No Data
Related