ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does your embedded board have internet access? If it does then you can sync it using the NTP servers.

If it does not have internet, and only a connection to the server (master/PC), then on the server side, include these lines in your chrony.conf:

(assuming the clients are in the 192.168.165.x subnet)

driftfile /var/lib/chrony/drift
local stratum 8
manual
allow 192.168.165
smoothtime 400 0.01

And on the client (embedded system) side include these lines in your chrony.conf:

server master_ip_address iburst
driftfile /var/lib/chrony/drift
logdir /var/log/chrony
log measurements statistics tracking
makestep 1 -1  #change time in steps at any point after boot(1 -1) || in 3 sync steps (1 -3)
rtcsync        #real time clock sync

Note: Ensure the subnet mask is adhered to when writing the allow 192.168.165 (for a subnet 255.255.255.0). For a subnet mask of 255.255.0.0 you would write allow 192.168.

Once you are done, reboot the system, ssh into it, and type date in the terminal. The client should have synchronised with your master/server time.