From owner-FreeBSD-users-jp@jp.freebsd.org  Thu Sep 14 10:41:39 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id KAA71942;
	Thu, 14 Sep 2000 10:41:39 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from sun5.maizuru-ct.ac.jp (sun5.maizuru-ct.ac.jp [202.19.105.3])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id KAA71937
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 14 Sep 2000 10:41:39 +0900 (JST)
	(envelope-from magara@maizuru-ct.ac.jp)
Received: from s-gikan2.maizuru-ct.ac.jp (s-gikan2.maizuru-ct.ac.jp [10.1.65.80])
	by sun5.maizuru-ct.ac.jp (8.9.3/3.7Wpl200031721) with ESMTP id KAA11571
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 14 Sep 2000 10:40:09 +0900 (JST)
Received: from magaram (magaram [10.1.65.81])
	by s-gikan2.maizuru-ct.ac.jp (8.9.3/3.7Wpl200080413) with ESMTP id KAA00958
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 14 Sep 2000 10:41:09 +0900 (JST)
To: FreeBSD-users-jp@jp.freebsd.org
From: "K.Magara" <magara@maizuru-ct.ac.jp>
Message-Id: <200009141044.EJD67820.SBBBHN@maizuru-ct.ac.jp>
X-Mailer: Winbiff [Version 2.31PL3]
Date: Thu, 14 Sep 2000 10:44:02 +0900
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: FreeBSD-users-jp 55166
Subject: [FreeBSD-users-jp 55166] About Serial
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: magara@maizuru-ct.ac.jp

$BbCJA!wIqDa9b@l$G$9(B

PC-9821Xa7 + FreeBSD(98)3.5R $B$J4D6-$G$N(B
$B%7%j%"%k%]!<%H$N@_Dj$K$D$$$F<ALd$G$9!%(B
# $B%7%j%"%k%]!<%H$N@h$K$O!$(B
# $B9):n5!3#$,$D$J$,$C$F$*$j!$Aw?.$N$_!%(B
# modem $B$d(B terminal$BEy$N@_Dj$O0l@ZITMW(B($B$J$O$:(B)$B!%(B

% dmesg | grep sio
sio0 at 0x30-0x33 irq 4 on isa
sio0: type (internal fifo v-fast)
sio1 at 0x238-0x23f irq 5 flags 0x12000010 on isa
sio1: type 16550A

$B@\B3$O(B sio0 $B$G$9!%(B

$B$^$:!$(B/etc/rc.serial $B$r(B
#!/bin/sh
default() {
comcontrol /dev/cuaa0 dtrwait 300 drainwait 0
stty -f /dev/cuaa0 -parenb cs8 9600 -hupcl -cstopb -cread clocal -crtscts
}
$B$N$h$&$K$7$^$7$?!%B>$N9T$O$9$Y$F:o=|!%(B

$B%j%V!<%H8e!$(Broot$B8"8B$K$F(B stty $B$r<B9T$9$k$H(B
% stty -a -f /dev/cuaa0
speed 9600 baud; 0 rows; 0 columns;
lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl
	-echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin
	-nokerninfo -extproc
iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk
	-brkint -inpck -ignpar -parmrk
oflags: -opost -onlcr -oxtabs
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
	-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
	eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
	min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
	stop = ^S; susp = ^Z; time = 0; werase = ^W;

$B$J7k2L$,I=<($5$l$^$7$?!%(B
cflags $B$N7k2L$,!$0U?^$7$?$b$N$H0c$&$N$G$9$,!$(B
/etc/rc.serial $B$O!$$A$c$s$H<B9T$5$l$F$$$J$$$N$G$7$g$&$+!)(B

$B$=$b$=$b(B /etc/rc.serial $B$O(B /etc/rc $B$+$i8F$P$l$k$h$&$G$9$,!$(B
$B0z?t$N;XDj$O$J$5$=$&$J$N$K!$%*%j%8%J%k$N(B /etc/rc.serial $B$O(B
$B0z?t$+$i(B for $B$G2s$7$F$$$^$9$M!%(B
/dev $B$+$i$N>pJs$+$H;W$o$l$^$9$,!$(B
$B$3$N$"$?$j$NN.$l$,$h$/$o$+$C$F$$$^$;$s!%(B
$B$I$J$?$+2r@b$7$F$$$?$@$1$^$;$s$+!)(B


# $B$A$J$_$K!$(B
# % cat hoge.nc > /dev/cuaa0
# $B$GAw?.$G$-$F$$$^$9$N$G!$(B
# $B@_Dj<+BN$K$OLdBj$J$$$H;W$&$N$G$9$,!$(B
# $B$J$s$+5$;}$A0-$/$F(B...

----------------------------------------------
  $BIqDa9)6H9bEy@lLg3X9;!!EE;R@)8f9)3X2J(B
  $BbCJA!!8-0l(B
  E-mail   : magara@maizuru-ct.ac.jp
  HomePage : http://s-gikan2.maizuru-ct.ac.jp/
