SNTP accuracy
Posted: Sun Jan 16, 2022 12:22 am
Hi everyone,
excuse the noob question, but I'm trying to analytically determine the largest error possible using the standard LWIP implementation of SNTP which is included.
For my use-case I will be running an NTP sever on a local machine on a local network. For me it's very important that the delta between what the ESP thinks is the current time and the local machine is _VERY_ small - I don't know how to analytically measure this.
I set up a simple experiment in which two separate ESP32s connect to the NTP server, get the time, and then toggle a GPIO every second.
Looking at the GPIO waveform on a scope, I can se that the error between the two ESPs is fairly small (few ms) - however, I don't know how to measure the error between the ESP32 and the local machine. my local machine is running Ubunto and I don't know how to get a GPIO out of it, and even if I did I don't know what the delay is in terms of toggling a GPIO
How can I determine in this case? Does not sound easy!
Thanks!
excuse the noob question, but I'm trying to analytically determine the largest error possible using the standard LWIP implementation of SNTP which is included.
For my use-case I will be running an NTP sever on a local machine on a local network. For me it's very important that the delta between what the ESP thinks is the current time and the local machine is _VERY_ small - I don't know how to analytically measure this.
I set up a simple experiment in which two separate ESP32s connect to the NTP server, get the time, and then toggle a GPIO every second.
Looking at the GPIO waveform on a scope, I can se that the error between the two ESPs is fairly small (few ms) - however, I don't know how to measure the error between the ESP32 and the local machine. my local machine is running Ubunto and I don't know how to get a GPIO out of it, and even if I did I don't know what the delay is in terms of toggling a GPIO
How can I determine in this case? Does not sound easy!
Thanks!