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

Detecting Central device sending scan request

Is it possible on the nRF51822 to surface an every from the Soft Device whenever a client attempt a scan (is it SCAN_REQ?)

This is for an iBeacon implementation where I want to know when a client device (mobile phone) has actually done a scan of the iBeacon.

Parents
  • FormerMember
    0 FormerMember

    In the latest version of S110, S110 v8.0.0, you can set the application to receive an event upon scan requests, this is stated in the release notes:" The main features of this release are the ability to set the size of the GATT Server Attribute Table when initializing the BLE stack, the possibilityfor the application to be notified when the SoftDevice receives scan requests, and the ability to disable RF channels for advertising."

    Setting the firmware to receive scan requests should be done in the ble_opt_t argument in sd_ble_enable(..): ble_opt_t -> ble_gap_opt_t ->ble_gap_opt_scan_req_report_t.

    After setting the scan request option, the scan request are notified with the event BLE_GAP_EVT_SCAN_REQ_REPORT.

Reply
  • FormerMember
    0 FormerMember

    In the latest version of S110, S110 v8.0.0, you can set the application to receive an event upon scan requests, this is stated in the release notes:" The main features of this release are the ability to set the size of the GATT Server Attribute Table when initializing the BLE stack, the possibilityfor the application to be notified when the SoftDevice receives scan requests, and the ability to disable RF channels for advertising."

    Setting the firmware to receive scan requests should be done in the ble_opt_t argument in sd_ble_enable(..): ble_opt_t -> ble_gap_opt_t ->ble_gap_opt_scan_req_report_t.

    After setting the scan request option, the scan request are notified with the event BLE_GAP_EVT_SCAN_REQ_REPORT.

Children
No Data
Related