GithubHelp home page GithubHelp logo

Comments (20)

rhyst avatar rhyst commented on September 16, 2024 1

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.

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024 1

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:

Hallo Vincent,

vielen Dank für deine Geduld und deinen Feedback-Bericht. Wir glauben, dass dieses Problem mit den Updates für macOS behoben wurde.

Bitte überprüfe das Problem mit macOS 12.3 Beta 4 und aktualisiere deinen Feedback-Bericht mit deinen Ergebnissen. Melde dich dazu bei Feedback-Assistent-Website an an oder verwende die Feedback-Assistent-App. Bitte schließe diesen Bericht, wenn sich das Problem erledigt hat, oder gib uns Bescheid, wenn es weiterhin ein Problem für dich ist.

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

Someone noted that on on MacOS you cannot use the MAC address and instead you must use the UUID found with when running idasen-controller --scan. Have you tried that?

from linak-controller.

ash3rr avatar ash3rr commented on September 16, 2024

Yes, I did. I've connected the desk using BlueUtility, and then tried to run the scan.
The returned message is: Found 0 devices using hci0

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

Have you connected using the UUID rather than the mac address? The config you posted above is using the mac address.

from linak-controller.

ash3rr avatar ash3rr commented on September 16, 2024

How do you propose I get the UUID of the desk without installing XCode?
idasen-controller --scan does not return the UUID as listed in your documentation, rather only 'found 0 devices'.

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

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 --scan function doesn't return anything. You could try using the bleak library directly to see if that returns anything:

import asyncio
from bleak import BleakScanner

async def main():
    devices = await BleakScanner.discover()
    for d in devices:
        print(d)

asyncio.run(main())

https://bleak.readthedocs.io/en/latest/scanning.html

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

I can confirm the issue.
Using bluetillity I found my desks UUID and tried connecting to it using
Idasen-controller --mac-address <UUID>
The script says it can't find a desk under that mac address.
Using the real mac address doesn't work either.

It works perfectly on windows & linux but not on macOS

I'm willing to do more troubleshooting if you have any ideas

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

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.

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

Yes I ran the code and got absolutely no output.
After adding some print() statements I got to see my prints but no discovered devices.
I think the issue is with bleak and not your usage of it.

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

After some searching around on the bleak repo I found many (many!) comments about macOS 12.
There are workaround but nothing really usable in the context of a CLI.
I think you can close this because it is evident that the issue is with bleak and it won't be fixed in the near future.

References:
comment
issue
comment

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

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

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

I tried the code with the UUID & Mac address. Unfortunately neither worked.
I also tried it with the desk actively searching (holding the bt button for 3 seconds) and without.

But dropping the scanning when the Mac address is provided could still improve overall responsiveness I think

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

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 🤦‍♂️

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

RC3 is looking really good!
It doesn't solve this issues but it's overall a good performance improvement.
Do you have a timeline for the full release?

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

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!

from linak-controller.

dKemen avatar dKemen commented on September 16, 2024

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.

from linak-controller.

vniehues avatar vniehues commented on September 16, 2024

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:
Bildschirmfoto 2022-03-10 um 19 28 19

"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"

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

Ah nice, thank you for confirming! I will update the readme and close this issue soon.

from linak-controller.

rhyst avatar rhyst commented on September 16, 2024

Updated README

from linak-controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.