Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2001 10:14:42 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Chris Ruffin <c.ruffin@ieee.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: serial port programming problems
Message-ID:  <3B76B982.99713F85@elischer.org>
References:  <20010812121603.D838@surge>

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



The modem is echoing the ATZ back to you..
(if you do not want that then send an ATE0 first)

> --
> Chris Ruffin <c.ruffin@ieee.org>
> 
>   --------------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

-- 
+------------------------------------+       ______ _  __
|   __--_|\  Julian Elischer         |       \     U \/ / hard at work in 
|  /       \ julian@elischer.org     +------>x   USA    \ a very strange
| (   OZ    )                                \___   ___ | country !
+- X_.---._/    presently in San Francisco       \_/   \\
          v

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?3B76B982.99713F85>