Mail Archives: djgpp/2001/12/04/09:44:14
--- 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 -