Fedora Linux Support Community & Resources Center
  #1  
Old 19th January 2011, 12:09 PM
daniel520 Offline
Registered User
 
Join Date: Mar 2010
Posts: 28
linuxfedorafirefox
How to coonect to serial port

hello guys,
i would like to connect to my cisco via a console port and i dont konw how
Reply With Quote
  #2  
Old 19th January 2011, 02:35 PM
gthill Offline
Registered User
 
Join Date: May 2005
Location: g-land, east java
Age: 50
Posts: 387
windows_xp_2003firefox
Re: How to coonect to serial port

In the long distant past I have used minicom for serial port connections. It was once a default install on fedora. Perhaps a "yum info minicom" might help you out now.
Reply With Quote
  #3  
Old 19th January 2011, 03:48 PM
daniel520 Offline
Registered User
 
Join Date: Mar 2010
Posts: 28
windows_xp_2003ie
Re: How to coonect to serial port

i tryed it and tryed agetty and migetty
i'm getting error no /dev/ttys0 not found in minicom

and in : agetty -h -t 60 ttys0 9600 vt 102
get empty line
Reply With Quote
  #4  
Old 19th January 2011, 06:12 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,210
linuxfirefox
Re: How to coonect to serial port

Quote:
Originally Posted by daniel520 View Post
i tryed it and tryed agetty and migetty
i'm getting error no /dev/ttys0 not found in minicom

and in : agetty -h -t 60 ttys0 9600 vt 102
get empty line
For starters, there is no such thing as /dev/ttys0, but you should find /dev/ttyS0. That's with a capital "S" As always, Linux is totally case sensitive.

You can use the setserial command, as root, to view/set parameters on your serial ports. See "man setserial". By default, Fedora will usually show 4 default serial ports: ttyS0....ttyS3, even though you may only actually have one or two real serial ports. If you don't have any actual serial ports but are using a USB>Serial adapter, then the working "serial" port is /dev/ttyUSB0[1,2,3...].

To query your serial port(s) with setserial:
Code:
BASH:~/-> sudo setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0xa000, IRQ: 16
...or to get the results returned in the format you would use to set the parameters, use the -G option:
Code:
BASH:~/-> sudo setserial -G /dev/ttyS1
/dev/ttyS1 uart unknown port 0x02f8 irq 3 baud_base 115200 spd_normal skip_test auto_irq

BASH:~/-> sudo setserial -G /dev/ttyUSB0
/dev/ttyUSB0 uart 16550A port 0x0000 irq 0 baud_base 9600 spd_normal skip_test auto_irq
On my system I have both a single real serial port (ttyS0) a one USB>Serial adapter serial port. Notice that on ttyS0 and ttyUSB0 the uarts are identified (as 16550A's). That means these are real ports. For ttyS1, the uart is reported as "unknown", which means that that port is actually non-existent..... it's a "phantom" port.

I give you this information so that you can know for sure what ports you have and what their current parameters are set to. Minicom is not the easiest program to learn. I've used it in the past a lot, but have switched to using PuTTy (yum install putty), which can provide you with a VT for a serial port with much easier GUI configuration that the minicom configuration scheme.

Also, before you can get any data to flow between your VT, whether minicom, putty or anything else, and the device connected to the serial port, the ports baud rate must be set to match the working baud rate of the device connected to it. I know nothing about Cisco routers, and what command set is used on them. Hope this helps, even if only a little.

Last edited by PabloTwo; 19th January 2011 at 06:14 PM.
Reply With Quote
  #5  
Old 19th January 2011, 09:46 PM
daniel520 Offline
Registered User
 
Join Date: Mar 2010
Posts: 28
windows_xp_2003ie
Re: How to coonect to serial port

well , i tryed all this and more
GUI interface line putty , all gave the same results ..... nothing
how can i debaug the serial port
and see why it acting like this ???!
Reply With Quote
  #6  
Old 19th January 2011, 07:13 PM
William Haller Online
Registered User
 
Join Date: Jul 2005
Age: 54
Posts: 1,096
linuxfedorakonqueror
Re: How to coonect to serial port

Another good GUI interface (if you are running X at least) is gtkterm.
Reply With Quote
  #7  
Old 19th January 2011, 10:03 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,899
linuxfedorafirefox
Re: How to coonect to serial port

You usually need a crossover cable if you are connecting a PC to
another device.... unless that device is a real terminal. A null modem
cable won't work.

Sometimes a line tester is useful for this too (a breakout box) as they
usually have LEDs for each line.
Reply With Quote
  #8  
Old 19th January 2011, 11:36 PM
daniel520 Offline
Registered User
 
Join Date: Mar 2010
Posts: 28
windows_xp_2003ie
Re: How to coonect to serial port

its not connectivity problem for sure ,because i used same cable in windows and it connect to console

i'm missing somthing , i dont know what , but all the app that i used to connect to the serial port gave same error "unable to open serail port"

it never worked for me in any linux environment , so i think its only a setting problem
i just need to know what i'm missing here ...
Reply With Quote
  #9  
Old 19th January 2011, 11:44 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,899
linuxfedorafirefox
Re: How to coonect to serial port

Out of curiosity, have you tried running minicom as root?

I think I've identified a permissions problem that doesn't occur as root.

/dev/ttyS0 (serial line) is owned by root, group dialout. Yet minicom is
neither setgid to dialout, nor does it have permissions to access via
SELinux controls.
Reply With Quote
  #10  
Old 19th January 2011, 11:59 PM
William Haller Online
Registered User
 
Join Date: Jul 2005
Age: 54
Posts: 1,096
linuxfedorakonqueror
Re: How to coonect to serial port

Linux also might handle signal lines like CTS, RTS, DCD, DTR, DSR and the like differently than Windows. You can't guarantee the cable will work on Linux just because it works in Windows. It probably will, but it isn't guaranteed.

As root, I've used serial cables connected to switch gear, so I know the basics work at least in F13 - haven't tried in F14 but would assume there is no change. As JPollard mentioned, there could be permission issues for regular users.
Reply With Quote
  #11  
Old 20th January 2011, 12:57 AM
daniel520 Offline
Registered User
 
Join Date: Mar 2010
Posts: 28
linuxfedorafirefox
Re: How to coonect to serial port

well thanks guys for all the replays
i really appreciate it....

i tryed brfor minicom as root and it didnt work , but i decided ti give it a try with ttyS0 with big "S"
and yes guy .................w..........o............r........ ....k.......i........n..............g............. ............
yehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

thanks to you all guys
just to let you know guys i also tryed puty and agetty afain with big S , nothing ,,, only minicom ..................
Reply With Quote
  #12  
Old 20th January 2011, 01:03 AM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,210
linuxfirefox
Re: How to coonect to serial port

jpollard may have hit on something about permissions. I am able to use /dev/ttyUSB0 as non root by adding myself (regular user account) to the dialout group. But if you are doing all this as root anyway, then adding yourself to the dialout group won't do anything to resolve your "unable to open serial port" issue. If your serial cable works in Windows, it should also work fine in Linux.
Reply With Quote
  #13  
Old 20th January 2011, 07:28 AM
daniel520 Offline
Registered User
 
Join Date: Mar 2010
Posts: 28
linuxfedorafirefox
Re: How to coonect to serial port

thanks to you all guys for the tips and for helping me fix this problem ..
Reply With Quote
  #14  
Old 20th January 2011, 11:36 PM
lcamp Offline
Registered User
 
Join Date: Dec 2010
Posts: 21
linuxchrome
Re: How to coonect to serial port

Code:
minicom -S
Set it to the cisco parameters for serial interface
and change the dev to /dev/ttyS00 or /dev/ttyS01
9600 8N1 I think
then run
Code:
minicom
Reply With Quote
Reply

Tags
coonect, port, serial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] serial port volbollo Using Fedora 28 9th January 2013 07:49 PM
help with serial port! zacharysturgeon Using Fedora 1 16th November 2007 07:23 AM
Serial Port not available on FC7, ok FC5 tcfordjakarta Hardware & Laptops 2 31st July 2007 07:38 PM
Need serial port on a PS3 thriftyrocker Mac Chat 4 14th March 2007 04:24 PM


Current GMT-time: 23:31 (Monday, 22-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Wisata Gunung Bromo Travel Photos on Instagram - Starlets Cheerleading - Fiermonte BOXE Instagram Photos