Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all. I recently installed Xubuntu 14.04 onto one of my extra computers, and I am attempting to access some of my Cisco equipment using a Serial-to-USB adapter and the standard Cisco rollover cable.
I have read through MANY how-to's online and have followed all of them verbatim to try to get this working, and still no luck. I have verified that my serial device is listed as ttyUSB0 and have successfully installed minicom 2.7. I appropriately adjusted settings to 9600bps, with parity/data/stopbits set to 8-N-1 and disabled flow control.
When I attempt to connect to a Cisco device, minicom loads properly, but then begins to display unreadable characters. (The characters look like rectangular boxes with tiny illegible letters inside the boxes) I have tried everything I can think of to get this to work, but I just cant figure it out. If anyone can help, that would be greatly appreciated.
You did not mention model numbers but are you connected to the console port vs aux port?
With non ASCII characters being displayed my first thought would be to go back and verify the settings again.
You can jumper pins 2-3 (loop back) on the USB serial connector and verify that what you see is what you type. Will not verify settings since receive and send will be set the same.
The unreadable characters clearly indicates that Minicom is receiving something, just not a data stream it's able to make sense of. Are you sure both the serial cable and the USB adapter are working correctly?
The speed of the serial port on Cisco equipment can be changed by manipulating the configuration register. Are you sure this particular router is still using 9600/8/n/1? Have you tried other speed settings in Minicom?
@michaelk -
I have tried both 2950's and 2651XM's, switches and routers. I am utilizing the console port on the cisco equipment. I have checked and double checked the settings of minicom with no luck.
@Ser Olmy -
Yes, minicom is certainly reciving something, and based on when and how the non-readable characters are showing up, it seems to indicate the normal boot patern of the cisco IOS. Both my windows 7 and 8 machine are able to communicate with these devices using the same usb-to-serial adapter cable and rollover cable utilizing either putty or teraterm at the speed of 9600.
" Cisco rollover cable" Not really a rollover. Some junior person might grab that and think they can use it some other place.
If we assume you did use the blue flat cisco cable then I'd think that the tty settings are wrong for terminal. Usually something like 9600 maybe 8 no parity. Defaults could have been changed in cisco too.
@jefro -
The cable that is being used could be more accurately discribed as a Flat Blue DB9 to RJ45 Cisco Console Cable rather than a "rollover" cable.
I would also assume that the TTY settings are wrong. However, in minicom, it shows:
E - Bps/Par/Bits : 9600 8N1
Is there any other location where the TTY settings could be off? Maybe outside of minicom?
Last edited by nigelcharger; 12-14-2014 at 03:05 PM.
@jefro -
The only setting I ever adjust in my windows version of putty is the speed or the serial line. Those are currently set to COM3 and 9600. Everything else is set to defult.
As far as minicom, i have serial device set to /dev/ttyUSB0, Bps/Par/Bits set to 9600 8N1, hardware flow control off (set to no), and software flow control off(set to no).
Based off what I see, I know that the cables are good, they work with putty on windows box. I know that the cisco equipment is good and is properly set to 9600 speed. It has to be something within Xubuntu.
@michaelk
Took your advice and installed cutecom. Very familiar feel. I connected to my 2950 switch and as soon as I powered it up, information came flying accross the screen. I switch to hex output, and then took that output and convert it. Sure enough, the translation converted to ASCII is the unreadable characters I mentioned before.
@michaelk
Yea, same exact usb adapter. Since it is drastically easier to change your connection settings in cutecom, I even took the liberty to try differnet baud rates, none were successful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.