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

Provisionee and provisioner roles in Bluetooth Mesh Network.

Hi.

I want to create Bluetooth mesh network and I need that each of device at first must be provisionee, but if in a minute it hasn't been added in a network by provisioner, the device changed her role and worked as a provisioner. 
How can I changed the role of provisionee to the role of provisioner without reseting the device?

Thanks.

  • Hi,

    Note that if a device picks up the role as provisioner all on its own then it will create a new Bluetooth Mesh network. (Unless it has access to the provisioning database for an existing network, that is.) In almost all cases you do want your provisioner to be a special device, often a smartphone or other device connected to the outside world for backup of the provisioning database etc., not just any device in the network.

    In order to implement fallback to becoming a provisioner, you may have a look at the light_switch examples. Merge the provisioner functionality into your non-provisioner project for your device, and use a timer to trigger "provisioner mode". In nRF5 SDK for Mesh v1.x.x the client was also provisioner, so there might be some help in looking at that example from that version of the SDK for better understanding how to combine things, but do note that only v2.0.1 is qualified with the Bluetooth SIG.

    Regards,
    Terje

Related