I am using BTool v1.42. It does able to scan for advertising data (legacy and extended both). However, I do not know how to send SCAN_REQUEST to a device using BTool.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am using BTool v1.42. It does able to scan for advertising data (legacy and extended both). However, I do not know how to send SCAN_REQUEST to a device using BTool.
Hi Mehul,
The BLE Stack does not publicly expose the ability to send SCAN_REQ or AUX_SCAN_REQ PDU's to specific devices. This is handled internally by the BLE Stack when you perform active scanning.
If your goal is to reduce the amount of results when performing active scanning in BTool, you can directly issue HCI commands to filter out results. See the GAP Scanner documentation in our user's guide for possible filtering capabilities. And to issue the HCI commands, you can find the command list under "Advanced Commands" -> GAP AE -> GapScan_xxx.
Regards,
Michael
I am unable to correlate what you have said and what I have asked.
I have Host Test firmware from the SDK and using the BTool application, I would like the Host Test to issue SCAN_REQUEST when it scans for the advertisement data. Which in turn should give me a SCAN_RESPONSE from the device in the BTool log window.
Do you know how to I enable the Hosts Test to send the SCAN_REQUEST? I jsut want to make sure what the device is responding in SCAN_RESPONSE.
When you press the scan button in BTool, it automatically sends a SCAN_REQUEST to each device it discovers. Nothing else needs to be enabled in host_test to perform scanning.
If an advertiser has scannable advertising enabled, the SCAN_RESPONSE data can be found in the BTool log under the "GAP_AdvertiserScannerEvent" event (EventID = GAP_EVT_ADV_REPORT).
Regards,
Michael
I respectfully disagree. Please see attached log file taken from the BTool scanning for advertisement. I do not see any scan response from the BLE devices. If the Host Test sends it internally, there must be SCAN_RESPONSE observed.
I have studied a bit more and found if I follow below steps, the scan response is received:
BTool sows Legacy_SCAN_RSP_to_ADV_IND_or_Data_Complete as scan response from the device.