[97112] in RedHat Linux List
Re: Minicom lag problem
daemon@ATHENA.MIT.EDU (Mikkel L. Ellertson)
Sat Oct 31 21:02:32 1998
Date: Sat, 31 Oct 1998 20:01:29 -0600
To: redhat-list@redhat.com
From: "Mikkel L. Ellertson" <mikkel@execpc.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>I installed the uucp rpm and tried to run "cu -l /dev/ttyS2 -s 115200", but
>it came up with:
>cu: open (/dev/ttyS2): Permission Denied
>cu: /dev/ttyS2: Line in use
>
>I tried to run "stty speed 115200 > /dev/ttyS2", but that gave me an error.
>So I tried "stty ispeed 115200 > /dev/ttyS2" and "stty ospeed 115200 >
>/dev/ttyS2", but i still have the same problem and it still reads 9600 baud
>for speed. My computer is an IBM Aptiva S97 Pentium 200 MMX and is only
>about a year and a half old so I don't think that it is because I have slow
>serial ports, especially since I can connect in Win98 at high speeds. Any
>other suggestions?
I came into this late, but...
Two points - minicom resets the serial port speed independly of stty.
Also, setserial is a better utility to see the hardware settings of
a serial port. stty is for changing terminal settings, and the
speed settings are for when you connect with a serial terminal.
Also, for stty, 115200 is not a valid speed. (The man page lists:
0 50 75 110 134 134.5 150 200 300 600 1200 1800 2400 4800 9600 19200
38400 exta extb. exta is the same as 19200; extb is the same as 38400.)
Also, setserial can set the speed selected by 38400. See the setserial
man page.
Now, for the Line in use message, if you haven't changed is, ttyS2 defaults
to irq 3. SO does ttyS1. A lot of networking cards also use irq 3 by
default. Check /proc/interupts to see what is using irq 3, and also check
that ttyS2 is realy using irq 3. See if you can change the hardware
settings so that you can put ttyS2 on a free irq, then use setserial to
have the driver use the pro[er irq. After you get it set up, add a line
to /etc/rc/rc.local, or edit /etc/rc.d/rc.serial to set up the port on reboot.
I hope that helps...
Mikkel
---
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.