Serial Data Connection on Raspberry Pi with GARMIN GPS 12


the idea is to read and write data from the GARMIN GPS 12 via raspberry pi. the GPS 12 has 4 pins at the back: POWER, GROUND, DATA IN and DATA OUT. powering the GPS-unit as follows:

Raspberry pi wiring diagram
wire POWER to 5V and GROUND to GND
GARMIN GPS 12 unit view

Next step will be to establish a data connection… create your own cable

i gave it up to try it with the old GPS 12. now i try to get GPS-data with the newer GPSMAP 64s.
on the gps-unit go into your settings and set interface to „Garmin Spanner“ – so you can choose after usb-connection if you want storage-mode, yes or no.
after plugging usb to raspi, i see it with „Garmin International GPS (various models)“ after the lsusb-command.

after that i installed gpsd gpsd-clients python-gps
sudo apt-get install gpsd gpsd-clients python-gps
start the daemon (important is the -n switch!)
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock -n
and connect to the gps-unit
now get gps-data with
gpsmon /dev/ttyUSB0

kill the daemon
sudo killall gpsd

do not run gpsmon and gpsd simultaniously

infos from here and here

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

Du kommentierst mit Deinem Abmelden /  Ändern )

Google Foto

Du kommentierst mit Deinem Google-Konto. Abmelden /  Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden /  Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden /  Ändern )

Verbinde mit %s