Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Problem with advertised device name BLE Interactive Command Line Interface Example

Hello! I'm working with the nRF5 SDK17 (https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_interactive.html), and I'm trying to solve the following problem:

I need to connect to a polar H10 device (for heart rate measure), but I need to connect knowing the device name. But when I scan for devices and list them no names appears. Even thought I know the polar device is on. When I connect the same device somewhere else, like my pc or android, and then scan again on the BLE CLI, the polar device now appears with the name included.

Maybe some configuration is required to scan in a better way to get the address and the name from nearby devices. I tryed to increase the scan window, active scan, and other things. Maybe someone knows what is happening and would help me?

Thanks!

(polar device without connecting to any other device)

(polar device after connecting in the PC)

Parents
  • Hi

    Do you see the device name of the Polar device in other scanning devices before it has been connected to any other devices? Do you have access to the source code of the Polar device or are you able to modify its device name somehow. It is pretty long by default, so if possible, can you try reducing the device name's length? I'm not able to reproduce this on my end with an nRF device, and what I can imagine is that it won't print the device name if it's too long. Alternatively, try taking a look at the scanned_device_t and scan_device_info_get()  functions in ble_m.c/.h and try modifying the "devices" function to only print device name instead of the address.

    Best regards,

    Simon

Reply
  • Hi

    Do you see the device name of the Polar device in other scanning devices before it has been connected to any other devices? Do you have access to the source code of the Polar device or are you able to modify its device name somehow. It is pretty long by default, so if possible, can you try reducing the device name's length? I'm not able to reproduce this on my end with an nRF device, and what I can imagine is that it won't print the device name if it's too long. Alternatively, try taking a look at the scanned_device_t and scan_device_info_get()  functions in ble_m.c/.h and try modifying the "devices" function to only print device name instead of the address.

    Best regards,

    Simon

Children
No Data
Related