delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/04/09:44:14

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <20011204144118.20426.qmail@web9104.mail.yahoo.com>
Date: Tue, 4 Dec 2001 06:41:18 -0800 (PST)
From: ROLAND <roland_asmann AT yahoo DOT com>
Subject: Re: Serial Communicaton
To: andnews AT ihug DOT com DOT oz DOT au
Cc: djgpp AT delorie DOT com
In-Reply-To: <n59p0u4hb28mkau19n874cv7fdnrstvt96@4ax.com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--- Andrew Cottrell <andnews AT ihug DOT com DOT oz DOT au> wrote:
> to pick the correct DJGPP comms library. If you do
> not know how to
> answe these questions then please lee me know what
> you need the ASYNC
> library for? If you just need a data logger then

Well I've been going over the program again, and what
it does (basically) is this (don't mind the parameters
and stuff, 'cause I left some of them out):

f3=open(/dev/tty00) /*for reading*/

f4=open(/dev/tty00) /*for writing*/

while(somethingToSend)
   /*A call to a checkroutine, but I forgot the name*/
     write(f3,message);

/* The checkroutine */
while(someStatus)
     read(f3,reply)

I have to get this working on a PC.
I have been told (in this mailinglist) that I should
use a special package for serial communication for PC.
Can anybody help me with this?
One more thing, the original program was using
<sgtty.h> which I have replaced with <termios.h> and
<sys/ioctl.h>. If there is something wrong with this,
than please advise about it to!


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019