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

Ble_nus UART example, incorrect UUIDs

Hi,

Running with the PCA10001, with the nrf51822. I am attempting to use in Nordics "ble_nus.c/h" ble peripheral from the UART example (nRF51_SDK_9.0.0_2e23562), with the S110 soft device.

I've written my own main.c, suitable for the PCA10001, however, I'm running into an issue setting a vendor UUID.

I'm using these macros:

#define NUS_BASE_UUID {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}}
#define BLE_UUID_NUS_SERVICE 0x0001
#define BLE_UUID_NUS_TX_CHARACTERISTIC 0x0002
#define BLE_UUID_NUS_RX_CHARACTERISTIC 0x0003

I can detect the device on the nRF master control panel, though, it advertises these UUIDs:

Service: 00001523-1212-efde-1523-785feabcd123
Tx Char: 00001524-1212-efde-1523-785feabcd123
Rx Char: 00001525-1212-efde-1523-785feabcd123

So it appears my base UUID isn't configuring properly. Does anyone have any ideas why this might be the case?

Related