Closed smartavionics closed 4 years ago
Can you confirm, that you're opening the same interface (hid_device_info->interface_number
) on each platform?
Also, please check is it related to some known limitations (at least on Windows): https://github.com/libusb/hidapi/issues/61.
Can you confirm, that you're opening the same interface (hid_device_info->interface_number) on each platform?
I believe I did. In fact, I tried explicitly specifying the interface number and none worked.
Also, please check is it related to some known limitations (at least on Windows): #61.
Given that the same spacemouse works quite happily when plugged in using the direct USB cable instead of the Universal Receiver, I don't think it's the same problem. But, perhaps it is?
I believe I did. In fact, I tried explicitly specifying the interface number and none worked.
I'd suggest you check what is "correct" interface number on Linux, where you can get it to work, so you know exactly which one.
I don't think it's the same problem. But, perhaps it is?
Maybe not. Maybe it is related, but not directly. Windows/macOS native HID API has its limitations (for security reasons) when it comes to Keyboard/Mouse devices, you're not the first one who has issues with it.
Unfortunately I can't help you much more. Maybe someone else from the community will.
I'd suggest you check what is "correct" interface number on Linux, where you can get it to work, so you know exactly which one.
Good idea, I will do that.
Unfortunately I can't help you much more. Maybe someone else from the community will.
Thanks anyway for your assistance. Every little helps!
I found the problem, on Windows (and probably MacOS too), I needed to match the usage page and usage to 1 and 8 respectively.
Hi, I'm using hidapi (via cython-hidapi) to access a 3dConnexion Spacemouse. The mouse is supplied with a USB Universal Receiver. On Linux, I can open this device and read from it quite happily. But on both Windows and MacOS, although I can open the device, no data is ever returned from a read. I am opening using the path returned from enumeration. Also, on both Windows and MacOS, if I plug the same mouse into the computers using a USB cable, they both get mouse data OK (of course, they are then using a different vid:pid). I don't really know that much about USB, HID, etc. so I am hoping someone can suggest where the problem lies.
Here's what lsusb -v on Linux says about the device...
Thanks.