Discussion:
Problems with WinCE 5.0 SNTP Service not working as expected
(too old to reply)
Asus
2006-10-30 18:51:02 UTC
Permalink
Hello,

I've got serious problems getting the timesvc.dll (WinCE SNTP daemon) to
work. It simply does *not* update the time of the device.

I use my development PC WinXP with enabled Time Server as NTP Server and a
CE 5.0 based device as Client.

My Registry settings are as follows:

[HKEY_LOCAL_MACHINE\Services\TIMESVC]
"refresh"=dword:00001388
"recoveryrefresh"=dword:00002710
"threshold"=dword:00002710
"Server"="192.168.100.75"
"Trustlocalclock"=dword:00000000
"ServerRole"=dword:00000000
"Order"=dword:00000063
"Dll"="timesvc.dll"
"Clientonly"=dword:00000001
"Context"=dword:00000000
"Keep"=dword:00000001
"Prefix"="NTP"
"Index"=dword:00000000

The time of my device is never updated. I don't know why. Can anybody give
me some hints with debugging or something else?



Thanks in advance
Asus
2006-11-01 12:30:02 UTC
Permalink
Hello,

I've found it by myself. We have to set an undocumented Registry Parameter:
"AutoUpdate:dword:1"

Regards
Sven
unknown
2007-01-27 13:13:15 UTC
Permalink
Hi,

Even i am facing same trouble as well.
In my case the Time server runs in Win2K OS(as we know, in win2K we have W32Time.dll which in turn synchronizes time of all other clients with that of NTP server and it accepts even SNTP protocol) and a CE 5.0 based device as Client (timesvc.dll as client).


But the time of my device is never updated. I don't know why. Since u have already resolved the issue please let me know what best i can do to resolve the same. Its been 2 weeks now but still i am clue less. Timesvc.dll which runs as client in WinCE 5.0 does not update/synchronizes with that of NTP server time.

Please do the needful. I am running out of time.


EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Asus
2007-01-27 17:08:01 UTC
Permalink
Hi,

Please at first use the Registry entries from my first posts. This should be
the one that works. Sorry, I forgot to mention one special thing. I am
currently using *not* the timesvc.dll provided by default of WinCE 5.0. This
one doesn't seem to work. I compiled the debug version of timesvc.dll with
Platform Builder 5. If you do not have Platform Builder I can send you my
timesvc.dll by eMail. I don't know if it's possible for you to send me a
private message with your email address.

Regards
Sven
Post by unknown
Hi,
Even i am facing same trouble as well.
In my case the Time server runs in Win2K OS(as we know, in win2K we have W32Time.dll which in turn synchronizes time of all other clients with that of NTP server and it accepts even SNTP protocol) and a CE 5.0 based device as Client (timesvc.dll as client).
But the time of my device is never updated. I don't know why. Since u have already resolved the issue please let me know what best i can do to resolve the same. Its been 2 weeks now but still i am clue less. Timesvc.dll which runs as client in WinCE 5.0 does not update/synchronizes with that of NTP server time.
Please do the needful. I am running out of time.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
John Spaith [MS]
2007-01-30 20:41:19 UTC
Permalink
A few debugging ideas
* timesvc.dll includes both SNTP portion and an auto-daylight savings time
determination, and these are separate sysgen options -- so you may have the
DST portion to get timesvc.dll but not the SNTP client in your image. Make
sure you SYSGEN_TIMESVC_SNTP set (or look in your ceconfig.h file in your
%_FLATRELEASEDIR% and make sure TIMESVC_TSVC_SNTP is #define'd).
* Make sure you can connect to the server(s) specified in
[HKEY_LOCAL_MACHINE\Services\TIMESVC\"server"] from your device.
* It's possible that your SNTP tried and failed to connect when the device
was booing up but before network adapter was available, and even though it
should retry just in case do a 'services refresh NTP0:' to force it to
refresh.
* Build a debug timesvc.dll, turn on full debugzones, and see if that helps
explains what's happening. You can post the debugzones as well as the
regisry to this group if you want me to look but I'd need that much to debug
off.

Sorry you're not having luck with this - I know timesvc has some
configuration quirks (as described in blog and hopefully fixed up in CE6)
but I'm not familiar with it not working for people or them having to use
debug version or anything like that.
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at 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. © 2006 Microsoft Corporation. All rights
reserved.
Post by Asus
Hi,
Please at first use the Registry entries from my first posts. This should be
the one that works. Sorry, I forgot to mention one special thing. I am
currently using *not* the timesvc.dll provided by default of WinCE 5.0. This
one doesn't seem to work. I compiled the debug version of timesvc.dll with
Platform Builder 5. If you do not have Platform Builder I can send you my
timesvc.dll by eMail. I don't know if it's possible for you to send me a
private message with your email address.
Regards
Sven
Post by unknown
Hi,
Even i am facing same trouble as well.
In my case the Time server runs in Win2K OS(as we know, in win2K we have
W32Time.dll which in turn synchronizes time of all other clients with
that of NTP server and it accepts even SNTP protocol) and a CE 5.0 based
device as Client (timesvc.dll as client).
But the time of my device is never updated. I don't know why. Since u
have already resolved the issue please let me know what best i can do to
resolve the same. Its been 2 weeks now but still i am clue less.
Timesvc.dll which runs as client in WinCE 5.0 does not
update/synchronizes with that of NTP server time.
Please do the needful. I am running out of time.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Aniket Joshi
2007-03-17 07:06:00 UTC
Permalink
Asus,

we are also facing the same problem.
As you mentioned we need to change the timesvc.dll.
Can you please send me updated working timesvc.dll.
My email address is ***@rediffmail.com.

Waiting for your reply.
Thanks in advance


Aniket Joshi
Post by Asus
Hi,
Please at first use the Registry entries from my first posts. This should be
the one that works. Sorry, I forgot to mention one special thing. I am
currently using *not* the timesvc.dll provided by default of WinCE 5.0. This
one doesn't seem to work. I compiled the debug version of timesvc.dll with
Platform Builder 5. If you do not have Platform Builder I can send you my
timesvc.dll by eMail. I don't know if it's possible for you to send me a
private message with your email address.
Regards
Sven
Post by unknown
Hi,
Even i am facing same trouble as well.
In my case the Time server runs in Win2K OS(as we know, in win2K we have W32Time.dll which in turn synchronizes time of all other clients with that of NTP server and it accepts even SNTP protocol) and a CE 5.0 based device as Client (timesvc.dll as client).
But the time of my device is never updated. I don't know why. Since u have already resolved the issue please let me know what best i can do to resolve the same. Its been 2 weeks now but still i am clue less. Timesvc.dll which runs as client in WinCE 5.0 does not update/synchronizes with that of NTP server time.
Please do the needful. I am running out of time.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
John Spaith [MS]
2007-03-19 15:50:05 UTC
Permalink
Admitting I'm not a lawyer (so you'd have to work with yours) and newsgroups
aren't the place for legal advice anyway, I do not believe the platform
builder license allows you to send MS binaries like this. I'm not saying
this to be a jerk because really I don't care personally, I'm saying because
I don't want you realizing you have some "tainted" timesvc.dll in your image
one day before you ship.

http://blogs.msdn.com/cenet/archive/2005/04/27/412600.aspx has some info
about adding stuff to your platform builder image, though MSDN or tools help
someplace should be better.
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at 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. © 2006 Microsoft Corporation. All rights
reserved.
Post by Aniket Joshi
Asus,
we are also facing the same problem.
As you mentioned we need to change the timesvc.dll.
Can you please send me updated working timesvc.dll.
Waiting for your reply.
Thanks in advance
Aniket Joshi
Post by Asus
Hi,
Please at first use the Registry entries from my first posts. This should be
the one that works. Sorry, I forgot to mention one special thing. I am
currently using *not* the timesvc.dll provided by default of WinCE 5.0. This
one doesn't seem to work. I compiled the debug version of timesvc.dll with
Platform Builder 5. If you do not have Platform Builder I can send you my
timesvc.dll by eMail. I don't know if it's possible for you to send me a
private message with your email address.
Regards
Sven
Post by unknown
Hi,
Even i am facing same trouble as well.
In my case the Time server runs in Win2K OS(as we know, in win2K we
have W32Time.dll which in turn synchronizes time of all other clients
with that of NTP server and it accepts even SNTP protocol) and a CE
5.0 based device as Client (timesvc.dll as client).
But the time of my device is never updated. I don't know why. Since u
have already resolved the issue please let me know what best i can do
to resolve the same. Its been 2 weeks now but still i am clue less.
Timesvc.dll which runs as client in WinCE 5.0 does not
update/synchronizes with that of NTP server time.
Please do the needful. I am running out of time.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Loading...