-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Extend libusb(1?) usage to specify port=...
as a devfs path to the device node
#2066
Comments
FWIW, libusb1 as of 1.0.16 sports a But I agree that
will create
as well as set the owner of the raw (ETA: it is purely a coincidence that device path "1.1" has device number "11" as of the commands above. There is no relation between these digit strings.) Would you like me to try to raise a PR? |
Yes, thanks - I suppose that would be welcome (keeping In any case, if these methods only appeared from some intermediate version of the library, it sounds right to check for their existence in |
OK, I tried and I'm sorry, but I don't think I'm going to be able to raise a PR in the near term.
For my case, |
Currently our USB-capable drivers use
port=auto
(becauseups.conf
syntax requires some value) and a number of matchers to select the device at run-time. Discussion in #1273 and other issues suggested that libusb1 may have a way to actually specify a devfs path to the device node instead, to be on par with serial drivers usingport=/dev/cuaa
, orport=/dev/ttyS0
orport=/dev/ttyUSB1
(for USB->serial converter dongles) instead.This ticket is a reminder to investigate and hopefully implement this ability, with a caveat that depending on OS setup (use of dynamic enumeration, re-plugging of same or neighboring devices, port resets and sleeps, etc.) such paths might be or not be volatile.
The text was updated successfully, but these errors were encountered: