?? 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 + -