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

Advertising service with 128 bit UUID

Hello everyone,

I have 2 chip; Bluegiga and nRF51-DK

I can easily advertise my custom service in Bluegiga chip. As you can see, nRF Connect application shows my service so that i can scan peripherals with service and connect via IOS application. However I could not find proper way to do this in nrf51 chip. I can not advertise my custom service with 128bit UUID.

The solution is published in here but i need to find more proper way if possible. devzone.nordicsemi.com/.../

I am using S130 and sdk v11

image description

  • Do you want to advertise only the 128 UUID or also service data? The ble_app_uart example in the SDK shows how to advertise a 128bit UUID. It places it in the scan response packet, but you should be able to put it in the advertising packet in the same way if there is enough space (advertisement packet can have maximum 31 bytes of data).

    Actually it does not look like you have enough space in the advertisement packet. The size of your packet will be: 8 (device name) + 3 (flags) + 4 (16 bit uuids) + 18 (128 bit uuids) = 33 bytes. See here for explanation. Do you try to put it all in one packet?

  • Sorry for late answer.

    I found the solution in experimental_app_ble_blinky source code. I added UUID to the response data. Now I can scan and connect with IOS and Android using service UUID.

Related