The FAQ has information on sending and receiving info thru the serial port. My
Question is: How do I do the other end in C.
This is what I got the computer side of the serial cable:
port = open("/dev/ttyS3",O_RDWD); <- THis is from my head, not exact code.
read(port, buf,10); <- Same.
or
write(port,buf,10);
port = the serial device
buf is a char*
10 is a random number I made up.
Now how can I make the communications work?, is this code even headed in the
right direction????, any comments would be greatly appreciated.
Thanks
Benny
|