From owner-freebsd-stable@FreeBSD.ORG Tue Oct 14 14:19:32 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72BABBCF for ; Tue, 14 Oct 2014 14:19:32 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 472CD2AD for ; Tue, 14 Oct 2014 14:19:31 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Xe2we-0003EJ-RF; Tue, 14 Oct 2014 14:19:24 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s9EEJNYr046874; Tue, 14 Oct 2014 08:19:23 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18sG0cRTRE1lBV/6NygwkY5 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: STMicroelectronics USB serial controller From: Ian Lepore To: Pete French In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Tue, 14 Oct 2014 08:19:23 -0600 Message-ID: <1413296363.12052.384.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 14:19:32 -0000 On Tue, 2014-10-14 at 15:06 +0100, Pete French wrote: > Has anybody got any expereinec with these ? I am > playing around with a small device (an scrypt ASIC) > which presents itself to the OS as a serial port, using > this chipset. When I plug it in I get this: > > ugen0.2: at usbus0 > umodem0: on usbus0 > umodem0: data interface 1, has no CM over data, has no break > > So it thinks it is a USB modem as far as I can make out ? > I get a /dev/ttyU) device in /dev, but I do not think > the device should present istelf as a modem. I have > Linux software which is supposed to talk to > the chip via a tty, and this does nothing when > presented with the /dev/ttyU0 device. I also > cannot get anything out of it. > > I havent dug very far into it yet, but was wondering > if anyone had any ideas - this is the first time I've seen > 'umodem' come up. > > cheers, > > -pete. Try pointing that linux software at /dev/cuaU0 instead of ttyU0. The cua devices are "callout" and tty are "dialin" and the distinction is that the tty layer will block the open of a dialin tty until the modem carrier-detect is asserted. Since that isn't a real modem that's unlikely to happen, but it should always work to open the cua device. -- Ian