USB serial ports by serial number

Hans Petter Selasky hps at selasky.org
Thu Oct 3 07:32:50 UTC 2019


On 2019-10-03 08:56, O'Connor, Daniel wrote:
> Most of USB-serial devices have "very stable" serial number:)
> more than 50% have S/N "0123456789".

It is also allowed to have no serial number.

Maybe some kind of "lstty" would do.

-l  -  list all devices
-s  -  match by serial
-v  -  match by vendor
-p  -  match by product
-i  -  match by interface ID
-t  -  type [USB/PCI]

which simply output the tty number you need. Could be an API we could 
add to libusb.

--HPS


More information about the freebsd-usb mailing list