-
Notifications
You must be signed in to change notification settings - Fork 58
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
LE Set Extended Scan Parameters on Raspberry PI / Raspian, bluez 5.50 #63
Comments
This is sadly due to BT 5.0 commands being supported from bluez version 5.51, have a look https://github.com/bluez/bluez/blob/6de4bdb957cdc85d89851420ab06ca8e226f8d4e/emulator/btdev.c#L415 |
@idaniel86, did you mean that BT 5.0 commands are not supported in |
@mrts I am saying that they are supported from bluez version 5.51 and are not supported in version 5.50 as is mentioned in the description of the issue. |
Ah, right, now I see. @matzrh, perhaps you can try to upgrade bluez from 5.50 to 5.51 and see if this fixes the issue? |
@idaniel86, I tested with Bluez 5.53 on Ubuntu 20.04 for Raspberry Pi 4, no luck and This is the code that I used: import signal
from beacontools.scanner import Monitor
def callback(bt_addr, rssi, packet, additional_info):
print("<%s, %d> %s %s" % (bt_addr, rssi, packet, additional_info))
monitor = Monitor(callback,
bt_device_id = 0,
device_filter = None,
packet_filter = None,
scan_parameters = {})
monitor.start()
signal.pause()
So I would conclude that the problem seems to be related to |
@mrts : Sorry, I was busy and did not get around to follow your suggestion to try and install a higher bluez version, also because I was afraid that it could break some other bt related stuff I had set up with udev discovery rules. |
First, I want to apologize for posting this here, but I could not find any good resources for BLE issues on bluez 5.5, Raspian etc.
I made the app work with a "hack" in the code in scanner.py and changed
self.hci_version = self.get_hci_version()
toself.hci_version = 8 #self.get_hci_version()
, thus tricking the code into believing I am running bluetooth version 4.8.If I reverse it to the original (correct) version, I get in btmon the following errors
Question: Do I need to enable something special to make the extended commands work, start bluetoothd with a special option?
hardware: Raspberry PI 4B, supposedly BT 5 enabled. Kernel 5.10.11-v7l+, Python 3.7.3
edit: my result for hciconfig -a:
The text was updated successfully, but these errors were encountered: