Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SNTP Client on Windows CE 5.0

1,155 views
Skip to first unread message

abru

unread,
Jan 7, 2008, 10:54:03 AM1/7/08
to
How does SNTP adjust the clock? Does it smoothly adjust for drift or does it
apply sawtooth correction?

Paul G. Tobey [eMVP]

unread,
Jan 7, 2008, 11:27:04 AM1/7/08
to
You can read the code. \WINCE500\PRIVATE\SERVERS\TIMESVC2\SNTP. I suppose
the actual answer will depend on what you mean by "smoothly". The
resolution of almost all RTCs used with Windows CE is 1 second, so it can't
possible adjust by less than that. I've only read the code once, but I
don't recall seeing it, if the clock differs from the server by, say 15
seconds, adjusting by 1 second for each of the next elapsed 15 seconds.
Remember, this is SNTP, *NOT* NTP.

Paul T.

"abru" <ab...@discussions.microsoft.com> wrote in message
news:4BCC044A-1669-41AD...@microsoft.com...

John Spaith [MS]

unread,
Jan 7, 2008, 12:34:00 PM1/7/08
to
Our SNTP client is indeed simple -- whatever time the server gives it, it
immediately updates the system clock with that, so it doesn't try to be
clever in accounting for drift.

--
John Spaith
Senior Software Design Engineer
Windows CE Networking
Microsoft Corporation

http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2007 Microsoft Corporation. All rights
reserved.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:O$tpcoUUI...@TK2MSFTNGP05.phx.gbl...

Chris Tillotson

unread,
Oct 21, 2010, 12:14:08 PM10/21/10
to
Hello John,

You appear to be "The Man" when it comes to SNTP and the timesvc.dll.

I'm new to Windows CE 5.0 and simply need to get a version of the timesvc.dll that will work with SNTP. I've seen other replys from you stating that depending on how the timesvc.dll was compiled the SNTP portion may not function correctly.

I fear the OEM that supplied the CE 5.0 device I am working on does not have the correct timesvc.dll to support simple updating of time via timesvc registry settings.

Is there a way I can get the proper timesvc.dll without having to download Platform builder and recompile with or write custom code. My goals are quite simple and I don't want to do any CE 5.0 OS targeted development. Simply want the time to update correctly hopefully using only timesvc registry settings.

Chris

> On Monday, January 07, 2008 10:54 AM abr wrote:

> How does SNTP adjust the clock? Does it smoothly adjust for drift or does it
> apply sawtooth correction?


>> On Monday, January 07, 2008 11:27 AM Paul G. Tobey [eMVP] wrote:

>> You can read the code. \WINCE500\PRIVATE\SERVERS\TIMESVC2\SNTP. I suppose
>> the actual answer will depend on what you mean by "smoothly". The
>> resolution of almost all RTCs used with Windows CE is 1 second, so it can't
>> possible adjust by less than that. I've only read the code once, but I
>> don't recall seeing it, if the clock differs from the server by, say 15
>> seconds, adjusting by 1 second for each of the next elapsed 15 seconds.
>> Remember, this is SNTP, *NOT* NTP.
>>
>> Paul T.
>>
>> "abru" <ab...@discussions.microsoft.com> wrote in message
>> news:4BCC044A-1669-41AD...@microsoft.com...


>>> On Monday, January 07, 2008 12:34 PM John Spaith [MS] wrote:

>>> Our SNTP client is indeed simple -- whatever time the server gives it, it
>>> immediately updates the system clock with that, so it doesn't try to be
>>> clever in accounting for drift.
>>>
>>> --
>>> John Spaith
>>> Senior Software Design Engineer
>>> Windows CE Networking
>>> Microsoft Corporation
>>>
>>> http://blogs.msdn.com/cenet/.
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no rights.

>>> You assume all risk for your use. ? 2007 Microsoft Corporation. All rights

>>> reserved.
>>>
>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
>>> com> wrote in message news:O$tpcoUUI...@TK2MSFTNGP05.phx.gbl...


>>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>>> SharePoint WorkFlow Basics
>>> http://www.eggheadcafe.com/tutorials/aspnet/1fa263fb-d7a6-40f5-8875-356f75d9fca9/sharepoint-workflow-basics.aspx

Chris Tillotson

unread,
Oct 21, 2010, 12:18:24 PM10/21/10
to
Hello John,

I'm having no luck trying to simply use registry settings to update the date/time using SNTP. I've read in your other posts that OEMs may not have the proper CE 5.0 version of the timesvc.dll to allow for this and there are compile time options that have to be set etc.

Is it possible for me to get the proper .dll for my OEM provided device to allow for the setting of time via timesvc registry settings without downloading Platform builder and recompiling etc. Personally I'm not doing any CE 5.0 OS targeted development and simply want to have the date time updated correctly.

THanks,
CHris

> On Monday, January 07, 2008 10:54 AM abr wrote:

> How does SNTP adjust the clock? Does it smoothly adjust for drift or does it
> apply sawtooth correction?

>> On Monday, January 07, 2008 11:27 AM Paul G. Tobey [eMVP] wrote:

>> You can read the code. \WINCE500\PRIVATE\SERVERS\TIMESVC2\SNTP. I suppose
>> the actual answer will depend on what you mean by "smoothly". The
>> resolution of almost all RTCs used with Windows CE is 1 second, so it can't
>> possible adjust by less than that. I've only read the code once, but I
>> don't recall seeing it, if the clock differs from the server by, say 15
>> seconds, adjusting by 1 second for each of the next elapsed 15 seconds.
>> Remember, this is SNTP, *NOT* NTP.
>>
>> Paul T.
>>
>> "abru" <ab...@discussions.microsoft.com> wrote in message
>> news:4BCC044A-1669-41AD...@microsoft.com...

>>> On Monday, January 07, 2008 12:34 PM John Spaith [MS] wrote:

>>> Our SNTP client is indeed simple -- whatever time the server gives it, it
>>> immediately updates the system clock with that, so it doesn't try to be
>>> clever in accounting for drift.
>>>
>>> --
>>> John Spaith
>>> Senior Software Design Engineer
>>> Windows CE Networking
>>> Microsoft Corporation
>>>
>>> http://blogs.msdn.com/cenet/.
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no rights.

>>> You assume all risk for your use. ? 2007 Microsoft Corporation. All rights

>>> reserved.
>>>
>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
>>> com> wrote in message news:O$tpcoUUI...@TK2MSFTNGP05.phx.gbl...


>>>> On Thursday, October 21, 2010 12:14 PM Chris Tillotson wrote:

>>>> Hello John,
>>>>
>>>>
>>>>
>>>> You appear to be "The Man" when it comes to SNTP and the timesvc.dll.
>>>>
>>>>
>>>>
>>>> I'm new to Windows CE 5.0 and simply need to get a version of the timesvc.dll that will work with SNTP. I've seen other replys from you stating that depending on how the timesvc.dll was compiled the SNTP portion may not function correctly.
>>>>
>>>>
>>>>
>>>> I fear the OEM that supplied the CE 5.0 device I am working on does not have the correct timesvc.dll to support simple updating of time via timesvc registry settings.
>>>>
>>>>
>>>>
>>>> Is there a way I can get the proper timesvc.dll without having to download Platform builder and recompile with or write custom code. My goals are quite simple and I don't want to do any CE 5.0 OS targeted development. Simply want the time to update correctly hopefully using only timesvc registry settings.
>>>>
>>>>
>>>>
>>>> Chris

>>>> Submitted via EggHeadCafe - Software Developer Portal of Choice

>>>> Flat file Database with LINQ and ASP.NET jQuery Page Methods
>>>> http://www.eggheadcafe.com/tutorials/aspnet/c8c43191-c3a3-4c61-801a-2433a701f4f6/flat-file-database-with-linq-and-aspnet-jquery-page-methods.aspx

0 new messages