Search found 4 matches

by aaandro
Fri Mar 26, 2021 1:56 pm
Forum: ESP-IDF
Topic: Unexpected behaviour from sntp library
Replies: 3
Views: 2846

Re: Unexpected behaviour from sntp library

I see, thanks for the direction! There might be an easier way to do this: #define SNTP_CHECK_RESPONSE 0 #define SNTP_COMP_ROUNDTRIP 0 to #define SNTP_CHECK_RESPONSE 2 #define SNTP_COMP_ROUNDTRIP 1 in https://github.com/espressif/esp-lwip/blob/2117f049dca64d15a12e81a308c27f36ac6e6272/src/include/lwip...
by aaandro
Thu Mar 25, 2021 3:08 pm
Forum: ESP-IDF
Topic: Unexpected behaviour from sntp library
Replies: 3
Views: 2846

Unexpected behaviour from sntp library

Hi all I was testing sntp time synchronization on multiple esp32s and noticed small time difference on all. It got worse, when network quality went down. Started looking into it and in the 48 byte request packet sent out, only the first byte has value 0x23, rest 0x00. Essentially missing the "origin...
by aaandro
Wed Mar 10, 2021 8:20 am
Forum: General Discussion
Topic: Local timesync for multiple devices
Replies: 2
Views: 2731

Re: Local timesync for multiple devices

UkioNotara wrote:
Tue Mar 09, 2021 6:28 pm
I think chrony is better suited for this...!
There is no chrony timesync for esp modules :(
That's what I'm looking for.
by aaandro
Tue Mar 09, 2021 2:20 pm
Forum: General Discussion
Topic: Local timesync for multiple devices
Replies: 2
Views: 2731

Local timesync for multiple devices

Hi everyone! Has anyone come across ways to timesync multiple esp32 devices in local network? By local I mean not connected to internet, just a single AP and a few stations in single WiFi network. To make things interesting, I'm trying to achieve a few millisecond accuracy. Most of the libraries,pro...