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

Size of service UUID sdk12.3 (nrf51822) softdevice130

Hi,

Is there a size limit for the vendor specific service UUID? It looks like it should be 16 bits but I can't set more than 4 bits in my code.

I am using the uart central exmaple code sdk12.3 (nrf51822). The ble service UUID (BLE_UUID_NUS_SERVICE) is set at 0x0001. I tried to change it to a different value 0x1485 and now the central device can't connect to peripheral. If I keep the UUID within 4 bits (eg: 0x008) it works. Is there somewhere the UUID size can be set?

Debug log: (no connection, UUID 0x22)

 0> SDH:DEBUG:sd_ble_enable: RAM start at 0x200025e0
 0> APP:INFO: BLE started
 0> :INFO:Fast advertising
 0> :INFO:Connecting to target c651c51bb7ec
 0> :INFO:Connected.
 0> BLE_DB_DISC:INFO:Starting discovery of service with UUID 0x22 for Connection handle 1
 0> BLE_DB_DISC:INFO:Found service UUID 0x22

Debug log: (connected!, UUID 0x08)

 0> SDH:DEBUG:sd_ble_enable: RAM start at 0x200025e0
 0> :INFO:Fast advertising
 0> :INFO:Connecting to target c651c51bb7ec
 0> :INFO:Connected.
 0> BLE_DB_DISC:INFO:Starting discovery of service with UUID 0x8 for Connection handle 1
 0> BLE_DB_DISC:INFO:Found service UUID 0x8
 0> BLE_DB_DISC:INFO:Discovery of service with UUID 0x8 completed with success for Connection handle 1APP:INFO:All Peripheral Services Discovered
Parents Reply Children
No Data
Related