280 lines
6.1 KiB
HTML
280 lines
6.1 KiB
HTML
|
<HTML
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>Introduction</TITLE
|
||
|
><META
|
||
|
NAME="GENERATOR"
|
||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
|
||
|
"><LINK
|
||
|
REL="HOME"
|
||
|
TITLE="Serial Programming HOWTO"
|
||
|
HREF="index.html"><LINK
|
||
|
REL="PREVIOUS"
|
||
|
TITLE="Serial Programming HOWTO"
|
||
|
HREF="index.html"><LINK
|
||
|
REL="NEXT"
|
||
|
TITLE="Getting started"
|
||
|
HREF="x56.html"></HEAD
|
||
|
><BODY
|
||
|
CLASS="SECT1"
|
||
|
BGCOLOR="#FFFFFF"
|
||
|
TEXT="#000000"
|
||
|
LINK="#0000FF"
|
||
|
VLINK="#840084"
|
||
|
ALINK="#0000FF"
|
||
|
><DIV
|
||
|
CLASS="NAVHEADER"
|
||
|
><TABLE
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TH
|
||
|
COLSPAN="3"
|
||
|
ALIGN="center"
|
||
|
>Serial Programming HOWTO</TH
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="index.html"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="80%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="bottom"
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="x56.html"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"></DIV
|
||
|
><DIV
|
||
|
CLASS="SECT1"
|
||
|
><H1
|
||
|
CLASS="SECT1"
|
||
|
><A
|
||
|
NAME="INTRO"
|
||
|
>1. Introduction</A
|
||
|
></H1
|
||
|
><P
|
||
|
> This is the Linux Serial Programming HOWTO. All about how to program
|
||
|
communications with other devices / computers over a serial line under
|
||
|
Linux. Different techniques are explained: Canonical I/O (only
|
||
|
complete lines are transmitted/received), asyncronous I/O, and waiting
|
||
|
for input from multiple sources.
|
||
|
</P
|
||
|
><P
|
||
|
> This is the first update to the initial release of the Linux Serial
|
||
|
Programming HOWTO. The primary purpose of this update is to change the
|
||
|
author information and convert the document to DocBook format. In terms
|
||
|
of technical content, very little if anything has changed at this time.
|
||
|
Sweeping changes to the technical content aren't going to happen
|
||
|
overnight, but I'll work on it as much as time allows.
|
||
|
</P
|
||
|
><P
|
||
|
> If you've been waiting in the wings for someone to take over this HOWTO,
|
||
|
you've gotten your wish. Please send me any and all feedback you have,
|
||
|
it'd be very much appreciated.
|
||
|
</P
|
||
|
><P
|
||
|
> All examples were tested using a i386 Linux Kernel 2.0.29.
|
||
|
</P
|
||
|
><DIV
|
||
|
CLASS="SECT2"
|
||
|
><H2
|
||
|
CLASS="SECT2"
|
||
|
><A
|
||
|
NAME="COPYRIGHT"
|
||
|
>1.1. Copyright Information</A
|
||
|
></H2
|
||
|
><P
|
||
|
> This document is copyrighted (c) 1997 Peter Baumann,
|
||
|
(c) 2001 Gary Frerking and is distributed under the terms of
|
||
|
the Linux Documentation Project (LDP) license, stated below.
|
||
|
</P
|
||
|
><P
|
||
|
> Unless otherwise stated, Linux HOWTO documents are copyrighted
|
||
|
by their respective authors. Linux HOWTO documents may be
|
||
|
reproduced and distributed in whole or in part, in any medium
|
||
|
physical or electronic, as long as this copyright notice is
|
||
|
retained on all copies. Commercial redistribution is allowed and
|
||
|
encouraged; however, the author would like to be notified of any
|
||
|
such distributions.
|
||
|
</P
|
||
|
><P
|
||
|
> All translations, derivative works, or aggregate works
|
||
|
incorporating any Linux HOWTO documents must be covered under this
|
||
|
copyright notice. That is, you may not produce a derivative work
|
||
|
from a HOWTO and impose additional restrictions on its
|
||
|
distribution. Exceptions to these rules may be granted under
|
||
|
certain conditions; please contact the Linux HOWTO coordinator at
|
||
|
the address given below.
|
||
|
</P
|
||
|
><P
|
||
|
> In short, we wish to promote dissemination of this
|
||
|
information through as many channels as possible. However, we do
|
||
|
wish to retain copyright on the HOWTO documents, and would like to
|
||
|
be notified of any plans to redistribute the HOWTOs.
|
||
|
</P
|
||
|
><P
|
||
|
> If you have any questions, please contact
|
||
|
<TT
|
||
|
CLASS="EMAIL"
|
||
|
><<A
|
||
|
HREF="mailto:linux-howto@metalab.unc.edu"
|
||
|
>linux-howto@metalab.unc.edu</A
|
||
|
>></TT
|
||
|
>
|
||
|
</P
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="SECT2"
|
||
|
><H2
|
||
|
CLASS="SECT2"
|
||
|
><A
|
||
|
NAME="DISCLAIMER"
|
||
|
>1.2. Disclaimer</A
|
||
|
></H2
|
||
|
><P
|
||
|
> No liability for the contents of this documents can be accepted.
|
||
|
Use the concepts, examples and other content at your own risk.
|
||
|
As this is a new edition of this document, there may be errors
|
||
|
and inaccuracies, that may of course be damaging to your system.
|
||
|
Proceed with caution, and although this is highly unlikely,
|
||
|
the author(s) do not take any responsibility for that.
|
||
|
</P
|
||
|
><P
|
||
|
> All copyrights are held by their by their respective owners, unless
|
||
|
specifically noted otherwise. Use of a term in this document
|
||
|
should not be regarded as affecting the validity of any trademark
|
||
|
or service mark.
|
||
|
</P
|
||
|
><P
|
||
|
> Naming of particular products or brands should not be seen
|
||
|
as endorsements.
|
||
|
</P
|
||
|
><P
|
||
|
> You are strongly recommended to take a backup of your system
|
||
|
before major installation and backups at regular intervals.
|
||
|
</P
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="SECT2"
|
||
|
><H2
|
||
|
CLASS="SECT2"
|
||
|
><A
|
||
|
NAME="NEWVERSIONS"
|
||
|
>1.3. New Versions</A
|
||
|
></H2
|
||
|
><P
|
||
|
> As previously mentioned, not much is new in terms of technical
|
||
|
content yet.
|
||
|
</P
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="SECT2"
|
||
|
><H2
|
||
|
CLASS="SECT2"
|
||
|
><A
|
||
|
NAME="CREDITS"
|
||
|
>1.4. Credits</A
|
||
|
></H2
|
||
|
><P
|
||
|
> The original author thanked Mr. Strudthoff, Michael Carter, Peter Waltenberg,
|
||
|
Antonino Ianella, Greg Hankins, Dave Pfaltzgraff, Sean Lincolne, Michael Wiedmann,
|
||
|
and Adrey Bonar.
|
||
|
</P
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="SECT2"
|
||
|
><H2
|
||
|
CLASS="SECT2"
|
||
|
><A
|
||
|
NAME="FEEDBACK"
|
||
|
>1.5. Feedback</A
|
||
|
></H2
|
||
|
><P
|
||
|
> Feedback is most certainly welcome for this document. Without
|
||
|
your submissions and input, this document wouldn't exist. Please
|
||
|
send your additions, comments and criticisms to the following
|
||
|
email address : <TT
|
||
|
CLASS="EMAIL"
|
||
|
><<A
|
||
|
HREF="mailto:gary@frerking.org"
|
||
|
>gary@frerking.org</A
|
||
|
>></TT
|
||
|
>.
|
||
|
</P
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="NAVFOOTER"
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"><TABLE
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="index.html"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="index.html"
|
||
|
>Home</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="x56.html"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
>Serial Programming HOWTO</TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
> </TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
>Getting started</TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></DIV
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|