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,932件の閲覧回数
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 返答(返信)

1,778件の閲覧回数
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 件の賞賛
返信

1,778件の閲覧回数
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 件の賞賛
返信

1,778件の閲覧回数
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 件の賞賛
返信