{"id":285,"date":"2007-07-03T00:31:57","date_gmt":"2007-07-02T22:31:57","guid":{"rendered":"https:\/\/alax.info\/blog\/285"},"modified":"2007-07-04T00:20:50","modified_gmt":"2007-07-03T22:20:50","slug":"magellan-explorist-automation","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/285","title":{"rendered":"Magellan eXplorist: Automation"},"content":{"rendered":"<p>A new (hopefully) iteration with Magellan eXplorist tools &#8211; an automation objects to script GPS data processing. The idea is to provide scriptable objects to access GPS data for various tasks from just logging into file to [the target is believable to be] publishing geolocation information in real time through Jabber\/XMPP server in conformance with <a href=\"http:\/\/www.xmpp.org\/extensions\/xep-0080.html\">XEP-0080: User Geolocation<\/a>.<\/p>\n<p>Currently, it is a lower layer serial connection object to GPS communication port, <em>AlaxInfo.MagExpToo.SerialConnection<\/em>.<\/p>\n<p>The script below prints GPS NMEA-0183 output to console:<\/p>\n<blockquote><p><code>C:\\>cscript 01.js<br \/>\nMicrosoft (R) Windows Script Host Version 5.6<br \/>\nCopyright (C) Microsoft Corporation 1996-2001. All rights reserved.<\/code><\/p>\n<p><code>Assumed Port: COM10<br \/>\nInput: $GPGSV,3,1,12,07,87,031,,24,79,094,,06,77,089,,21,55,222,*71<br \/>\nInput: $GPGSV,3,2,12,10,33,059,,16,31,309,,30,30,164,,31,21,253,*7F<br \/>\nInput: $GPGSV,3,3,12,05,14,159,,18,05,178,,12,03,151,,02,02,056,*73<br \/>\nInput: $PMGNST,02.03,3,F,819,04.6,-00096,20*59<br \/>\nInput: $GPGSV,3,1,12,07,87,031,,24,79,094,,06,77,089,,21,55,222,*71<br \/>\nInput: $GPGSV,3,2,12,10,33,059,,16,31,309,,30,30,164,,31,21,253,*7F<br \/>\nInput: $GPGSV,3,3,12,05,14,159,,18,05,178,,12,03,151,,02,02,056,*73<br \/>\nInput: $PMGNST,02.03,3,F,819,04.6,-00096,20*59<br \/>\n...<\/code><\/p><\/blockquote>\n<p><!--more--><br \/>\nCopy paste sample code into <strong>01.js<\/strong> file:<\/p>\n<blockquote><p><code>function SerialConnection_Error(Code)<br \/>\n{<br \/>\n  WScript.Echo(\"Error: \" + Code.toString());<br \/>\n}<br \/>\nfunction SerialConnection_Input(Lines)<br \/>\n{<br \/>\n  LineArray = (new VBArray(Lines)).toArray();<br \/>\n  for(Index = 0; Index < LineArray.length; Index++)\n\t  WScript.Echo(\"Input: \" + LineArray[Index]);\n}<\/code><\/p>\n<p><code>SerialConnection = WScript.CreateObject(\"AlaxInfo.MagExpToo.SerialConnection\");<br \/>\nWScript.Echo(\"Assumed Port: \" + SerialConnection.AssumedPort);<br \/>\nSerialConnection.Port = SerialConnection.AssumedPort;<br \/>\nWScript.ConnectObject(SerialConnection, \"SerialConnection_\");<br \/>\ntry<br \/>\n{<br \/>\n  SerialConnection.Connect();<br \/>\n  while(true)<br \/>\n  {<br \/>\n    WScript.Sleep(1000);<br \/>\n    \/\/ NOTE: Dead loop<br \/>\n  }<br \/>\n}<br \/>\ncatch(Error)<br \/>\n{<br \/>\n  WScript.DisconnectObject(SerialConnection);<br \/>\n  throw Error;<br \/>\n}<br \/>\nWScript.DisconnectObject(SerialConnection);<\/code><\/p><\/blockquote>\n<p>There will be more to interpret certain NMEA sequences, in particular the ones that refer to fixed position.<\/p>\n<p>Application Name: Alax.Info Magellan eXplorist Tools<br \/>\nLicense: Free for personal use, request commercial licenses via email or contact form<br \/>\nLatest Version: 1.0.3<br \/>\nDownload Link: <a href=\"https:\/\/alax.info\/blog\/287\">See updated version 1.0.4<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A new (hopefully) iteration with Magellan eXplorist tools &#8211; an automation objects to script GPS data processing. The idea is to provide scriptable objects to access GPS data for various tasks from just logging into file to [the target is believable to be] publishing geolocation information in real time through Jabber\/XMPP server in conformance with&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/285\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,14],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-atl","category-magellan-explorist"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}