SNTP服务器设置 [英] SNTP Server Setting

查看:282
本文介绍了SNTP服务器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI全部。 

HI All. 

我在 WINCE7.0中设置了SNTP服务器。我想将时间同步到我当地的时间服务器。我已更改了我的注册表设置但无法获得正确的时间 

I am setting the SNTP server in my WINCE7.0. I want to sync the time to my local time server . I have changed my registry setting but not able to get correct time 

[HKEY_LOCAL_MACHINE \Services\TIMESVC]

    "Dll"=" sntpsvc.dll"

    "订单"= dword:99

    "Keep"= dword:1

    " Prefix" =" NTP"

    "Index"= dword:0
$


    ;"server"= multi_sz:" tock.usno.navy.mil"," time.windows.com"

" server" =" abc.abcd.com"  

    "AutoUpdate"= dword:1

    "ServerRole"= dword:1

;每周一次b
    "refresh"= dword:48190800

  ;" refresh" = dword:10000

;每半小时

    " recoveryrefresh" = dword:1B7740

; " recoveryrefresh" = dword:1000

; 1天

    "threshold"= dword:5265C00

    "trustlocalclock"= dword:0

; @CESYSGEN IF CE_MODULES_IPNAT

; @CESYSGEN ENDIF CE_MODULES_IPNAT

; @CESYSGEN ENDIF SERVERS_MODULES_SNTPSVC



; @CESYSGEN IF SERVERS_MODULES_DSTSVC

;自动启用DST更改

[HKEY_LOCAL_MACHINE \时间]

@ ="印度标准时间< b $ b" TimeZoneInformation" = hex: B6,FE,FF,FF,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
$


[HKEY_LOCAL_MACHINE \时区]

@ ="印度标准时间< b
$


[HKEY_LOCAL_MACHINE\System\State\DateTime]

  &NBSP; "NetworkTime Enabled"= dword:1

  &NBSP; " NetworkTimeNotifyValue" = dword:60



[HKEY_LOCAL_MACHINE \ System \ State \时钟]

" NetworkTimeSync" = dword:1 zh&n b $ b" NetworkTimeNotifyUser" = dword:0

[HKEY_LOCAL_MACHINE\Services\TIMESVC]
    "Dll"="sntpsvc.dll"
    "Order"=dword:99
    "Keep"=dword:1
    "Prefix"="NTP"
    "Index"=dword:0

    ;"server"=multi_sz:"tock.usno.navy.mil","time.windows.com"
"server"= "abc.abcd.com"  
    "AutoUpdate"=dword:1
    "ServerRole"=dword:1
; by-weekly
    "refresh"=dword:48190800
  ;"refresh"=dword:10000
; Every half-hour
    "recoveryrefresh"=dword:1B7740
; "recoveryrefresh"=dword:1000
; 1 day
    "threshold"=dword:5265C00
    "trustlocalclock"=dword:0
; @CESYSGEN IF CE_MODULES_IPNAT
; @CESYSGEN ENDIF CE_MODULES_IPNAT
; @CESYSGEN ENDIF SERVERS_MODULES_SNTPSVC

; @CESYSGEN IF SERVERS_MODULES_DSTSVC
; Have DST changes automatically enabled
[HKEY_LOCAL_MACHINE\Time]
@="India Standard Time"
"TimeZoneInformation"=hex:B6,FE,FF,FF,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones]
@="India Standard Time"


[HKEY_LOCAL_MACHINE\System\State\DateTime]
    "NetworkTime Enabled"=dword:1
    "NetworkTimeNotifyValue"=dword:60

[HKEY_LOCAL_MACHINE\System\State\clock]
"NetworkTimeSync"=dword:1
"NetworkTimeNotifyUser"=dword:0

我使用  GetSystemTime来获取正确时间
但无法获得正确的时间(我的系统中没有RTC)

I used GetSystemTime to fetch the correct time but not able to get correct time (I don't have RTC in my system )

< g class =" gr_ gr_37 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 37 QUOT; ID = QUOT 37 QUOT;> Bipul< / g取代; Pandey

<g class="gr_ gr_37 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="37" id="37">Bipul</g> Pandey

推荐答案

这是错的吗?!当实际时间是[x]时,你得到[y]? [x]和[y]是否总是相同的小时数相互抵消?换句话说,这是时区问题吗?

How is it wrong?! When the actual time is [x], you get [y]? Are [x] and [y] always the same number of hours offset from one another? In other words, is this a time zone issue?

或服务器时间与设备时间之间没有关系?

Or is there no relationship between server time and device time?

您还设置了你的重新同步时间非常长。您是否等了两周才能看到SNTP客户端是否联系了服务器并同步了时间?我认为您应该将配置设置为非常频繁地进行同步,并在将其设置为"几乎
never"之前看到它的工作原理。

You've also set your resync times VERY long. Did you wait two weeks to see if the SNTP client contacted the server and synced the time? I think you should set the configuration to sync very frequently and see that it works before setting it to "almost never".

您是否正在使用调试来查看调试消息构建内核?服务是否在启动时运行? 您是否看到在延迟时间之后发生同步操作?你可以使用命令提示符窗口从设备PING abc.abcd.com吗?在其他
字中,是否使用您指定的服务器名称进行网络连接?

Are you watching for debug messages using a debug build of the kernel? Is the service running on startup? Are you seeing the sync operation occurring after the delay time? Can you PING abc.abcd.com from the device using a Command Prompt window? In other words, is there network connectivity using the server name you specified?

Paul T。


这篇关于SNTP服务器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆