3 ms·
Question for author: I've used those 16-port USB hubs in some projects and it's really a nice thing to be able to address a device on a particular position in t
by joezydeco 1y ago
Question for author: I've used those 16-port USB hubs in some projects and it's really a nice thing to be able to address a device on a particular position in that hub.
But in a typical Linux situation you're at the mercy of the host controller in your PC which can be one of a hundred mystery parts, so the ports enumerate with different IDs between machines. We've had to decipher port numbers by hand every time we deploy on a different system.
Do you know of any abstraction library that can simplify that at all?
- jononor 1y agoThere is topological naming available about USB ports from the Linux kernel. So one can find what device was connected to which hubs, and which root hub that hub was on, etc. See lsusb -t, and the device paths exposed in udev. Old blogpost of mine about it: https://www.jonnor.com/tag/usb/ https://www.jonnor.com/tag/usb/