Friday Mar 28, 2014

Adafruit Ultimate GPS using UART configuration on Raspberry Pi

So in preparation for using the Adafruit Ultimate GPS with UART there are some configuration steps that needs to be done. First we need to edit /boot/cmdline.txt (so it doesn't provide a terminal connection by default.

Change the line:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 
kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 
elevator=deadline rootwait
to:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait 
 

Then we need to edit /etc/inittab so the Pi doesn't spawn a login to the serial connection (we need it when connecting the GPS later)

Change:

#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
to:
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Reboot!

Install GPSD, GPSD is an open source project which provides a daemon which streams GPS data via a TCP socket, allowing you to communicate with a whole host of different GPS devices (not just this one). Just execute:

sudo apt-get install gpsd gpsd-clients python-gps

Now it is time to connect the GPS and test it, but that will be a later post. Stay Tuned!

--Andy

About

Andy's blog about the world of embedded Java, Oracle Java Cloud Service and my more fun things!

Search

Categories
Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today