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

macOS - open fails for bluetooth device #427

Open
kypalmer opened this issue May 23, 2019 · 1 comment
Open

macOS - open fails for bluetooth device #427

kypalmer opened this issue May 23, 2019 · 1 comment

Comments

@kypalmer
Copy link

Hi!

Originally issued this in the cython-hidapi group, and they directed me this way.

Operating System: macOS

Behavior:

  • running python3 under sudo (REPL)
  • hid.enumerate succeeds -- shows all bluetooth and usb connected HID devices.
  • device.open succeeds in opening a USB keyboard (reads work)
  • device.open & device.open_path fail with a bluetooth keyboard. 'OSError: open failed'

Expected Behavior: a connection to be opened to any HID device in hid.enumerate()

reproduction:

>>> import hid
>>> hid.enumerate() // several HID devices listed
>>> h = hid.device()
>>> h.open(1452, 544) // apple USB keyboard -- works
>>> h.close()
>>> h.open(1452, 569) // apple bluetooth keyboard -- OSError: open failed

I assumed from Apple's bluetooth docs that bluetooth HID access would work the same as USB.

Any thoughts? It's my first attempt at using the library, so I may be doing something wrong.

Cheers

@jonathancross
Copy link

This repo is no longer maintained, see #431

In order to help keep that issue on the top, please do us a favor by closing your issue and reaching out on one of the other channels (libusb mailing list or opening an issue at libusb/hidapi).

Thanks!

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

2 participants