hid icon indicating copy to clipboard operation
hid copied to clipboard

EPIPE errors when accessing devices

Open Flameeyes opened this issue 8 years ago • 3 comments

I'm not entirely sure what is missing, but I suspect it might be a missing claim. Indeed enumerating devices it's not reporting those that are actually opened (e.g. by X11), and if I go and check, it turns out it can't get the iProduct/iManufacturer with an EPIPE error.

If I force it to return something and try to WriteFeature, I also get an EPIPE error. This is unfortunate as it makes it essentially unusable for what I was trying to use it for :(

Equivalent C code working on the same device through the hidapi library works perfectly fine (I'm lost as to why you're not just wrapping that, at this point..)

Flameeyes avatar Jun 29 '16 22:06 Flameeyes

Sorry I'm not really into the linux code, maybe @nitram509 could help since he wrote it?

boombuler avatar Jun 30 '16 13:06 boombuler

Currently the libusb is used, AFAIK it is supported on more Linux platforms.

In order to better understand, what's going wrong, would you please explain, what you're trying to do.

Out of curiosity, I'm also interested in you C-Code equivalent ... if it's possible for you to post it public, of course.

nitram509 avatar Jul 03 '16 10:07 nitram509

I've reimplemented Linux support using hidraw instead of libusb in my fork: https://github.com/flynn/hid

WriteFeature isn't implemented, but the ioctl should be quite easy to add if anyone wants to pull it upstream and do that.

titanous avatar Aug 03 '16 03:08 titanous