Sophie

Sophie

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

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: Is the Serial Port Obsolete?</TITLE>
 <LINK HREF="Serial-HOWTO-6.html" REL=next>
 <LINK HREF="Serial-HOWTO-4.html" REL=previous>
 <LINK HREF="Serial-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="Serial-HOWTO-6.html">Next</A>
<A HREF="Serial-HOWTO-4.html">Previous</A>
<A HREF="Serial-HOWTO.html#toc5">Contents</A>
<HR>
<H2><A NAME="s5">5.</A> <A HREF="Serial-HOWTO.html#toc5">Is the Serial Port Obsolete?</A></H2>

<H2><A NAME="ss5.1">5.1</A> <A HREF="Serial-HOWTO.html#toc5.1">Introduction</A>
</H2>

<P> The serial port is somewhat obsolete (and often called a "legacy"
device, but it's still important, especially for Linux.  The serial port
has many shortcomings but most new PC's (except for laptops and Macs)
seem to come with them.  Some PC's, called "legacy-free" don't have
serial ports.  Linux supports ordinary analog modems only if they work
thru a serial port (although the port may be built into the modem).</P>
<P>The physical serial port on the back of a PC, must pass data between
the computer and an external cable.  Thus it has two interfaces: the
serial-port-to cable and the serial-port-to-computer-bus.  Both of
these interfaces are slow.  First we'll consider the interface via
external cable to the outside world.</P>

<H2><A NAME="ss5.2">5.2</A> <A HREF="Serial-HOWTO.html#toc5.2">EIA-232 (RS-232) Cable Is Low Speed &amp; Short Distance</A>
</H2>

<P> The conventional EIA-232 serial port is inherently low speed and
is severely limited in distance.  Ads often read "high speed" but it
can only work at "high speed" over very short distances such as to a
modem located right next to the computer.  Compared to a network card,
even this "high speed" is actually low speed.  All of the EIA-232
serial cable wires use a common ground return wire so that
twisted-pair technology (needed for high speeds) can't be used without
additional hardware.  More modern interfaces for serial ports exist
but they are not standard on PC's like the EIA-232 is.  See 
<A HREF="Serial-HOWTO-22.html#non_232">Successors to EIA-232</A>.  Some multiport serial
cards support them.</P>
<P>It is somewhat tragic that the RS-232 standard from 1969 did not use
twisted pair technology which could operate about a hundred times
faster.  Twisted pairs have been used in telephone cables since the
late 1800's.  In 1888 (over 115 years ago) the "Cable Conference"
reported its support of twisted-pair (for telephone systems) and
pointed out its advantages.  But over 80 years after this approval by
the "Cable Conference", RS-232 failed to utilize it.   Since RS-232
was originally designed for connecting a terminal to a low speed modem
located nearby, the need for high speed and longer distance
transmission was apparently not recognized.  The result was that since
the serial port couldn't handle high speeds, new types of serial
interfaces were devised that could: Ethernet, USB, Firewire, etc.</P>

<H2><A NAME="ss5.3">5.3</A> <A HREF="Serial-HOWTO.html#toc5.3">Inefficient PCI Interface to the Computer (in some cases)</A>
</H2>

<P> The serial port communicates with the computer via the PCI bus,
the LPC bus, X-bus, or ISA bus.  The PCI bus is now 32 or 64 bits wide,
but the serial port only sends a byte at a time (8 bits wide) which is
a waste of PCI bus bandwidth.  Not so for the LPC bus which has only a
4-bit wide bus and thus provides an efficient interface.  The ISA bus
is usually 16-bits wide and the efficiency is intermediate as compared
to efficient LPC and inefficient PCI.</P>

<HR>
<A HREF="Serial-HOWTO-6.html">Next</A>
<A HREF="Serial-HOWTO-4.html">Previous</A>
<A HREF="Serial-HOWTO.html#toc5">Contents</A>
</BODY>
</HTML>