Raspberry Pi - GPS interfacing notes: Difference between revisions
Created page with "You may be binding to the wrong serial. You discover the serial for your GPS device by navigating to the folder below without the device plugged in, then refreshing with the d..." |
No edit summary |
||
Line 3: | Line 3: | ||
cd /dev/ | cd /dev/ | ||
ls | ls | ||
or | |||
dmesg | tail | |||
My device is called "ttyACM0" | My device is called "ttyACM0" |
Revision as of 17:53, 7 October 2019
You may be binding to the wrong serial. You discover the serial for your GPS device by navigating to the folder below without the device plugged in, then refreshing with the device plugged in.
cd /dev/ ls
or
dmesg | tail
My device is called "ttyACM0"
Install the requisite packages.
sudo apt-get install gpsd gpsd-clients python-gps
Stop Daemons
sudo systemctl stop gpsd.socket sudo systemctl disable gpsd.socket
Expose Service to public ports and localhost
vim /lib/systemd/system/gpsd.socket
Change 127.0.0.1 to 0.0.0.0
Stop GPSD services
sudo kilall gpsd
Bind service to serial device
sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock
Show GPS Data
gpsmon