{"id":985,"date":"2016-03-28T18:29:26","date_gmt":"2016-03-28T18:29:26","guid":{"rendered":"\/?post_type=ht_kb&#038;p=985"},"modified":"2018-03-10T20:40:10","modified_gmt":"2018-03-10T20:40:10","slug":"connecting-serial-ports-and-usb-to-your-pc","status":"publish","type":"ht_kb","link":"https:\/\/www.use-snip.com\/kb\/knowledge-base\/connecting-serial-ports-and-usb-to-your-pc\/","title":{"rendered":"Connecting Serial Ports and USB to your PC"},"content":{"rendered":"<p>To connect a serial stream in <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> see the article:\u00a0\u00a0 <a href=\"\/kb\/knowledge-base\/adding-serial-uart-data-streams\/\" target=\"_blank\" rel=\"noopener\">Adding Serial UART Data Streams<\/a><\/p>\n<p>To understand issues with drivers, see the article: <a href=\"\/kb\/knowledge-base\/problems-usb-serial-ports\/\">Problems with USB \/ Serial Drivers<\/a><\/p>\n<p>To understand and connect all the <span style=\"text-decoration: underline;\">physical cables<\/span> needed, read on&#8230;\u00a0\u00a0\u00a0 This article covers a few products and best practices on how to build up a collection of serial ports drivers and USB converts on other windows and *nix systems. The primary goal is to address the readers need to know how to &#8220;hook things up&#8221; without much support time so they can avoid spending time in &#8220;cable and driver hell&#8221; when things do not work.<\/p>\n<h4>USB Adapters, USB Hubs<\/h4>\n<p>There are many sources one can use for serial\u00a0 convertors.\u00a0 Your favorite electronics supplier will have many to select from.\u00a0 Here are two that have always proven themselves to SCSC over the years on both Windows and Unix systems, as well as for a number of embedded device projects implemented on various popular ARM processors board including Panda, Beagle Bone Black, and Dragon board.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/03\/USBparts-crop2.jpg\" rel=\"attachment wp-att-981\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-981 size-post-small\" src=\"\/wp-content\/uploads\/2016\/03\/USBparts-crop2-320x197.jpg\" alt=\"USBparts-crop2\" width=\"320\" height=\"197\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/USBparts-crop2-320x197.jpg 320w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/USBparts-crop2-300x185.jpg 300w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/USBparts-crop2-50x31.jpg 50w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/USBparts-crop2.jpg 566w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/a><\/p>\n<p>The specific part descriptions in the above are:<\/p>\n<ul>\n<li>Plugable USB to RS-232 DB9 Serial Adapter (Prolific PL2303HX Rev D Chipset)<\/li>\n<li>Plugable USB 2.0 10-Port High Speed Hub with 12.5W Power Adapter and Two Flip-Up Ports<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\"><span style=\"color: #008000;\"><strong>Hint<\/strong><\/span>:\u00a0 In the Windows OS, <em>each and every time<\/em> you plug in a new serial to USB device, Windows will assign it a driver and then &#8220;helpfully&#8221; assign a new (and probably unique) port number to it.\u00a0 Even if you plug in another copy of the the <span style=\"text-decoration: underline;\">exact same model device<\/span>, you will get another new comm port number assigned.\u00a0 That is why on some of our <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> screen shots you will see comm ports numbered in the 50&#8217;s and well above,as we do this sort of swapping quite a bit.\u00a0 You cannot easily avoid this, but you can reduce the number of different ports you have to work with by associating the <span style=\"text-decoration: underline;\">same<\/span> set of USB cables with a <span style=\"text-decoration: underline;\">given<\/span> PC, or with a <span style=\"text-decoration: underline;\">given<\/span> GNSS device.\u00a0 Our recommended best practice is to keep the cable set with the GNSS device.\u00a0 Then, as a practical example, uBlox unit number X will always appear as port X on your machine and port Y on your coworker&#8217;s machine.\u00a0 In the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong> <\/span>serial port setup logic, it will only show you the actual serial ports you currently have loaded (plugged in) and will link that port (and other settings) to any serial caster slot you used it for the last time you set things up.<\/p>\n<h4>Cables Cables Everywhere, but which one do I need?<\/h4>\n<p>The variety of USB cable used with GNSS devices can be quite confusing.\u00a0 Here at SCSC we keep a handy visual cheat sheet next to the bins where such cables are kept.\u00a0 And still we often have to scramble to put the right cable set together.\u00a0 Below are two very good links, with pictures you might want to print, that serve to explain the USB plug maze.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/03\/Usb_connectors.jpg\" rel=\"attachment wp-att-1005\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1005 size-post-small\" src=\"\/wp-content\/uploads\/2016\/03\/Usb_connectors-320x102.jpg\" alt=\"Usb_connectors\" width=\"320\" height=\"102\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-320x102.jpg 320w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-300x95.jpg 300w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-768x244.jpg 768w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-1024x325.jpg 1024w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-50x16.jpg 50w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-920x292.jpg 920w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors-600x190.jpg 600w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2016\/03\/Usb_connectors.jpg 1500w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/a>Wikipedia<br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/USB\" target=\"_blank\" rel=\"noopener\">https:\/\/en.wikipedia.org\/wiki\/USB<\/a><\/p>\n<p>L-Com, also a trusted source for any RF cabling needs you have<br \/>\n<a href=\"http:\/\/www.l-com.com\/content\/Article.aspx?Type=N&amp;ID=628\" target=\"_blank\" rel=\"noopener\">http:\/\/www.l-com.com\/content\/Article.aspx?Type=N&amp;ID=628<\/a><\/p>\n<p>Sparkfun also has good educational links with pictures at:\u00a0 <a href=\"https:\/\/www.sparkfun.com\/pages\/USB_Guide\" target=\"_blank\" rel=\"noopener\"><br \/>\nhttps:\/\/www.sparkfun.com\/pages\/USB_Guide<\/a><\/p>\n<h4>Level Shifters and FDTI<\/h4>\n<p>For those folks that like to touch the bare hardware we get the same question regarding what FDTI product to use on OEM boards to get a serial to USB driver back out.\u00a0 Same basic answer; look online and you will see many solutions to chose from.\u00a0 For what it is worth, when we need an actual USB cable (rather than a breadboard) we often use a brand called <span id=\"productTitle\" class=\"a-size-large\">GearMo.\u00a0 GearMo offers USB to 3.3v TTL FTDI products and also USB to 5v TTL FTDI products and you must be sure what levels you will be translating from to order the right part.<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To connect a serial stream in SNIP see the article:\u00a0\u00a0 Adding Serial UART Data Streams To understand issues with drivers, see the article: Problems with USB \/ Serial Drivers To understand and connect all the physical cables needed, read on&#8230;\u00a0\u00a0\u00a0 This article covers a few products and best practices on [&hellip;]<\/p>\n","protected":false},"author":13,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"ht-kb-category":[112],"ht-kb-tag":[163,162,164,188,161],"class_list":["post-985","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-general","ht_kb_tag-hub","ht_kb_tag-plug","ht_kb_tag-plugable","ht_kb_tag-serial","ht_kb_tag-usb"],"_links":{"self":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/comments?post=985"}],"version-history":[{"count":28,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/985\/revisions"}],"predecessor-version":[{"id":5067,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/985\/revisions\/5067"}],"wp:attachment":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/media?parent=985"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=985"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}