{"id":779,"date":"2013-06-01T00:00:00","date_gmt":"2013-06-01T00:00:00","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2013\/06\/01\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux\/"},"modified":"2023-02-24T13:04:16","modified_gmt":"2023-02-24T13:04:16","slug":"how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html","title":{"rendered":"Connect to a serial device using a USB-to-Serial Convertor in Linux"},"content":{"rendered":"

For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues.<\/p>\n

Unfortunately, life when running Windows is never easy. After upgrading Windows 7 to 64bit I tried to install the drivers from CNET downloads.
\nThis was a HUGE mistake. Even though the CNET downloader told me it was downloading at 28K in the background it was installing 8 (yes 8 plugins and other useless crap) onto all my browsers. Finally after cleaning up my machine and finding the drivers from a source not intent in filling my machine full of rubbish I discovered that the drivers fail to work correctly for Windows 7 64bit based platforms. Back to square 1.<\/p>\n

After wasting 2 hours trying to get this working in Windows I powered up Linux Mint. Loaded the necessary kernel module and tested. Success ! All in all 20 minutes taken. So high five to Linux and I certainly wont be using CNET downloads again !<\/p>\n

So what are the steps ?<\/p>\n

Steps<\/strong><\/h2>\n

Connect the cable via USB.<\/p>\n

Next, run ‘lsusb’.<\/p>\n

admin@server ~ $ lsusb\r\nBus 002 Device 002: ID 090c:37a2 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) \r\nBus 005 Device 002: ID 067b:2303<\/strong><\/span> Prolific Technology, Inc. PL2303 Serial Port\r\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<\/pre>\n

Then load the kernel module via the following command. Note : To ensure this survives a reboot append this line to ‘\/etc\/modules’<\/p>\n

admin@server ~ $ sudo modprobe usbserial vendor=0x067b<\/span><\/strong> product=0x2303<\/span><\/strong><\/pre>\n

You should now see that it is now showing as attached by running ‘dmesg’.<\/p>\n

admin@server ~ $ dmesg\r\n[\u00a0 131.747013] USB Serial support registered for pl2303\r\n[\u00a0 131.747038] pl2303 5-1:1.0: >pl2303 converter detected\r\n[\u00a0 131.758965] usb 5-1: >pl2303 converter now attached<\/strong> to ttyUSB0<\/pre>\n

Finally, you will need to connect through to serial device \/dev\/ttyUSB0. This easiest way to do this is via ‘minicom’. Once you have issued the following command it will present you with a menu. Change (within the ‘serial port setup’ option) the service device to \/dev\/ttyUSB0 and any other settings i.e baud rate etc. Then select the exit option and you be connected to your serial device.<\/p>\n

admin@server ~ $ sudo minicom -s<\/pre>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never easy. After upgrading Windows 7 to 64bit I tried to install the drivers from CNET downloads. This was a HUGE mistake. Even though the CNET downloader told me it … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\nConnect to a serial device using a USB-to-Serial Convertor in Linux<\/title>\n<meta name=\"description\" content=\"For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connect to a serial device using a USB-to-Serial Convertor in Linux\" \/>\n<meta property=\"og:description\" content=\"For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-01T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T13:04:16+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"Connect to a serial device using a USB-to-Serial Convertor in Linux\",\"datePublished\":\"2013-06-01T00:00:00+00:00\",\"dateModified\":\"2023-02-24T13:04:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\"},\"wordCount\":287,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\",\"url\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\",\"name\":\"Connect to a serial device using a USB-to-Serial Convertor in Linux\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2013-06-01T00:00:00+00:00\",\"dateModified\":\"2023-02-24T13:04:16+00:00\",\"description\":\"For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operating Systems\",\"item\":\"https:\/\/www.fir3net.com\/os\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux\",\"item\":\"https:\/\/www.fir3net.com\/os\/linux\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Connect to a serial device using a USB-to-Serial Convertor in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Connect to a serial device using a USB-to-Serial Convertor in Linux","description":"For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html","og_locale":"en_US","og_type":"article","og_title":"Connect to a serial device using a USB-to-Serial Convertor in Linux","og_description":"For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never","og_url":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html","og_site_name":"Fir3net","article_published_time":"2013-06-01T00:00:00+00:00","article_modified_time":"2023-02-24T13:04:16+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"Connect to a serial device using a USB-to-Serial Convertor in Linux","datePublished":"2013-06-01T00:00:00+00:00","dateModified":"2023-02-24T13:04:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html"},"wordCount":287,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html","url":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html","name":"Connect to a serial device using a USB-to-Serial Convertor in Linux","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2013-06-01T00:00:00+00:00","dateModified":"2023-02-24T13:04:16+00:00","description":"For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues. Unfortunately, life when running Windows is never","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-connect-to-a-serial-device-using-a-usb-to-serial-convertor-in-linux.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Operating Systems","item":"https:\/\/www.fir3net.com\/os"},{"@type":"ListItem","position":3,"name":"Linux","item":"https:\/\/www.fir3net.com\/os\/linux"},{"@type":"ListItem","position":4,"name":"Connect to a serial device using a USB-to-Serial Convertor in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/779"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=779"}],"version-history":[{"count":2,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/779\/revisions"}],"predecessor-version":[{"id":3673,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/779\/revisions\/3673"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}