<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html" />
  <link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
  <id>tag:www.insideria.com,2009://34/tag:www.insideria.com,2008://34.33394-</id>
  <updated>2009-11-05T19:57:30Z</updated>
  <title>Comments for AIR utilizing GPS and RFID with Merapi (http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html)</title>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>
  <entry>
    <id>tag:www.insideria.com,2008://34.33394</id>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://blogs.oreilly.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=34/entry_id=33394" title="AIR utilizing GPS and RFID with Merapi" />
    <published>2008-09-13T11:00:00Z</published>
    <updated>2008-09-13T04:53:19Z</updated>
    <title>AIR utilizing GPS and RFID with Merapi</title>
    <summary>Andy Powell, a fellow Universal Mind team member, has been experimenting with Merapi, the bridge which allows you to connect AIR with Java (we have covered Merapi before here on InsideRIA).  In his experiments, Andy has managed to connect AIR with a GPS unit as well as an RFID receiver.  These experiments begin to give us a view of what is possible with AIR and Merapi.</summary>
    <author>
      <name>David Tucker</name>
      <uri>http://www.davidtucker.net/</uri>
    </author>
    
    <category term="Blogs" />
    
    <content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
      <![CDATA[<div class="ap_r" style="margin: 0 16px 16px 16px;"><a href="http://www.insideria.com/dtucker/merapiLogo-large.jpg" class="highslide" onclick="return hs.expand(this)"><img src="http://www.insideria.com/dtucker/merapiLogo-small.jpg" alt="Merapi Wordmark" title="Click to enlarge" width="148"/></a></div>

<p><a href="http://www.infoaccelerator.net/blog/" target="_blank">Andy Powell</a>, a fellow <a href="http://www.universalmind.com/" target="_blank">Universal Mind</a> team member, has been experimenting with Merapi, the bridge which allows you to connect AIR with Java (we have covered Merapi before <a href="http://www.insideria.com/2008/09/air-java-and-robots.html" target="_blank">here on InsideRIA</a>).  In his experiments, Andy has managed to connect AIR with a GPS unit as well as an RFID receiver.  These experiments begin to give us a view of what is possible with AIR and Merapi.</p>

<p><strong>Background:</strong> <a href="http://www.merapiproject.net/index.php?option=com_content&view=article&id=47&Itemid=28" target="_blank">What is Merapi?</a></p>

<h2><strong>Experiment 1 - GPS Visualization</strong></h2>

<p>The first experiment I followed was when Andy got his personal GPS unit working with Merapi and AIR.  Andy gave me a bit of an idea of why he got into this experiment:</p>

<blockquote><strong>Andy:</strong> I went to Adam and Jordan's presentation at 360Flex and saw <a href="http://www.insideria.com/2008/09/air-java-and-robots.html" target="_blank">the cool stuff she was doing with hardware</a>... I had received my Garmin Foretrex GPS for use with MapMyPix (a geospatial-photo relational app that Universal Mind had built for MapQuest to show off the AS3 API).  To connect it to my Mac, I had to buy a serial adapter (because it only talked over a serial port).  The idea of hooking into the serial port and reading data from the GPS had crossed my mind, but I just let it go....until I saw that presentation.  Something re-ignited in me, and I immediately set out to get my Foretrex talking to Java with rxtx.  From there, it was a very simple leap to get it to talk to Merapi (with the help of some very easy to use GPS APIs for Java).  After the data was into Merapi, I could take it and plot it on the MapQuest maps, no problem.  One thing that did show up immediately was "drift" from the device.  Talking to some of our GIS experts here at Universal Mind, I found out that there's really no way to compensate for that, except to get a fix with more satellites.  I wouldn't have known that without Merapi and AIR.</blockquote>

<p>The results, were pretty cool.  In the article (link below) Andy gives a demonstration that shows the actual application in action.  In addition, Andy also included all of the Java code that he used to get it working.</p>

<div class="ap_c" style="margin: 16px;"><a href="http://www.insideria.com/dtucker/merapi1-large.png" class="highslide" onclick="return hs.expand(this)"><img src="http://www.insideria.com/dtucker/merapi1-small.png" alt="Merapi Experiment 1" title="Click to enlarge" width="400"/></a><div class="apcaption">AIR and Merapi GPS Visualization with MapQuest</div></div>

<p>InfoAccelerator.net: <a href="http://www.infoaccelerator.net/blog/post.cfm/live-gps-visualizations-with-air-merapi" target="_blank">Live GPS Visualizations With AIR & Merapi </a></p>

<h2><strong>Experiment 2 - RFID</strong></h2>

<p>GPS alone wasn't enough for Andy - he kept moving.  Here is a bit of background on the RFID experiment:</p>

<blockquote><strong>Andy:</strong> Once the GPS sample was working, the floodgates opened.  I was looking for any hardware I could talk to with a serial port.  Luckily, I came across Phidgets.com.  They have a plethora of hardware devices with their own API.  I went for the sexiest one first:  RFID.  I was able to get an AIR app to recognize when a RFID tag came within range based on the Phidget Java library and Merapi.</blockquote>

<p>In this experiment, Andy successfully linked the RFID tag with the RFID receiver and communicated with his AIR application through Merapi.  The video below gives the details on how it works, and it also demonstrates the application in action.</p>

<p>Note</p>

<div class="ap_c">
	<a href="#" onclick="return hs.htmlExpand(this, { contentId: 'ytvideo' } )"  class="highslide">
		<img src="/dtucker/merapi2.jpg" alt="Highslide JS" title="Click to enlarge" width="400" />
	</a>
	<div class="highslide-html-content" id="ytvideo" style="width: 460px; height: 385px;">
		<div style="height:20px; padding: 2px">
			<a href="#" onclick="return hs.close(this)" class="control">Close</a>
			<a href="#" onclick="return false" class="highslide-move control">Move</a>

		</div>
		<div class="highslide-body" style="padding: 0 10px 10px 10px">
			<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2GngvhGTJAM&color1=0xb1b1b1&color2=0xcfcfcf&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/2GngvhGTJAM&color1=0xb1b1b1&color2=0xcfcfcf&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
		</div>
	</div>
</div>

<p>InfoAccelerator.net: <a href="http://www.infoaccelerator.net/blog/post.cfm/rfid-enabled-air-applications-with-merapi" target="_blank">RFID Enabled AIR Applications With Merapi</a></p>

<h2><strong>Conclusion</strong></h2>

<p>Andy has a few more experiments with Merapi and AIR on his site - including <a href="http://www.infoaccelerator.net/blog/post.cfm/sending-growl-notifications-with-flex-via-air-merapi" target="_blank">sending Growl notifications from an AIR application</a>.  If you are interested in connecting AIR with Java, you will certainly want to check out his blog on a regular basis.  Here are some of his thoughts on the capability and future of Merapi:</p>

<blockquote><strong>Andy:</strong> Merapi opens up not only hardware, but other enterprise services to AIR that were previously only available with a Java server and BlazeDS.  Imagine being able to send email from AIR without a third-party SMTP server, or produce and consume JMS messages without BlazeDS.  In the near future, you'll be able to access MS Office functionality via AIR and Merapi.  There is cool stuff on the horizon because Merapi + AIR take the chains off of AIR and lets it be a true desktop platform.</blockquote>

<p>I am very interested to see how Merapi will be used in the future (especially with upcoming versions of AIR).  If you are working with Merapi - leave a comment and let everyone know what you are working on.</p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.33394-comment:2042658</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.33394" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html#comment-2042658" />
    <title>Comment from Flo W. on 2008-09-13</title>
    <author>
        <name>Flo W.</name>
        <uri>http://www.derhess.de</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.derhess.de">
        <![CDATA[<p>Hey,</p>

<p>merapi sounds very well! But for the RFID Stuff I think you can do it more easier with the Arduino Plattform.<br />
www.arduino.cc<br />
vimeo.com/1047657</p>

<p>Because there exist a final ActionScript based Library. And this electronic plattform sounds cool, too<br />
www.makingthings.com</p>]]>
    </content>
    <published>2008-09-13T15:27:30Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.33394-comment:2042669</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.33394" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html#comment-2042669" />
    <title>Comment from Andy Powell on 2008-09-13</title>
    <author>
        <name>Andy Powell</name>
        <uri>http://www.infoaccelerator.net</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.infoaccelerator.net">
        <![CDATA[<p>My guess is that these, like Phidgets, allow for a webservice type connection to ultimately talk to the hardware.  Request / Repsonse is HARDLY real-time.  What Merapi allows is for you listen to the hardware and respond to data in AIR real-time as the hardware broadcasts events.</p>]]>
    </content>
    <published>2008-09-13T20:11:58Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.33394-comment:2042727</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.33394" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html#comment-2042727" />
    <title>Comment from Flo W. on 2008-09-15</title>
    <author>
        <name>Flo W.</name>
        <uri>http://www.derhess.de</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.derhess.de">
        <![CDATA[<p>O.K. Andy, Real-Time is a good point! </p>]]>
    </content>
    <published>2008-09-15T14:15:00Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.33394-comment:2042728</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.33394" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html#comment-2042728" />
    <title>Comment from Flo W. on 2008-09-15</title>
    <author>
        <name>Flo W.</name>
        <uri>http://www.derhess.de</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.derhess.de">
        <![CDATA[<p>O.K. Andy, Real-Time is a good point!  :-)</p>

<p>For other technical experiments I like this blog.<br />
blog.makezine.com</p>

<p>Unfortunately, the experiments are not flashed-based, but I think for inspiration. It isn't bad.</p>]]>
    </content>
    <published>2008-09-15T14:23:17Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.33394-comment:2045983</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.33394" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/09/connecting-air-with-gps-and-rf.html#comment-2045983" />
    <title>Comment from fake rolex on 2008-11-09</title>
    <author>
        <name>fake rolex</name>
        <uri>http://watchesfake.vidilife.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://watchesfake.vidilife.com">
        <![CDATA[<p>hi there & thanks</p>]]>
    </content>
    <published>2008-11-09T21:01:52Z</published>
  </entry>

</feed
