trouble receiving serial port data
I have a little piece of hardware connected to my serial port which outputs a string when I push a button. However, computer seems to be reading it in as all 0's (in hex). The device is outputting in 9600baud, 1start/1stop bit, no parity, and no handshaking.
I seem to have things set up correctly, and it recieves the data, it is just not the correct data. I have tried recieving with logserial, gtkterm, and miniterm. Logserial and gtkterm both showed the recieved data as being all 0h's.
The cable is wired for 3 wires (ground, trans, rec). It works under hyperterm in windows.
The tx,rx,brk numbers all change as a send, though I don't know what they mean.
settings:
cat /proc/tty/driver/serial (ran after powering up device)
serinfo:1.0 driver:5.05c revision:2001-07-08
0: uart:16550A port:3F8 irq:4 baud:9600 tx:443 rx:8352 brk:8340 RTS|DTR|DSR
setserial -gG /dev/ttyS0
/dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 9600 spd_normal auto_irq low_latency
stty -F /dev/ttyS0 -a
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
|