Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 5770

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE> Serial HOWTO: Introduction</TITLE>
 <LINK HREF="Serial-HOWTO-2.html" REL=next>

 <LINK HREF="Serial-HOWTO.html#toc1" REL=contents>
</HEAD>
<BODY>
<A HREF="Serial-HOWTO-2.html">Next</A>
Previous
<A HREF="Serial-HOWTO.html#toc1">Contents</A>
<HR>
<H2><A NAME="s1">1.</A> <A HREF="Serial-HOWTO.html#toc1">Introduction</A></H2>

<P> This HOWTO covers basic info on the Serial Port and multiport
serial cards.  It contains much more information in it than most
people need to know and most people are able to use the serial port
without reading this HOWTO.  But if you're having problems or just
want to understand how it works, this is one place to find out about
it.  </P>
<P>This HOWTO is about the slow original serial port which uses a UART
chip and is sometimes called a "UART serial port" to differentiate it
from the newer types of serial devices: Universal Serial Bus or
Firewire.  Information specific to devices which use serial ports:
modems, text-terminals, infrared devices, and a few printers are found
in Modem-HOWTO, Text-Terminal-HOWTO, Infrared-HOWTO, and
Printing-HOWTO.  Info on getty (the program that runs the login
process or the like) has been also moved to other HOWTOs since mgetty
and uugetty are best for modems while agetty is best for
text-terminals.  If you are dealing with a modem, text terminal,
infrared device, or printer, then you may not need to consult this
HOWTO.  But if you are using the serial port for some other device,
using a multiport serial card, trouble-shooting the serial port
itself, or want to understand more technical details of the serial
port, then you may want to use this HOWTO as well as some of the other
HOWTOs.  (See 
<A HREF="#related_howtos">Related HOWTO's</A>)  This
HOWTO lists info on various multiport serial cards.  This HOWTO
addresses Linux running on PCs (ISA and/or PCI buses), although it
might be valid for other architectures.</P>

<H2><A NAME="ss1.1">1.1</A> <A HREF="Serial-HOWTO.html#toc1.1">Copyright, Disclaimer, &amp; Credits</A>
</H2>

<H3>Copyright</H3>

<P>Copyright (c) 1993-1997 by Greg Hankins, (c) 1998-2005 by David S.
Lawyer 
<A HREF="mailto:dave@lafn.org">mailto:dave@lafn.org</A></P>
<P>Please freely copy and distribute (sell or give away) this document
in any format.  Send any corrections and comments to the document
maintainer.  You may create a derivative work and distribute it
provided that you:</P>
<P>
<OL>
<LI> If it's not a translation: Email a copy of your derivative work
(in a format LDP accepts) to the author(s) and maintainer (could be
the same person).  If you don't get a response then email the LDP
(Linux Documentation Project): submit@en.tldp.org.</LI>
<LI>License the derivative work in the spirit of this license or use
GPL.  Include a copyright notice and at least a pointer to the
license used.</LI>
<LI>Give due credit to previous authors and major contributors.</LI>
</OL>
</P>
<P>If you're considering making a derived work other than a
translation, it's requested that you discuss your plans with the
current maintainer.</P>

<H3>Disclaimer</H3>

<P> While I haven't intentionally tried to mislead you, there are
likely a number of errors in this document.  Please let me know about
them.  Since this is free documentation, it should be obvious that I
cannot be held legally responsible for any errors.</P>

<H3>Trademarks.</H3>

<P> Any brand names (starts with a capital letter such as MS Windows)
should be assumed to be a trademark).  Such trademarks belong to their
respective owners. </P>


<H3>Credits</H3>

<P> Most of the original Serial-HOWTO was written by  Greg Hankins.
<A HREF="mailto:gregh@twoguys.org">mailto:gregh@twoguys.org</A>
He also rewrote many contributions by others in order to maintain
continuity in the writing style and flow.  He wrote: ``Thanks to
everyone who has contributed or commented, the list of people has
gotten too long to list (somewhere over one hundred).  Special thanks
to Ted Ts'o for answering questions about the serial drivers.''
Approximately half of v2.00 was from Greg Hankins HOWTO and the other
half were additions by David Lawyer.  Ted Ts'o has continued to be
helpful.  In Jan. 2006 "Charles Brockman" reviewed it for typos which
resulted in many typos being fixed.</P>

<H2><A NAME="ss1.2">1.2</A> <A HREF="Serial-HOWTO.html#toc1.2">New Versions of this Serial-HOWTO</A>
</H2>

<P> New versions of the Serial-HOWTO will be available to
browse and/or download at LDP mirror sites.  For a list of mirror
sites see: 
<A HREF="http://www.tldp.org/mirrors.html">http://www.tldp.org/mirrors.html</A>.
Various formats are available.  If you only want to quickly check the
date of the latest version look at 
<A HREF="http://www.tldp.org/HOWTO/Serial-HOWTO.html">http://www.tldp.org/HOWTO/Serial-HOWTO.html</A> and compare
it to this version: v2.25 January 2007 .</P>

<H2><A NAME="ss1.3">1.3</A> <A HREF="Serial-HOWTO.html#toc1.3">New in Recent Versions</A>
</H2>

<P> For a full revision history going back to the time I started
maintaining this HOWTO, see the source file (in linuxdoc format) at
<A HREF="http://cvsview.tldp.org/index.cgi/LDP/howto/linuxdoc/Serial-HOWTO.sgml">http://cvsview.tldp.org/index.cgi/LDP/howto/linuxdoc/Serial-HOWTO.sgml</A></P>
<P>
<UL>
<LI>2.25 Jan. 2007 picocom.  devfs is obsolete. ser2net.  Revised
parts on drivers as modules vs. built into kernel.  Serial Programming
wikibook.</LI>
<LI>v2.24 Feb. 2006: Serial Laplink HOWTO (connecting 2 PCs via the
serial line), Fixed typos found by Charles Brockman.  Messages with
"ttyS01" now show it as "ttyS1"</LI>
<LI>, etc.</LI>
<LI>v2.23 Nov. 2004: typo fixed,  Quick Help added, Serial ports on
motherboard likely ISA or LPC
stopping data flow when printing, ide2 address conflict<BR></LI>
</UL>
</P>

<H2><A NAME="related_howtos"></A> <A NAME="ss1.4">1.4</A> <A HREF="Serial-HOWTO.html#toc1.4">Related HOWTO's, etc. about the Serial Port </A>
</H2>

<P> Modems, Text-Terminals, some printers, and other peripherals often
use the serial port.  Get these HOWTOs from the nearest mirror site as
explained above.</P>
<P>
<UL>
<LI><CODE>Modem-HOWTO</CODE> is about installing and configuring modems</LI>
<LI><CODE>Printing-HOWTO</CODE> has info for serial printers using old
lpr command</LI>
<LI><CODE>LPRng-HOWTO</CODE> (not a LDP HOWTO, may come with software)
has info for serial printing for "Next Generation" lpr</LI>
<LI> 
<A HREF="http://en.wikibooks.org/wiki/Programming:Serial_Data_Communications">Serial Programming</A> is a wiki-book
on the Internet</LI>
<LI><CODE>Serial-Programming-HOWTO</CODE> helps you write
C programs that read and write to the serial port
and/or check/set its state.  A version written by Vern
Hoxie but not submitted to LDP is at 
<A HREF="Serial-HOWTO-23.html#vern_">Internet</A>.</LI>
<LI><CODE>Text-Terminal-HOWTO</CODE> is about how they work, how to install
configure, and repair them.  It includes a section on "Make a
Terminal the Console" which is useful for using a remote terminal to
control a server (via the serial port).</LI>
<LI><CODE>Remote-Serial-Console-HOWTO</CODE> is about making a
text-terminal be the console so it can display boot-time messages, etc.</LI>
</UL>
</P>

<H2><A NAME="ss1.5">1.5</A> <A HREF="Serial-HOWTO.html#toc1.5">Feedback</A>
</H2>

<P> Please send me any  suggestions, or additional material.  Tell me
what you don't understand, or what could be clearer.  You can reach me
via email at <CODE>
<A HREF="mailto:dave@lafn.org">mailto:dave@lafn.org</A></CODE>.</P>

<H2><A NAME="ss1.6">1.6</A> <A HREF="Serial-HOWTO.html#toc1.6">What is a Serial Port?</A>
</H2>

<P> The conventional serial port (not the newer USB port, or Firewire
port) is a very old I/O (Input/Output) port.  Most Desktop PC's have
them.  For laptops, they're not likely to be present on newer models.
Macs (Apple Computer) after mid-1998 only have the USB port.  However,
it's possible, to put a conventional serial port device on the USB bus
which is on all modern PCs (including laptops and Macs).</P>
<P>Each serial port has a "file" associated with it in the /dev
directory.  It isn't really a file but it seems like one.  For
example, /dev/ttyS0 (or /dev/tts/0 for the Device File System).  Other
serial ports are /dev/ttyS1, /dev/ttyS2, etc.  But ports on the USB
bus, multiport cards, etc. have different names.</P>
<P>The common specification for the conventional serial port is RS-232
(or EIA-232).  So it's often called a "RS-232 serial port".  The
connector(s) for the serial port are often seen as one or two 9-pin
connectors (in some cases 25-pin) on the back of a PC.  But the serial
port is more than just connectors.  It includes the associated
electronics which must produce signals conforming to the RS-232
specification.  See 
<A HREF="Serial-HOWTO-21.html#volt_shape">Voltage Waveshapes</A>.
One pin is used to send out data bytes and another to receive data
bytes.  Another pin is a common signal ground.  The other "useful"
pins are used mainly for signalling purposes with a steady negative
voltage meaning "off" and a steady positive voltage meaning "on".</P>
<P>The UART (Universal Asynchronous Receiver-Transmitter) chip does most
of the work.  Today, the functionality of this chip is usually built
into another chip.  See 
<A HREF="Serial-HOWTO-19.html#uart_">What Are UARTs?</A> These
have improved over time and old models (prior to say 1994) are usually
obsolete.</P>
<P>The serial port was originally designed for connecting external modems
to a PC but it's used to connect many other devices also such as mice,
text-terminals, some printers, etc. to a computer.  You just plug
these devices into the serial port using the correct cable.  Many
internal modem cards have a built-in serial port so when you install
one inside your PC it's as if you just installed another serial port
in your PC.</P>

<HR>
<A HREF="Serial-HOWTO-2.html">Next</A>
Previous
<A HREF="Serial-HOWTO.html#toc1">Contents</A>
</BODY>
</HTML>