{"id":166,"date":"2017-12-12T20:51:07","date_gmt":"2017-12-13T01:51:07","guid":{"rendered":"https:\/\/sundrysites.com\/?page_id=166"},"modified":"2017-12-12T20:51:07","modified_gmt":"2017-12-13T01:51:07","slug":"infra20-script-installation","status":"publish","type":"page","link":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/","title":{"rendered":"Infra20 Script Installation"},"content":{"rendered":"<p>WINDOWS. I&#8217;m going to assume you have a reasonably clean Windows\/XP\/whatever installation to start with. There&#8217;s nothing you should have to do to Windows to continue.<\/p>\n<p>PERL. If you don&#8217;t already have a perl interpreter installed you might as well use <a href=\"http:\/\/www.activestate.com\/activeperl\">activeperl<\/a>. At the bottom of their screen you&#8217;ll find a link to their <a href=\"http:\/\/www.activestate.com\/activeperl\/downloads\">download page<\/a>. Click on the x86 version of whatever is the latest (currently 5.16.3, which is what I tested on) and you&#8217;ll download an msi file. After the download completes you execute that file (usually a double-click) and accept the defaults. By default it installs into the c:\\perl folder and changes Windows&#8217; path statement so scripts have automatic access to it.<\/p>\n<p>Once you&#8217;ve installed perl you can then write and execute perl scripts. Scripts are executed from the DOS window. To get to the DOS window, click on the Start button, then the &#8220;run&#8221; button. That opens up a box that is asking what you want to run. Type in &#8220;cmd&#8221; and then ok. Initially you&#8217;ll be in your &#8220;documents and settings&#8221; folder and you want to be in the C:\\perl\\site\\bin folder. This folder will contain the scripts and eventually the infra20&#8217;s data files (unless you change things around, which isn&#8217;t that hard to do, it just takes a little thought). To get to that folder, type &#8220;cd c:\\perl\\site\\bin&#8221; at the &gt; prompt. Look at the pictures above to get an idea. You can then do a &#8220;dir&#8221; and see what&#8217;s already in there (same as using Windows Explorer). At this point you could create some perl code with a text editor (like notepad++). There&#8217;s lots of examples on the web, like &#8221; print &#8220;hello world&#8221;; &#8221; and execute it by typing &#8220;perl yourfile.pl&#8221; at the prompt.<\/p>\n<p>WIN32-SERIALPORT. I&#8217;ll assume you&#8217;ve got perl running and you&#8217;re in the perl\/site\/bin folder. One of the nice functions activeperl includes is ppm, the perl package manager. At the prompt you can type &#8220;ppm&#8221; in and it will give you a display of all perl&#8217;s installed packages. Assuming you are connected to the internet, you can type in &#8220;ppm install Win32-SerialPort&#8221; (note the CAPS) and it will go out and find it and install it for you. If you don&#8217;t have internet access, you&#8217;d have to go find it, probably on <a href=\"http:\/\/search.cpan.org\/~bbirth\/Win32-SerialPort-0.22\/lib\/Win32\/SerialPort.pm\">cpan<\/a>, download it, carry it over, unzip it, etc. I&#8217;d think getting internet access would be easier.<\/p>\n<p>MY SCRIPTS. Once the Win32 package is installed you are ready to run my scripts. Copy both the &#8220;serial&#8221; and the &#8220;analyzer&#8221; scripts into the c:\\perl\\site\\bin folder. Plug the Infra-20 into the serial port. Normally this defaults to &#8220;COM1&#8221;. It is possible you&#8217;re already using COM1 for something else (like internet dial-in, ugh) so you&#8217;ll have to do some tinkering which is above this tutorial. Same if you&#8217;re using the usb converter. In any case, once you figure out which Com port you&#8217;re using, you&#8217;ll have to change it in my &#8220;serial&#8221; script, about line 40.<\/p>\n<p>RUN IT! While still in the c:\\perl\\site\\bin folder in the DOS window, type &#8220;perl serial-work-3.pl&#8221; at the prompt (note the numbers could change). You should see the &#8220;now writing file&#8221; message. The DOS window can be minimized or left open, your choice. The script will run until you stop it by pressing ctrl-c. You exit the DOS window by closing it, or by &#8220;exit&#8221; at the prompt. After an hour you should start to see your folder listing grow with new data files.<\/p>\n<p>In a like manner, you run the analyzers by typing &#8220;perl analyzer-work-2.pl, or &#8220;perl analyzer-batch-1.pl&#8221;. A bat file can save lots of typing errors. A typical file takes maybe 5 seconds to analyze. I don&#8217;t think I&#8217;d run an analysis on the file currently being collected (the batch script won&#8217;t let you).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WINDOWS. I&#8217;m going to assume you have a reasonably clean Windows\/XP\/whatever installation to start with. There&#8217;s nothing you should have to do to Windows to continue. PERL. If you don&#8217;t already have a perl interpreter installed you might as well use activeperl. At the bottom of their screen you&#8217;ll find a link to their download &hellip; <a href=\"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Infra20 Script Installation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":155,"menu_order":40,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-166","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>Infra20 Script Installation - 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\/infra20-project\/infra20-script-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Infra20 Script Installation - Sundrysites\" \/>\n<meta property=\"og:description\" content=\"WINDOWS. I&#8217;m going to assume you have a reasonably clean Windows\/XP\/whatever installation to start with. There&#8217;s nothing you should have to do to Windows to continue. PERL. If you don&#8217;t already have a perl interpreter installed you might as well use activeperl. At the bottom of their screen you&#8217;ll find a link to their download &hellip; Continue reading Infra20 Script Installation &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"Sundrysites\" \/>\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=\"3 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\\\/infra20-project\\\/infra20-script-installation\\\/\",\"url\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/infra20-project\\\/infra20-script-installation\\\/\",\"name\":\"Infra20 Script Installation - Sundrysites\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sundrysites.com\\\/#website\"},\"datePublished\":\"2017-12-13T01:51:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/infra20-project\\\/infra20-script-installation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/infra20-project\\\/infra20-script-installation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/infra20-project\\\/infra20-script-installation\\\/#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\":\"Infra20 Project\",\"item\":\"https:\\\/\\\/sundrysites.com\\\/index.php\\\/home-info\\\/infra20-project\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Infra20 Script Installation\"}]},{\"@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":"Infra20 Script Installation - 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\/infra20-project\/infra20-script-installation\/","og_locale":"en_US","og_type":"article","og_title":"Infra20 Script Installation - Sundrysites","og_description":"WINDOWS. I&#8217;m going to assume you have a reasonably clean Windows\/XP\/whatever installation to start with. There&#8217;s nothing you should have to do to Windows to continue. PERL. If you don&#8217;t already have a perl interpreter installed you might as well use activeperl. At the bottom of their screen you&#8217;ll find a link to their download &hellip; Continue reading Infra20 Script Installation &rarr;","og_url":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/","og_site_name":"Sundrysites","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/","url":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/","name":"Infra20 Script Installation - Sundrysites","isPartOf":{"@id":"https:\/\/sundrysites.com\/#website"},"datePublished":"2017-12-13T01:51:07+00:00","breadcrumb":{"@id":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/infra20-script-installation\/#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":"Infra20 Project","item":"https:\/\/sundrysites.com\/index.php\/home-info\/infra20-project\/"},{"@type":"ListItem","position":4,"name":"Infra20 Script Installation"}]},{"@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\/166","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=166"}],"version-history":[{"count":1,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/166\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/166\/revisions\/167"}],"up":[{"embeddable":true,"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/pages\/155"}],"wp:attachment":[{"href":"https:\/\/sundrysites.com\/index.php\/wp-json\/wp\/v2\/media?parent=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}