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

Alarm triggering prematurely for certain times #42

Open
Blake-James opened this issue Apr 7, 2022 · 0 comments
Open

Alarm triggering prematurely for certain times #42

Blake-James opened this issue Apr 7, 2022 · 0 comments

Comments

@Blake-James
Copy link

I'm using the DS3231 alarm 1 as a watchdog by attaching it to the reset pin of my Jetson NX. The python script running on the Jetson constantly updates the alarm time to be some time in the future. This has worked fine when setting that alarm to ~30min in the future while looping every 10min, but it seems like if I set that alarm time to be exactly 1hr from now, the alarm triggers prematurely the moment that I set that new alarm to +1hr from now.

My line of python used to set the alarm looks like:
thisRTC.alarm1 = (time.gmtime(newAlarm), "monthly")
where newAlarm is an epoch time in seconds +1hr from now.
I've tried "monthly" and "weekly".

What's going on here? Why does the alarm trigger as soon as I set it for that particular time?

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

No branches or pull requests

1 participant