-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable active scan and receive type 4 scan response packets #28
Comments
Hi, No I have not tried that. That bit of code (HCI_Cmd_LE_Set_Scan_Params) was lifted from scapy. Not sure I have a device that would reply to that type of request.... Also not sure if the extra packet has to be actively sent to the peripheral or if the lower level would take care of that... Cheers, |
Hi, I've already added the Blue Maestro device format to this library which also has extra information in the scan response so I would be interested in this also. I've done a HCI trace using the btmon tool. I started the scan with bluetoothctl.
@deepcoder have you confirmed if both of these reports appear in the HCI trace when the scan is launched with aioblescan? |
I have done a little bit more research on this. Running a btmon HCI trace I have confirmed that aioblescan does not cause the SCAN_RSP (0x04) event types to happen by default Changing the aioblescan/aioblescan/aioblescan.py Lines 799 to 828 in ac3fbcb
The only place this gets called from is here where there is no option to change the parameters: aioblescan/aioblescan/aioblescan.py Lines 1321 to 1324 in ac3fbcb
In hindsight, that looks like it was @deepcoder initial point, just took me a while to get up to speed. @frawau: If you are interested, I could look at getting a Blue Maestro Pebble shipped to you |
Hi, The easiest way would be to subclass BLEScanRequester and to overload "connection_made" so you can enable active scanning. Wouldn't it? |
Hello,
It appears that you have the ability to enable active scanning in HCI_Cmd_LE_Set_Scan_Params .
Have you tried this with your code and decoded these scan response packets?
Thanks in advance,
Dave
REF:
Scan Response
In addition to the 31 bytes of advertising data, the device doing the scanning can request the scan response data. This does not require authentication, and does not require making a connection. The scan response data is an additional 31 bytes of data the peripheral can return to the scanning device, though it takes an extra set of packets to and from the peripheral to request and receive it.
The text was updated successfully, but these errors were encountered: