I have a hardware which is Ublox EVK-M8T kit, with the GPS antenna.
I also install the gpsd and ntp in the Ubuntu system.
I check to make sure all are working probably, such as:
turn of daemon os:
sudo service gpsd stop
Remove any sockets gpsd might have left behind:
sudo rm /var/run/gpsd.sock
make sure there is no instance of gpsd running:
sudo killall -9 gpsd ntpd
find the current USB devices connected to the RPI:
ls /dev/ttyACM0
check that your device is emitting data, and save MNEA message to logfile:
gpsmon /dev/ttyACM0 -l logfile
and also work with:
cgps -s xgps
reconfiguration file:
sudo service ntp reload
see status overtime, show us all the clocks and what times are?
sudo ntpq -p
check ntp status:
service ntp status
change the server:
sudo vim /etc/ntp.conf
and:
ntpdate -d 192.168.1.231
....
Those are steps that I was trying to set up gpsd
and ntpd
, but I still do not understand, why do I have to do that?
How can I get an get Ubuntu system with ntpd receiving data from GPS through USB and set clock accuracy?
Thank you.