LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-07-2004, 06:53 AM   #1
Onyx^
Member
 
Registered: Aug 2003
Location: Cornwall, UK
Distribution: Debian / Red Hat 7.3 / Peewee / Feather
Posts: 56

Rep: Reputation: 15
Serial RS232 problem


Ok here is my problem...

I have 4 serial ports on my system. ttyS0 and ttyS2 share IRQ 4, and ttyS1 and ttyS3 share IRQ 3.

The ports all work fine if I

echo "testdev0" >> /dev/ttyS0
echo "testdev1" >> /dev/ttyS1
echo "testdev2" >> /dev/ttyS2
echo "testdev3" >> /dev/ttyS3

Now, if I load a touchscreen driver that monitors ttyS1, when I try and echo data to ttyS3 (which shares an interrupt....) the data gets there eventually after a long delay. This usually indicates and problem sharing interrupts or an interrupt clash (after much reading of the excellent Serial HOWTO).

I have another custom program that monitors the rs232 ports. When this is loaded the interrupts seem to all go wrong as well.

If there was an interrupt problem I would expect to see it from when the system is started up... not just from when a program is loaded that opens the rs232 port.

My question is, what would cause a program to break the interrupts on an rs232 port?
 
Old 09-07-2004, 11:37 AM   #2
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
onyx^; a little research says voltage via cable is sensitive. check those cables. lenght have a constaint. try a loopback tester to find where problem
may be.
 
Old 09-09-2004, 10:35 AM   #3
Onyx^
Member
 
Registered: Aug 2003
Location: Cornwall, UK
Distribution: Debian / Red Hat 7.3 / Peewee / Feather
Posts: 56

Original Poster
Rep: Reputation: 15
i dont think its an electronics problem on that scale. It is more a problem somewhere in the bios --> kernel ---> serial setup ---> program type... chain of events that is causing the problem, I just don't know where....

(i have used the cables testing the program on development machine where interrupts / serial works fine and this is not a problem.)
 
Old 09-09-2004, 02:14 PM   #4
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
onyx; U R correct. rereading original post,
it maybe as u noted this last post, overlooked those interrupt & irq,s recheck serial setup & irq,s addresses.
not sure about bios however check them
& program + kernel as last resort. got to be in there somewhere? good hunting!
 
Old 09-09-2004, 04:37 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Quote:
Originally posted by penguin4
onyx; U R correct. rereading original post,
it maybe as u noted this last post, overlooked those interrupt & irq,s recheck serial setup & irq,s addresses.
not sure about bios however check them
& program + kernel as last resort. got to be in there somewhere? good hunting!
penguin4 -- can you please provide a detailed, step-by-step description of exactly what you are recommending be done to investigate and solve the reported issue? I'm sorry but I simply do not understand what technical advice you are offering here. Please elaborate with further details, preferably in the form of a set of commands that could be run. Thanks -- J.W.
 
Old 09-09-2004, 08:52 PM   #6
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
jw; no am not offering techincal advice.
just pointing where solutions maybe found. if notice poster,s have no idea where to look for answers. that is all am attempting to help with!
 
Old 09-09-2004, 11:35 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
penguin4 - I realize you are trying to help, but if you are going to make suggestions about how to solve a particular technical problem, your advice should be based on your own personal experience and/or knowledge, which you believe will likely lead to a solution. Simply replying to a post by suggesting that a solution will be found by "looking around" at things does not meet those standards. That's sort of like just telling people that no matter what their question is, it can be solved by doing a Google search.

All I am asking of you is that if you are going to reply to a post, that your response include specific, clear, step-by-step comments. Vague, non-specific comments do not help anybody. -- J.W.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB>RS232 versus PCMCIA>RS232 jayhel Linux - Laptop and Netbook 2 08-04-2005 06:09 PM
console login through RS232/serial port ? Yalla-One Linux - Software 3 02-24-2005 04:12 PM
USB - Serial RS232 Adapter blox Linux - Hardware 3 01-28-2005 10:58 AM
RS232 serial port programing blackzone Programming 2 08-11-2004 12:54 AM
serial port: RS232 RS574? blackzone Linux - Hardware 1 08-10-2004 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration