Skip to content

Time Synchronization

Heenne edited this page Feb 8, 2022 · 2 revisions

What's up with time?

The time of the MiR-PC and the Ubuntu-PC inside the MiR must be synchronized. This needs to be done because of the timestamps a frame or message receive. If the timestamp does not match the time of the receiver by a given threshold it is rejected and a error or warning is shown to the used. Therefore, we need to synchronize the times of the MiR to prevent this. Perform the following tasks on the Ubuntu-PC inside the MiR.

  1. Use ssh [insert_robot_name_or_IP_here] to connect to the robot and be able to execute commands.
  2. Check if the time is not matching. To do this, open the web interface of the MiR (use the IP of the MiR as URL). Then execute the commands date and sudo hwclock --show. If the time in the web interface matches the software and hardware clock of the Ubuntu-PC inside the MiR, the time is already synchronized. No further action is required. If the time does not match, then perform the following steps.
  3. Execute the Match_Mobile_Robotics/general_hardware_helper/master_time_sync/master_time_sync.py (found in the Match_Mobile_Robotics repository) script on the Ubuntu-PC inside the MiR with the correct IP address and time offset (due to summer (+2 hours) and winter time (+1 hours)).
  4. Check again if the software and hardware clock are synchronized by opening the web interface of the MiR. See step 2 for more information. If the time in the web interface matches the software and hardware clock of the Ubuntu-PC inside the MiR, the time was synchronized successfully.

Clone this wiki locally