c programming: serial functions
Jeffrey John Kyllo
jkyllo at u.washington.edu
Wed Sep 29 08:45:55 PDT 1999
Actually, you need to open the serial port as a file. I believe you can
just open /dev/cua0 (com1) and then use fprintf or fscanf to write and
read, respectively. The file format part will be your job though. I hope
On Wed, 29 Sep 1999, Benjamin Honsinger wrote:
> Hey! Thanks for the great suggestion to try rh6.0, because it worked!
> It's much nicer, too.
> I need to write a program that basically puts characters onto a serial
> port (request), gets info off (recieve), converts the data to usable
> format, and writes it to a dated file. What I don't know is the
> get_serial_char function. I would think that this is in a library
> somewhere, but I don't know how to find it. Can someone please explain
> to me if I have to write this myself, or if it is already there, how
> it works and how to use it, for both get_char and send_char. My
> brother has explained to me how it would work in windows, but he
> didn't know about linux. Thanks in advance!
More information about the Linux