Closed DtNeo closed 6 months ago
This is amazing! It it always pleasant to see that a code lives somewhere :)
Please, feel free to make a PR if you feel that something could be improved right here in this repository. And thanks for sharing the issues and the improvements!
... Also I think it is time to create a LICENSE file (it is GPLv2, BTW) and mention all the contributors there...
Context
In the development of applications using STM32 with the ENC28J60 module for network communication, I've integrated functions to manage time synchronization via NTP. This includes sending NTP requests and processing responses to obtain a coherent timestamp.
Resolved Issues and Improvements
Integration of
client_ntp_process_answer
: I placed theclient_ntp_process_answer
functions directly inpacketloop_icmp_tcp
. This integration allows for better management of NTP packets directly upon their reception.NTP Timestamp Correction :
time = ((uint32_t)packet[82] << 24) | ((uint32_t)packet[83] << 16) | ((uint32_t)packet[84] << 8) | (uint32_t)packet[85];
This extraction is performed correctly and delivers the expected results, in accordance with NTP protocol standards.client_ntp_request
:client_ntp_request
function. It works as intended to send NTP requests to the specified server.Acknowledgments
I would like to thank everyone who has contributed to the stm32-libs/stm32-enc28j60 project. The work provided is extremely useful and serves as a solid foundation for expanding network functionalities on STM32 devices.
Next Steps
Thanks again for all