I'm trying to read a stream of bytes coming into an RS-232 port.
I've read the setserial, stty, and termios man pages and thought I had it all figured out. The device is outputting 19200 8N1. I use setserial to set the baud rate, then use stty to disable hardware flow control. Now, when I cat /dev/ttyS1, I get a series of binary '0e00 0e00' instead of the '1fff 2fff' which I should be seeing. If I unplug the device and plug into a windows box running hyperterm, the data shows up like it's supposed to. I even went so far as to write a C program which used tcsetattr to set the baud rate and flow control settings, then read the bytes, but the results were the same. Can anyone tell me what step I'm missing? (%:~/demos/bin)- setserial -a /dev/ttyS1 /dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3 Baud_base: 19200, close_delay: 34339, divisor: 0 closing_wait: 8043 Flags: spd_normal skip_test (%:~/demos/bin)- stty -a -F/dev/ttyS1 speed 19200 baud; rows 0; columns 0; line = 0; intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>; eol = <undef>; eol2 = <undef>; start = <undef>; stop = <undef>; susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>; flush = <undef>; min = 1; time = 5; -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 -- Steve Borho Principal Engineer Ageia Technologies, Inc. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list