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

Configurable UUID

Hello,

I want to change the 16-bit of 128-bit UUID at runtime. is this possible?

let me explain...

1)the first both central and peripheral set 128-bit UUID like this....

6e400000-b5a3-f393-e0a9-e50e24dcca9e

  1. now after connection the central send 16-bit service UUID to peripheral this will overwrite too 0x0000 number and disconnect from central and than after advertise with newer one service UUID like this..

6e400004-b5a3-f393-e0a9-e50e24dcca9e

is this possible?

please correct me if i m wrong..

thank you..

Parents
  • The only way how to change GATT Server objects with Nordic Soft Device is to "restart" it (typically softreset of the chip is faster way). UUIDs are assumed to be static identifiers.

  • But "standard" way how to implement this with current Nordic SD would be:

    1. Let some default UUID (saying "I'm unpersonalized device of yours").
    2. Once master connects and is allowed to modify/personalize it assigns new UUID.
    3. Devices must disconnect. GATT Server saves new configuration and reboots.
    4. As soon as GAP Peripheral/GATT Server boots it uses new UUID to populate GATT Server differently then before and it's ready to be used as you intended.

    If you are fine with that disconnection you have your solution. Otherwise go with different BLE stack.

Reply
  • But "standard" way how to implement this with current Nordic SD would be:

    1. Let some default UUID (saying "I'm unpersonalized device of yours").
    2. Once master connects and is allowed to modify/personalize it assigns new UUID.
    3. Devices must disconnect. GATT Server saves new configuration and reboots.
    4. As soon as GAP Peripheral/GATT Server boots it uses new UUID to populate GATT Server differently then before and it's ready to be used as you intended.

    If you are fine with that disconnection you have your solution. Otherwise go with different BLE stack.

Children
No Data
Related