Raspberry Pi: How to get GPS working

How to install USB GPS dongle to Raspberry Pi Raspbian Wheezy.

I needed GPS on my Raspberry Pi to do some wardriving and I found Globalsat BU-353 GPS USB receiver SiRF III dongle which has worked perfectly.

First we have to install GPSD and GPS-Clients with apt-get:

apt-get install gpsd gpsd-clients

After that you could get gpsd working with it’s .conf file but I haven’t so I just use short script to get my GPS working:

pkill gpsd
gpsd -n -D 2 /dev/ttyUSB0

Save that example as gps.sh and give it enough rights:

chmod +x gps.sh

Now run that script and test if your GPS is working using cgps:

cgps -s

You should shortly see some NMEA data and more location data like latitude, longitude, time and so on… If you get those to your screen your GPS is working OK.

2 comments to Raspberry Pi: How to get GPS working

  • Alissa Eichelmann

    Bit 6 in the MAC address “global/local” bit. When set to 1 it indicates that the MAC address was set manually by an administrator, rather than burned into the network card following the normal rules for vendor identification.Since people who wish to manually set an IPV6 address would likely use many zero’s, something like FE80::24 (FE80:0000:0000:0000:0000:0000:0000:0020), the conversion was designed that such manual address would indicate that it was generated from a locally administered mac address rather than a real MAC.

  • TZ

    Hi! … pls how save in a file the information show from “cgps -s”. thks!

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



This site uses Akismet to reduce spam. Learn how your comment data is processed.