How to synchronize two PC?
I have followed this instruction here : LINK to install chony and edit the conf file and on my Ubuntu PC I have included this line to syncrhonize with my embedded computer (where ros is running):
server 192.168.86.26 minpoll 0 maxpoll 5 maxdelay .00
But when I type:
ntpdate -q 192.168.86.26
I get this:
15 Jan 01:24:48 ntpdate[4560]: 192.168.86.26 rate limit response from server.
server 192.168.86.26, stratum 2, offset -0.001573, delay 0.03282
15 Jan 01:24:48 ntpdate[4560]: adjust time server 192.168.86.26 offset -0.001573 sec
Why it isn't syncronized?
This is my /etc/chrony/chrony.conf file
pool ntp.ubuntu.com iburst maxsources 4
pool 0.ubuntu.pool.ntp.org iburst maxsources 1
pool 1.ubuntu.pool.ntp.org iburst maxsources 1
pool 2.ubuntu.pool.ntp.org iburst maxsources 2
# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys
# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift
# Uncomment the following line to turn logging on.
#log tracking measurements statistics
# Log files location.
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
rtcsync
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3
server 192.168.86.26 minpoll 0 maxpoll 5 maxdelay .00
Could you share your etc/chrony/chrony.conf files on the client and server side?
@curi_ROS I have updated the answer. Regarding the server side, do I need to add chrony too? I thought only client side is needed.