From owner-freebsd-questions Sun Sep 21 14:35:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA18246 for questions-outgoing; Sun, 21 Sep 1997 14:35:43 -0700 (PDT) Received: from iconz.co.nz (iconz.co.nz [202.14.100.2]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id OAA18233 for ; Sun, 21 Sep 1997 14:35:39 -0700 (PDT) Received: from news.iconz.co.nz (status.gen.nz [202.14.100.1]) by iconz.co.nz (8.6.12/8.6.10) with ESMTP id JAA15021; Mon, 22 Sep 1997 09:35:00 +1200 Received: (from uucp@localhost) by news.iconz.co.nz (8.8.5/8.8.5) with UUCP id JAA12442; Mon, 22 Sep 1997 09:35:00 +1200 Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.7/8.8.7) with ESMTP id JAA26976; Mon, 22 Sep 1997 09:22:40 +1200 (NZST) Received: from localhost (jonc@localhost) by tui.pinnacle.co.nz (8.8.7/8.8.7) with SMTP id JAA16239; Mon, 22 Sep 1997 09:22:40 +1200 (NZST) X-Authentication-Warning: tui.pinnacle.co.nz: jonc owned process doing -bs Date: Mon, 22 Sep 1997 09:22:40 +1200 (NZST) From: Jonathan Chen To: Thomas Dean cc: freebsd-questions@FreeBSD.ORG Subject: Re: Serial Port In-Reply-To: <199709191750.KAA00710@celebris.tddhome> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 19 Sep 1997, Thomas Dean wrote: > I am attempting to use a serial port to talk to a Gramin GPS 45XL. > > I can talk to the device, read and write data. The results make > sense. > > I am using /dev/cuaa0. > > I have one problem. The communications with the device are not > reliable. I execute an application to send the device a command and > read the results. It works. I issue the same command again and it > hangs. Actually, I use select() and it times out after 15 seconds. > Increasing the timeout to 100 seconds does not change things. How about enabling h/w flow-control with the tcsetattr() call? If I remember correctly the flags you use are CCTS_OFLOW and CRTS_IFLOW (check out the man entry). -- Jonathan Chen e-mail : jonc@pinnacle.co.nz Pinnacle Software Ltd Voice : +64.9.415.4460 Auckland, New Zealand Fax : +64.9.415.4250