JacSchn / 5G-Beamforming-from-Visual-and-Lidar-Rendering

Regent Scholarship Research with UWW where we are using machine learning in an autonomous driving lab to collect visual and lidar-based models to have optimal guidance of 60GHz Wireless Network.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Time Synchronization with Chrony #26

Closed flynn248 closed 3 years ago

flynn248 commented 3 years ago

To ensure the timestamps are being collected with the same time reference for every sensor, chrony is being used. Chrony is a NTP service that updates the hardware clocks of the devices. Both the Nano that is collecting data and the routers are synchronized with chrony.

The way the devices are updated is as follows: External NTP Server --> Nano --> Server Router --> Client Router

This method ensures that the system clocks are synchronized within the tolerances of the project. The two routers are either directly or indirectly synched with the Nano with this set up.

The only issue is that the Nano cannot be connected via ethernet to the server router until after chrony has updated itself on one of the NTP servers. The reason is because the Nano cannot connect to the internet via wifi and ethernet simultaneously. This prevents the Nano from acting as a NTP server itself for some reason and prevents the routers from synching with it. This may be an issue to raise and resolve, but the work around is simply to let the Nano update its clock, then plug in the ethernet cable.