Serial Communications Problem

Benjamin Bostow plug-discuss@lists.plug.phoenix.az.us
Thu, 21 Feb 2002 16:14:38 -0700


I am having a problem printing out of the serial port on COM 1. When I
run "stty -a -F /dev/ttyS0" I get the following:

speed 2400 baud; rows 0; columns 0; line = 0;
intr = <undef>; 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

When I run "setserial -ag /dev/ttyS0" I get:

/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
	Baud_base: 115200, close_delay: 50, divisor: 0
	closing_wait: 3000, closing_wait2: infinte
	Flags: spd_normal skip_test

I have a hyper terminal set up with a baud rate of 2400, Data bit of 8,
Parity of None, Stop bit of 1 and flow control is none. I am trying to
send a string to the port by using "echo "test" > /dev/ttyS0. Can anyone
help me on why this might not be working, or if the settings are
incorrect how to fix them?

Benjamin