Date: Tue, 19 Nov 2019 15:11:45 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Ed Maste <emaste@freebsd.org>, Oleksandr Rybalko <ray@ddteam.net> Cc: "O'Connor, Daniel" <darius@dons.net.au>, freebsd-usb@freebsd.org Subject: Re: USB serial ports by serial number Message-ID: <879a72e2-a54f-ab87-039b-0ff9fa559e34@selasky.org> In-Reply-To: <CAPyFy2BoVa3eto3W3oteu0bDzKm42KA0Rcytf5pVLj-0drqOYQ@mail.gmail.com> References: <CC980A9B-8F41-4C2A-A729-2CC690DFDA7E@dons.net.au> <CAJ1Oi8HeyBvn4UYSDAh8gGxj0hPv-vgFZ9ArNX95CTniuQa80g@mail.gmail.com> <CAPyFy2BoVa3eto3W3oteu0bDzKm42KA0Rcytf5pVLj-0drqOYQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-10-08 16:20, Ed Maste wrote: > On Thu, 3 Oct 2019 at 02:43, Oleksandr Rybalko <ray@ddteam.net> wrote: >> >> Hi, >> >> Looks like you are lucky guy :) >> Most of USB-serial devices have "very stable" serial number :) >> more than 50% have S/N "0123456789". > > cp210x USB-serial devices are ubiquitous and cheap and it's easy to > set the serial number. > > I have a trivial port of the 'cp210x-cfg' tool at > https://github.com/emaste/cp210x-cfg. Hi, How about the following: We can add a TUNEABLE search to every USB device attach, which if set, will serve as the base unit number for that device. Then you could simply add to /boot/loader.conf : hint.usb.0.1.1.1.0.unit=128 hint.usb.0.1.1.2.0.unit=129 These numbers can be printed by usbconfig for example, based on: 1) Host controller number [0..xxx] 2) Array of USB port numberr [1.255] 3) Interface index number [0..xxx] To help setting up the system. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?879a72e2-a54f-ab87-039b-0ff9fa559e34>