Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2019 09:31:57 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        "O'Connor, Daniel" <darius@dons.net.au>, Oleksandr Rybalko <ray@ddteam.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: USB serial ports by serial number
Message-ID:  <1f0a3207-89fd-0ddb-6049-91f114381386@selasky.org>
In-Reply-To: <40CAFE90-B8F6-4A9B-A6D0-671D2DCEED52@dons.net.au>
References:  <CC980A9B-8F41-4C2A-A729-2CC690DFDA7E@dons.net.au> <CAJ1Oi8HeyBvn4UYSDAh8gGxj0hPv-vgFZ9ArNX95CTniuQa80g@mail.gmail.com> <40CAFE90-B8F6-4A9B-A6D0-671D2DCEED52@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1f0a3207-89fd-0ddb-6049-91f114381386>