Serial Data Connection on Raspberry Pi with GARMIN GPS 12

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 https://www.syz.com/gps/gpsinfo.pdf http://www.savagehomeautomation.com/projects/raspberry-pi-rs232-serial-interface-options-revisit.html http://pi4j.com/example/serial.html http://elinux.org/RPi_Serial_Connection

https://www.raspberrypi.org/forums/viewtopic.php?t=11228&p=129224 http://pi4j.com/example/serial.html

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

https://www.raspberrypi.org/forums/viewtopic.php?t=48345&p=382294

Advertisements

Kommentar verfassen

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

WordPress.com-Logo

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

Twitter-Bild

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

Facebook-Foto

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

Google+ Foto

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

Verbinde mit %s