From owner-freebsd-usb@FreeBSD.ORG Mon Dec 14 07:42:05 2009 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 791E6106566B for ; Mon, 14 Dec 2009 07:42:05 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7488FC21 for ; Mon, 14 Dec 2009 07:42:05 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 3C3981CC5C; Mon, 14 Dec 2009 08:42:04 +0100 (CET) Date: Mon, 14 Dec 2009 08:42:04 +0100 From: Ed Schouten To: Trevor Blackwell Message-ID: <20091214074204.GW64905@hoeg.nl> References: <43EC7D78-31E5-4B86-9316-002AE650727A@tlb.org> <200912111038.06875.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AOVdNAQjoPfa0oJU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-usb@freebsd.org Subject: Re: USB serial 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: Mon, 14 Dec 2009 07:42:05 -0000 --AOVdNAQjoPfa0oJU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Trevor, * Trevor Blackwell wrote: > I can't seem to find a way to match USB serial ports & tty names. I > have two serial USB devices, which I can distinguish easily from > "usbconfig show_ifdrv" >=20 > >=20 > and they result in two ttys: > /dev/cuaU0 > /dev/cuaU1 Be sure to keep in mind: the `real' TTY devices are ttyU0 and ttyU1. The cua* devices are callout devices, which unlike the tty* devices don't wait for a carrier detect signal during open(). My opinion is that the USB serial driver shouldn't use a bitmask to keep track of which unit number are available, because we've got a nice KPI for that: http://www.freebsd.org/cgi/man.cgi?query=3Dnew_unrhdr Unfortunately I cannot answer your question. Hopefully Hans can. ;-) Cheers, --=20 Ed Schouten WWW: http://80386.nl/ --AOVdNAQjoPfa0oJU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksl7EwACgkQ52SDGA2eCwU/UwCdFBjvg00/N7vgWJA8hVsPR0On 0QIAn0s17C3ZhyZPJWtLXQDIjuV5TWr1 =QU0O -----END PGP SIGNATURE----- --AOVdNAQjoPfa0oJU--