Wiznet makers

irina

Published May 03, 2024 ©

91 UCC

5 WCC

86 VAR

0 Contests

0 Followers

0 Following

Original Link

ESP32_W5500_Ethernet_NTP_deepsleep_demo

This demo uses ESP32 and W5500 modules for NTP over ethernet, setting timezone, serial-network bridging, timekeeping, and variable management in deep sleep

COMPONENTS
PROJECT DESCRIPTION

Table of Contents:

  1. Integration of Ethernet Library with lwIP on ESP32
  2. lwIP Support Projects
  3. NTP Update Strategy

1. Integration of Ethernet Library with lwIP on ESP32

The Ethernet module/library is not currently integrated into the lwIP stack on the ESP32. This requires the use of separate Ethernet library functions. Notably, the ESP32's native SNTP cannot be used, and this issue may affect additional functionalities.

2. lwIP Support Projects

Those interested in lwIP support should consider looking into the ESP8266 W5500lwIP and ESP32 W5500lwIP projects. Although these projects are under development and not yet ready for practical use, they are making progress.

3. NTP Update Strategy

In the given demo, the deep sleep interval is set to 60 seconds, which prevents the NTP_UPDATE_INTERVAL from being triggered in the code, as NTP is updated at every startup or wake-up. Depending on specific needs, you might want to adjust this update strategy:

  • [Current] Always update NTP after boot/wake-up and wait for the next update interval (if that happens before another deep sleep).
  • Update at fixed times, potentially configuring the device to wake up specifically for updates.
Documents
  • Github

Comments Write