{"id":346,"date":"2020-03-30T20:03:54","date_gmt":"2020-03-31T01:03:54","guid":{"rendered":"https:\/\/sundrysites.com\/?page_id=346"},"modified":"2024-02-27T20:32:01","modified_gmt":"2024-02-28T01:32:01","slug":"active-perl","status":"publish","type":"page","link":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/","title":{"rendered":"Active Perl"},"content":{"rendered":"\n<p>Unfortunately, HCA doesn&#8217;t have the means to directly connect to Arduinos.&nbsp; Recently HCA did add a &#8220;foundation to integrate IP and serial based devices that communicate in any protocol&#8221;, but I haven&#8217;t been able to make it work with Arduinos.&nbsp; In place of that I have written a number of Perl programs that allow 2-way communication between HCA and Arduinos.&nbsp; If you&#8217;ve never coded a program before please don&#8217;t get all nervous.&nbsp; I&#8217;ll supply the coding, but I think you&#8217;ll see it isn&#8217;t that complicated.<\/p>\n\n\n\n<p>Strawberry Perl is a commercial product that has a free &#8220;community&#8221; version that has been more than adequate for my purposes.\u00a0 You download the installer, let it default to the c:\\perl folder, include it in the path and you are good to go.\u00a0 There are libraries for additional functions but the latest version of Strawberry Perl includes everything you&#8217;ll need.\u00a0 You might want to install the PPM just to have it.<\/p>\n\n\n\n<p>For our use, Perl is a scripting language &#8211; where a text file containing Perl statements is read by the Perl interpreter and stuff happens.&nbsp; The interpreter is perl.exe and since it is in the Windows path it can be started directly from the command line, and while testing you will likely be doing this.&nbsp; More importantly it can also be called from HCA, along with passing parameters &#8211; such as the address of the Arduino you want to send a command to, along with the command.<\/p>\n\n\n\n<p>Perl can also run continually, looking for incoming packets and placing them into a file.&nbsp; HCA has this rather powerful ability to read that file, import those &#8220;flags&#8221; and take actions based on them.&nbsp; More details to follow, of course.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately, HCA doesn&#8217;t have the means to directly connect to Arduinos.&nbsp; Recently HCA did add a &#8220;foundation to integrate IP and serial based devices that communicate in any protocol&#8221;, but I haven&#8217;t been able to make it work with Arduinos.&nbsp; In place of that I have written a number of Perl programs that allow 2-way &hellip; <a href=\"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Active Perl<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":340,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-346","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Active Perl - Sundrysites<\/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:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Active Perl - Sundrysites\" \/>\n<meta property=\"og:description\" content=\"Unfortunately, HCA doesn&#8217;t have the means to directly connect to Arduinos.&nbsp; Recently HCA did add a &#8220;foundation to integrate IP and serial based devices that communicate in any protocol&#8221;, but I haven&#8217;t been able to make it work with Arduinos.&nbsp; In place of that I have written a number of Perl programs that allow 2-way &hellip; Continue reading Active Perl &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/\" \/>\n<meta property=\"og:site_name\" content=\"Sundrysites\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-28T01:32:01+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/building-blocks\\\/active-perl\\\/\",\"url\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/building-blocks\\\/active-perl\\\/\",\"name\":\"Active Perl - Sundrysites\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sundrysites.com\\\/#website\"},\"datePublished\":\"2020-03-31T01:03:54+00:00\",\"dateModified\":\"2024-02-28T01:32:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/building-blocks\\\/active-perl\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/building-blocks\\\/active-perl\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/building-blocks\\\/active-perl\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sundrysites.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home Info\",\"item\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Arduino Projects\",\"item\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Building Blocks\",\"item\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/arduino-projects\\\/building-blocks\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Active Perl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sundrysites.com\\\/#website\",\"url\":\"https:\\\/\\\/sundrysites.com\\\/\",\"name\":\"Sundrysites\",\"description\":\"As In Various and Sundry\",\"publisher\":{\"@id\":\"https:\\\/\\\/sundrysites.com\\\/#\\\/schema\\\/person\\\/1e11ce6af1587a3431e57dfc0797ab61\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sundrysites.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/sundrysites.com\\\/#\\\/schema\\\/person\\\/1e11ce6af1587a3431e57dfc0797ab61\",\"name\":\"Wayne Gulden\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g\",\"caption\":\"Wayne Gulden\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/sundrysites.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Active Perl - Sundrysites","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:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/","og_locale":"en_US","og_type":"article","og_title":"Active Perl - Sundrysites","og_description":"Unfortunately, HCA doesn&#8217;t have the means to directly connect to Arduinos.&nbsp; Recently HCA did add a &#8220;foundation to integrate IP and serial based devices that communicate in any protocol&#8221;, but I haven&#8217;t been able to make it work with Arduinos.&nbsp; In place of that I have written a number of Perl programs that allow 2-way &hellip; Continue reading Active Perl &rarr;","og_url":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/","og_site_name":"Sundrysites","article_modified_time":"2024-02-28T01:32:01+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/","url":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/","name":"Active Perl - Sundrysites","isPartOf":{"@id":"https:\/\/sundrysites.com\/#website"},"datePublished":"2020-03-31T01:03:54+00:00","dateModified":"2024-02-28T01:32:01+00:00","breadcrumb":{"@id":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/active-perl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sundrysites.com\/"},{"@type":"ListItem","position":2,"name":"Home Info","item":"https:\/\/sundrysites.com\/index.php\/home-info\/"},{"@type":"ListItem","position":3,"name":"Arduino Projects","item":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/"},{"@type":"ListItem","position":4,"name":"Building Blocks","item":"https:\/\/sundrysites.com\/index.php\/home-info\/arduino-projects\/building-blocks\/"},{"@type":"ListItem","position":5,"name":"Active Perl"}]},{"@type":"WebSite","@id":"https:\/\/sundrysites.com\/#website","url":"https:\/\/sundrysites.com\/","name":"Sundrysites","description":"As In Various and Sundry","publisher":{"@id":"https:\/\/sundrysites.com\/#\/schema\/person\/1e11ce6af1587a3431e57dfc0797ab61"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sundrysites.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/sundrysites.com\/#\/schema\/person\/1e11ce6af1587a3431e57dfc0797ab61","name":"Wayne Gulden","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g","caption":"Wayne Gulden"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c0392cdfb7826ed5407aad362998bc6dd03fe293560ce15ccc2211357e3cec6e?s=96&d=mm&r=g"},"sameAs":["https:\/\/sundrysites.com"]}]}},"_links":{"self":[{"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":2,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/346\/revisions"}],"predecessor-version":[{"id":531,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/346\/revisions\/531"}],"up":[{"embeddable":true,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/340"}],"wp:attachment":[{"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/media?parent=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}