Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 1997 09:22:40 +1200 (NZST)
From:      Jonathan Chen <jonc@pinnacle.co.nz>
To:        Thomas Dean <tomdean@ix.netcom.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Serial Port
Message-ID:  <Pine.SGI.3.96.970922091901.16205C-100000@tui.pinnacle.co.nz>
In-Reply-To: <199709191750.KAA00710@celebris.tddhome>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.970922091901.16205C-100000>