I have an Embedded Board where the distribution on it is a custom Linux Distribution based on Yocto.
I have added ntp
and via ntpd
I will sync time with the common ntp pools either via UMTS 3G dongle or Ethernet.
This board along with some ESP32 PoE board by Olimex are connected via an Unmanaged Switch.
Purpose
The ESP32 boards have sensors that collect information add a timestamp to them and send it to the InfluxDB running on the main embedded board via Ethernet making it a Wired Sensor Network. These ESP32 boards also have an RTC DS3231 on them so I want them to first get the time from a NTP Server running on this embedded board to sync the RTC and then send information to the InfluxDB.
Questions
How does one create an NTP server on the Embedded Board? Can I add a line in the
ntp.conf
file that can be used to step up a server with for e.g. NTP server at192.168.4.11
? Using this IP address in my arduino code I can ask for the timestampsIn case of testing, If I somehow setup a NTP server on the Embedded Board, how can I initially test the time coming from it? Is there a command line utility to poll the NTP server and see if the time coming is correct or not on a regular computer?