LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-12-2013, 11:56 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
serial ports


Hi, I do a bit of work on HP Itaniums. From my windows computer I can putty into the console of this computer via the serial port on my PC.

I tried this on a linux box - CentOS6.4. The motherboard has 2 serial ports. A grep on dmesg shows:
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
I am not sure which is which so I plugged the cable into both and I tried to connect via /dev/ttyS0 and ttyS1. This always gives me:

Unable to open connection to:
Unable to open serial port
The sad thing is that I get the same response on ttyS2 & ttyS3. I guess the question is...how do I diagnose activity on the serial ports?

Cheers
 
Old 03-13-2013, 07:31 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
A simple test can be accomplished by using minicom and serial loop back plug or just a jumper between pins 2 & 3. Configure minicom for no hardware flow and the desired port. If you see what you type then you have identified the correct connector / serial port device ID.
 
1 members found this post helpful.
Old 03-14-2013, 05:48 PM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
thanks. I was not aware of minicom which I will have to play with first. serial loop back plug, I know what you mean. Since I started working from home though, I'll have to hunt around for places to get one.
 
  


Reply



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
Using serial ports G3RIR Linux - Newbie 3 12-30-2011 11:48 AM
Serial ports, USB-Serial adapters, and Linux Daravon Linux - Newbie 3 09-09-2010 06:53 AM
more then 4 serial ports mattsoftnet Linux - Hardware 15 09-23-2007 08:44 AM
serial ports pricej DamnSmallLinux 1 02-03-2006 03:21 AM
Serial ports KenHorse Programming 2 12-27-2004 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:33 PM.

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