This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BLE device name length

Other Parts Discussed in Thread: CC2541

HI,

I am using CC2541 for my project. Currently I am setting name of my BLE device in ScanRspData. 

current length of ScanRspData = 31 bytes. I am also sending another data related to min, max connection interval and power level.

This gives me 20 bytes for name. What if I want to use more bytes? I want 32 to 64 bytes for name if possible. 

  • The scan response data can't be larger than 31 bytes which is part of the BLE spec.

    You may be able to change the device name within the GATT server to be a longer value but this will require connecting and then reading the device name UUID. Look at simpleBLEPeripheral project and you'll see the device name attribute being set with GGS_SetParameter( GGS_DEVICE_NAME_ATT, ...). There is a #define for GAP_NAME_LENGTH in gattgattserver.h that gives a max length of 21 bytes but I believe you may be able to extend this length and then set the name to be whatever you need within that length bound.

    -Matt