> On 3 Oct 2019, at 17:01, Hans Petter Selasky <h...@selasky.org> wrote:
> 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.

Yes, that's why I match sernum to '.+' to skip those.

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

The problem is you can't modify some program to call a new API a lot of the 
time but it is usually trivial to change which serial port it's configured to 
use.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum


_______________________________________________
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to