From owner-freebsd-questions Mon Oct 15 17:29: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id EE34237B409 for ; Mon, 15 Oct 2001 17:29:00 -0700 (PDT) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 9A7EF2B6AD; Tue, 16 Oct 2001 02:28:57 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id AD9DA7F0; Tue, 16 Oct 2001 10:28:51 +1000 (EST) Date: Tue, 16 Oct 2001 10:28:51 +1000 From: Edwin Groothuis To: Pradesh Chanderpaul Cc: freebsd-questions@freebsd.org Subject: Re: Programming modem: how to stop echo Message-ID: <20011016102851.T2865@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Pradesh Chanderpaul , freebsd-questions@freebsd.org References: <1003189940.697e9ff7pradeshc@myrealbox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1003189940.697e9ff7pradeshc@myrealbox.com>; from pradeshc@myrealbox.com on Mon, Oct 15, 2001 at 11:52:20PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Oct 15, 2001 at 11:52:20PM +0000, Pradesh Chanderpaul wrote: > Hi All > > I am accessing a modem via a serial port using a program that I'm writing. > > When I send an AT command to the modem, subsequent reads read > back the command I've just written. For example:- That's standard behaviour of modems when they're in command mode. > I don't need to read line 1 of the output again. How do I do it. You can do two things: - Live with it, that's the easiest. It's how modems default behave. - send an ATE0 and an AT&W and you will never see it again. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message