Skip to content
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

Observer: Add support for BLE active scanning #4

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

fkleon
Copy link
Owner

@fkleon fkleon commented Jul 18, 2024

Add support for active scanning as fallback.

While passive scanning is preferred, it's not always working reliably for me. I tested on two different systems, of which one works fine, and the other doesn't:

  • ✅ Ubuntu 22.04, Linux Kernel 6.5, BlueZ 5.64
    Works as expected.
  • ❌ Debian Bookworm, Linux Kernel 6.7, BlueZ 5.66
    Only receives first advertisement (but not subsequent updates for manufacturer data changes):

There are some bug reports in various places upstream (in bleak, bluez and kernel-bluetooth) about only the first advertisement being received correctly when only the manufacturer data changes between advertisements. As far as I can tell these should all be resolved in the above versions though. Maybe some hardware quirk?

@fkleon fkleon self-assigned this Jul 18, 2024
Base automatically changed from feature-vhub to main July 19, 2024 10:45
@fkleon fkleon merged commit 57c16af into main Jul 19, 2024
2 checks passed
@fkleon fkleon deleted the feature-active-scan branch July 19, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant