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

ADV_IND mode scan request and response, how to trigger the event BLE_GAP_EVT_SCAN_REQ_REPORT?

hi, nordicer:

two device, a peripheral and a apple phone as central. we want to support scan request and response with ADV_IND mode,  I understand as following:

(1) peripheral advertise data

(2) central receive advertising data, and scan request data

(3) perpheral scan response data

we have 3 problems:

(1) how peripheral support the scan request and response?

(2) how peripheral get the scan request data? BLE_GAP_EVT_SCAN_REQ_REPORT?

(3) can central adjust some payload data ? 

Parents Reply
  • Hi,

    I think I understand what you mean now.

    Yes, I see that for SoftDevices up to versions 5.x you need to enable the option for BLE_GAP_OPT_SCAN_REQ_REPORT in order for the SoftDevice to generate those events.

    For SoftDevices versions 6.x this was changed and there is now a flag scan_req_notification in ble_gap_adv_params_t that you must set in order to get the BLE_GAP_EVT_SCAN_REQ_REPORTs. See the migration document for the SoftDevice for details.

    Regards,
    Terje

Children
No Data
Related