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

Modify the base UUID of the NUS sample

Please tell me how to modify the base UUID of the NUS sample application (app_uart / app_uart_c).

SoC: nRF52832     SDK: nRF5_SDK_14.0.0

<My background>
I am developing BLE software with reference to app_uart/app_uart_c.
In this development, I'd like to modify base UUID of NUS.
Because the NUS service is widely used, there is a risk of interference.

The easiest way to do this is to change the value of NUS_BASE_UUID in the following source code to a different value.

nRF5_SDK_14.0.0_3bcc1f7\components\ble\ble_services\ble_nus\ble_nus.c
#define NUS_BASE_UUID                  {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**< Used vendor specific UUID. */

nRF5_SDK_14.0.0_3bcc1f7\components\ble\ble_services\ble_nus_c\ble_nus_c.h
#define NUS_BASE_UUID                   {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**< Used vendor specific UUID. */

However, the 13th and 14th values of the above UUID are zero, and it looks like a special UUID value that can not be generated by a generic UUID generator.
The result of I generated a UUID on the following Web page, the 13th and 14th were the following values which were not zero.

https://www.uuidgenerator.net/
The Generated sample UUID is e77840e0-e1b5-4c70-a4c4-7ff5c647ec37.


<My question>
Is it the right way to rewrite the base UUID of NUS using the UUID whose 13th and 14th are not zero like the above?
If not, please tell me the correct way to change NUS 's UUID

Related