Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTP client not working with chrony #114

Closed
AloisHofstaetter opened this issue May 11, 2023 · 0 comments · Fixed by #123
Closed

NTP client not working with chrony #114

AloisHofstaetter opened this issue May 11, 2023 · 0 comments · Fixed by #123

Comments

@AloisHofstaetter
Copy link

Hi,

from my point of view, the Wiznet5k NTP Client is not working for chrony. (And probably ntpd)
I guess it has to do with:
self._pkt_buf_ = bytearray([0x23] + [0x00] * 55)
Why is the length of the request expanded to 56 bytes?
I think the request should have a length of 48 bytes.
If i change it to:
self._pkt_buf_ = bytearray([0x23] + [0x00] * 47)
In fact, it works then.

For example:
https://github.com/adafruit/Adafruit_CircuitPython_NTP/blob/main/adafruit_ntp.py
also uses self._packet = bytearray(48)

BR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant