I have bought myself a GPS Receiver BU-353.
Having plugged in the device into my Debian Wheezy workstation, I wanted to test that it was working.
A quick dmesg | tail showed me that the device has been found and installed correctly (no drivers required).
I then installed the GPS daemon:
$ sudo apt-get install gpsd gpsd-clients $ sudo dpkg-reconfigure gpsd
This then started the GPS daemon. The next thing to do was get some example output, and the tool for this is gpspipe:
$ gpspipe -w -n 5
Lastly, I thought it would be fun to plot the output onto Google Maps and/or Openstreetmaps:
$ tpv=$(gpspipe -w -n 5 | grep -m 1 TPV | cut -d, -f4,6-8,13)
$ latitude=$(echo $tpv | cut -d, -f3 | cut -d: -f2)
$ longitude=$(echo $tpv | cut -d, -f4 | cut -d: -f2)
$ google_map_url="http://maps.google.com/?q=${longitude},${latitude}&z=${zoom}"
$ osm_map_url="http://www.openstreetmap.org/?mlat=${latitude}&mlon=${longitude}&zoom=${zoom}&layers=M"
$ xdg-open $google_map_url
$ xdg-open $osm_map_url
All worked beautifully.


Have you tried using it as a time source?
Interesting, didn’t know you could, but yes it seems you can. Is there a benefit to that over NTP?
It gives you a much more authoritative answer is all, so your server would operate at a higher stratum – though still leave other servers configured so ntpd can munge all the data. You could also then offer up your server into the public NTP pool (www.pool.ntp.org), doing the community a service.
Out of interest though, what did you plan to use it for?
I am plan to install http://opencpn.org and use it as the GPS location source, so that my boat’s position will be plotted correctly on the chart.
Can you get a time-stamp from satellites? It would be a good time-server solution in an enclosed environment.
Seems so, here is the raw output:
# gpspipe -w -n 5 | grep -m 1 TPV{"class":"TPV","tag":"MID2","device":"/dev/ttyUSB0","mode":3,"time":"2012-09-17T13:51:32.000Z","ept":0.005,"lat":51.99999999,"lon":-0.500000000,"alt":45.263,"epx":12.393,"epy":12.985,"epv":33.365,"track":179.3168,"speed":0.195,"climb":0.156,"eps":25.97}
What I don’t know is how accurate or usable that time is.
Reblogged this on Gigable – Tech Blog.
I think this is http://maps.google.com/?q=${latitude},${longitude}”
and not http://maps.google.com/?q=${longitude},${latitude}