LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-24-2005, 09:44 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Trying to get COM (ttyS0) working!!


I just bought a ton of cisco stuff, and I am itching to play with them!!

I have Slackware 10.2 on a Thinkpad T20. I am trying to use a serial connection to the console port of the routers/switches/firewall I just bought. I have tried using minicom (too confusing), cutecom, a gcomm and screen. Cutecom, screen and gcomm gave me errors (see below). Please help me get serial working!! The settings I need for serial communations are:

Type: VT100
BPS: 9600
Databits: 8
Parity: None
STop Bits: 1
FLow Control: None

Error in Cutecom:
tcgetattr() 2 failed
tcgetattr() 3 failed
tcsetattr() 1 failed
tcgetattr() 4 failed
tcsetattr() 2 failed

Error in gcomm:
SerialOpen: tcgetattr:: Input/output error

Error in Screen:
/dev/ttyS0 is not a tty

Out put of setserial /dev/ttyS0
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4


HELP PLEASE!!
 
Old 10-24-2005, 10:12 PM   #2
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
I'm not for sure but you may need a crossover for the console port. Check the manual of the cisco part, that manual should also list all of the parameters you need to connect with. At work all of the cisco switches that we buy that have console ports also have a web interface for everything. You just need to use a program that's somewhere on their website (if you are lucky it will be on the cd that came with it) to give it a static ip.

also you may want to try replacing the 0 in /dev/ttyS0 with another number. For some reason the serial port on my system is at /dev/ttyS2 while the previous two are not used for anything.
 
Old 10-24-2005, 10:31 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Actually, you use a rollover cable, which I am using. I am going to try the different numbers.

You think my laptop (and serial port) is configured correctly?
 
Old 10-24-2005, 10:54 PM   #4
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I tried all other numbers, no luck.
 
Old 10-24-2005, 10:59 PM   #5
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
I have know idea how to configure a serial port under linux. I only know it's on /dev/ttyS2 because I just kept incrementing the number and ttyS2 got the switch to spit out a few lines of gibberish before it dropped the connection. At which point I gave up at found cisco's app for configuring their switches.
 
Old 10-25-2005, 09:33 AM   #6
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I connected the DB9 adpater and rollover cable to my other PC (also running Slackware 10.2). GCOMM says "Device Open" when I use the connection settings, and Cutecom also seems to accept the connection, however, I can't get any reaction from the router. I need to send a recieve text from the devices.

Anyone that has talked with a cisco device using linux, please post your setup!!
 
Old 10-25-2005, 02:54 PM   #7
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
bump
 
  


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
Opening ttyS0 someshss Linux - General 5 08-19-2005 08:44 PM
l and ttyS0 Gins Linux - General 4 08-06-2005 01:13 PM
Using ttys0 LWATCDR Programming 5 04-26-2005 04:37 PM
ttyS0 missing jamezg Debian 1 06-28-2003 11:22 PM
Modem ttyS0 Pedroski Linux - Software 0 01-27-2002 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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