Solved

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

Posted on 1997-06-29
2
197 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 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

17 Experts available now in Live!

Get 1:1 Help Now