home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SETCLOCK V0.2
- Preliminary Documentation Apr 19/90
-
- SETCLOCK is a utility which uses the Heathkit GC-1000 "Most Accurate Clock"
- to set you PC's date and time according to a world standard cesium-atomic
- clock. The GC-1000 must be equipped with the optional Heathkit GCA-1000-1
- computer interface.
-
- SETCLOCK allows several features and options in addition to those offered
- by the GC-1000:
-
- - Sets your PC's date and time very accurately with or without an
- audible signal for confirmation.
-
- - More flexible time-zone and propagation delay settings.
-
- - Automatic or manual setting of PC's date and time.
-
- - Display of time error incurred by PC's clock compared to world
- standard time.
-
- - Continuous display of local, UTC (Universal Coordinated Time), and
- PC time to 1/10 second accuracy.
-
- - Automatic and/or manual adjustment of year without having to take the
- GC-1000 appart to change hardware switches.
-
- - Display of time in 12-hour or 24-hour format independent of GC-1000
- display mode.
-
- ---------------------------------------------------------------------------
-
- Operation
- ---------
-
- SETCLOCK.EXE is a stand-alone program which can be invoked using any one of
- three methods:
-
- 1)
- From the DOS prompt by typing "SETCLOCK". This allows the setting of
- various parameters on a configuation screen.
-
- 2)
- By a batch file. By checking "errorlevel", a batch command sequence
- can determine whether the PC's date and time have been properly set.
- Eight distinct conditions are available.
-
- 3)
- From within another program. Executing SETCLOCK from a "C", BASIC, or
- other program, the date and time can always be set correctly.
-
-
- S.K. Consultants
- 1
-
-
-
-
-
-
- SETCLOCK V0.2
- Preliminary Documentation Apr 19/90
-
- SETCLOCK will maintain a small configuration file SETCLOCK.CFG to hold the
- user selected options.
-
- To get started just type "SETCLOCK" at the DOS prompt.
-
- In the absense of a configuration file, SETCLOCK will present a
- configuration screen. Sixteen (16) seperate parameters may be set to
- customize the operation of program. These parameters are described below.
-
-
-
- Item Possible values
- ---- ---------------
-
- Serial port COM1, COM2
- Baud rate 110, 150, 300, 600, 1200, 2400, 4800, 9600
- Current year 1990 to 2037
- UTC override preset YES or NO
- Time zone preset -11:00 to +12:00 (1 hour incr.)
- Propagation preset 0 to 3750 (250 mile incr.)
- DST adherence preset YES or NO
- Tome zone actual -15:45 to +15:45 (15 minute incr.) or "same"
- Propagation actual 0 to 8188 miles (2 mile incr.) or "same"
- DST adherence actual YES or NO
- PC set HI-SPEC only YES or NO
- PC set DATE & TIME YES or NO
- PC set signal YES or NO
- Auto read YES or NO
- Hours display mode 12 or 24
- Configuration screen YES or NO
-
-
- Select the item you wish to change by pressing the "up" or "down" arrow
- keys. Once the item is selected, press the "left" or "right" arrow keys to
- change its value to one of the possible values listed above.
-
- Esc - Pressing the ESCAPE key will exit the program.
-
- F1 - Function key 1 will cause the GC-1000 to send data to the PC.
-
- F2 - Function key 2 will set the PC's date and time.
-
-
-
- Each of the configuration items are described in detail next.
-
-
-
-
- S.K. Consultants
- 2
-
-
-
-
-
-
- SETCLOCK V0.2
- Preliminary Documentation Apr 19/90
-
- Serial port:
-
- Choose the appropriate serial port to which the GC-1000
- will be connected. Normally this will be COM1. Some
- PCs are equipped with ports COM3 and COM4 as well.
- These ports are not standardized and are thus not
- supported in this software version.
-
- Baud rate:
-
- Select the baud rate to match the rate chosen by
- switches in the GC-1000. It is usually desirable to
- use the highest baud rate available. The selected
- rates must match in order for the sofware to read the
- GC-1000. The accuracy of time in unaffected by this
- data rate.
-
- Current year:
-
- The GC-1000 provides switches for setting the year in
- the range 1983 to 1998. Unfortunately the clock must
- be opened every year in order to update these settings.
- And what about after 1998? By setting the current year
- parameter this software will provide the correct date.
- The year is also updated automatically. The internal
- setting of the GC-1000 is effectively ignored.
-
- UTC override preset:
-
- A switch on the GC-1000 allows it to display Universal
- Coordinated Time. If this is set, it also affects the
- data transmitted to the PC. Set this parameter to
- match the switch setting (YES or NO) so that correct
- local time and UTC is calculated.
-
- Time zone preset:
-
- Five switches on the GC-1000 select one of twenty-four
- time zones relative to UTC: -11:00 to +12:00 hours.
- Set this parameter to match the setting of the time
- zone as represented by the switches.
-
- Propagation preset:
-
- The propagation delay is set by four switches on the
- GC-1000. Set this parameter to match the setting of
- the switches.
-
-
- S.K. Consultants
- 3
-
-
-
-
-
-
- SETCLOCK V0.2
- Preliminary Documentation Apr 19/90
-
- DST adherence preset:
-
- The GC-1000 can be set to adjust automatically for
- Daylight Saving Time. Select this parameter to match
- the present setting of the switch (YES or NO).
-
- Time zone actual:
-
- Select this parameter for the time zone in your area.
- This setting provides a more accurate and wider ranging
- set of values that of the GC-1000. Believe it or not,
- some localities differ from UTC by 14 hours! Some
- places are not on the hour - like Newfoundland (1/2
- hour). Other regions are out by 1/4 hour.
-
- Propagation actual:
-
- This parameter allows a more accurate setting of
- distance to Ft. Colins, Colorado. Set this option if
- you know the exact distance and wish even more accurate
- time.
-
- DST adherence actual:
-
- Set this parameter according to whether your locality
- conforms to Daylight Saving Time. During summer months
- when this is in effect, you can also change this
- parameter to see what time it was before the clocks
- were changed.
-
- PC set HI-SPEC only:
-
- Set this parameter to YES if you wish your PC's date
- and time to be updated only when the GC-1000 has locked
- into the world standard and is accurate to within 10
- milliseconds. Selecting NO causes ths software to be
- less descriminating, and sets PC whether or not the
- GC-1000 has been synchronized lately.
-
- PC set DATE & TIME:
-
- Set this parameter to YES if you want your PC's time to
- be updated once data is read from the GC-1000. This
- setting is only in effect during "Auto read" or while
- the configuration screen is OFF.
-
-
-
-
- S.K. Consultants
- 4
-
-
-
-
-
-
- SETCLOCK V0.2
- Preliminary Documentation Apr 19/90
-
- PC set signal:
-
- Set this parameter to YES if you wish an audible tone
- to confirm setting of the PC's date and time when that
- occurs.
-
- Auto read:
-
- Set this parameter to YES if you want the software to
- periodically read the GC-1000 date and time and update
- the screen accordingly. The PC's date and time are
- also periodically synchronized if the "PC set DATE &
- TIME" parameter is YES.
-
- Hours display mode:
-
- Set this parameter to 12 hour mode (North American AM
- or PM is displayed instead of 1/10's of seconds), or 24
- hour mode wich is internationally recognized.
-
- Configuration screen:
-
- Set this parameter to YES if you want the configuration
- screen the next time SETCLOCK is run. Setting this to
- NO is useful if SETCLOCK is run from a batch file or
- executed from another program. No information is
- displayed on the screen, but the PC date and time is
- updated according to other parameter settings. The
- program returns a status code allowing batch file
- commands or other programs to know what happened.
-
- Status codes:
- 0 - Program was executed in "interactive" mode where the
- configuratuion screen was shown.
- 1 - Communications error prevented the program to successfully
- read the GC-1000. Check all cables, baud rate settings, etc.
- 2 - GC-1000 synchronized & HI-SPEC indication.
-
- 3 - GC-1000 synchronized but not HI-SPEC. The clock is not
- guaranteed to be accurate.
- 4 - GC-1000 is not synchronized to time signal. It has just been
- plugged in and as yet does not know the correct time.
- 5 - Failure to read SETCLOCK.CFG file.
-
- 6 - Like condition 2, and PC date & time have been updated.
-
- 7 - Like condition 3, and PC date & time have been updated.
-
-
- S.K. Consultants
- 5
-
-
-
-