-
Notifications
You must be signed in to change notification settings - Fork 49
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
Unable to connect using MacOS Monterey #33
Comments
Someone noted that on on MacOS you cannot use the MAC address and instead you must use the UUID found with when running |
Yes, I did. I've connected the desk using BlueUtility, and then tried to run the scan. |
Have you connected using the UUID rather than the mac address? The config you posted above is using the mac address. |
How do you propose I get the UUID of the desk without installing XCode? |
I propose that as the owner of a Mac that you are in a better position than me to find that out 😆 But more seriously I don't know why the
|
I can confirm the issue. It works perfectly on windows & linux but not on macOS I'm willing to do more troubleshooting if you have any ideas |
Thanks for the info. Would you be able to run the code snippet I posted above? I want to know if this is a problem with the idasen controller code or if its also in the bleak library. |
Yes I ran the code and got absolutely no output. |
After some searching around on the bleak repo I found many (many!) comments about macOS 12. |
Ah yeh I was just poking around those comments. It seems to be an issue with scanning though and the idasen controller code does a scan before connecting even if you provide a UUID/mac address. I can't remember why so maybe we can drop that and it will work. Could you try running something like this example code to connect to the desk without scanning https://github.com/hbldh/bleak/blob/develop/examples/get_services.py |
I tried the code with the UUID & Mac address. Unfortunately neither worked. But dropping the scanning when the Mac address is provided could still improve overall responsiveness I think |
That is a shame but I've just pushed a version without the preconnection scanning anyway. I think I assumed there was some benefit to already having the BLEDevice object but looking at the bleak code all it does is immediately extract the address string from it 🤦♂️ |
RC3 is looking really good! |
Just released it as 1.0.8, I was mostly doing the rcs as I often break the packages when uploading 😆 Still using this issue to track the mac os 12 bug. It seems like most people are raising that scanning does not work, but I'm unsure if that also means that other people are having connection issues. I think that might be worth raising on the Bleak repo at least to ask for clarification. |
Sounds good. I submitted a feedback to apple regarding the general issue that bluetooth over cli seems to get no permissions even when terminal is allowed bluetooth access. Let's hope for the best! |
Same issue here - neither using "get_services.py" with the UUID provided by Bluetility nor "idasen-controller --scan" works for me. I tried using "Remote Desk Control" from the Appstore and this app was able to connect. Would be happy if we could get feedback from apple or Bleak for this. |
Apple responded to my feedback. It's in German but basically they believe that issue is fixed in macOS 12.3 Beta 4. I currently have no way to check this because I need my Mac as stable as possible but if someone want's to try it out and give us feedback, that would be highly appreciated. Copy of the mail in German:
|
Today I found the time to update my Mac to the latest beta. The version I'm now running is the RC1 of 12.3 It works! 💯 Here's a quick screenshot of my terminal on 12.3: "Searching" means that I pressed the BT button on the controller for 3 seconds (led flashes quickly). @rhyst the solution to this issue is "update macOS to 12.3" |
Ah nice, thank you for confirming! I will update the readme and close this issue soon. |
Updated README |
I have created a config.yaml file in the library folder, but when I run the command:
idasen-controller --config "/Library/Application Support/idasen-controller/config.yaml"
I receive the error:
Scanning - Desk D8-7D-63-0D-91-32 Not Found
config.yaml looks like this:
mac_address: D8-7D-63-0D-91-32
stand_height: 1040
sit_height: 683
height_tolerance: 2.0
scan_timeout: 5
connection_timeout: 10
movement_timeout: 30
adapter_name: hci0
server_address": "127.0.0.1"
server_port: 9123
The text was updated successfully, but these errors were encountered: