Discussion:
NTP time synch on CE 5.0
(too old to reply)
o***@gmail.com
2006-12-18 22:36:33 UTC
Permalink
I am trying to get a Symbol VC5090 device to sync w/ our LAN's
timeserver, but to no avail.

Here is the reg key I am using. I show the service (NTP0:) as running,
but the time is never updated.

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

I would be happy to run a small app on startup/boot that would set the
time, but I can't seem to get this to work at all.

PLEASE HELP!
<ctacke/>
2006-12-18 23:46:22 UTC
Permalink
It's C#, but should be easy enough to convert to whatever you'd like:

http://blog.opennetcf.org/ctacke/PermaLink,guid,5a81f80b-5e54-4799-a374-9d02e17d804b.aspx
--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
Post by o***@gmail.com
I am trying to get a Symbol VC5090 device to sync w/ our LAN's
timeserver, but to no avail.
Here is the reg key I am using. I show the service (NTP0:) as running,
but the time is never updated.
[HKEY_LOCAL_MACHINE\Services\TIMESVC]
"refresh"=dword:00001388
"recoveryrefresh"=dword:00000700
"threshold"=dword:00002710
"Server"="10.100.1.1"
"Trustlocalclock"=dword:00000001
"ServerRole"=dword:00000000
"Order"=dword:00000099
"Dll"="timesvc.dll"
"Clientonly"=dword:000000001
"Context"=dword:00000000
"Keep"=dword:00000001
"Prefix"="NTP"
"Index"="0"
I would be happy to run a small app on startup/boot that would set the
time, but I can't seem to get this to work at all.
PLEASE HELP!
John Spaith [MS]
2007-01-02 02:15:51 UTC
Permalink
I believe you want the registry [HKEY_LOCAL_MACHINE\Services\TIMESVC]:
"AutoUpdate"=dword:1. The "ClientOnly" is a CE 4.2 only reg setting, and
isn't read in CE 5.0.

Was the timesvc included via a standard SYSGEN process, or are you adding
the DLL & registry settings after the fact. If it's brought in via SYSGEN,
it looks like the "AutoUpdate" should be set automatically if you have the
SNTP component.

Also note that timesvc.dll is a big-time modularized DLL - it can in theory
be built so it can only do DST roll overs and not do SNTP look ups (to save
ROM), so while you're at it you should check that you have the right SYSGEN
included. http://blogs.msdn.com/cenet/archive/2005/04/27/412600.aspx has
background about adding new components to a CE device.
--
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 o***@gmail.com
I am trying to get a Symbol VC5090 device to sync w/ our LAN's
timeserver, but to no avail.
Here is the reg key I am using. I show the service (NTP0:) as running,
but the time is never updated.
[HKEY_LOCAL_MACHINE\Services\TIMESVC]
"refresh"=dword:00001388
"recoveryrefresh"=dword:00000700
"threshold"=dword:00002710
"Server"="10.100.1.1"
"Trustlocalclock"=dword:00000001
"ServerRole"=dword:00000000
"Order"=dword:00000099
"Dll"="timesvc.dll"
"Clientonly"=dword:000000001
"Context"=dword:00000000
"Keep"=dword:00000001
"Prefix"="NTP"
"Index"="0"
I would be happy to run a small app on startup/boot that would set the
time, but I can't seem to get this to work at all.
PLEASE HELP!
Loading...