adafruit / Adafruit_CircuitPython_Bundle

A bundle of useful CircuitPython libraries ready to use from the filesystem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

self.ntp.datetime hangs indefinitely

regulatre opened this issue · comments

Synopsis:

I have a function that runs the following statement every 1 second to timestamp my data readings.

dt = self.ntp.datetime

Problem: every 2-11 minutes the function call hangs indefinitely. Every 2-11 minutes the watchdog detects the hang and resets my controller and this is the only way I can keep the statement in place. The underlying network is reliable and the NTP server is local.

Board: Adafruit ESP32-S3 Feather with 4MB Flash 2MB PSRAM - STEMMA QT / Qwiic

Firmware: adafruit-circuitpython-adafruit_feather_esp32s3_4mbflash_2mbpsram-en_US-8.0.0-alpha.1.uf2

Bundle release: adafruit-circuitpython-bundle-8.x-mpy-20220804

Looking a plot of the times when it "hangs", I notice that it seems to happen most frequently at quarter hour intervals: the top of the hour, 15 minutes after the hour, 30 minutes after, and 45 minutes after the hour. It has also happened at 5 minutes after but almost never during the minutes in between!

Apologies, I just found what appears to be the same bug being reported against the specific file "adafruit_ntp.py" adafruit/Adafruit_CircuitPython_NTP#21

I'll close this as a duplicate and track the issue in the link provided above.