Changing the nRF8001 Service UUID

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
WKDLabs
 
Posts: 18
Joined: Mon Jan 06, 2014 1:05 pm

Changing the nRF8001 Service UUID

Post by WKDLabs »

Hi,

Is it possible/valid to change the primary service UUID (and characteristics) by only altering the source of the Arduino BLE UART lib or is the Nordic toolset required to properly generate the files and/or program the onboard firmware?

I've spied what seems to be the primary service id and friends in this file: Adafruit_BLE_UART/utility/uart/services.h

e.g. the primary service UUID (backwards):

Line 94:
{0x00,\
{\
0x1f,0x06,0x20,0x70,0x00,0x09,0x28,0x00,0x01,0x9e,0xca,0xdc,0x24,0x0e,0xe5,0xa9,0xe0,0x93,0xf3,0xa3,\
0xb5,0x01,0x00,0x40,0x6e
,0x04,0x04,0x13,0x13,0x00,0x0a,0x28,\
},\

I have two Bluefruit devices and was hoping by changing just 3 bytes in that file it would give me two unique BLE UARTendpoints.

All the best
Wayne

User avatar
WKDLabs
 
Posts: 18
Joined: Mon Jan 06, 2014 1:05 pm

Re: Changing the nRF8001 Service UUID

Post by WKDLabs »

What I would also like to know is if there is a way at runtime to change the UUID's, this would be handy.

Looking at this in Adafruit_BLE_UART.cpp
static hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM = SETUP_MESSAGES_CONTENT;

I guess my question boils down to:

What functions can be called in the lib_aci API, after power-up and lib_aci_init(...) have been called, in order to change the service and characteristic UUID's?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Changing the nRF8001 Service UUID

Post by adafruit_support_mike »

The UUID is hardcoded in firmware and can't be changed.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”