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

Mac OS X 10.10.5, can't open Device #23

Open
atom2626 opened this issue Apr 6, 2017 · 1 comment
Open

Mac OS X 10.10.5, can't open Device #23

atom2626 opened this issue Apr 6, 2017 · 1 comment

Comments

@atom2626
Copy link

atom2626 commented Apr 6, 2017

I'm new to Mac, very experienced Linux.

I developed a Python wrapper over hidapi for my custom device on Linux. Everything worked fine. I thought I was going to be able to port it over the Mac OS X. Oh boy...

I really don't know what is going wrong, I can enumerate the devices, but I simply can't open my device.
Things I tried to open using serial (I tried to use the reference obtained during enumeration and I tried mac address with various fomarts using :, using -, using no delimiter)
I tried in C (calling hidapi directly) and in python, in both cases, I get a cannot open device.

What I'm curious about is that I read that an IO manager was added at some point in OS X. Could this be the problem. At this point, I'm thinking about redoing my SDK by calling direclt with the Apple API:
(https://developer.apple.com/library/content/documentation/DeviceDrivers/Conceptual/HID/overview/overview.html#//apple_ref/doc/uid/TP40000970-CH203-CJAHEAFF)

I wonder if an error in the HID Descriptor could prevent me from accessing my device.

If anyone got it working with an equivalent OS X version or has any clues as to what might be wrong, feel free to drop a line here.

-Fred

@atom2626
Copy link
Author

atom2626 commented Apr 6, 2017

Ok, I figured it out. The issue was that my device implements both A2DP and HID services. The Mac attach itself to the A2DP and probably lock the handle to the Bluetooth device, in doing so.

When I deactivated the A2DP, I was able to open the HID handle. Now I still don't know how I'm going to get both A2DP and HID to work at the same time (it works on Linux), but that's a problem for tomorrow.

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

No branches or pull requests

1 participant