Solved

Adding a third com port now X (mouse) causes problems

Posted on 1997-06-29
2
196 Views
Last Modified: 2013-12-15
I have 2 onboard 16550 serial ports that have been working
great. I need to install a third port so I got a basic 8250
seial card and installed this card as COM1 I then moved the
2 onboard serial ports to COM2 and COM3.
I know all the hardware is working correctly by themselves.
I have connected:

ttyS0 Testing (COM1 8250 serial card IRQ 4 at 3F8)
ttyS1 Modem   (COM2 16550 onboard serial IRQ 3 at 2F8)
ttyS2 Mouse   (COM3 16550 onboard serial IRQ 4 at 3E8)

When I boot all 3 are recognised by the BIOS and then by the
linux probe. I can then use the modem and send data out the
testing port.Both ttyS0 and ttyS1 work correctly.
It only when I run X that my problem shows up. Under X, the
mouse works and the modem works.
When sending data out the testing port (ttyS0) it is VERY slow but not corrupt. A single character is sent about
every 10seconds. Too my
amazement when I moved the mouse the data then got sent. It seems that when the mouse (ttyS2 Irq 4) generates an interupt the service routine also checks the Transmit
buffer of ttyS0 also at Irq 4.
Reading the Serial Howto it seems I should be able to share interupts like this so what else have I missed.
When I Switch back to a Text screen <CTL><ALT>1 The port
works again as it should.
Even though the Linux probe finds the seial ports correctly I still use setserial to make sure the ports are configured correctly.
0
Comment
Question by:dksayers
2 Comments
 
LVL 3

Accepted Solution

by:
sauron earned 200 total points
ID: 1628435
It is possible to share serial ports for some applications, but it depends what devices you have on the ports (mice/modems are frequently poor neighbours). You definitely have an IRQ conflict. Reconfigure one of your serial ports to use a different IRQ, and the invoke setserial from your /etc/rc.local to correctly configure that serial port at boot time. I run my modem on COM3 and IRQ 5 to avoid exactly this sort of problem.
0
 

Author Comment

by:dksayers
ID: 1628436
An answer I did not want to here as I am low on IRQs. It did
resolve the probem but I would still like to share IRQ 4 with
COM1 and COM3.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now