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

Bluetooth discovery doesn't work on macOS Monterey #224

Closed
gbaranski opened this issue Nov 2, 2021 · 5 comments
Closed

Bluetooth discovery doesn't work on macOS Monterey #224

gbaranski opened this issue Nov 2, 2021 · 5 comments
Assignees
Labels
bug Something isn't working corebluetooth (macos/ios) Issues related to the MacOS/iOS CoreBluetooth impl

Comments

@gbaranski
Copy link

Describe the bug
Bluetooth discovery doesn't work on MacOS Monterey

Expected behavior
Scanning does discover devices.

Actual behavior
Scanning doesn't discover any devices.

Additional context
Running on macOS Monterey. Tested using few terminal emulators, permissions are granted. It works on macOS Big Sur. Probably related to hbldh/bleak#635 and https://stackoverflow.com/questions/69661809/no-name-or-address-cbcentralmanager-no-longer-working-on-macos-12

@gbaranski gbaranski added the bug Something isn't working label Nov 2, 2021
@qwandor qwandor added the corebluetooth (macos/ios) Issues related to the MacOS/iOS CoreBluetooth impl label Nov 2, 2021
@subtle-supernova
Copy link
Contributor

I've confirmed this is still an issue in MacOS 12.1. I tried to pass a UUID to ScanFilter similar to what was outlined here: hbldh/bleak@5e1a9b3 with something like

let scan_filter = ScanFilter{services: vec!(uuid_from_u16(0xFDCE))};

Of course I could have done that way wrong as this is my first time doing anything with bluetooth in my life, but decided to add this here in case someone stumbles upon a working solution using ScanFilter or this is useful in some way.

@qdot
Copy link
Contributor

qdot commented Dec 15, 2021

afaik we don't actually use the scanfilter for anything but WebBluetooth right now. We'll need to add it to macOS support I think.

@psifertex
Copy link

FYI, based on hbldh/bleak#720 (comment)

I gave it a try by creating a signing certificate via key chain / create self-signed code signing cert

Then:

codesign -f -o runtime --timestamp -s "Signing Certificate Name" Bundle.app

And then it works fine!

@metsis
Copy link

metsis commented Mar 17, 2022

This seems to work again in macOS Monterey 12.3.

@qdot
Copy link
Contributor

qdot commented Jan 7, 2023

This works fine on Monterey and is being distributed as part of programs now, closing.

@qdot qdot closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working corebluetooth (macos/ios) Issues related to the MacOS/iOS CoreBluetooth impl
Projects
None yet
Development

No branches or pull requests

6 participants