OpenQNX :: The QNX Community Portal

Jul 06, 2008 - 12:38 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 39 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
txdoesker
Post subject: ntpd versus rtc  PostPosted: Jan 24, 2008 - 03:34 PM
New Member


Joined: Dec 11, 2007
Posts: 2

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
 
 View user's profile Send private message  
Reply with quote Back to top
Mario Charest
Post subject: Re: ntpd versus rtc  PostPosted: Jan 31, 2008 - 02:03 AM
Guest





"Michael Tasche" <michael.tasche@esd-electronics.com> wrote in message
news:gpnm65-l7p.ln1@comm.esd...
Quote:
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.

Quote:
Thanks in advance
Michael
 
   
Reply with quote Back to top
Kevin Miller
Post subject: Re: ntpd versus rtc  PostPosted: Feb 01, 2008 - 08:40 PM
Guest





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:
Quote:
"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

 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.