Message-ID: <38F9E4C1.F0408322@right.on>
Date: Sun, 16 Apr 2000 17:05:21 +0100
From: Benedict JM Ibbs <yeah@right.on>
X-Mailer: Mozilla 4.51 [en] (Win95; I)
X-Accept-Language: en-GB,en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: serial port access
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 20
X-Report: Report abuse to abuse@vip.uk.com
X-Original-NNTP-Posting-Host: 194.176.194.174
NNTP-Posting-Host: 10.250.101.2
X-Trace: 16 Apr 2000 17:07:34 GMT, 10.250.101.2
X-Report: Report abuse to abuse@vip.uk.com
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.ecn.ou.edu!newsfeed.berkeley.edu!diablo.theplanet.net!newspeer.clara.net!news.clara.net!newsfeed.icl.net!iclnet!news1.vip.uk.com!10.250.101.2
Xref: news.adfa.oz.au comp.os.minix:35074


as a novice c user, i'm trying to write som simple routines to send at
commands to my hayes modem on com2.
        to test that my method worked, i started with two simple
functions, run
in separate programs in different virtual terminals, along these lines:
1.open device file for write,
        loop, getchar from stdin, putc to serial device.
2.open device file for read,
        loop, getc from device file, putc to stdout.

so, if i type 'at' in (1), then i would hope to get 'OK' in (2). however
instead i just get an echo of what i typed. am i using the wrong
functions to read/write from the com ports? are there any serial
specific fnctions for doing this?

i ould be grateful for any help/suggestions.
        thankyou,
                ben ibbs

