08-03-2016 03:05 AM
Hello
I have followed this method to sync with NTP (https://decibel.ni.com/content/docs/DOC-39178) and it works most of the time , but sometimes I lost the NTP sync and crio are about 7s in front. ( I get the problem with a 9035 and a 9068).
When the synchronisation ist not working anymore, ntpq -p command respond "connection refused"
Does anyone have an idea about the problem?
Thanks
Solved! Go to Solution.
08-05-2016 04:08 AM
Hello kdevelle,
can you somehow reconstruct under what circumstances the synchronisation is lost?
As an alternative, you could try using NI-Time Sync:
TimeSync for SNTP: Getting Started
https://decibel.ni.com/content/docs/DOC-14480
Let me know if this works for you.
Best regards
08-05-2016 05:05 AM
Hello Jacques,
This is exactly what I would like to understand. I know that my system were sync correctly and at some point they were not and the ntp -q command was answering connection refused instead of the the list of server that I was sync with.
Now I had a loop in my code doing this command every 20mn to log the answer and have more info, I will come back as soon as I can give you mre detail
Thanks for the suggestion, but time sync with linux RT crio provide ptp protocole but not sntp
Regards
Kevin
08-05-2016 09:29 AM
What are the servers that you are syncing with? And have you checked otherwise that these servers are reachable? Could there be anything in your network configuration hindering the connection to the server?
That's a good idea. I'll wait for your further info.
Have a nice weekend
08-05-2016 11:48 AM
I am working at cern, we have our own ntp servers that we use with many devices without any problems, so I am pretty confident on the network part
Have a nice week end to
Kevin
08-16-2016 04:11 AM
Hi Kevin,
have you managed to resolve the issue yet?
Best regards
08-16-2016 09:12 AM
Hello Jacques
Since I install ntp-utils in addition of ntp-tickadj (like in the comment of this post : https://decibel.ni.com/content/docs/DOC-39178)
I did not loose the synch anymore, so I don't know if it is fixed or if it is just luck, once I lost the ntp synchronisation after more than 2 weeks
Regards
Kevin
08-16-2016 09:21 AM
Hi,
In fact installing ntp-utils seems to have helped other users as well. Do I understand you correctly that you have lost synchronisation just once in more than 2 weeks? Or does it work reliably now?
Regards
08-17-2016 04:26 AM
Hello Jacques,
Sorry, I was not very clear
Before adding ntp-utils, I lost the synchronization few times : sometimes after few days, once, after more than 2 weeks but also sometimes at startup I was not able to synchronize
Since I install ntp utils, 10 days ago, on 5 compact rio, I am running the ntpq -p command every minutes and I always get an answer so it means that I never lost the NTP synchronisation (or I lost it less than a minute). I will continue to monitor them, but it seems that ntp-utils helped me as weel
Regards
Kevin
08-17-2016 04:38 AM
Hi Kevin,
so for now, installing ntp-utils really seems to have solved the problem.
I'd suggest you mark your comment as solution so other users that run into the same problem can find the solution easier.
Regards