Hello,
I can't turn on newline --> newline&carriage-return translation with pl2303.
stty shows that it's turned on (see below), but no conversion occurs.
It used to work with an ordinary rs232 port (I used it a long time ago
though, the environment has changed and I might have done something
differently).
My setup:
- a Chronos USB-810 USB->serial converter, that works otherwise quite well
with the pl2303 driver, at ttyUSB0,
- a dumb terminal connected to ttyUSB0,
- kernel 2.4.22.
What I want:
host:
$ stty -F /dev/ttyUSB0 onlcr
$ echo test > /dev/ttyUSB0
$ echo test > /dev/ttyUSB0
terminal:
test
test
What I get instead:
host:
$ echo test > /dev/ttyUSB0
$ echo test > /dev/ttyUSB0
terminal:
test
test
I get the expected behaviour if I insert the CR-s manually:
$echo -e "test\r" > /dev/ttyUSB0
----------------------------------------------------------------
shi:/home/float# stty -aF /dev/ttyUSB0
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 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users