📄 serial-howto.txt
字号:
Linux Serial HOWTO 中译版 作者: Greg Hankins [1]greg.hankins@cc.gatech.edu译者: [2]Asd L. Chen & [3]C.W.Huang v1.11, 15 November 1997 翻译日期: 18 November 1997 _________________________________________________________________ 这份文件叙述如何在 Linux 机器上设定串列通讯设备. _________________________________________________________________ 1. 简介 * 1.1 版权声明 * 1.2 这份文件的最新版本 * 1.3 回馈 * 1.4 免责声明 2. 已经支援的串列硬体 * 2.1 标准 PC 串列埠 * 2.2 即插即用型(PnP)数据机 * 2.3 一般多埠串列卡(附 8250/16450/16550A UART 晶片) * 2.4 智慧型多埠串列卡 * 2.5 不支援的串列硬体 3. 串列埠的名称是什麽? * 3.1 在 /dev 里的串列设备及主要和次要号码 * 3.2 一般多埠板的注意事项 * 3.3 智慧型多埠板的注意事项 4. 你应知道的有趣程式 * 4.1 什麽是 getty? * 4.2 什麽是 setserial? 5. 我怎麽用数据机拨号出去? * 5.1 硬体需求 * 5.2 与你的数据机交谈 * 5.3 拨出用的数据机配置 * 5.4 硬体流量控制 6. 我要怎麽样用数据机以 getty_ps 拨入及拨出? * 6.1 拨入及拨出的数据机配置 * 6.2 安装 getty_ps * 6.3 设定 uugetty * 6.4 自订 uugetty 7. 我怎麽设定终端机连线到我的 PC 上? * 7.1 硬体需求 * 7.2 设定 getty * 7.3 将 PC 设定成终端机的注意事项 8. 我能使用超过两个的串列装置吗? * 8.1 选择串列设备的中断位址 * 8.2 设定串列设备的位址 9. 我怎样将我的串列埠设到较高的速度? 我的数据机又应该使用什麽样的速度?10. 通讯程式及工具11. 串列使用秘诀 * 11.1 kermit 以及 zmodem * 11.2 自动设定终端机型式 * 11.3 在串列连线下的彩色 ls * 11.4 从终端机所连接的印表机进行列印 * 11.5 Linux 能不能够自动地配置串列设备? * 11.6 使用串列控制台 * 11.7 更高的串列流量 12. 更进一步... * 12.1 什麽是锁定档案(lock files)? * 12.2 ``baud'' 对 ``bps'' * 12.3 什麽是 UARTs? 它们如何影响效能? 13. 故障排除 * 13.1 我不断地收到 ``line NNN of inittab invalid'' * 13.2 当我试著拨号时,它说 ``/dev/cuaN: Device or resource busy'' * 13.3 我持续接到 ``Id SN respawning too fast: disabled for 5 minutes'' * 13.4 串列设备很慢或是串列设备只能单向传送 * 13.5 我的数据机在某人断线後瘫痪或是 uugetty 并没有重新执行 * 13.6 我将我的终端机连到我的 PC 上,但是在我输入签入名称之後,它就锁 住不动 * 13.7 在高速下,我的数据机漏失资料 * 13.8 在系统启动时,Linux 没有依照我的配置回报串列设备. * 13.9 当我使用我的数据机叫用 Linux 机器时 rz 以及/或是 sz 不动 * 13.10 我的萤幕印出看起来很好玩的字元 * 13.11 getty 或 uugetty 仍然无法运作 14. 其它的资讯来源15. 铭谢 _________________________________________________________________ 1. 简介 这是 Linux Serial HOWTO.包含关於如何在 Linux 下设定数据机以及终端机的 所有细节,还有一些使用串列的诀窍,以及故障排除的资料. 这份文件著重在 Intel x86 硬体上执行的 Linux,虽然在其它平台上也许也能运作. 1.1 版权声明 本文版权是属於 Greg Hankins(copyright (C) 1993 - 1997).本文件可以在 LDP 的版权许可下散布: [4]http://sunsite.unc.edu/LDP/COPYRIGHT.html. 本 文在未经作者许可下不得以修改的形式散布. 原文 Copyright (c) 1993 - 1997 by Greg Hankins. This document may be distributed under the terms set forth in the LDP license at [5]http://sunsite.unc.edu/LDP/COPYRIGHT.html. This document may not be distibuted in modified form without consent of the author. 1.2 这份文件的最新版本 新版的 Serial HOWTO 会放到 [6]ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Serial-HOWTO 以及映射节点 .有一些其它像是 Postscript 以及 DVI 格式的版本放在 other-formats 目录 里. 这一份 Serial HOWTO 也可在 [7]http://sunsite.unc.edu/LDP/HOWTO/Serial-HOWTO.html 取得.它也会每月 定期的贴到 [8]comp.os.linux.answers. 1.3 回馈 请将任何的问题,评论,建议或补充内容寄送给我.我永远渴望听到你对这份 HOWTO 的想法. 我也总是小心地注意改进! 确实地告诉我你有什麽不懂的地方, 或者是有什麽地方可以写得更清楚. 你可以经由这个电子邮件位址 [9]greg.hankins@cc.gatech.edu 与我连系. 所有的邮件我都会回覆,不过可能 要花一个星期或更长的时间,看我多忙而定. 我收到一大堆来自 root 及错误设 定的站台. 请以真实身份寄信给我,并且确定你的电子邮件系统是正常运作使得 我能够回信给你. 如果两个星期之内你还没收到我的回音,请尝试再寄一次. 也可以藉由下面的地址以迟缓的传统信件联络我: Greg Hankins College of Computing 801 Atlantic Drive Atlanta, GA 30332-0280 以及经由全球资讯网到我的网页 [10]http://www.cc.gatech.edu/staff/h/Greg.Hankins/. 撰写时请将 Serial HOWTO 文件的版本编号含入,这份是 1.11 版. 1.4 免责声明 你的状况可能很不一样.这里的回答可能无法在所有的系统及各种设定的组合下 运作. 2. 已经支援的串列硬体 以知 Linux 可以与下列的串列硬体配合运作. 2.1 标准 PC 串列埠 * 标准 PC 串列埠 (COM1 - COM4),能够让外接的串列装置(数据机,串列滑鼠 等)连接的 * 标准 PC 内接式数据机 (COM1 - COM4) * Quickpath Systems Port-Folio 550e (可用的 IRQ 为 3, 4, 5, 9, 10, 11, 12, 及 15) 注意: 由於位址冲突,你不能同时使用 COM4 及 IBM8514 视讯卡.这是 IBM8514 视讯卡的一个 bug. 2.2 即插即用型(PnP)数据机 即插即用型数据机能够在 Linux 上运作.然而,我不建议使用它们,因为有困难 . 你有好多事情要试: * 试著关掉你电脑 BIOS 及数据机上的 PnP 功能. * 启动 Windows 95,设定数据机,然後看看在你启动 Linux 後这些设定能否 保留下来. 如果不行的话,再来: * 启动 Windows 95,设定数据机,然後使用暖开机启动 Linux 以便让设定能 保留下来. 你可以使用 loadlin 载入器来启动. * 从 [11]http://www.redhat.com/linux-info/pnp 取回 PnP 工具. * 然後你就有个可用的数据机. 2.3 一般多埠串列卡(附 8250/16450/16550A UART 晶片) * AST FourPort and clones (4 ports) * Accent Async-4 (4 ports) * Arnet Multiport-8 (8 ports) * Bell Technologies HUB6 (6 ports) * Boca BB-1004 (4 ports), BB-1008 (8 ports), BB-2016 (16 ports) * Boca IOAT66 (6 ports) * Boca 2by4 (4 serial ports, 2 parallel ports) * Computone ValuePort V4-ISA (AST FourPort compatible) * Digi PC/8 (8 ports) * GTEK BBS-550 (8 ports) * Longshine LCS-8880, Longshine LCS-8880+ (AST FourPort compatible) * Moxa C104, Moxa C104+ (AST FourPort compatible) * PC-COMM (4 ports) * [12]Sealevel Systems COMM-2 (2 ports), COMM-4 (4 ports) and COMM-8 (8 ports) * SIIG I/O Expander 2S IO1812 (4 ports) * STB-4COM (4 ports) * Twincom ACI/550 * Usenet Serial Board II (4 ports) 一般来说, Linux 能够支援所有使用 8250, 16450, 16550, 16550A(或与其相 容)UART 晶片的串列卡, 或者是能够摸拟上列 UARTs 之一的内接式数据机. 注意: BB-1004 以及 BB-1008,它们并不支援 DCD 及 RI 线路,因而无法让接受 拨接的数据机使用. 它们在其它用途上则表现正常. 2.4 智慧型多埠串列卡 * Comtrol RocketPort (36MHz ASIC; 4, 8, 16 or 32 ports) contact: [13]info@comtrol.com or [14]http://www.comtrol.com driver status: supported by Comtrol driver location: [15]ftp://tsx-11.mit.edu/pub/linux/packages/comtrol * Computone IntelliPort II (16MHz 80186; 4, 8, or 16 ports), IntelliPort II EXpandable (20MHz 80186; 16 - 64 ports) contact: Michael H. Warfield, [16]mhw@wittsend.atl.ga.us driver status: pre-ALPHA * Cyclades Cyclom-Y (Cirrus Logic CD1400 UARTs; 8 - 32 ports), Cyclom-Z (25MHz MIPS R3000; 8 - 128 ports) contact: [17]sales@cyclades.com or [18]http://www.cyclades.com driver status: supported by Cyclades driver location: [19]ftp://ftp.cyclades.com/pub/cyclades and included in Linux kernel since version 1.1.75 * Decision PCCOM8 (8 ports) contact: [20]pccom8@signum.se driver location: [21]ftp://ftp.signum.se/pub/pccom8 * Digi PC/Xi (12.5MHz 80186; 4, 8, or 16 ports), PC/Xe (12.5/16MHz 80186; 2, 4, or 8 ports), PC/Xr (16MHz IDT3041; 4 or 8 ports), PC/Xem (20MHz IDT3051; 8 - 64 ports) contact: [22]mailto:sales@dgii.com or [23]http://www.dgii.com driver status: supported by Digi driver location: [24]ftp://ftp.dgii.com/drivers/linux and included in Linux kernel since version 2.0 * Digi COM/Xi (10MHz 80188; 4 or 8 ports) contact: Simon Park, [25]si@wimpol.demon.co.uk driver status: ALPHA note: Simon is often away from email for months at a time due to his job. Mark Hatle, [26]fray@krypton.mankato.msus.edu has graciously volunteered to make the driver available if you need it. Mark is not maintaining or supporting the driver. * Equinox SuperSerial Technology (30MHz ASIC; 2 - 128 ports) contact: [27]sales@equinox.com or [28]http://www.equinox.com driver status: supported by Equinox driver location: [29]ftp://ftp.equinox.com/library/sst * GTEK Cyclone (16C654 UARTs; 6, 16 and 32 ports), SmartCard (24MHz Dallas DS80C320; 8 ports), BlackBoard-8A (16C654 UARTs; 8 ports), PCSS (15/24MHz 8032; 8 ports) contact: [30]spot@gtek.com or [31]http://www.gtek.com driver status: supported by GTEK driver location: [32]ftp://ftp.gtek.com/pub * Hayes ESP (COM-bic; 1 - 8 ports) contact: Andrew J. Robinson, [33]arobinso@nyx.net or
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -