Micro Innovations M000174-19 manual START/STOP/REFRESH of the Sntp Client

Page 67

Windows CE

Programs

7.10.2SAMPLE SETTINGS

The settings for the SNTP client can be set as follows in a REG file (see also chapter Autoexec.reg):

[HKEY_LOCAL_MACHINE\Services\TIMESVC] "server"=multi_sz:"swisstime.ethz.ch","thrad.cybernet.ch" "AutoUpdate"=dword:1

"ServerRole"=dword:0

"refresh"=dword:927C0

"recoveryrefresh"=dword:57E40

"threshold"=dword:5265C00

Notes on the above example:

The entries with «dword» are in hexadecimal format.

"refresh"=dword:927C0

corresponds to 10 minutes in milliseconds (10*60*1000)

"recoveryrefresh"=dword:57E40 corresponds to 6 minutes in milliseconds (6*60*1000)

"threshold"=dword:5265C00

corresponds to 1 day in milliseconds (24*60*601000)

The settings for the SNTP client can be stored in a REG file SNTP.REG and started in the Autoexec.bat file as follows:

REM Verify boot device, if parameter is not

REM available, the boot device is StorageCard

SET bootdev=StorageCard

IF "%1" == "" GOTO START

SET bootdev=%1

IF exist \%bootdev%\sntp.reg CALL regedit.exe "\%bootdev%\sntp.reg" "/Q" services.exe refresh NTP0:

7.10.3START/STOP/REFRESH OF THE SNTP CLIENT

The SNTP client is started by default. The values for a time synchronization are not set in the default setting.

The SNTP client is prepared by setting the appropriate registry entries. The services.exe program transfers the new registry entries to the SNTP client. The possible command line calls are listed in the table below:

Functionality

Call

Restart of the SNTP client with actual registry

Services.exe refresh NTP0:

entries

 

Start

Services.exe start NTP0:

Stop

Services.exe stop NTP0:

Status: Display of the current status

Services.exe list

M000174-19

67

Image 67
Contents System Description Windows CE Imprint Windows CE Contents Contents Index LicensingGeneral General Windows CEStartup Behavior Dhcp Windows CE GeneralAUTOEXEC.BAT AUTOEXEC.REGStart REM AUTOEXEC.BMP Following Msdos compatible commands are availableFile System CTRL/DOWNLOAD ButtonGeneral Windows CE Parameter Description ShortcutsStart shortcut -p FtpSvr.exe Power Supply Interruption Windows CE Ethernet Access to PCEthernet Ethernet Windows CE Name Resolution Cehosts Access to Micro PanelPrinting VIA Ethernet Access to enabled printer of a Windows computerPrinting Windows CE PrintingParallel Interface Printing using Windows driverPrinting using ESC sequences Windows CE PrintingSystem Settings System settings Windows CEExpanding the Control Panel Windows CE System settingsCommand Line Parameters Examples CallDate / Time and Time Zone Setting Datetime Dim Value Screen Setting DisplayOrientation Windows CE System settings Software Input Panel KeyButtonSize5 Dword Change License License Administrator LicenseSerial PointsGateway Network Setting NetworkExamples of invalid subnet masks Binary format System settingsWindows CEIP classes 192.168 .0.0 to 192.168Info Owner Owner NET Setup NetsetupProgram Memory System Properties SystemTotal Memory Storage MemoryMisc Touch Touch Echo OFF Touch Disable/Enable Touch LockKeyboard Setup Keyboard Bootdevice Setup Bootdevice Storagemanager Storagemanager System settings Windows CE Network Test Windows CE Network testActiveSync connection Windows CE RepllogswitchActivesync Connection Windows CE ActiveSync connection Procedure ActivesyncProcedure Manual Server Programs Windows CE ProgramsFormat Programs Windows CERemote Server Password Settings Remote Client Menu item Description Chapter Touch Enable/DisableUse ProcedureDeactivates a previously activated password protection Html Browser Internet Explorer Programs Windows CE MIExplorer Description ProxySettingsButtons MiExplorerMIExplorer Buttons Example of an INI file MIExplorerWEB Server Httpd Entry Type Description Root directoryTopic Chapter User List UserList Access authentication aExample Description Values in hex Access PermissionsFunctionality Call File Server Virtual Directory SettingsFile Server START/STOP Function Call User Administration UseradminSntp Client START/STOP/REFRESH of the Sntp Client Registry Editor Example of a REG file Type DescriptionBackground Picture Wallpaper CF BackupFor example Windows CE Programs Autolaunch AutoLaunchBootAutoLaunch Information Display Info Device Restart RebootFile System Size Storagememorysize System Performance Idlecount General Limitations Windows CE Programs From Windows CE 5.0 Professional PlusPrograms from Windows CE 5.0 Professional Plus File Viewer ApplicationsMicrosoft Image Viewer With a license product certificate Relicensing ProcedureWindows CE Licensing LicensingIndex Windows CE IndexWindows CE Index Windows CE Windows CE