Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

why it doesn't allow me modify the uuid in ble characteristic tutorial to battery service and battery level uuid ?

Dear Nordic Team,

I have practiced the " ble-characteristics-a-beginners-tutorial" on DK board PCA10028, and it worked perfectly.  Then I tried to change the user defined UUIDs by replace the base UUID to Battery service base UUID, and the 16-bit characteristic UUID to 16-bit battery level UUID, hoping that I could see Battery service with a battery level characteristic on my Android App. But  it doesn't work. The board seems frozen.

Could you tell me why it doesn't work?

Here are the only original statements for UUID.

// FROM_SERVICE_TUTORIAL: Defining 16-bit service and 128-bit base UUIDs
#define BLE_UUID_OUR_BASE_UUID {{0x23, 0xD1, 0x13, 0xEF, 0x5F, 0x78, 0x23, 0x15, 0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}} // 128-bit base UUID
#define BLE_UUID_OUR_SERVICE_UUID 0xF00D // Just a random, but recognizable value
//ALREADY_DONE_FOR_YOU: Defining 16-bit characteristic UUID
#define BLE_UUID_OUR_CHARACTERISTC_UUID 0xBEEF // Just a random, but recognizable value

Here are the new statements for UUID, which causing problem.  Nothing else changed.

//following is battery service uuid
#define BLE_UUID_OUR_BASE_UUID {{0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x0f, 0x18, 0x00, 0x00}} /**< battery service UUID. */
#define BLE_UUID_OUR_SERVICE_UUID 0x180f
#define BLE_UUID_OUR_CHARACTERISTC_UUID 0x2A19 /*battery level*/

Thanks,

Jacky

Parents Reply Children
Related