From owner-freebsd-usb@FreeBSD.ORG Wed Feb 16 09:49:43 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21B9D16A4CE for ; Wed, 16 Feb 2005 09:49:43 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D19143D3F for ; Wed, 16 Feb 2005 09:49:42 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j1G9nRGw024015 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 16 Feb 2005 10:49:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j1G9mh55040810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2005 10:48:44 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j1G9mhbZ001511; Wed, 16 Feb 2005 10:48:43 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j1G9mbdS001510; Wed, 16 Feb 2005 10:48:37 +0100 (CET) (envelope-from ticso) Date: Wed, 16 Feb 2005 10:48:37 +0100 From: Bernd Walter To: Marc Skarshinski Message-ID: <20050216094836.GB679@cicely12.cicely.de> References: <000201c5114a$064ba500$fc01320a@TERRAPIN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000201c5114a$064ba500$fc01320a@TERRAPIN> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: freebsd-usb@freebsd.org Subject: Re: ucom/uplcom question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 09:49:43 -0000 On Sat, Feb 12, 2005 at 04:30:07PM -0500, Marc Skarshinski wrote: > I am having timeout problems on 4.9-Stable using the ucom devices > provided by the "Prolific Technology PL2303 serial adapter (ATEN/IOGEAR > UC232A), rev 1.10/2.02" and also the "Prolific Technology Inc. > USB-Serial Controller, rev 1.10/3.00" driver. I am trying to read/write > to the port from a couple of shell scripts (one which cats the port, the > other which issues printf statements to the port) > > I think this has to do with improper port settings but I cannot get the > settings, issued stty commands, to persist across printfs to the port. > Are there locking devices which can/should be associated with these > devices, analogous to the cuala locking devices for a cuaa device? Under -current there are. But for your case it's just enough to keep the device open. e.g. with something like this: ( stty ... printf ... ... ) > /dev/ucom0 > Also, the man page for ucom states: "The ucom driver shows a behavior > like a tty", yet were this a standard serial port I would generally use > a cuaa device not a tty. Is a ucom suitable for controlling a device cuaa* is the device name for sio driver. Different names have ever existed for other drivers. And yes - cuaa* devices are ttys as well as ucom* devices. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de