<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>libcoffee.net: GPS on Maemo</title>
    <link>http://www.libcoffee.net/articles/2007/09/30/gps-on-maemo</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>:: Just another Typo weblog ::</description>
    <item>
      <title>GPS on Maemo</title>
      <description>&lt;p&gt;Received my &lt;a href="http://www.mobileplanet.com/d.aspx?i=154975"&gt;Holux M-1000B&lt;/a&gt; Bluetooth &lt;span class="caps"&gt;GPS&lt;/span&gt; module on Friday, and have been playing around over the weekend. I bought it on an eBay store for &lt;span class="caps"&gt;AUD&lt;/span&gt;$80 last week, took some time for it to get here but it was pretty well worth the wait! Turned it on after a good recharge and brief look at the user manual (only a few relevant pages in the manual, the rest of the documentation is in &lt;span class="caps"&gt;PDF&lt;/span&gt; form on the driver CD), and fiddled with &lt;a href="http://www.google.com.au/url?sa=t&amp;#38;ct=res&amp;#38;cd=2&amp;#38;url=https%3A%2F%2Fgarage.maemo.org%2Fprojects%2Fmaemo-mapper%2F&amp;#38;ei=_IH_RvnXKp_ogwPLuriFDg&amp;#38;usg=AFQjCNH4YHVu7nw0-ZukHzTirV1_bWcrtA&amp;#38;sig2=hUwJ8InM8YH0B8ojO1wC9w"&gt;Maemo Mapper&lt;/a&gt; to use it for positioning.&lt;/p&gt;


	&lt;p&gt;After pairing the &lt;span class="caps"&gt;N800&lt;/span&gt; with the &lt;span class="caps"&gt;GPS&lt;/span&gt; module it took a while to locate enough available satellites and confirm the current coordinates:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://picasaweb.google.com/zanglang/Random/photo#5115956035255226322"&gt;&lt;img src="http://lh3.google.com/zanglang/Rv-G6JfnT9I/AAAAAAAAAEE/DzyHrwIrNuo/s400/maemo_mapper1.png" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;


	&lt;p&gt;Using &lt;a href="http://www.microsoft.com/virtualearth/"&gt;Microsoft&amp;#8217;s Virtual Earth&lt;/a&gt; hybrid maps (Google Maps and &lt;a href="http://www.openstreetmap.org"&gt;OpenStreet&lt;/a&gt; is available as well) and leaving the &lt;span class="caps"&gt;GPS&lt;/span&gt; running while on Chad&amp;#8217;s car (we were leaving the labs and I was hitching a ride home) plotted this route (red lines) on Mapper:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://picasaweb.google.com/zanglang/Random/photo#5115956039550193634"&gt;&lt;img src="http://lh4.google.com/zanglang/Rv-G6ZfnT-I/AAAAAAAAAEM/yYQCTMpYZ04/s400/maemo_mapper2.png" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;


	&lt;p&gt;The positioning isn&amp;#8217;t entirely accurate though &amp;#8211; when left on my table for some time, as you can see the coordinates start jumping all over the place. Probably due to weather and satellite communication strength, or by the fact that using it indoors affects the line of sight. The green lines were from me searching a route from my house to the Brisbane &lt;span class="caps"&gt;CBD&lt;/span&gt;, which is another feature I haven&amp;#8217;t played with much, but one I can foresee will be insanely useful when I&amp;#8217;m heading down to Melbourne in December.&lt;/p&gt;


	&lt;p&gt;Also tried setting up &lt;a href="http://geoclue.garage.maemo.org/"&gt;Geoclue&lt;/a&gt;, a geographical information framework, and osso-gpsd. Geoclue sits on the Maemo status bar, and there&amp;#8217;s a number of backend servers from which context data can be collected (See &lt;a href="http://vilunki.wordpress.com/2007/08/12/wrapping-up/"&gt;screenshot&lt;/a&gt;). Unfortunately it doesn&amp;#8217;t feel quite finished yet&amp;#8230; Plazes.com is a hassle to set up, Hostip doesn&amp;#8217;t provide quite enough information, and the GPSd backend took some hacking to get working. GPSd refused to run at first, and I had to dig around for some &lt;a href="http://maemo.org/community/wiki/bluetoothgps/"&gt;documentation&lt;/a&gt; on &lt;span class="caps"&gt;GPS&lt;/span&gt;/Bluetooth support on the &lt;span class="caps"&gt;N800&lt;/span&gt;. After playing around with the &amp;#8220;rfcomm&amp;#8221; commands, I made some changes to libgpsbt to recognize my Holux (it does a string comparison against a &lt;em&gt;hard-coded&lt;/em&gt; list of Bluetooth device names&amp;#8230; horrors!), and then get it to run as normal user. Once I got that out of the way, &lt;a href="http://pymaemo.garage.maemo.org/documentation/python_gps_examples/index.html"&gt;python-gpsbt&lt;/a&gt; worked beautifully! I&amp;#8217;m already chalking up plans for some future projects after this semester ends&amp;#8230; but that&amp;#8217;ll be a different story. :)&lt;/p&gt;


	&lt;p&gt;Overall, &lt;span class="caps"&gt;GPS&lt;/span&gt; on the &lt;span class="caps"&gt;N800&lt;/span&gt; is pretty good, although lack of maturity is still leaving much to be desired. If &lt;a href="http://arstechnica.com/journals/hardware.ars/2007/09/27/wimax-gps-coming-to-nokias-internet-tablets-in-2008"&gt;the tablet&amp;#8217;s next successor is really integrated with &lt;span class="caps"&gt;GPS&lt;/span&gt;&lt;/a&gt; as the &lt;span class="caps"&gt;FCC&lt;/span&gt; filings show, geographical/context-aware software could really be Nokia&amp;#8217;s killer app. Here&amp;#8217;s to hoping!&lt;/p&gt;</description>
      <pubDate>Sun, 30 Sep 2007 22:12:38 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:40c500a0-792d-4c7d-b384-ed5ed6f6bb9b</guid>
      <author>zanglang@gmail.com (Jerry)</author>
      <link>http://www.libcoffee.net/articles/2007/09/30/gps-on-maemo</link>
      <category>Technology</category>
    </item>
  </channel>
</rss>
