{"id":881,"date":"2026-03-03T00:07:39","date_gmt":"2026-03-02T22:07:39","guid":{"rendered":"http:\/\/docklight.de\/dl_prb032\/"},"modified":"2026-03-03T00:07:41","modified_gmt":"2026-03-02T22:07:41","slug":"dl_prb032","status":"publish","type":"post","link":"https:\/\/docklight.de\/dl_prb032\/","title":{"rendered":"When trying to open a COM port, I receive an error &#8220;Windows error #31 &#8211; A device attached to the system is not functioning&#8221; or similar"},"content":{"rendered":"<p><em>Applies to: Docklight \/ Docklight Scripting (all versions), Article ID: dl_prb032<\/em><\/p>\n<p>Some serial driver implementations, e.g for USB devices that add a virtual COM port on the PC, do not allow to set the &#8220;classic&#8221; RS232 communication settings like IOCTL_SERIAL_SET_BAUD_RATE. For many of these applications, the serial data settings are indeed not necessary but the driver accepts them and does not report an error. In case your device driver DOES produce an error and Docklight cannot open the COM port, please use the Project Setting &#8216;Baud Rate = None&#8217;, available in Docklight V2.0 and higher. <\/p>\n<p>NOTE: A specific example for the above behavior seems to be the Microchip CDC sample implementation. If the following definition is commented out (not defined):<br \/>\n&#8216;#define USB_CDC_SUPPORT_ABSTRACT_CONTROL_MANAGEMENT_CAPABILITIES_D1&#8217;,<br \/>\nthen the device can only be opened with Docklight using the &#8216;Baud Rate = None&#8217; setting:<\/p>\n<p><a href=\"https:\/\/docklight.de\/downloads\" target=\"_blank\">Docklight Downloads<\/a><\/p>\n<p><a href=\"\" target=\"_blank\"><\/a><\/p>\n<p><a href=\"\" target=\"_blank\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applies to: Docklight \/ Docklight Scripting (all versions), Article ID: dl_prb032 Some serial driver implementations, e.g for USB devices that add a virtual COM port on the PC, do not allow to set the &#8220;classic&#8221; RS232 communication settings like IOCTL_SERIAL_SET_BAUD_RATE. For many of these applications, the serial data settings are indeed not necessary but the driver accepts them and does [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[57],"class_list":["post-881","post","type-post","status-publish","format-standard","hentry","category-support","category-troubleshooting","tag-dl_prb032"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Docklight - When trying to open a COM port, I receive an error &quot;Windows error #31 - A device attached to the system is not functioning&quot; or similar<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docklight.de\/dl_prb032\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docklight - When trying to open a COM port, I receive an error &quot;Windows error #31 - A device attached to the system is not functioning&quot; or similar\" \/>\n<meta property=\"og:description\" content=\"Applies to: Docklight \/ Docklight Scripting (all versions), Article ID: dl_prb032 Some serial driver implementations, e.g for USB devices that add a virtual COM port on the PC, do not allow to set the &#8220;classic&#8221; RS232 communication settings like IOCTL_SERIAL_SET_BAUD_RATE. For many of these applications, the serial data settings are indeed not necessary but the driver accepts them and does [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docklight.de\/dl_prb032\/\" \/>\n<meta property=\"og:site_name\" content=\"Docklight\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-02T22:07:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-02T22:07:41+00:00\" \/>\n<meta name=\"author\" content=\"Flachmann &amp; Heggelbacher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Flachmann &amp; Heggelbacher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/\"},\"author\":{\"name\":\"Flachmann &amp; Heggelbacher\",\"@id\":\"https:\\\/\\\/docklight.de\\\/#\\\/schema\\\/person\\\/d6855d60ab4ee87f6482ab881c7151a3\"},\"headline\":\"When trying to open a COM port, I receive an error &#8220;Windows error #31 &#8211; A device attached to the system is not functioning&#8221; or similar\",\"datePublished\":\"2026-03-02T22:07:39+00:00\",\"dateModified\":\"2026-03-02T22:07:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/\"},\"wordCount\":175,\"publisher\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/#organization\"},\"keywords\":[\"dl_prb032\"],\"articleSection\":[\"Support\",\"Troubleshooting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/\",\"url\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/\",\"name\":\"Docklight - When trying to open a COM port, I receive an error \\\"Windows error #31 - A device attached to the system is not functioning\\\" or similar\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/#website\"},\"datePublished\":\"2026-03-02T22:07:39+00:00\",\"dateModified\":\"2026-03-02T22:07:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/docklight.de\\\/dl_prb032\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/workersplaytime.www.docklight.ch\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support\",\"item\":\"https:\\\/\\\/docklight.de\\\/category\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Troubleshooting\",\"item\":\"https:\\\/\\\/docklight.de\\\/category\\\/support\\\/troubleshooting\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"When trying to open a COM port, I receive an error &#8220;Windows error #31 &#8211; A device attached to the system is not functioning&#8221; or similar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/docklight.de\\\/#website\",\"url\":\"https:\\\/\\\/docklight.de\\\/\",\"name\":\"Docklight\",\"description\":\"Test and analyze serial communications (RS232, RS485, TCP, HID)\",\"publisher\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/docklight.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/docklight.de\\\/#organization\",\"name\":\"Flachmann und Heggelbacher GbR\",\"url\":\"https:\\\/\\\/docklight.de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/docklight.de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/docklight.de\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/Flachmann-und-Heggelbacher_960x768.png\",\"contentUrl\":\"https:\\\/\\\/docklight.de\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/Flachmann-und-Heggelbacher_960x768.png\",\"width\":960,\"height\":768,\"caption\":\"Flachmann und Heggelbacher GbR\"},\"image\":{\"@id\":\"https:\\\/\\\/docklight.de\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/docklight.de\\\/#\\\/schema\\\/person\\\/d6855d60ab4ee87f6482ab881c7151a3\",\"name\":\"Flachmann &amp; Heggelbacher\",\"url\":\"https:\\\/\\\/docklight.de\\\/author\\\/fuhboss\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docklight - When trying to open a COM port, I receive an error \"Windows error #31 - A device attached to the system is not functioning\" or similar","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:\/\/docklight.de\/dl_prb032\/","og_locale":"en_US","og_type":"article","og_title":"Docklight - When trying to open a COM port, I receive an error \"Windows error #31 - A device attached to the system is not functioning\" or similar","og_description":"Applies to: Docklight \/ Docklight Scripting (all versions), Article ID: dl_prb032 Some serial driver implementations, e.g for USB devices that add a virtual COM port on the PC, do not allow to set the &#8220;classic&#8221; RS232 communication settings like IOCTL_SERIAL_SET_BAUD_RATE. For many of these applications, the serial data settings are indeed not necessary but the driver accepts them and does [&hellip;]","og_url":"https:\/\/docklight.de\/dl_prb032\/","og_site_name":"Docklight","article_published_time":"2026-03-02T22:07:39+00:00","article_modified_time":"2026-03-02T22:07:41+00:00","author":"Flachmann &amp; Heggelbacher","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Flachmann &amp; Heggelbacher","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/docklight.de\/dl_prb032\/#article","isPartOf":{"@id":"https:\/\/docklight.de\/dl_prb032\/"},"author":{"name":"Flachmann &amp; Heggelbacher","@id":"https:\/\/docklight.de\/#\/schema\/person\/d6855d60ab4ee87f6482ab881c7151a3"},"headline":"When trying to open a COM port, I receive an error &#8220;Windows error #31 &#8211; A device attached to the system is not functioning&#8221; or similar","datePublished":"2026-03-02T22:07:39+00:00","dateModified":"2026-03-02T22:07:41+00:00","mainEntityOfPage":{"@id":"https:\/\/docklight.de\/dl_prb032\/"},"wordCount":175,"publisher":{"@id":"https:\/\/docklight.de\/#organization"},"keywords":["dl_prb032"],"articleSection":["Support","Troubleshooting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docklight.de\/dl_prb032\/","url":"https:\/\/docklight.de\/dl_prb032\/","name":"Docklight - When trying to open a COM port, I receive an error \"Windows error #31 - A device attached to the system is not functioning\" or similar","isPartOf":{"@id":"https:\/\/docklight.de\/#website"},"datePublished":"2026-03-02T22:07:39+00:00","dateModified":"2026-03-02T22:07:41+00:00","breadcrumb":{"@id":"https:\/\/docklight.de\/dl_prb032\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docklight.de\/dl_prb032\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docklight.de\/dl_prb032\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/workersplaytime.www.docklight.ch\/"},{"@type":"ListItem","position":2,"name":"Support","item":"https:\/\/docklight.de\/category\/support\/"},{"@type":"ListItem","position":3,"name":"Troubleshooting","item":"https:\/\/docklight.de\/category\/support\/troubleshooting\/"},{"@type":"ListItem","position":4,"name":"When trying to open a COM port, I receive an error &#8220;Windows error #31 &#8211; A device attached to the system is not functioning&#8221; or similar"}]},{"@type":"WebSite","@id":"https:\/\/docklight.de\/#website","url":"https:\/\/docklight.de\/","name":"Docklight","description":"Test and analyze serial communications (RS232, RS485, TCP, HID)","publisher":{"@id":"https:\/\/docklight.de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docklight.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docklight.de\/#organization","name":"Flachmann und Heggelbacher GbR","url":"https:\/\/docklight.de\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docklight.de\/#\/schema\/logo\/image\/","url":"https:\/\/docklight.de\/wp-content\/uploads\/2015\/07\/Flachmann-und-Heggelbacher_960x768.png","contentUrl":"https:\/\/docklight.de\/wp-content\/uploads\/2015\/07\/Flachmann-und-Heggelbacher_960x768.png","width":960,"height":768,"caption":"Flachmann und Heggelbacher GbR"},"image":{"@id":"https:\/\/docklight.de\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/docklight.de\/#\/schema\/person\/d6855d60ab4ee87f6482ab881c7151a3","name":"Flachmann &amp; Heggelbacher","url":"https:\/\/docklight.de\/author\/fuhboss\/"}]}},"_links":{"self":[{"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":9,"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"predecessor-version":[{"id":2613,"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/posts\/881\/revisions\/2613"}],"wp:attachment":[{"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docklight.de\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}