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

nRF840 - S140 : How to fetch MAC addresses of surrounding mobile devices during nRF52840 scanning using Bluetooth 5.

Hello Nordic Team,

We are using nRF52840 ble chip with S140 nordic stack and SDK 15.2.0 on the  SEGGER IDE installed on  the Windows OS. We want nRF52840 chip  to detect surrounding mobile devices and also nRF52840 can fetch MAC addresses of mobile devices during scanning. We would like to know from your side that whether this is feasible or not ?. If yes, then can you please suggest us how to do it.

We are looking forward to hear from you.

Thanks
Bharat Gopani
Lumium Design
India.

Parents Reply Children
  • Well you can also check the type of address with p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr_type.

    You should get one of the following. What you do with that information is up to you.

    /**@defgroup BLE_GAP_ADDR_TYPES GAP Address types
     * @{ */
    #define BLE_GAP_ADDR_TYPE_PUBLIC                        0x00 /**< Public (identity) address.*/
    #define BLE_GAP_ADDR_TYPE_RANDOM_STATIC                 0x01 /**< Random static (identity) address. */
    #define BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE     0x02 /**< Random private resolvable address. */
    #define BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE 0x03 /**< Random private non-resolvable address. */
    #define BLE_GAP_ADDR_TYPE_ANONYMOUS                     0x7F /**< An advertiser may advertise without its address.
                                                                      This type of advertising is called anonymous. */
    /**@} */

  • Thanks Andy,

    How can we get public (identity) address or  Random static (identity) address of android mobile devices

    during the scanning  by nRF52840  ??

    Shoud we use central or pheripheral or dual mode (Central and Pheripheral)  stack for nRF52840  ??

    We are looking forward to hear from you.

    Regards

    Bharat

  • Hi Bharat,

    You have asked an identical question here. I would kindly suggest you to continue asking questions in that thread. Thank you.

Related