LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 09-25-2005, 09:09 PM   #1
MyForever
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
How to enable multi serial port sharing irq ?


I am working with a system with 10 serial ports, com1 and com2 are the

stand serial port in the pc , and com 3£_£_£_com6 are extended ports

sharing irq 6 , com7£_£_£_com10 are extended ports sharing irq15 ,

now I want to use them in linux (RH9.0) , com1 and com2 are successful,

but the other 8 coms are not working correctly, I only can send data ,

but can't receive data.

what I do is adding a file named rc.serial in /etc .

Code:
setserial /dev/ttyS2 port 0x300 irq 6 uart 16550A ^fourport
setserial /dev/ttyS3 port 0x308 irq 6 uart 16550A ^fourport
setserial /dev/ttyS4 port 0x310 irq 6 uart 16550A ^fourport
setserial /dev/ttyS5 port 0x318 irq 6 uart 16550A ^fourport
setserial /dev/ttyS6 port 0x320 irq 15 uart 16550A ^fourport
setserial /dev/ttyS7 port 0x328 irq 15 uart 16550A ^fourport
setserial /dev/ttyS8 port 0x330 irq 15 uart 16550A ^fourport
setserial /dev/ttyS9 port 0x338 irq 15 uart 16550A ^fourport

setserial /dev/ttyS2 set_multiport port1 0x340  mask1 0x0F match1 0x0F
setserial /dev/ttyS6 set_multiport port2 0x340  mask2 0xF0 match2 0xF0

the serial port is rs422, what should I do something else to enable them??

Last edited by MyForever; 09-25-2005 at 09:13 PM.
 
Old 09-27-2005, 06:51 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Sounds like 1980 all over again! What do you put on there - teletype machines?

Anyway the Serial HOWTO http://www.tldp.org/HOWTO/Serial-HOWTO.html has a section on multiple serial ports. Never used more than two at once myself (and had some problems then I recall )
 
Old 09-28-2005, 12:00 AM   #3
MyForever
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by maroonbaboon
Sounds like 1980 all over again! What do you put on there - teletype machines?

Anyway the Serial HOWTO http://www.tldp.org/HOWTO/Serial-HOWTO.html has a section on multiple serial ports. Never used more than two at once myself (and had some problems then I recall )

thank you!

some serial devices which are in the working condition where there are no screens nor mouse

the embedded system is design to collect some data from serial devices and then send them by network

I know http://www.tldp.org/HOWTO/Serial-HOWTO.html ,and refer to it too.

any other suggestions?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
serial: ttyS0 - how to use the IRQ ?hi! cardias Programming 1 09-01-2004 11:10 AM
Sharing IRQ wrongman Linux - Hardware 3 05-10-2004 05:08 PM
IRQ sharing Serena Linux - General 2 04-28-2002 04:02 AM


All times are GMT -5. The time now is 04:48 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration