Quote:
Originally Posted by cwedison
Does anyone know of any books on serial port programming that covers programming in C in Linux?
|
The concept of serial port programming (or any hardware port) being described in terms of a programming language seems strange to me. That sort of information comes from hardware specification books and books that describe the communications protocol. The programming language is irrelevant. In any case it has to be a low level language which means either assembly or C with perhaps some assembly subroutines mixed in.
I own a book which explains serial port specifications and communications protocols. It is called "The Modem Reference", second edition, by Michael A. Banks, ISBN 0-13-589862-5, published in 1991. The book explains how to communicate with a modem on a serial port. If the device that you want to communicate with is not a modem then you will also need the hardware specifications of the device that you want to use on the serial port.
If you want a programming example of using a serial port look at the Linux kernel's code for a generic dial-out modem.
-----------------------
Steve Stites