How to Scaning Other Bluetooth Device Using nRF52833

Hi everyone,

I am new here. I wanna develope a module using nrf52833 for observing other bluetooth device like "nrf Connect For Desktop-> nrf connect for desktop bluetooth low energy standalone App" attached image. I have tried to run example projects(ble_app_uart_c_pca10100_s122 ) but i couldnt find i wanted. The codes waiting command from user as i understand. i am using nrf52 first time. Which example project is more similar to what I want? Many thanks.

Parents Reply
  • Hello,

    Thank you for clarifying, this is very helpful for me to know!

    In this case I recommend that you start out from any of the BLE central examples - like the BLE UART example you have already linked - and then remove the scan filters (along with any other functionality from the original example that you do not need), so that you will receive scan reports for all scanned advertisements, and then you can create a list to keep the 'present devices' in, to create the estimate.
    Please remember that devices might have privacy enabled, and so their address could change anytime during your scanning (which in this case would indicate 2 people present instead of 1).
    Then you could implement some kind of timeout or measure to remove devices from the list if you have not heard from them in the last x minutes, or similar.
    For instance, your present devices list could contain structs with the device id and a timestamp from the RTC, and then if the difference in the timestamp gets too large the device is considered gone or lost, and removed from the list.

    Would this be what you are after? 

    Best regards,
    Karl

Children
Related