From owner-freebsd-questions Mon Oct 15 16:52:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by hub.freebsd.org (Postfix) with ESMTP id 52AD837B403 for ; Mon, 15 Oct 2001 16:52:20 -0700 (PDT) Received: from pradeshc [196.2.33.11] by myrealbox.com with NIMS ModWeb Module; Mon, 15 Oct 2001 23:52:20 +0000 Subject: Programming modem: how to stop echo From: Pradesh Chanderpaul To: freebsd-questions@freebsd.org, Date: Mon, 15 Oct 2001 23:52:20 +0000 X-Mailer: NIMS ModWeb Module X-Sender: pradeshc MIME-Version: 1.0 Message-ID: <1003189940.697e9ff7pradeshc@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 comm= and I've just written. For example:- AT <-- I Write AT (1) -|__ I read back OK (2) -| I don't need to read line 1 of the output again. How do I do it. I've tried sleep()ing for a while, even after a tcflush(), to no avail. Any recommendations will be welcome. Regards Pradesh Chanderpaul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message