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

How to send beacon data in mesh packet to other nodes.

Hi all,

i am currently working on 5 nrf52832 DK boards, i want to use nrf mesh for indoor positioning system. I am currently using nrf sdk v15.0.0 and nrf mesh v2.2.0.

i achieved the mesh light_switch example and was able to control the servers through client, now i want my ble_app_beacon data to be transmitted in the mesh packet of beaconing example.

Could anyone help me with any ideas telling how to insert scanned beacon data to mesh packet in  the beaconing example ?

Thanks in advance.

Parents
  • Hi Shrinivas,

     the Beaconing example in the Mesh SDK, registers a RX callback that is invoked for all packets that are processed by the mesh after the mesh
    itself has processed them.

    Hence, any regular advertisment packets that does not have the mesh advertisment type will trigger this callback. So once you registered the callback and  receive a advertisment packet, you will have to create a mesh packet and publish it to a unicast or group address. Unless you're only going to turn on or off a light based on the beacon data you will have to create your own client and server model that pusblish and subscribe to the beacon data. 

    See the Create New Models in the nRF SDK for Bluetooth Mesh documentation.

    Best regards

    Bjørn

Reply
  • Hi Shrinivas,

     the Beaconing example in the Mesh SDK, registers a RX callback that is invoked for all packets that are processed by the mesh after the mesh
    itself has processed them.

    Hence, any regular advertisment packets that does not have the mesh advertisment type will trigger this callback. So once you registered the callback and  receive a advertisment packet, you will have to create a mesh packet and publish it to a unicast or group address. Unless you're only going to turn on or off a light based on the beacon data you will have to create your own client and server model that pusblish and subscribe to the beacon data. 

    See the Create New Models in the nRF SDK for Bluetooth Mesh documentation.

    Best regards

    Bjørn

Children
No Data
Related