Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2011 11:18:43 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        Charles Sprickman <spork@bway.net>
Subject:   Re: usb serial port device naming
Message-ID:  <201105171118.43267.hselasky@c2i.net>
In-Reply-To: <alpine.OSX.2.00.1105170243500.1983@hotlap.nat.fasttrackmonkey.com>
References:  <alpine.OSX.2.00.1105170243500.1983@hotlap.nat.fasttrackmonkey.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 17 May 2011 09:00:00 Charles Sprickman wrote:
> Hello,
> 
> I recently started moving our console server from one box (4.11) to
> another (8.1).  The old box had some RocketPort PCI cards and a 16 port
> USB to serial adapter.  I moved the USB to serial device to the 8.1 box
> and added another 8 port USB to serial adapter.
> 
> I moved the 16 port box without a reboot, and then added the 8 port box.
> I started setting up conserver (console server software) with the new
> device names, and then decided perhaps a reboot to verify the device names
> "stuck" across reboots was in order.  Sure enough, on reboot the 8 port
> device preceded the 16 port - meaning my /dev/ttyU0 moved from being the
> first port on the 16 port box to being the first port on the 8 port box.
> 
> Is there anything I can do to "lock" these port assignments?  I suspect
> that on a reboot the order will stay the same, but if someone flips the
> ports around or unplugs either of these while the box is up all my console
> mappings will get scrambled.
> 
> Thanks,
> 
> Charles


Hi,

If you run 8-stable, there is some information you can lookup via sysctls of 
the USB devices, which tells you which port belongs to which device.

Use the serial number to identify your device, if your device has such a 
value.

usbconfig -d X.Y dump_device_desc

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105171118.43267.hselasky>