LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 03-12-2013, 11:56 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 244

Rep: Reputation: 38
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: 11,561

Rep: Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684
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: 244

Original Poster
Rep: Reputation: 38
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


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
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


All times are GMT -5. The time now is 08:15 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration