Array Setup and Networking
1748219 Members
4680 Online
108759 Solutions
New Discussion

Re: Serial Cables and Connectivity

 
amirul93
Advisor

Serial Cables and Connectivity

Whilst hardware vendors continue to rely on serial connectivity for low level activities or setup (come one vendors, there must be a better way), us engineers will always have a need to keep the serial cable in our bags. But this presents its own challenges which I will try to articulate over the next few paragraphs. It tends ot be a bug bear of all engineers and I'm kind of hoping that some of the tricks I've picked up over the years will help someone out there be a little less frsutrated.


Modern laptops do not come with serial ports, so the only way we are going to connect serial cables is to buy a USB-to-Serial adaptor, which gives you a serial port by plugging into your USB port.


TIP #1 Buy a decent USB-to-Serial adapter. These are plentiful on Amazon and Ebay (there are other retailers too). Pick a reputable retailer that provides customer reviews of its products. Try to opt for a known brand version however this does not necessarily mean it will be a good device, so read the customer reviews. More importantly make sure the vendor has a website that maintains drivers for the product.

TIP #2 Make sure the vendor has a software driver for the version of Operating System you are using. I am running Windows 8 (which has been around for a bit now) and there is STILL no driver for my OS. This means I cannot use the USB-to-Serial adaptor on my laptop so it is useless. How did I get round it?

TIP #3 Use a Virtual Machine. I run VMware Workstation on my laptop, (but VirtualBox or others can be used). I have a Windows 7 VM running on my Windows 8 laptop for the sole purpose of using my Serial adapter because there is a Windows 7 driver for it.

TIP #4 When you connect your USB-to-Serial device to your computer, go to Device Manager (in Windows) and verify which COM port it is using. Expand the Universal Serial Bus controllers and it should appear under there, listing the COM port it is using. Verifying the COM port saves a lot of hassle troubleshooting when you are not getting any connectivity.

So you have now confirmed that you have the correct drivers, and your laptop sees it on COM3, then

TIP #5 Test it works BEFORE going to a customer site. I was lucky enough to have an old router with a serial port I could test connectivity to, but you may need to do this on some devices in your work lab or something, The point is, verify your kit works or get it working before you go to a customer site otherwise you end up wasting time with a customer and looking foolish.

But you chose to ignore TIP #5 or didn't have kit to test on and now you are at a customer site and cannot connect to the device and don't know why, then

TIP #6 Use customer equipment if possible. Ask if you can use the customers laptop if he has one. If not,  most (if not all) servers have a serial port, so ask the customer if you could temporarily connect your serial cable to a server and run a terminal session from there to the device you are configuring. This may not always be possible, and will be dictated by the customer's access to other equipment, security policies or even his willingness to assist, hence TIP #5 is crucial.

So now we have connected to our device one way or another, we need a terminal emulator to open our SSH connection and run commands

TIP #7 Use a quality terminal emulator. Quality does not necessarily mean paid for...I use PuTTy which can be downloaded for free. What you want is a product that has a number of features that makes using it more useful, i.e. easy copying and pasting, running previous commands, output to text file and save configuration (see TIP #9)

TIP #8 When establishing a connection to the device, verify the settings to use ie COM Port, Baud Speed, Stop bits, Flow Control, etc. Take a few minutes to verify these settings from the vendor documentation. It saves you from having to cycle through all varieties of settings in the hope of getting the right combination or

TIP #9 Save the configuration and give it a name. I have the settings needed for Nimble Storage saved, so when I want to connect to a Nimble controller, I open up PuTTy, load the Nimble saved config and all the settings are there.

So we have finally established a connection to our device, in this case it is a Nimble array to run set up (I am not using the Windows Setup Tool because I am hardcore :-)).

When you setup the Nimble Array through the CLI (after reading through the Legal Disclaimer - Please Nimble give us a single key shortcut to scroll to the end), sometimes you come across an issue where a setting does not take or you input the wrong information (subnet mask for example). In which case you have to cancel out of the setup and run it from the start again (including reading the disclaimer). To prevent this,

TIP #10 Just set up the management interfaces on a single network and do a basic simple setup (even if its not the final configuration, just to get a management IP on the array. That way when setup is finished, you can simply plug your network cable in, and open up the Nimble GUI via a web browser and then input the full configuration there. This final tip actually demonstrates that I'm not actually that hardcore, as I prefer the easy route and it's easier to configure the system via the Nimble GUI.

I hope the above has been useful and if anyone wants to add, please do and keep the thread going.

9 REPLIES 9
sgalbincea137
Advisor

Re: Tips and Tricks - Serial Cables and Connectivity

The Prolific PL-2303 USB to serial works great with Windows 8.1. The drivers are updated on their site regularly and there are several brands that use this chipset. The one I have is here: Amazon.com: Plugable USB to RS-232 DB9 Serial Adapter (Prolific PL2303HX Rev D Chipset): Computers & Accessories

Virtualization Lead Architect
BEMA Information Technologies
amirul93
Advisor

Re: Serial Cables and Connectivity

Nice one. Could be handy for all those Windows 8.1 users to know that this device has been validated by a community member.

rlabarre65
Occasional Advisor

Re: Serial Cables and Connectivity

I second the Prolific USB to serial adapter.  Ive been using it for about a year with great results.

amirul93
Advisor

Re: Serial Cables and Connectivity

Be careful though guys as there are a lot of counterfeit versions out there as stated on their website:

Products

tmcmullin51
Advisor

Re: Serial Cables and Connectivity

And don't forget - most serial devices use 9600 baud, but Nimble systems use 115200.  If you forget this, the system only speaks in heiroglyphics!

tmcmullin51
Advisor

Re: Serial Cables and Connectivity

I also like having two (2) of those USB-to-serial adaptors, either on separate USB ports or on a USB splitter - this allows you to connect to each controller at the same time.  If you've ever worked on a system while someone is tweaking the network switch ports upstream, you know what I mean.  The controllers will failover back and forth due to the loss of connectivity, and there's only so much walking around the cabinet to change cabling that I can take...

tmcmullin51
Advisor

Re: Serial Cables and Connectivity

Also, PuTTY Connection Manager is a nice add-on to PuTTY if you're a Windows user.

amirul93
Advisor

Re: Serial Cables and Connectivity

Both really good tips Taylor. Thanks.

cwhitfield105
New Member

Re: Serial Cables and Connectivity

Interesting that Windows users prefer cables based upon the PL2303* chipset, it is the same for Mac OS X. A OS X 10.9 Mavericks driver for PL2303 cables can be found on SourceForge. OS X 10.7 Lion used to require a little kext hack, I haven't tried with 10.9 but I can provide details if you're having trouble getting your cable to work.

As for the terminal emulator, I used to use CoolTerm for OS X. However, I learned early on that the chaps in Nimble Storage Support prefer Putty as a rule. If I ever need Support to drive something via Webex, I give them what they want by spinning up a Windows VM with Putty.

* used by many vendors such as ATEN, IOData, Elcom, Itegno, Ma620, Ratoc, Tripp, Radioshack, Dcu10, SiteCom, Alcatel, Samsung, Siemens, Syntech, Nokia, MS3303H.