LoPy - getting datetime after power interrupt
-
Hi,
When having a (battery) power interrupt one can possibly use a cheap GPS module connected to the LoPy to get the correct datetime (and enter in the RTC) when power is again available. Is/are there other ways to get the datetime after a power interrupt: e.g. is it possible to get the datetime from the concentrator/gateway?
Thanks.
-
Any ideas?
-
@robmarkcole choices I see other than from GPS are
-
use a real battery backed up RTC (maybe via i2c https://www.sparkfun.com/products/12708).
-
get the time from network on startup.
obviously NTP works with Cat-M1 and Wifi if you have an internet connection.
It appears you could send date/time via downlink on sigfox, but due to rate limitations you would probably need to explicitly request time on boot.
Lorawan - you would need to provide a time service. It doesn't appear to be in the protocol spec, and traversal time would mean time is a bit wrong if you hop through nodes.
Option 1 would probably be the best option in my opinion. Works without a network if datetime/set correctly initially.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login