How to change ble device name (kw41z) with more of 8 characters?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change ble device name (kw41z) with more of 8 characters?

992 Views
mangramarco
Contributor III

Hello,

i need to change the ble device name in a firmware for kw41z. Into app_config.c file, there is an gapAdStructure_t array named advScanStruct[3]. The last element of this array contains:

 .adType = gAdShortenedLocalName_c,
 .length = 5,
 .aData = (uint8_t *)("NAME")

I changed .aData and .length and it work if i use a name with less of 8 characters. I tried to use.adType = gAdCompleteLocalName_c and it is the same.

How can i use more characters? i need 9 characaters.

Best

regards

Marco

Labels (2)
0 Kudos
3 Replies

838 Views
Xiang_Li
NXP Employee
NXP Employee

I made an answer for this question with more details, refer to this post:

https://community.nxp.com/message/1175326 

0 Kudos

838 Views
mangramarco
Contributor III

Hello Sebastian, thank you for the response.

I tried your solution but the issues persist. During the advertising the app shows advScanStruct .aData name.

0 Kudos

838 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Marco, I hope you're doing well!

 

There is a characteristic in the gatt_db.h header file of the BLE examples called char_device_name with a value of "value_device_name". The number before the name itself corresponds to the length of your device name string. Could you please try changing the name through here?

pastedImage_1.png

Please let me know if you continue to have issues.

 

Best regards,

Sebastian

0 Kudos