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

No device name in advertising data.How to get device name?

nRF52 DK,software is nRF5_SDK_12.3.0_d7731ad,I'm using the example of "ble_app_multilink_central". SoftDevice is "s132_nrf52_3.0.0_softdevice.hex"

The BLE device is advertising.

My central(DK Board) cannot get the device name.The function "adv_report_parse"  is failed by "can't parse the data".

So I check the "adv_report.data",it is "0201 0603 1940 0411 069E CADC 240E E5A9 E093 F3A3 B501 0040 6E",obvious there is no name in it.And the "scan_rsp" is always 0,means it is just the advertising data.

But I already set active scan as below

static const ble_gap_scan_params_t m_scan_params =
{
.active = 1,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.timeout = SCAN_TIMEOUT,...

In nRF Connect ,it is able to scan the device and show its name just by scan(not connected).

So 

1.When no name in advertising data,how to get the the device name? Send a "scan_request "?How to do that?

2.The function "SD_BLE_GAP_DEVICE_NAME_GET" is used for what?What does the DEVICE mean?

Thanks very much.

Parents Reply
  • Do you have scan response data?  What do you mean with active_scan not working? Do you not get any scan responses from the central?

     

    I suspect you would have interest of the ble_app_multilink_central example found in:

    SDK\examples\ble_central\ble_app_multilink_central

     

    Look in the function on_adv_report(...) in main.c, which checks the advertising report for the name. See if you can use this.

     

    Best regards,

    Edvin

Children
No Data
Related