question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding the scan.pattern filter, introduced in Bluez 5.54

See original GitHub issue
  • bleak version: 0.14.2
  • Python version: 3.9
  • Operating System: Debian
  • BlueZ version (bluetoothctl -v) in case of Linux: 5.55

Description

Would you be open to a PR that would introduce the scan.pattern filter that was introduced in Bluez 5.54 (https://git.kernel.org/pub/scm/bluetooth/bluez.git/log/?h=5.54). I’m interested in offloading some of the responsibility of MAC address filtering onto Bluez rather than on my Python code.

What I Did

Using bluetoothctl, by entering the following commands, you can see the type of functionality that I am interested in

bluetoothctl
menu scan
pattern AB:12 # only discover devices with a MAC address starting w/ AB:12
back
scan on

EDIT: added URL To 5.54 commits

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dlechcommented, Mar 22, 2022

It would also be nice to move DuplicateData so everything is in the same order as the BlueZ docs while we are touching this.

1reaction
dlechcommented, Mar 22, 2022

I see what you mean. It looks like we should add Discoverable as well. Happy to take a PR to add these.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding the scan.pattern filter, introduced in Bluez 5.54
I don't believe so. The bluezdbus scanner supports filtering on UUIDs, RSSI, DuplicateData, Pathloss and Transport. Unless you're referring to ...
Read more >
BlueZ-5.54 - Linux From Scratch!
Introduction to BlueZ. The BlueZ package contains the Bluetooth protocol stack for Linux. This package is known to build and work properly ...
Read more >
Bluetooth: SetDiscoveryFilter for filtered scanning - Linumiz
Filters are typically used to narrow down our search. By default “StartDiscovery” will scan for all the nearby bluetooth devices.
Read more >
Call StartDiscovery() through dbus without resetting the LE ...
With BlueZ D-Bus the Adapter API contains a SetDiscoveryFilter() method, which allows you to install a corresponding filter.
Read more >
Alpine Linux - Failed to start discovery: org.bluez.Error ...
Everything seems to be alive and kicking, but it just refuses to enable scan, no matter how many reboots, or restarting bluetooth service,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found