KW35-Broadcast Name

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KW35-Broadcast Name

2,949件の閲覧回数
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,816件の閲覧回数
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,816件の閲覧回数
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 件の賞賛
返信