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

RFE: device path: bus/addr/port #58

Open
Andrei-Pozolotin opened this issue Jun 5, 2018 · 3 comments
Open

RFE: device path: bus/addr/port #58

Andrei-Pozolotin opened this issue Jun 5, 2018 · 3 comments

Comments

@Andrei-Pozolotin
Copy link

please expose libusb/usb4java compatible device path: bus/addr/port

for example, see: usb4java/usb4java-javax#10

@nyholku
Copy link
Owner

nyholku commented Jun 6, 2018

usb4java is based on libusb. Last time I checked libusb source code the device path was not available on all platforms. I'm not willing to add a feature that is not cross platform.

@Andrei-Pozolotin
Copy link
Author

you expose public String getDeviceId()
https://github.com/nyholku/purejavahidapi/blob/master/src/purejavahidapi/HidDeviceInfo.java#L159

which looks like /dev/bus/usb/${bus}/${addr}

and is conceptually identical to libusb parameters ${bus}/${addr}

so essentially I am asking for unified platform-agnostic ${bus}/${addr} extract

@nyholku
Copy link
Owner

nyholku commented Jun 7, 2018

Yes, but the 'agnostic' is the problem, I do not see how to implement 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

2 participants