Some Notes

Goal

A homebrew navigation system with the following capabilites:

Development

Parts

References

VK-162 G-Mouse USB GPS Dongle

sudo apt-get update && sudo apt-get -y install gpsd gpsd-clients python-gps
sudo shutdown -r now
sudo dpkg-reconfigure gpsd
sudo nano /etc/default/gpsd
# Default settings for the gpsd init script and the hotplug wrapper.

# Start the gpsd daemon automatically at boot time
START_DAEMON="false"

# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyACM0"

# Other options you want to pass to gpsd
GPSD_SOCKET="/var/run/gpsd.sock"
GPSD_OPTIONS="-n"

sudo nano /etc/rc.local
agregar:
/bin/systemctl stop gpsd.socket
/bin/sleep 1
/usr/sbin/gpsd /dev/ttyACM0 -n -F /var/run/gpsd.sock
/bin/sleep 1
/usr/sbin/service ntp restart

sudo nano /etc/ntp.conf
agregar:
# Use GPS receiver
server 127.127.28.0 prefer
fudge 127.127.28.0 time1 0.0 refid GPS
# GPS PPS reference, if provided by GPS device
server 127.127.28.1 prefer
fudge 127.127.28.1 refid PPS

Servicio de inicio: Detener servicio: Finalmente, use este comando para obtener información del módulo de GPS. Verás esto:
sudo systemctl enable gpsd.socket
sudo systemctl start gpsd.socket
//Para detener
//sudo systemctl stop gpsd.sock
//sudo systemctl disable gpsd.sock

Verificar:
cgps –s