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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,036 次查看
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

标签 (2)
0 项奖励
3 回复数

882 次查看
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 项奖励

882 次查看
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 项奖励

882 次查看
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 项奖励