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

Mesh_Broadcast_Server

Hello Nordic devzone,

I'm using Mesh SDK and nrf52PDK, and i'm using light_switch example. could you please let me know that if it is possible to broadcast a message from one of the server nodes and receive the message in all other nodes (servers and client). should i set the publication address to group address in this case? if so how can i do that?

Best regards

  • In #BluetoothMesh if NODE want to transmit something to other NODE then it happens by only BROADCASTING.

    No connection is established between any two NODEs like GATT peripheral & Smartphone. If NODE is not sending, then it is continuously in receiving mode.

    Each Model in #BluetoothMesh has only 1 publication address & could have multiple subscription addresses.

    During configuration of NODE, we assign publication & subscription addresses to each Model using Provisioner App.

    Each broadcasted frame has, Source Address as well as Destination Address.

    When NODE receives frame, it checks only DESTINATION address in that frame.

    1. If it is "own" UNICAST address then NODE process & acts upon it.

    2. If it is GROUP address/virtual group address, then it will check its subscription list. If NODE found that address in subscription list then it will process that frame. (Subscription list only contains group addresses & virtual group addresses. Obviously, there is not need to add own UNICAST address in that list :) )

    3. Otherwise it will ignore that frame.


    If you have Button, which is based on Generic ONOFF Client Model, then while creating frame to broadcast it will put PUBLISH address in DESTINATION address location & own address in SOURCE address location.

    Publication address can be UNICAST, Group address, Virtual group Address.


  • For further understanding & R&D, you could go with following combination :

    nRF52840-PDK Board + #BluetoothMesh offered by Zephyr OS + Silicon Labs Android App as Provisioner.

    (Note: Currently, Zephyr does not allow to save Provisioning & Configuration setting on Flash of nRF52. So we have to do it after every reset. Otherwise, it helps a lot to understand #BluetoothMesh Concept thoroughly).

    www.youtube.com/watch
    
  • Thank you very much for you explanation @vikrant8051 i did manage to solve the problem :)

Related