From owner-freebsd-hackers Sun Aug 12 10:35:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 7711E37B40B for ; Sun, 12 Aug 2001 10:35:30 -0700 (PDT) (envelope-from julian@elischer.org) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA97541; Sun, 12 Aug 2001 10:23:44 -0700 (PDT) Message-ID: <3B76B982.99713F85@elischer.org> Date: Sun, 12 Aug 2001 10:14:42 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Chris Ruffin Cc: freebsd-hackers@freebsd.org Subject: Re: serial port programming problems References: <20010812121603.D838@surge> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 > > -------------------------------------------------------------------------------- > 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