Hi,
I'm using the S132 v6.0 and SDK v15.0 to work with nRF52832. I found the it just get the advertising data. If the device put some data into the scan response, when I use 52832 to scan, how to get the scan response data? Thanks.
Hi,
I'm using the S132 v6.0 and SDK v15.0 to work with nRF52832. I found the it just get the advertising data. If the device put some data into the scan response, when I use 52832 to scan, how to get the scan response data? Thanks.
Hi,
You have to do active scanning in order to get the scan response. To do that, simply set the active field of the ble_gap_scan_params_t instance to 1 before you pass it in the call to sd_ble_gap_scan_start(). Then you will get the scan response data in a BLE_GAP_EVT_ADV_REPORT event in the same way as you get normal advertising data. You can see which type it is by checking the type field in the ble_gap_evt_adv_report_t.
Does S132v6.0 could do it? I have set the active field of the ble_gap_scan_params_t instance to 1, but I couldn't get the scan response data. The bit scan_response of ble_gap_adv_report_type_t is always 0.
That's strange. Have you made sure to configure the peripheral so that it has scan response data (essentially just populate ble_advertising_init_t::srdata)?
Yes, I'm sure about it.
You should not have to do anything more. Can you upload the code for your advertiser and scanner?
You should not have to do anything more. Can you upload the code for your advertiser and scanner?