Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2001 18:50:59 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        Chris Ruffin <c.ruffin@ieee.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: serial port programming problems
Message-ID:  <20010812185059.A8111@cicely20.cicely.de>
In-Reply-To: <20010812121603.D838@surge>; from c.ruffin@ieee.org on Sun, Aug 12, 2001 at 12:16:03PM -0400
References:  <20010812121603.D838@surge>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 12, 2001 at 12:16:03PM -0400, Chris Ruffin wrote:
> 
> I'm having serious frustrating problems when programming the serial
> ports under FreeBSD.  Here's what I do:
> 
> - open the port
> - stty -f /dev/cuaa2 -echo -echoe raw
> - write "ATZ"
> - wait
> - read
> 
> This gives me back "ATZ\r\nOK\r\n", which is completely
> counter-intuitive to me.  I have downloaded other code and tested them
> with the same results, where it is clear in the code that the port is
> not expecting to see the data that we wrote to it, only the response.
> This code, however, did not mention being tested under FreeBSD.
> 
> Any ideas on what could be happening here?  Is this the way it is
> supposed to work?!?

if you told your modem/ta to echo - yes.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010812185059.A8111>