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.

  • UUID shouldn't be identifier of particular device but it should be class of devices (= providers of specific kind of service). Devices are identified by MAC and if you don't want or cannot use it then you should define your own proprietary identifier (and place it to your APP data e.g. in Manufacturer Specific AD element of ADV/SCAN_RSP data). But back to the technical side of your proposed solution: Nordic (G)ATT Server API supports only adding Services/Characteristics not hiding or deleting so I'm afraid you will either need to go with different stack (Zephyr might be good choice because if it doesn't support this you may implement it yourself) or change your solution or try to get some more help from Nordic (maybe they have such feature in a back log but I don't see any indication of that from outside).

Reply
  • UUID shouldn't be identifier of particular device but it should be class of devices (= providers of specific kind of service). Devices are identified by MAC and if you don't want or cannot use it then you should define your own proprietary identifier (and place it to your APP data e.g. in Manufacturer Specific AD element of ADV/SCAN_RSP data). But back to the technical side of your proposed solution: Nordic (G)ATT Server API supports only adding Services/Characteristics not hiding or deleting so I'm afraid you will either need to go with different stack (Zephyr might be good choice because if it doesn't support this you may implement it yourself) or change your solution or try to get some more help from Nordic (maybe they have such feature in a back log but I don't see any indication of that from outside).

Children
No Data
Related