Skip navigation.
Home
The QNX Community Portal

View topic - ntpd versus rtc

ntpd versus rtc

Read-only archive of qnx.rtos (Writing resources managers, and general discussion around the QNX Neutrino RTOS) at inn.qnx.com

ntpd versus rtc

Postby txdoesker » Thu Jan 24, 2008 3:34 pm

Hi all,

is it possible to let qnx ntpd interact with rtc?

My QNX System is not connected to the web all the time.
If ntpd has synchronized the system time from a time server in the web,
I want to set the rtc with this accurate time.
If the system is offline, I want to synchronize the system time with the
rtc.

Is this possible?
If yes, how to connect the rtc to the ntpd?
Must I provide a resource manager, providing something like "/dev/rtc"?

Thanks in advance
Michael
txdoesker
New Member
 
Posts: 2
Joined: Tue Dec 11, 2007 3:04 pm

Re: ntpd versus rtc

Postby Mario Charest » Thu Jan 31, 2008 2:03 am

"Michael Tasche" <michael.tasche@esd-electronics.com> wrote in message
news:gpnm65-l7p.ln1@comm.esd...
Hi all,

is it possible to let qnx ntpd interact with rtc?

My QNX System is not connected to the web all the time.
If ntpd has synchronized the system time from a time server in the web, I
want to set the rtc with this accurate time.
If the system is offline, I want to synchronize the system time with the
rtc.

Is this possible?
If yes, how to connect the rtc to the ntpd?
Must I provide a resource manager, providing something like "/dev/rtc"?


I'm not familliar with nptd but just setup a cron job to call "rtc -s hw" at
regular interval.

Thanks in advance
Michael
Mario Charest
 

Re: ntpd versus rtc

Postby Kevin Miller » Fri Feb 01, 2008 8:40 pm

ntpd will "discipline" the system clock when the time server is not
available. It calculates the local clock error, and corrects for it in
between synchronizations. However, it does not do anything with the
hardware clock, which is why you have to do "rtc -s hw" periodically.

Mario Charest wrote:
"Michael Tasche" <michael.tasche@esd-electronics.com> wrote in message
news:gpnm65-l7p.ln1@comm.esd...
Hi all,

is it possible to let qnx ntpd interact with rtc?

My QNX System is not connected to the web all the time.
If ntpd has synchronized the system time from a time server in the web, I
want to set the rtc with this accurate time.
If the system is offline, I want to synchronize the system time with the
rtc.

Is this possible?
If yes, how to connect the rtc to the ntpd?
Must I provide a resource manager, providing something like "/dev/rtc"?


I'm not familliar with nptd but just setup a cron job to call "rtc -s hw" at
regular interval.

Thanks in advance
Michael

Kevin Miller
 


Return to qnx.rtos

Who is online

Users browsing this forum: No registered users and 1 guest