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

EPIPE errors when accessing devices #10

Open
Flameeyes opened this issue Jun 29, 2016 · 3 comments
Open

EPIPE errors when accessing devices #10

Flameeyes opened this issue Jun 29, 2016 · 3 comments

Comments

@Flameeyes
Copy link

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..)

@boombuler
Copy link
Owner

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

@nitram509
Copy link
Contributor

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.

@titanous
Copy link

titanous commented Aug 3, 2016

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.

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

4 participants