Skip to main content
sean lannon
Associate II
Aug 20, 2019 4:15 PM UTC
Solved

BlueNRG2 Stack Device Name Characteristic (0x2A00) Length

Bringing up BlueNRG2 (in network co-processor mode). Using the following call on the host MCU (after aci_gap_init():(

aci_gatt_update_char_value_ext(...)

For setting the Device Name characteristic (0x2A00) of the Generic Access Service (0x1800) seems to be limited to 7 characters. Setting a string of 8 or more returns a bad parameters code. I realise there's a packet size limitation (unless BLE >= 4.2 + MTU reconfigure after connection) but 7 seems a bit short, is this simply a limitation imposed by ST in the BlueNRG2 stack or am I missing a call?

The complete advertised name I have set is working fine (13 chars).

I notice the example STML4 projects use small device names.

This topic has been closed for replies.
sean lannon
sean lannonBest answer
Associate II
Aug 21, 2019 3:14 PM UTC

Found the answer in PM0257: Yes the characteristic is limited to 8 chars (I'm guessing 7 + NULL).

0690X00000AA3QgQAL.jpg

1 reply

sean lannon
sean lannonAuthorBest answer
Associate II
Aug 21, 2019 3:14 PM UTC

Found the answer in PM0257: Yes the characteristic is limited to 8 chars (I'm guessing 7 + NULL).

0690X00000AA3QgQAL.jpg