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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-08-2007, 04:52 PM
|
#1
|
Member
Registered: Jul 2004
Posts: 43
Rep:
|
Crazy Serial Port Problem
Hello All, I am having a major issue trying to configure a couple of serial ports.
I am running SuSE10 SP1 on an IBM Sure POS with 4 serial ports. This box will be running 3 serial peripherals, a scanner gun , a printer & cash drawer. I cannot get com3 & com4 to work ( ttyS2 & ttyS3 ).
If I plug my printer into ttyS0 and cat test.txt > /dev/ttyS0, I get the printer to work. This also works for /dev/ttyS1. Nothing happens when I try it on either ttyS2 or ttyS3. Now, I have the same hardware here running SuSE8 and I can hook the printer up to ttyS2 & ttyS3 and it prints. I am driving myself crazy trying to figure this out !!! Any thoughts? Using setserial doesn't help, matching the settings for the ttyS* from the SuSE8 box to the SuSE 10 box ( UART , port, irq settings) didnt do anything either.
Thanks in Advance!
here is setserial info
testbox:~ # setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
testbox:~ # setserial /dev/ttyS1
/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
testbox:~ # setserial /dev/ttyS2
/dev/ttyS2, UART: 16550A, Port: 0x18c0, IRQ: 11
testbox:~ # setserial /dev/ttyS3
/dev/ttyS3, UART: 16550A, Port: 0x18b8, IRQ: 11
testbox:~ #
here is the contents of /proc/tty/driver/serial:
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:158 rx:0
1: uart:16550A port:000002F8 irq:3 tx:0 rx:0
2: uart:16550A port:000018C0 irq:11 tx:474 rx:0
3: uart:16550A port:000018B8 irq:11 tx:79 rx:0
|
|
|
08-08-2007, 05:12 PM
|
#2
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
I do not think com ports should have the same IRQ. Make sure they have their own IRQ.
Do you need the updates that SUSE 10 gives you? If not, use SUSE 8 instead.
Though it could be how SUSE 10 developers compile the kernel. They probably left out option for more than two com ports.
If it were me, I would screw SUSE and go with Gentoo.
|
|
|
08-08-2007, 05:49 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,358
|
A typical PC, COM 2,4 (ttyS1,ttyS3) share IRQ3 and COM 1,3 (ttyS0,ttyS2) share IRQ4.
It is reasonable that the com ports on the same PCI card would have the same IRQ.
There could be a conflict with other PCI devices. Check to see if your ethernet adapter is also IRQ11.
|
|
|
08-09-2007, 08:35 AM
|
#4
|
Member
Registered: Jul 2004
Posts: 43
Original Poster
Rep:
|
Thanks for the quick responses , Electro, unfortuniately I have to upgrade to SuSE10, switching over to Gentoo is not an option. As my father always told me, " You gotta dance with the girl you brought !"
I tried various irq changed with no success. I verified the settings for a SuSE8 box that works and using setserial changed the settings for ttyS2&3 to match the working box for uart, port & irq & still nothing. For testing / troubleshooting purposes, I am only using the printer connected.
I gotta be missing something obvious here!!
Thanks,
Steve
|
|
|
08-09-2007, 06:13 PM
|
#5
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
Check if the parity and baud rate is correct. Also verify the kernel options for SUSE 10 is the same as SUSE 8. If it is different, you may have to re-compile the kernel for SUSE 10. Though it does help to get a serial diagnose device to know if data is being sent to the printer.
SUSE may look pretty, but it is ugly inside.
|
|
|
All times are GMT -5. The time now is 03:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|