This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

loss of characters in advertising name in sdk 15.3

Hello All,

I am working on the nrf52810 module.

I am using sdk 15.3 with softdevice 6.1.1. (IDE segger)

Issue- 

1. I am giving the Advertising name as " TEST_01 "

But if i load program to board and powered up then it is showing  "  TEST_ " only.

not whole name as i have given( loss of "01" ).

So what i have modified to solve this issue.

2. Please check below code of "ble_advtdata.c"

                                  if (((p_advdata->name_type == BLE_ADVDATA_FULL_NAME) ||
                                                          (actual_length <= p_advdata->short_name_len)) &&
                                                          (actual_length <= rem_adv_data_len))
                                  {
                                   // Complete device name can fit, setting Complete Name in Adv Data.
                                   adv_data_format = BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME;
                                  }

I have changed to 

if ((p_advdata->name_type == BLE_ADVDATA_FULL_NAME) && (actual_length <= rem_adv_data_len))
{

// Complete device name can fit, setting Complete Name in Adv Data.
                                   adv_data_format = BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME;
 }

After changing also facing same issue.

Please help for solving this issue.

Regards,

Rohit

Parents Reply Children
No Data
Related