Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - NTP support in QNX 4.25: (6 Items)
   
NTP support in QNX 4.25  
Hi All,

I have a problem with NTP in QNX 4.25. I need to synchronize time with QNX(NTP client) and WinXP(NTP server)

my NTP client in QNX side, it setups xntpd 3.5 and my NTP server in WinXP, it is setups windows time service or NTP 
server as third party software

when i try to run command ntpdate , it can not get time from NTP server. but i have done as same as on QNX 6, it's OK.
So problem here is QNX OS limited? or other reason?
Please help me to solve this issued?


Here is the result "ntpdate" command:
ntpdate -d <NTP server's IP> 

ntpdate -d 192.168.1.1
17 May 09:04:55 ntpdate[27776]: ntpdate version=3.5f; Tue Apr 19 13:35:28 SE_Asi
a 2011 (1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
server 192.168.1.1, port 123
stratum 16, precision -20, leap 11, trust 000
refid [73.78.73.84], delay 0.02557, dispersion 0.00053
transmitted 4, in filter 4
reference time:      00000000.00000000  Thu, Feb  7 2036 13:28:16.000
originate timestamp: d17c5648.3b20192d  Tue, May 17 2011  9:04:56.230
transmit timestamp:  d17c5648.0ee1a000  Tue, May 17 2011  9:04:56.058
filter delay:  0.02557  0.02560  0.02560  0.02560
               0.00000  0.00000  0.00000  0.00000
filter offset: 0.171646 0.172057 0.172443 0.172822
               0.000000 0.000000 0.000000 0.000000
delay 0.02557, dispersion 0.00053
offset 0.171646

17 May 09:04:56 ntpdate[27776]: no server suitable for synchronization found

Re: NTP support in QNX 4.25  
Hi Tuan,

This issue of your NTP server. So you have to configure it, just decrease 
stratum.

-- 
Respectfully,
Oleg

> Hi All,
> 
> I have a problem with NTP in QNX 4.25. I need to synchronize time with
> QNX(NTP client) and WinXP(NTP server)
> 
> my NTP client in QNX side, it setups xntpd 3.5 and my NTP server in
> WinXP, it is setups windows time service or NTP server as third party
> software
> 
> when i try to run command ntpdate , it can not get time from NTP
> server. but i have done as same as on QNX 6, it's OK. So problem here
> is QNX OS limited? or other reason?
> Please help me to solve this issued?
> 
> 
> Here is the result "ntpdate" command:
> ntpdate -d <NTP server's IP>
> 
> ntpdate -d 192.168.1.1
> 17 May 09:04:55 ntpdate[27776]: ntpdate version=3.5f; Tue Apr 19
> 13:35:28 SE_Asi a 2011 (1)
> transmit(192.168.1.1)
> receive(192.168.1.1)
> transmit(192.168.1.1)
> receive(192.168.1.1)
> transmit(192.168.1.1)
> receive(192.168.1.1)
> transmit(192.168.1.1)
> receive(192.168.1.1)
> transmit(192.168.1.1)
> server 192.168.1.1, port 123
> stratum 16, precision -20, leap 11, trust 000
> refid [73.78.73.84], delay 0.02557, dispersion 0.00053
> transmitted 4, in filter 4
> reference time:      00000000.00000000  Thu, Feb  7 2036 13:28:16.000
> originate timestamp: d17c5648.3b20192d  Tue, May 17 2011  9:04:56.230
> transmit timestamp:  d17c5648.0ee1a000  Tue, May 17 2011  9:04:56.058
> filter delay:  0.02557  0.02560  0.02560  0.02560
>                0.00000  0.00000  0.00000  0.00000
> filter offset: 0.171646 0.172057 0.172443 0.172822
>                0.000000 0.000000 0.000000 0.000000
> delay 0.02557, dispersion 0.00053
> offset 0.171646
> 
> 17 May 09:04:56 ntpdate[27776]: no server suitable for synchronization
> found
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85757
Re: NTP support in QNX 4.25  
Hi Bolshakov,

Thank for you help.
I have tried to use another NTP server(Meinberg) on Winxp
my NTP server configuration here

server 192.168.1.1
fudge 192.168.1.1 stratum 7

Then i got the same result as using window time service. 
My network is OK, there are only a QNX PC and Windows XP PC and a hub

Re: NTP support in QNX 4.25  
Hi Bolshakov,

So i wonder here, why QNX6 can synchronize time with windows xp NTP server
but QNX 4.25 can not
Re: NTP support in QNX 4.25  
Hi Le,

I've just tested ntpdate from xntp3-5f.tgz in QNX4. It works fine with 
Windows XP native NTP server:

[oleg]# /tmp/ntpdate -d 172.16.22.129
18 May 12:42:02 ntpdate[5452]: ntpdate version=3.5f; Wed Dec 18 13:58:16 
est 1996 (1)
transmit(172.16.22.129)
receive(172.16.22.129)
transmit(172.16.22.129)
receive(172.16.22.129)
transmit(172.16.22.129)
receive(172.16.22.129)
transmit(172.16.22.129)
receive(172.16.22.129)
transmit(172.16.22.129)
server 172.16.22.129, port 123
stratum 3, precision -6, leap 00, trust 000
refid [195.131.84.207], delay 0.04124, dispersion 0.00000
transmitted 4, in filter 4
reference time:      d17e12d8.8fc6a7ef  Wed, May 18 2011 12:41:44.561
originate timestamp: d17e13dc.ce7ee914  Wed, May 18 2011 12:46:04.806
transmit timestamp:  d17e12eb.145aa000  Wed, May 18 2011 12:42:03.079
filter delay:  0.04124  0.04124  0.04124  0.04124 
               0.00000  0.00000  0.00000  0.00000 
filter offset: 241.7271 241.7271 241.7271 241.7271
               0.000000 0.000000 0.000000 0.000000
delay 0.04124, dispersion 0.00000
offset 241.727116

18 May 12:42:03 ntpdate[5452]: step time server 172.16.22.129 offset 
241.727116 sec

This result is the same as I've got with QNX6 ntpdate.

Also I think that your configuration for Meinberg NTP server isn't correct. 
Try the following one:

server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 12

And another thing I've found in your first message:

> refid [73.78.73.84], delay 0.02557, dispersion 0.00053

The 73.78.73.84 means that server isn't initialized yet. So it seems you 
should wait a bit more before trying to synchronize with the server.

-- 
Respectfully,
Oleg

> Hi Bolshakov,
> 
> Thank for you help.
> I have tried to use another NTP server(Meinberg) on Winxp
> my NTP server configuration here
> 
> server 192.168.1.1
> fudge 192.168.1.1 stratum 7
> 
> Then i got the same result as using window time service.
> My network is OK, there are only a QNX PC and Windows XP PC and a hub
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85824
Re: NTP support in QNX 4.25  
Hi Bolshakov,

If i used Meinberg NTP server, it seems OK
but when i changed to windows time service, it cannot
i don't know reason exactly, maybe the windows' policy

Thank for your help and have a good day