GPS Dongle on Raspberry Pi

Firstly install gpsd, gpsd-clients and navit:

sudo apt-get install gpsd gpsd-clients navit

When the gps dongle is connected you should be able to see it when you do “lsusb”. My DealExtreme dongle appeared as “Prolific Technology, Inc. PL2303 Serial Port”, you can take out the USB device, run lsusb, and then reconnect if you’re unsure about what’s what.

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

Then if we look at the output of dmesg we can see where that USB device was mounted:

[ 100.854930] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[ 100.960633] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 100.960666] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 100.960682] usb 1-1.3: Product: USB-Serial Controller D
[ 100.960697] usb 1-1.3: Manufacturer: Prolific Technology Inc. 
[ 101.019665] usbcore: registered new interface driver usbserial
[ 101.021846] usbcore: registered new interface driver usbserial_generic
[ 101.022601] USB Serial support registered for generic
[ 101.022648] usbserial: USB Serial Driver core
[ 101.031944] usbcore: registered new interface driver pl2303
[ 101.032134] USB Serial support registered for pl2303
[ 101.032277] pl2303 1-1.3:1.0: pl2303 converter detected
[ 101.044257] usb 1-1.3: pl2303 converter now attached to ttyUSB0

Now that we know the GPS dongle is connected to ttyUSB0, we can go ahead and configure gpsd by running:

sudo dpkg-reconfigure gpsd

You can enter the path to the GPS device as the full path (/dev/ttyUSB0), no options are necessary, but have a look at “man gpsd” if you want to see what options are available.

Now you should have a working gps dongle – the output of which you can see with “gpspipe -r”

I followed the instructions from here to configure navit and download binary files for the maps.

Navit on Raspberry Pi

Things to try:
Track your position with Google Earth
Find nicer fonts…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>