Looking for event for system time sync with NTP server

Need help with C, C++, perl, python, etc?

Looking for event for system time sync with NTP server

Postby yogeshg » 2016-10-20 05:01

To test NTP functionality, we configured Hardware Time (using "hwclock --set --date" command) and System Time (using "date -s" command) 3 minutes ahead of the PC time and start NTP service

After some time we observed system time sync with NTP server. But hardware time not sync with the system time

We are looking for event when system time sync with NTP server, so that we can update the hardware time.

Thanks..
yogeshg
 
Posts: 7
Joined: 2016-09-26 06:34

Re: Looking for event for system time sync with NTP server

Postby pylkko » 2016-10-20 05:24

Are you using the slew switch, because syncing can take very long.

What about

Code: Select all
 hwclock --systohc --localtime
User avatar
pylkko
 
Posts: 1049
Joined: 2014-11-06 19:02

Re: Looking for event for system time sync with NTP server

Postby yogeshg » 2016-10-20 07:54

Thanks for replay.

We are aware about the NTP sync will take time

We are planning to use " hwclock --systohc" command to sync hardware time

We are looking for an event which will inform the condition "NTP synced system time", basis same firmware will update hardware time.

Other option is to periodically monitor both system and hardware time fro drastic time difference. We want to avoid this overhead on firmware
yogeshg
 
Posts: 7
Joined: 2016-09-26 06:34

Re: Looking for event for system time sync with NTP server

Postby pylkko » 2016-10-20 10:04

Sorry, you lost me. What firmware are you referring to?
User avatar
pylkko
 
Posts: 1049
Joined: 2014-11-06 19:02

Re: Looking for event for system time sync with NTP server

Postby tomazzi » 2016-10-20 23:06

pylkko wrote:Sorry, you lost me. What firmware are you referring to?

This is about a closed-source system/project, and this guy plays a role of just a lost, unexperienced programmer who is seeking for help - that's why "we" is the most used (pro)noun. His questions are non-official - in the the sense, that his bosses don't have a clue that he is asking those questions here...
...that's the probable case - but there can be alternative explanation(s):
1. This can be a test.
2. This can be a FUD - proving that the *nix systems are so hard to understand and so "poorly" documented.

Regards.
Odi profanum vulgus
tomazzi
 
Posts: 730
Joined: 2013-08-02 21:33

Looking for event for system time sync with NTP server

Postby PredatorW » 2017-03-28 02:43

How can I remove time codes of a ".srt" file to provide it for print? I want Order of terms in the extracted file to be the same as the original file.
User avatar
PredatorW
 
Posts: 1
Joined: 2013-10-17 05:11


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable