KW35-Broadcast Name

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

KW35-Broadcast Name

2,994 次查看
bin_wang
Contributor I

We want to have a broadcast name “SAIC-Motor” but only displays 9 char as “SAIC-Mot”

We have change the length to 11 as below, is this a bug or other problem?

static const gapAdStructure_t advScanStruct[3] = {
  {
    .length = NumberOfElements(adData0) + 1,
    .adType = gAdFlags_c,
    .aData = (uint8_t *)adData0
  }, 
  {
    .length = NumberOfElements(uuid_service_wireless_uart) + 1,
    .adType = gAdComplete128bitServiceList_c,
    .aData = (uint8_t *)uuid_service_wireless_uart
  }, 
  {
    .adType = gAdShortenedLocalName_c,

    .length = 11,

   .aData = (uint8_t*)" SAIC-Motor "


  } 
};

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

2,861 次查看
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 项奖励
回复

2,861 次查看
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Bin, I hope you're doing well!

 

Did you try changing the "gBleSig_GapDeviceName_d" value in the gatt_db.h header file? There is a characteristic with that name that determines the device name. This value also needs another number value, which, in this case, is the full length of the name itself.

 

Also, you could try using the CompleteLocalName adType in your Advertising Data array. This document may be useful to you, as it shows how to create a custom beacon.

 

Could you try that?

 

Please let me know of your results.

 

Best regards,

Sebastian

0 项奖励
回复