NTP or Time synchronization protocol available?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NTP or Time synchronization protocol available?

4,155 Views
Dietrich
Contributor II
This message contains an entire topic ported from the WildRice - Coldfire forum.  Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages.  The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions.  Freescale assumes no responsibility whatsoever with respect to Posted Material.  For additional information, please see the Terms of Use - Message Boards and Community Forums.  Thank You and Enjoy the Forum!
 

Aug 30, 2005, 2:05 AM
Post #1 of 8 (29 views)
Copy Shortcut
 [ColdFire] NTP or Time synchronization protocol available?  Can't Post 
--------------------------------------------------------------------------------
 
I was wondering if there is any way that I can
implement the time synchronization in my MCF5485
board from LogicPD.
My exact requirement is to control the time clock of
4/5 attached computers running Windows OS. All the
Windows based computers shall get the time from
ColdFire board.
I searched for NTP and IEEE1588 but not sure how to
use any of these in Metrowerks BSP.

Please advice me what to do
Take care,
Fakhar
Aug 30, 2005, 5:24 PM
Post #2 of 8 (27 views)
Copy Shortcut
 Re: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
Fakhar Imran wrote:
> I was wondering if there is any way that I can
> implement the time synchronization in my MCF5485
> board from LogicPD.
>
> My exact requirement is to control the time clock of
> 4/5 attached computers running Windows OS. All the
> Windows based computers shall get the time from
> ColdFire board.
>
> I searched for NTP and IEEE1588 but not sure how to
> use any of these in Metrowerks BSP.
First hit in google for "ntp" and "rtems"
Depending on the version of rtems you are using you should find
and appropriate version on the RTEMS ftp server.
For example for rtems 4.6.2:
Hope that helps
Regards
Paul
Aug 30, 2005, 5:28 PM
Post #3 of 8 (27 views)
Copy Shortcut
 Re: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
Fakhar Imran wrote:
> I was wondering if there is any way that I can
> implement the time synchronization in my MCF5485
> board from LogicPD.
>
> My exact requirement is to control the time clock of
> 4/5 attached computers running Windows OS. All the
> Windows based computers shall get the time from
> ColdFire board.
>
> I searched for NTP and IEEE1588 but not sure how to
> use any of these in Metrowerks BSP.
>
Oops... just realised I got confused about which mailing
list I was reading... My previous reply based on the
assumption that the 5485 board was running RTEMS.
Sorry about that..
Paul

Aug 30, 2005, 5:57 PM
Post #4 of 8 (27 views)
Copy Shortcut
 RE: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
 
One thing to look at is NTP versus SNTP. NTP set the clock with a much
higher degree of accuracy, and is more involved. SNTP takes a packet with
the time and sets the clock- the end accuracy is about a second. The
windows XP system is happy getting time from my Coldfire box via SNTP. The
time of day clocks on PC's seem to loose about 1-2 seconds per day, and XP
as an operation system still seems to miss interrupts- I've seen the clocks
on the XP machines drift by a minute a month.
The hardware drift is (last I looked into this in detail was 2000) due to
the use of 50 PPM xtals in the real time clocks (the things that keep the
time via a battery). These are the cheapest RTC's available. The RTC chip
I'm using is a 20 PPM, and at room temperature seems to run about 12 PPM.
As for how XP looses time at an equivalent 200 PPM rate, I have no idea.
It seems to me that setting the clock on a windows machine via NTP is like
making precision CNC holes in a metal strip when a piece of cardboard
punched with a nail would suffice and be more in tune with the general
balance of the system.
It's not too hard to write the SNTP code. Get the RFC2030 for SNTP and
RFC1305 for NTP (just so you're making an informed choice and understand the
differences between the two).
BTW, the box I have can get it's time from a GPS nema stream or off of the
net via SNTP, and once it has the time it is a sever for any other machines
on the net. It would be nice if Windows XP allowed you to get the time from
the net at a frequency greater than 10 days. I suspect they wanted to keep
overall network traffic down, but didn't think to do something clever like
allow you to get the time up to a few times a day _if_ the time server is on
the same local network. That would be too intuitive and actually let you
have a PC with time that was accurate to within a second or two.
- pete ( I seem to be a bit chatty tonight... )

> -----Original Message-----
> From: On
> Behalf Of Paul Whitfield
> Sent: Tuesday, August 30, 2005 8:25 PM
> Subject: Re: [ColdFire] NTP or Time synchronization protocol available?
>
> Fakhar Imran wrote:
> > I was wondering if there is any way that I can
> > implement the time synchronization in my MCF5485
> > board from LogicPD.
> >
> > My exact requirement is to control the time clock of
> > 4/5 attached computers running Windows OS. All the
> > Windows based computers shall get the time from
> > ColdFire board.
> >
> > I searched for NTP and IEEE1588 but not sure how to
> > use any of these in Metrowerks BSP.
>
> First hit in google for "ntp" and "rtems"
>
> http://www.rtems.com/cgi-bin/viewcvs.cgi/ntp-4.1.1a-rtems/ntp-4.1.1a/
>
> Depending on the version of rtems you are using you should find
> and appropriate version on the RTEMS ftp server.
>
> For example for rtems 4.6.2:
>
> ftp://ftp.rtems.com/pub/rtems/4.6.2/contrib/ntp-4.1.1a
>
> Hope that helps
>
> Regards
>
> Paul
>
 
--------------------------------------------------------------------
Aug 30, 2005, 7:49 PM
Post #5 of 8 (27 views)
Copy Shortcut
 Re: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
it does, and they did think of it
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
SpecialPollInterval
change any occurences to that to the period in seconds you want, reboot
its set to 7 days by default in a standalone configuration, but is reduced
to less with a domain controller

--------------
It would be nice if Windows XP allowed you to get the time from
the net at a frequency greater than 10 days. I suspect they wanted to keep
overall network traffic down, but didn't think to do something clever like
allow you to get the time up to a few times a day _if_ the time server is on
the same local network. That would be too intuitive and actually let you
have a PC with time that was accurate to within a second or two.
- pete ( I seem to be a bit chatty tonight... )

--------------------------------------------------------------------
Aug 31, 2005, 5:42 AM
Post #6 of 8 (27 views)
Copy Shortcut
 RE: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
 
Cool! So the underlying mechanism is in seconds, it's just that the GUI
for the set-up isn't as robust as it could be.
I'm curious how you knew this. Using the various help mechanisms on the
machine I couldn't find it.
Thanks for the info!
- pete
> -----Original Message-----
> From: On
> Behalf Of charlie wallace
> Sent: Tuesday, August 30, 2005 10:49 PM
> To:
> Subject: Re: [ColdFire] NTP or Time synchronization protocol available?
>
> it does, and they did think of it
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
> \NtpClient
> SpecialPollInterval
>
> change any occurences to that to the period in seconds you want, reboot
>
> its set to 7 days by default in a standalone configuration, but is reduced
> to less with a domain controller
 
--------------------------------------------------------------------
Aug 31, 2005, 6:55 AM
Post #7 of 8 (27 views)
Copy Shortcut
 Re: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
 
Pete,
There's a Windows program out there called something like ntp_time or
ntptime that you can set up as a Windows service that does what you
want. I also thought you could make Windows do an SNTP sync itself with
some variations of the net.exe command, but I can't recall exactly how
right now.
-- JWB
Peter Hallenbeck wrote:
> One thing to look at is NTP versus SNTP. NTP set the clock with a much
>higher degree of accuracy, and is more involved. SNTP takes a packet with
>the time and sets the clock- the end accuracy is about a second. The
>windows XP system is happy getting time from my Coldfire box via SNTP. The
>time of day clocks on PC's seem to loose about 1-2 seconds per day, and XP
>as an operation system still seems to miss interrupts- I've seen the clocks
>on the XP machines drift by a minute a month.
> The hardware drift is (last I looked into this in detail was 2000) due to
>the use of 50 PPM xtals in the real time clocks (the things that keep the
>time via a battery). These are the cheapest RTC's available. The RTC chip
>I'm using is a 20 PPM, and at room temperature seems to run about 12 PPM.
>As for how XP looses time at an equivalent 200 PPM rate, I have no idea.
>
> It seems to me that setting the clock on a windows machine via NTP is like
>making precision CNC holes in a metal strip when a piece of cardboard
>punched with a nail would suffice and be more in tune with the general
>balance of the system.
>
> It's not too hard to write the SNTP code. Get the RFC2030 for SNTP and
>RFC1305 for NTP (just so you're making an informed choice and understand the
>differences between the two).
>
> BTW, the box I have can get it's time from a GPS nema stream or off of the
>net via SNTP, and once it has the time it is a sever for any other machines
>on the net. It would be nice if Windows XP allowed you to get the time from
>the net at a frequency greater than 10 days. I suspect they wanted to keep
>overall network traffic down, but didn't think to do something clever like
>allow you to get the time up to a few times a day _if_ the time server is on
>the same local network. That would be too intuitive and actually let you
>have a PC with time that was accurate to within a second or two.
>
> - pete ( I seem to be a bit chatty tonight... )
>
>
>
>
>>-----Original Message-----
>>From: On
>>Behalf Of Paul Whitfield
>>Sent: Tuesday, August 30, 2005 8:25 PM
>>Subject: Re: [ColdFire] NTP or Time synchronization protocol available?
>>
>>Fakhar Imran wrote:
>>
>>
>>>I was wondering if there is any way that I can
>>>implement the time synchronization in my MCF5485
>>>board from LogicPD.
>>>
>>>My exact requirement is to control the time clock of
>>>4/5 attached computers running Windows OS. All the
>>>Windows based computers shall get the time from
>>>ColdFire board.
>>>
>>>I searched for NTP and IEEE1588 but not sure how to
>>>use any of these in Metrowerks BSP.
>>>
>>>
>>First hit in google for "ntp" and "rtems"
>>
>>http://www.rtems.com/cgi-bin/viewcvs.cgi/ntp-4.1.1a-rtems/ntp-4.1.1a/
>>
>>Depending on the version of rtems you are using you should find
>>and appropriate version on the RTEMS ftp server.
>>
>>For example for rtems 4.6.2:
>>
>>ftp://ftp.rtems.com/pub/rtems/4.6.2/contrib/ntp-4.1.1a
>>
>>Hope that helps
>>
>>Regards
>>
>>Paul
>>

--------------------------------------------------------------------
Aug 31, 2005, 11:14 AM
Post #8 of 8 (27 views)
Copy Shortcut
 Re: [ColdFire] NTP or Time synchronization protocol available? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
> some variations of the net.exe command, but I can't recall exactly how
> right now.

net time \\computername or /domain:domainname
net help time
also available to help with sync setup
w32tm

> I'm curious how you knew this. Using the various help mechanisms on the
>machine I couldn't find it.
search for ntp in technet search box 
 
 

Message Edited by Dietrich on 04-03-2006 11:09 AM

Message Edited by Dietrich on 04-04-2006 01:37 PM

Labels (1)
0 Kudos
0 Replies