Last active
June 1, 2023 17:23
-
-
Save sdntechforum/3d2da442d2f5f2a41884ac3a08cf057d to your computer and use it in GitHub Desktop.
GPS Module Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /dev/ | |
ls | |
sudo apt-get install gpsd-tools gpsd-clients | |
sudo systemctl stop gpsd.socket | |
sudo systemctl disable gpsd.socket | |
sudo vi /lib/systemd/system/gpsd.socket | |
sudo killall gpsd | |
sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock | |
! | |
gpsmon | |
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install gpsbabel | |
``` | |
#!/bin/bash | |
for ((i=0; i<60; i++)) | |
do | |
timestamp=$(date +"%Y-%m-%d_%H-%M-%S") | |
gpsbabel -t -i nmea -f /dev/ttyACM0 -o gpx -F "/path/to/output$timestamp.gpx" | |
sleep 60 | |
done | |
``` | |
## Make sure you chnage Path to output to a valid location #### | |
## Make sure to replace "/dev/ttyUSB0" with the correct device path for your GPS device. ## | |
## You can typically find the correct device path by checking the output of the "dmesg" command right after connecting the GPS device.## | |
! | |
chmod +x capture_gps.sh | |
! | |
./capture_gps.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for ((i=0; i<60; i++)) | |
do | |
timestamp=$(date +"%Y-%m-%d_%H-%M-%S") | |
sudo gpscsv -n 1 -x 1 --cvt-isotime > tpv.dat | |
sleep 60 | |
done | |
``` |
Headign uodated
fixed the typo
added script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GPS module install on Raspberry Pi