LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2009, 03:42 PM   #1
john_erlandsson
Member
 
Registered: Jul 2009
Location: Sweden
Distribution: Fedora
Posts: 70

Rep: Reputation: 1
Serial port input/output error


Hi!

Im new to this forum and very new to linux.

Im running:

Fedora 11.
kernel-PAE.i686 (had to install this to get ndiswrapper to work)

My problem is:

I cant get the serial ports working. They are working under windows vista, so they cant be disabled in BIOS (i guess)

The command setserial -g /dev/ttyS* gives the output:
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

and according to this page that means that they dont exist.

I made a D-SUB where i crossed the wires to send back all the signals i send. And tried it in GTKTerm. But nothing happend except that everytime i tried to connect to a port the line: Input/Output error appeared in the konsole.

Could someone please help me with this? I googled like crazy, but could not find anything helpful.

Thanks

//John

Last edited by john_erlandsson; 07-23-2009 at 04:41 PM.
 
Old 07-23-2009, 05:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ,

And what does your serial.conf look like?


Cheers,
Tink
 
Old 07-23-2009, 05:33 PM   #3
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Windows may be seeing an atypical or soft interrupt. Check your CMOS to see if you can set the port to a specific IRQ and Interrupt. The output from setserial are the standard settings that should be used where possible.

When you made that loopback plug, did you connect the RTS and CTS pins? If you have an external modem, you should be able to send the command !ATK and get back an OK. Much easier than making a loopback.

Last edited by Suncoast; 07-23-2009 at 05:34 PM.
 
Old 07-23-2009, 06:00 PM   #4
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
if youre getting an IO error, it can sometimes be that the serial ports are not enabled in the BIOS.

my guess would be to reboot and check.
 
Old 07-24-2009, 08:58 AM   #5
john_erlandsson
Member
 
Registered: Jul 2009
Location: Sweden
Distribution: Fedora
Posts: 70

Original Poster
Rep: Reputation: 1
Hi!

Cant find serial.conf... Is it a file?

I checked the bios, but cant find anything that has to do with the serial port.
My serial port is on a pci I/O card and not on the motherboard.

//John
 
Old 07-24-2009, 11:51 AM   #6
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Should be /etc/serial.conf

Does your add-in card have jumpers on it? If not, then the card is likely a PNP (Plug aNd Play) and will be set by the setserial command. If it does have jumpers, you'll need to find the documentation for the serial card to manually set the IRQ (4 or 3) and the I/O address (3f8 or 2f8).
 
Old 07-26-2009, 03:36 PM   #7
john_erlandsson
Member
 
Registered: Jul 2009
Location: Sweden
Distribution: Fedora
Posts: 70

Original Poster
Rep: Reputation: 1
the card does not have jumpers.
and i cant find the file serial.conf or anything similar

i tried the command: setserial /dev/ttyS0 uart 16550
but i still get the same error as before

Control signals read: Input/output error

What else can i try?
 
Old 07-26-2009, 05:31 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,265

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
look at the output of the lspci -vv and dmesg commands to see of the PCI card is being recognized. The output of the lspci -vv command should show what i/o,irq the card is configured to use. PCI cards may not use the standard I/O ports and IRQs typical of those built into the motherboard. You can look at the hardware info in windows to also find out what IO ports / IRQ the card is using. You can configure the port using the setserial command once the this information is found.
 
Old 07-26-2009, 05:48 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Which rpm package in FC owns /etc/serial.conf ?
 
Old 07-27-2009, 09:47 AM   #10
john_erlandsson
Member
 
Registered: Jul 2009
Location: Sweden
Distribution: Fedora
Posts: 70

Original Poster
Rep: Reputation: 1
The command lspci -vv gave me all the info i needed.

I managed to set the IRQ, UART and PORT.

They both work now... I dont know if the paralellport works, but i will leave that for later...

Thank you very much for your help.

//John
 
  


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
Creating a bash script with serial port input Elv13 Linux - Hardware 10 06-08-2010 08:01 AM
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 12:51 PM
RPM iinstallation [error: failed to stat /mnt/windows: Input/output error] Ameii83 Linux - Software 1 04-09-2007 08:05 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 06:02 AM
How to Redirect serial port input to a file Legaviu Linux - General 1 07-31-2001 08:23 PM


All times are GMT -5. The time now is 12:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration