8.3. コンソールをテストする

別のマシンから、たとえば Minicom を使って電話して、接続して下さい。

Example 8-1. シリアルコンソールに電話して接続する

localhost bash$ minicom
Initializing modem
Welcome to minicom 1.83.1
Press ALT-Z for help on special keys
AT S7=45 S0=0 L1 V1 X4 &C1 E1 Q0                     
OK
Alt-D remote.example.edu.au-ttyS0
Dialing: remote.example.edu.au-ttyS0 At: 1234-5678
Connected. Press any key to continue
Any
CONNECT 115200/V34/LAPM/V42BIS/33600:TX/33600:RX
Enter
/etc/issue says "All your base are belong to us".
remote.example.edu.au ttyS0 login: user
Password: ********
Message of the day is "be careful out there".
remote bash$ stty -a
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
-echoctl -echokeremote bash$ logout
NO CARRIER
Alt-X
Leave Minicom? Yes
Resetting modem
localhost bash$

おもしろいことに、端末の設定を表示するのに使う stty -a コマンドは、モデムからシリアルコンソールへのリンクが 9600 bps だと伝えています。 一方、CONNECT メッセージは、二つのモデム間が 33600bps で動作していると伝えています。 モデム-コンピュータ間のリンク速度が一定だというのは、 ヘイズの AT 互換モデムの非常に有益な特徴です。 このおかげで、発呼側のコンピュータは、 着信側のシリアルコンソールのライン速度を、 前もって知らなくても済むのです。