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 01-06-2011, 11:48 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
How to connect to a serial /dev/ttyS2 connection...


I have a Cisco Switch that is connected to my computer via serial. I simply want to configure the switch via the serial connection from within a terminal.

I edited the /etc/inittab to include agetty for ttyS2 and ttyS3. The switch is hooked up to one of the two.

I ran
Code:
init q
to re-read the inittab

Ran a
Code:
ps -ef
and I can see the two agettys

I also have run a dmesg to confirm that my computer has detected ttyS terminals.

The requirements for the cisco switch connection are the following:
8 data bits
no parity
1 stop bit
no flow control
115200 bits per sec baud rate

How do I connect to /dev/ttyS2 or /dev/ttyS3?

I've tried
Code:
agetty -8 115200 ttyS2 vt100
but it just hangs.

Tried that with ttyS3 as well.
 
Old 01-06-2011, 12:02 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,793

Rep: Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162
Quote:
Originally Posted by trist007 View Post
I have a Cisco Switch that is connected to my computer via serial. I simply want to configure the switch via the serial connection from within a terminal. I edited the /etc/inittab to include agetty for ttyS2 and ttyS3. The switch is hooked up to one of the two.

I ran
Code:
init q
to re-read the inittab

Ran a
Code:
ps -ef
and I can see the two agettys

I also have run a dmesg to confirm that my computer has detected ttyS terminals.

The requirements for the cisco switch connection are the following:
8 data bits
no parity
1 stop bit
no flow control
115200 bits per sec baud rate

How do I connect to /dev/ttyS2 or /dev/ttyS3?

I've tried
Code:
agetty -8 115200 ttyS2 vt100
but it just hangs. Tried that with ttyS3 as well.
Shouldn't have to do ANYTHING with agetty...in fact, that's probably keeping you from doing what you want. Install (or run) minicom, which is like Procomm (from back-in-the-day), or Hyperterm in Windows. Set it to use /dev/ttyS2, then you're in....minicom is a serial terminal emulator.
 
Old 01-06-2011, 03:21 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Thank you very much.
 
  


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
No init on /dev/ttyS2 (modem) gamfa Amigo 0 01-24-2005 08:52 PM
Problems with ttyS2 jfbertrand Linux - Hardware 2 11-22-2004 09:49 AM
Connect to a machine via a serial connection Toshi3 Linux - Newbie 16 11-06-2004 10:43 PM
/dev/ttyS2: No such file or directory mkzmonkeylagger Linux - General 2 04-18-2002 09:03 PM
ttyS2 & setserial awtoc123 Linux - Networking 0 04-01-2002 10:48 AM


All times are GMT -5. The time now is 11:30 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