maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   ntpdate for N900 (https://talk.maemo.org/showthread.php?t=65315)

ME2g 2010-11-08 23:46

ntpdate for N900
 
My provider does not send NITZ information.

I was looking for a way to synchronize my N900 time with the
DCF77 time from my desktop machine (I use some older parallel port dongle, see also http://de.wikipedia.org/wiki/DCF77 ).

There are only some posts about some older version of "rdate",
about a daemon "openntpd" (I do not want to install a complete
ntp daemon, I only need the client).

Finally I found this website:
http://home.mminternet.com/delaroca/index.html/
where there is:
"Download ntpdate.gz: Ntpdate 4.2.6p1. Home
(Install in your favorite bin/ dir, run in root)".

Installed this and now I can either do (after starting the ntp daemon
on my desktop)
ntpdate <my desktop in my WLAN>
or switch on internet and
ntpdate <public ntp server>

hwclock -w also works.
:D

egoshin 2010-11-09 00:29

Re: ntpdate for N900
 
Quote:

Originally Posted by ME2g (Post 867533)
My provider does not send NITZ information.

Oh! Interesting, how it is possible for telephone provider to do not send timing info... Very intriguing.

How you find out what provider doesn't send clock info?

buchanmilne 2010-11-09 12:48

Re: ntpdate for N900
 
I just wonder why no-one has written a small daemon to get the time from the GPS at intervals. E.g., using this as a time source in ntpd ...

I will try and write a small app for this in Qt first ...

I've been wondering why no-one has done this since the release of the N95 ...

ME2g 2010-11-12 09:11

Re: ntpdate for N900
 
Quote:

Originally Posted by egoshin (Post 867572)
Oh! Interesting, how it is possible for telephone provider to do not send timing info... Very intriguing.

How you find out what provider doesn't send clock info?

I only found out about NITZ and my provider by asking the support.
That simple.
;-)
NITZ would be better but ntpdate is a workaround.

Milhouse 2010-11-28 00:05

Re: ntpdate for N900
 
Quote:

Originally Posted by egoshin (Post 867572)
Oh! Interesting, how it is possible for telephone provider to do not send timing info... Very intriguing.

How you find out what provider doesn't send clock info?

Have a look at bug #9107 for some details - the "Update automatically" setting in the N900 Settings is very confusing if your network does not send time, you tick the box and expect it to work but in fact it never does (the clue is that the Timezone/Date/Time fields remain blank but how are you supposed to know they are meant to populate with values if you've never seen it work before?)

Having an ntpd daemon running periodically and only when there is a network connection (it should never initiate a connection) would be great. Perhaps there is a way to hook it into the network up scripts?

dchky 2010-11-28 00:39

Re: ntpdate for N900
 
I would suggest people use pool.ntp.org for their timing needs : )

ME2g 2010-11-29 17:06

Re: ntpdate for N900
 
Quote:

Originally Posted by dchky (Post 884709)
I would suggest people use pool.ntp.org for their timing needs : )

Entering just
pool.ntp.org
does not work in Austria.
It results in
"#
Willkommen
#
auf dem Österreichischen Jugendportal"
There seems to be a tiny DNS problem.
;-)

You have to use
http://www.pool.ntp.org/


All times are GMT. The time now is 09:48.

vBulletin® Version 3.8.8