Gpsd: Difference between revisions
Brian Wilson (talk | contribs) mNo edit summary |
Brian Wilson (talk | contribs) m →Where |
||
Line 1: | Line 1: | ||
== What and why == | == What and why == | ||
Line 17: | Line 4: | ||
gpsd is a service that listens to one or more gps receivers and makes the received data available over a network connection. It understands a wide variety of binary protocols. | gpsd is a service that listens to one or more gps receivers and makes the received data available over a network connection. It understands a wide variety of binary protocols. | ||
== What you get with gpsd == | |||
== What you get == | |||
Besides the daemon "gpsd", of course... | Besides the daemon "gpsd", of course... | ||
Line 44: | Line 21: | ||
=== Time === | === Time === | ||
== Magnavox GPS reference station == | |||
I will be running gpsd in a docker container on [[Bellman]] to set up my Magnavox reference station. | |||
docker pull forcedinductionz/docker-gpsd | |||
docker run -it -p 2947:2947 --device=/dev/ttyAMA0 forcedinductionz/docker-gpsd -D2 /dev/ttyAMA0 | |||
By using docker I avoid installation issues of getting it going on a Mac. I still have to configure it. Not able to do that at the moment. (My GPS receiver is packed in a box.) | |||
== Grove GPS, for Kali == | |||
I am putting a GroveGPS (from M5Stack) on a Pi 5, so it can talk to the Kismet data logger. See also [[WiFi Wireless Projects]]. | |||
I had to edit /boot/cmdline.txt to remove the serial port from the console. | |||
apt install gpsd gpsd-clients | |||
systemctl enable gpsd.service | |||
Edit /etc/default/gpsd to specify settings. DEVICE is probably is /dev/ttyAMA10 and speed should be set to 9600 normally but gpsd can figure that part out. | |||
See if it's working. | |||
== Python integration == | == Python integration == | ||
I need to put a short python script here... | I need to put a short python script here... | ||
== Resources == | |||
gpsd home: http://gpsd.berlios.de/ | |||
[[Category: GPS]] | [[Category: GPS]] |
Revision as of 03:55, 17 December 2024
What and why
gpsd is a service that listens to one or more gps receivers and makes the received data available over a network connection. It understands a wide variety of binary protocols.
What you get with gpsd
Besides the daemon "gpsd", of course...
In /usr/local/bin, you will find
- lcdgps
- gpxlogger
- gpspipe
- gpsmon
- gpsdecode
- gpsctl
- cgps
Position
Time
I will be running gpsd in a docker container on Bellman to set up my Magnavox reference station.
docker pull forcedinductionz/docker-gpsd docker run -it -p 2947:2947 --device=/dev/ttyAMA0 forcedinductionz/docker-gpsd -D2 /dev/ttyAMA0
By using docker I avoid installation issues of getting it going on a Mac. I still have to configure it. Not able to do that at the moment. (My GPS receiver is packed in a box.)
Grove GPS, for Kali
I am putting a GroveGPS (from M5Stack) on a Pi 5, so it can talk to the Kismet data logger. See also WiFi Wireless Projects.
I had to edit /boot/cmdline.txt to remove the serial port from the console.
apt install gpsd gpsd-clients systemctl enable gpsd.service
Edit /etc/default/gpsd to specify settings. DEVICE is probably is /dev/ttyAMA10 and speed should be set to 9600 normally but gpsd can figure that part out.
See if it's working.
Python integration
I need to put a short python script here...
Resources
gpsd home: http://gpsd.berlios.de/