From owner-freebsd-hackers Sun Aug 12 9:51: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 2EA1137B40B for ; Sun, 12 Aug 2001 09:50:58 -0700 (PDT) (envelope-from ticso@mail.cicely.de) Received: from mail.cicely.de (cicely20 [10.1.1.22]) by srv1.cosmo-project.de (8.11.0/8.11.0) with ESMTP id f7CGor335694; Sun, 12 Aug 2001 18:50:54 +0200 (CEST) Received: (from ticso@localhost) by mail.cicely.de (8.11.0/8.11.0) id f7CGp0708156; Sun, 12 Aug 2001 18:51:00 +0200 (CEST) Date: Sun, 12 Aug 2001 18:50:59 +0200 From: Bernd Walter To: Chris Ruffin Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: serial port programming problems Message-ID: <20010812185059.A8111@cicely20.cicely.de> References: <20010812121603.D838@surge> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010812121603.D838@surge>; from c.ruffin@ieee.org on Sun, Aug 12, 2001 at 12:16:03PM -0400 X-Operating-System: NetBSD cicely20.cicely.de 1.5 sparc 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 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