This commit is contained in:
gferg 2003-10-02 13:30:26 +00:00
parent c7e9ac96d0
commit 4b77f74769
3 changed files with 53 additions and 23 deletions

View File

@ -4119,7 +4119,7 @@ Addresses Linux localization issues specific to Serbian users
Serial-HOWTO</ULink>,
<CiteTitle>Serial HOWTO</CiteTitle>
</Para><Para>
<CiteTitle>Updated: September 2003</CiteTitle>.
<CiteTitle>Updated: October 2003</CiteTitle>.
Describes serial port features other than those which should be
covered by other HOWTOs. Lists information on multiport serial cards
and contains detailed technical information about the serial port

View File

@ -1238,7 +1238,7 @@ SCSI-Generic-HOWTO</ULink> for more current information.</emphasis> </Para>
Serial-HOWTO</ULink>,
<CiteTitle>Serial HOWTO</CiteTitle>
</Para><Para>
<CiteTitle>Updated: September 2003</CiteTitle>.
<CiteTitle>Updated: October 2003</CiteTitle>.
Describes serial port features other than those which should be
covered by other HOWTOs. Lists information on multiport serial cards
and contains detailed technical information about the serial port

View File

@ -4,9 +4,10 @@
<author>David S.Lawyer
<tt><htmlurl url="mailto:dave@lafn.org" name="dave@lafn.org"></tt>
original by Greg Hankins
<date> v2.19 September 2003
<date> v2.20 October 2003
<!-- Change log:
v2.20 MAKEDEV is often only in /sbin and not in /dev.
v2.19 linux-serial email now at kernel.org, new section: Servers,
pinout diagram
v2.18 May 2003: EIA-485 features not supported by Linux, Flow control
@ -139,7 +140,7 @@ sites see: <url url="http://www.tldp.org/mirrors.html">.
Various formats are available. If you only want to quickly check the
date of the latest version look at <url
url="http://www.tldp.org/HOWTO/Serial-HOWTO.html"> and compare
it to this version: v2.19 September 2003 .
it to this version: v2.20 October 2003 .
<sect1>New in Recent Versions
<p> For a full revision history going back to the time I started
@ -148,6 +149,7 @@ maintaining this HOWTO, see the source file (in linuxdoc format) at
url="http://www.ibiblio.org/pub/linux/docs/HOWTO/other-formats/sgml/Serial-HOWTO.sgml.gz">.
<itemize>
<item>v2.20 Oct. 2003: MAKEDEV is often only in /sbin and not in /dev.
<item>v2.19 September 2003: linux-serial email now at kernel.org, new
section: Servers, pinout diagram
<item>v2.18 May 2003: EIA-485 features not supported by Linux, Flow control
@ -1029,15 +1031,22 @@ serial package. You may need to create these devices (unless an
installation script does it for you). Either use the <tt/mknod/
command, or the <tt/MAKEDEV/ script. Devices (in the /dev directory)
for ttyS type serial ports are made by adding ``64 + port number''.
So, if you wanted to create devices for <tt>ttyS17</tt>, you would
type:
So, if you wanted to create devices for <tt>ttyS17</tt> using
<tt/mknod/, you would type:
<tscreen><verb>
linux# mknod -m 666 /dev/ttyS17 c 4 81
</verb></tscreen>
Note the "major" number is always 4 for ttyS devices (and 5 for the
obsolete cua devices). Also ``64 + 17 = 81''. Using the <tt/MAKEDEV/
script, you would type:
script, you would first become the superuser (root) and type either:
<tscreen><verb>
linux# MAKEDEV ttyS17
</verb></tscreen>
or if the above doesn't work type:
<tscreen><verb>
linux# cd /dev
@ -1053,6 +1062,21 @@ some different links.
<sect1>Standard PC Serial Cards
<p> In olden days PCs came with a serial card installed. Later on the
serial function was put on the hard-drive interface card. Today, one
or two serial ports are usually built into the motherboard. Most of
them (as of 2001) use a 16550 but some use 16650 (32-byte FIFOs).
linux# cd /dev
For the names and numbers of other types of serial ports other than
ttyS.. see devices.txt in the kernel documentation. Besides the
listing of various brands of multiports found in this HOWTO there is
<url url="http://eupedia.org/serialcards.html" name="Gary's
Encyclopedia - Serial Cards">. It's not as complete, but may have
some different links.
<sect1>Standard PC Serial Cards
<p> In olden days PCs came with a serial card installed. Later on the
serial function was put on the hard-drive interface card. Today, one
or two serial ports are usually built into the motherboard. Most of
@ -2250,14 +2274,17 @@ script. Example, suppose you needed to create <tt/ttyS0/:
<tscreen><verb>
linux# mknod -m 666 /dev/ttyS0 c 4 64
</verb></tscreen>
You can use the <tt/MAKEDEV/ script, which lives in <tt>/dev</tt>.
See the man page for it. This simplifies the making of devices. For
example, if you needed to make the devices for <tt>ttyS0</tt> you
would type:
The MAKEDEV script is easier to use.
See the man page for it. For example, if you needed to make the
device for <tt>ttyS0</tt> you would just type:
<tscreen><verb>
linux# cd /dev
linux# ./MAKEDEV ttyS0
linux# MAKEDEV ttyS0
</verb></tscreen>
If the above command doesn't work (and your are the root user), look
for the MAKEDEV script in the the /dev directory and run it.
This handles the devices creation and should set the correct permissions.
For making multiport devices see <ref id="make_multi" name="Making
multiport devices in the /dev directory">.
@ -2902,8 +2929,8 @@ But by the year 2000, most new serial ports supported higher speeds of
seldom uses these speeds due to lack of drivers. Thus such ports
behave just like 115.2k ports unless the higher speeds are enabled by
special software. To get these speeds you need to compile the kernel
with special patches until support is built into the kernel's serial
driver.
with special patches or use modules until support is built into the
kernel's serial driver.
Unfortunately serial port manufacturers never got together on a
standard way to support high speeds, so the serial driver needs to
@ -2911,7 +2938,10 @@ support a variety of hardware. Once high speed is enabled, a standard
way to choose it is to set baud_base to the highest speed with
setserial (unless the serial driver does this for you). The software
will then use a divisor of 1 to set the highest speed. All this will
hopefully be supported by the Linux kernel sometime in 2002.
hopefully be supported by the Linux kernel sometime in 2003.
A driver for the w83627hf chip (used on many motherboards such as
the Tyan S2460) is at <url url="https://www.muru.com/linux/w83627hf/">
A non-standard way that some manufacturers have implemented high speed
is to use a very large number for the divisor to get the high speed.
@ -3634,12 +3664,12 @@ being used, there is no bug. See
<sect1> Port get characters only sporadically
<sect1> Port gets characters only sporadically
<p> There could be some other program running on the port. Use "top"
(provided you've set it to display the port number) or "ps -alxw".
Look at the results to see if the port is being used by another
program. Be on the lookout for the gpm mouse program which often runs
on a serial port.
(provided you've set it to display the port number) or type "ps
-alxw". Look at the results to see if the port is being used by
another program. Be on the lookout for the gpm mouse program which
often runs on a serial port.
<sect1> Troubleshooting Tools
<p> These are some of the programs you might want to use in
@ -3669,7 +3699,7 @@ troubleshooting:
<sect1> Almost all characters are wrong; Many missing or many extras
<p>Perhaps a baud mismatch. If one port sends at twice the speed that
the other port is set to receive, then every two characters sent will
be recieved as one character. The bits of this received character
be received as one character. The bits of this received character
will be a sample of every other bit of the two characters sent, so it
will be wrong. Also, only half the characters sent seem to get
received. A worse mismatch will produce even worse results.
@ -4054,7 +4084,7 @@ Pin # Pin # Acronym Full-Name Direction What-it-May-Do/Mean
5 7 SG Signal Ground
9-Pin DB9 Connector 25-Pin DB-25 Connector
1 DCD Carrier Detect 1 Chasis Ground
1 DCD Carrier Detect 1 Chassis Ground
2 RxD Receive Data 2 TxD Transmit Data
3 TxD Transmit Data 3 RxD Receive Data
4 DTR Data Terminal Ready 4 RTS Request To Send