Notifications
Clear all

L3V7 Sync Time Upon Deployment

5 Posts
2 Users
0 Reactions
23 Views
(@konstantinos-belivanis)
Posts: 11
Active Member Customer
Topic starter
 

Hello all,

I have an assembly using a mini L3V7. Since the device is going to work on a seasonal basis and batteries should be disconnected when not in use, I would like the device time/RTC to sync upon re-installation of the device.

I assume this will be happening with a check of the system/rtc time vs the network time difference.

Anyone has any solution to this problem?

Thanks!

 
Posted : 02/07/2025 2:03 pm
(@admin)
Posts: 629
Member Admin
 

Witty Pi's software already provides a net_to_system() function to copy Internet time to local system and a system_to_rtc() function to copy local system time into RTC.

You may call them sequentially in your own BASH script (after including the utilities.sh script) to synchronize Internet time into RTC. If you don't use BASH, you may implement the same functionality with different programming languagues.

 
Posted : 02/07/2025 4:19 pm
(@konstantinos-belivanis)
Posts: 11
Active Member Customer
Topic starter
 

Thanks for the response.

 

After running those functions, I should re-define the schedule to make sure the correct shutoff and turning-on time are set, correct?

Do you see a problem running it at every startup or should I implement a check to assess whether the system/rtc time is off when compared to the network time?

Thanks again!

 
Posted : 02/07/2025 9:01 pm
(@admin)
Posts: 629
Member Admin
 

Posted by: @konstantinos-belivanis

After running those functions, I should re-define the schedule to make sure the correct shutoff and turning-on time are set, correct?

Yes. This can be done by executing the runScript.sh script then.

Posted by: @konstantinos-belivanis

Do you see a problem running it at every startup

We do not suggest to do time synchronization so frequently - the accurancy of RTC is good enough, and the time information from Internet is not always good. We have saw many cases that the incorrect time from Internet corrupts the RTC time and broke the schedule. Wrong Internet time information might be due to network issue, or timezone issue etc.

It is recommended to do the Internet time synchronization manually, or automatically after making sure the Internet time is good.

 

 

 
Posted : 03/07/2025 8:34 am
(@konstantinos-belivanis)
Posts: 11
Active Member Customer
Topic starter
 

@admin Thanks for your reply.

May I add about internet time synchronization being required when system or RTC time is way off the internet time?

 
Posted : 03/07/2025 12:04 pm
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.