LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to connect to a serial /dev/ttyS2 connection... (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-connect-to-a-serial-dev-ttys2-connection-854655/)

trist007 01-06-2011 11:48 AM

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.

TB0ne 01-06-2011 12:02 PM

Quote:

Originally Posted by trist007 (Post 4215461)
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.

trist007 01-06-2011 03:21 PM

Thank you very much.


All times are GMT -5. The time now is 06:50 PM.