KW35-Broadcast Name

cancel
Showing results for 
Search instead for 
Did you mean: 

KW35-Broadcast Name

139 Views
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 "


  } 
};

Labels (3)
0 Kudos
2 Replies

6 Views
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

6 Views
NXP TechSupport
NXP TechSupport

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 Kudos