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

Differentiate devices on a BLE Mesh unprovisioned status - NRF5340DK

Hello,

I'm currently starting to develop with the Nordic nRF5340dk and trying to build a mesh network but i'm having some trouble on the examples to understand and buld my own. I see in the instructions that the UUID is generated by the board itself but i was wondering if there was some way to use a partial custom UUID to provision the devices.

UUID = n custom static bits + m auto generated bits.

This would function to differentiate the devices on the unprovisioned state like in 10 devices available only the ones that had the static bits is showed to the user to provision on the network.

I know this is possible on ESP32 but i can't seem to figure it out on Nordic, or if i can separate the devices on any way.

Any help is appreciated.

Parents
  • Hi David, 
    I assume you have looked in to the bt_mesh_dk_prov_init() in dk_prov.c. 

    There is some requirement on the UUID:

     Where the 4 most significant bits of time_hi_and_version shall be
    	 * 0b0010 and the 2 most significant bits of clk_seq_hi_res shall be
    	 * 0b10. The remaining fields have no required values

    So you are free to choose the value of the UUID except for the time_hi_and_version and clk_seq_hi_res 's bits. You are free to mix between static value and the auto generated bit or the hardware device ID

    Note that after being provisioned the device will no longer advertise as unprovisioned beacon. 

Reply
  • Hi David, 
    I assume you have looked in to the bt_mesh_dk_prov_init() in dk_prov.c. 

    There is some requirement on the UUID:

     Where the 4 most significant bits of time_hi_and_version shall be
    	 * 0b0010 and the 2 most significant bits of clk_seq_hi_res shall be
    	 * 0b10. The remaining fields have no required values

    So you are free to choose the value of the UUID except for the time_hi_and_version and clk_seq_hi_res 's bits. You are free to mix between static value and the auto generated bit or the hardware device ID

    Note that after being provisioned the device will no longer advertise as unprovisioned beacon. 

Children
Related