Discussion and technical support related to USRP, UHD, RFNoC
View all threadsHi,
I am trying to setup the E320 so it will synchronise its time to the
internal gpsdo and become a ntp time server.
But I have not been able to find much info. It seems to have been
supported on E310 in 2015.
If I check the E320 OS time it seems to be about 0.2 seconds different
from the usrp gps time. So it seems the host time is not synced to the
gpsdo by default.
usrp_gps_time_now = 2021-08-20 13:21:51.00443925 UTC
host_pc_time_now = 2021-08-20 13:21:51.2055671215057373 UTC
Any hints/links on how to install / configure ntp or chrony and gpsd so
it uses the gpsdo as time source.
root@ni-e320-321D09C:/pub/tests# uname -a
ni-e320-321D09C: Linux ni-e320-321D09C 5.2.28-yocto-standard #1 SMP
PREEMPT Mon Sep 14 02:08:15 UTC 2020 armv7l armv7l armv7l GNU/Linux
I hope to hear from you soon.
Thank you and best regards,
Martin
Assuming you have ntp on your device (default img from ettus doesn’t have it), set /etc/ntp.conf to:
# GPS Serial data reference
server 127.127.28.0 minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0.0 refid GPS
# GPS PPS reference
server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid PPS
And enable the ntp service in systemd. If you don't have ntp, you'll have to cross compile it.