Subject: Why doesn't "stty cs8 -parenb
To: None <port-hp300@NetBSD.ORG>
From: Timo Giesselmann <gmann@on-line.de>
List: port-hp300
Date: 04/02/1997 22:32:12
Hi.
Please help me, I am trying to connect a HP Deskjet500 printer
to the built-in serial port of my HP400t. It seems as if the port
is always working on 9600, 7E1 (I am able to print text when the
printer is switched to even parity). To be able to use pixel graphics,
I need to switch printer and HP400t to 8N1.
Anyway, I can't switch it with stty command. What am I doing wrong?
Thanks for your help.
bash# stty -a </dev/tty0
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 cs7 parenb -parodd hupcl -clocal -cstopb -crtscts -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 = <undef>;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
bash#
bash# stty cs8 -parenb </dev/tty0
bash#
bash# stty -a </dev/tty0
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 cs7 parenb -parodd hupcl -clocal -cstopb -crtscts -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 = <undef>;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
Greetings from Hamburg, Germany
Timo.