From owner-freebsd-usb@FreeBSD.ORG Tue May 17 16:49:49 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 856211065675 for ; Tue, 17 May 2011 16:49:49 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.4.199]) by mx1.freebsd.org (Postfix) with ESMTP id 491FA8FC1D for ; Tue, 17 May 2011 16:49:49 +0000 (UTC) Received: from corellia.vindaloo.com (ool-182c0165.dyn.optonline.net [24.44.1.101]) by mta4.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LLC00JJZLCFVOS0@mta4.srv.hcvlny.cv.net> for freebsd-usb@freebsd.org; Tue, 17 May 2011 12:19:27 -0400 (EDT) Received: from hadar.vindaloo.com (hadar.vindaloo.com [172.24.145.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by corellia.vindaloo.com (Postfix) with ESMTPSA id 0F34228460; Tue, 17 May 2011 12:19:27 -0400 (EDT) Date: Tue, 17 May 2011 12:19:25 -0400 From: Christopher Hilton In-reply-to: <201105171118.43267.hselasky@c2i.net> To: Hans Petter Selasky Message-id: <6CFC0E04-AF60-4983-A6FA-0AEC3CFAF75A@vindaloo.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.1084) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <201105171118.43267.hselasky@c2i.net> Cc: Charles Sprickman , freebsd-usb@freebsd.org Subject: Re: usb serial port device naming X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 16:49:49 -0000 On May 17, 2011, at 5:18 AM, Hans Petter Selasky wrote: > > 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 > Are you suggesting that one could use this information to config devd and perhaps automatically create a link to the correct port at USB attach time? I ask because I anticipate having to deal with this situation in the future. -- Chris Chris Hilton e: chris /at/ vindaloo /dot/ com ------------------------------------------------------------------------ "All I was doing was trying to get home from work!" -- Rosa Parks