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

BLE Central device functionalities

Hello,

 

I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1.

 

Till now I am using ‘ble_app_blinky’ example code, modified to my custom profile and tested On/Off using nRF Connect mobile app.

Since “LE Coded PHY” is not supported on most of the mobile phoned, I need to use Nordic device as BLE central. BLE Central is connect to other chip running with Android OS via UART.

Now BLE central should scan all advertising devices, connect to a specific device and send On/Off command.

 

1) Whether can I use “\examples\ble_central\ble_app_blinky_c\” to do this. Whether it can scan all devices (Should not filter based on Name, Address etc…).

    a) Whether any handler can be used to display list of all scanned devices.

    b) To my understanding I need to use NRF_BLE_SCAN_ALL_FILTER rather than NRF_BLE_SCAN_NAME_FILTER as we are using AltBeacon format.

 

2) If I want to filter based on address whether can I give SCAN_ADDR_FILTER.

    a) Is it same as “White list” feature.

 

3) Even I am looking into "ble_app_interactive". But this has lot other interfaces. Your inputs please.

Thanks & Regards

Vishnu Beema

Parents
  • Hi Vishnu

    1. 

    a) You can take a look at how to create a list of the advertising devices in the SDK\examples\ble_central_and_peripheral\experimental\ble_app_interactive example, which does so with the device_to_list_add() function in ble_m.c.

    b) What would be the problem by using the SCAN_NAME_FILTER to find AltBeacon format devices? I'm not sure I follow here.

    2. No, a the SCAN_ADDR_FILTER and a whitelist are not exactly the same. This is very well explained by my colleague in this case.

    3. What exactly are you struggling with regarding the interactive example? You can check out this case which has a good discussion on the matter.

    Best regards,

    Simon

Reply
  • Hi Vishnu

    1. 

    a) You can take a look at how to create a list of the advertising devices in the SDK\examples\ble_central_and_peripheral\experimental\ble_app_interactive example, which does so with the device_to_list_add() function in ble_m.c.

    b) What would be the problem by using the SCAN_NAME_FILTER to find AltBeacon format devices? I'm not sure I follow here.

    2. No, a the SCAN_ADDR_FILTER and a whitelist are not exactly the same. This is very well explained by my colleague in this case.

    3. What exactly are you struggling with regarding the interactive example? You can check out this case which has a good discussion on the matter.

    Best regards,

    Simon

Children
No Data
Related