July 02, 2014

GPS on Pi

AdaFruit Ultimate GPS Module v3
Wiring:
GPS   RPi GIOP
VIN   5V
GND   GND
RX       TX
TX       RX
——-
nano /boot/cmdline.txt
# Remove these in cmdline.txt:
# `console=ttyAMA0,115200`
# and `kgdboc=ttyAMA0,115200`.
# Mine looks like this:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
—–
Comment out the line “T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100″ at the end of /etc/inittab
nano /etc/inittab
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
—-
apt-get install gpsd gpsd-clients
gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock
cgps

No comments: