[ Stty_q 1K ]
The following relates to X86/2.5/du 3.
I can't get stty to work form me. What am I doing wrong?
$ stty parenb -parodd 2400 cs7 cstopb crtscts < /dev/tty00
I believe this should enable parity, set it to even, 2400 BPS,
7 bit data, 2 stop bits, RTS/CTS handshake. Yes, I know this a weird
way to set a port. I'm just testing my ability to talk to any
I then test the serial port:
$ stty -a < /dev/tty00
speed 9600 baud;
rows = 0; columns = 0; ypixels = 0; xpixels = 0;
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^|; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt e*-defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
It loooks like nothing I set made an impression.
I can tcsetattr from my application to set any of these options just
fine. But I want to set BPS, parity, and other serial port values from
the comand line. Then call the application, which will set a few
additional port values, but not those I want to set from the command line.
I can set the port from the application when I'm in user. I've tried
stty as a user and root. No luck in either case.