home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!ukma!cs.widener.edu!icf.hrb.com!els
- From: els@icf.hrb.com (Eric L. Schott)
- Newsgroups: comp.os.vxworks
- Subject: Re: Setting time on VxWorks board with NTP
- Message-ID: <1992Nov20.122637.19783@icf.hrb.com>
- Date: 20 Nov 92 17:26:37 GMT
- References: <1egkf0INNs75@fnnews.fnal.gov>
- Organization: HRB Systems, Inc.
- Lines: 26
-
- In article <1egkf0INNs75@fnnews.fnal.gov>, nicinski@fndaud.fnal.gov (Tom Nicinski) writes:
- >
- > I'd like to set the time on a VxWorks board when ntpd is started. I'm using
- > Bob Herlien's port of NTP to VxWorks. WAYTOOBIG (in ntp.h) is set to 1000.0
- > seconds. NTP simply gives up on trying to correct the clock if the offset
- > from its peers is over this; that's the condition at the boot of the board.
- >
- > I don't want to rely on the system TOD clock to set the time when the board
- > boots as its resolution is only 1 second (well below our requirements). Well
- > be connected directly to a stratum 1 server (with a WWVB receiver), so I'd
- > like to use its time to set the VxWorks board's time.
-
- I set waytoobig to any in the configuration file read by ntpd. The board
- then syncs to server time. I use the following file. When the board boots,
- it syncs within a minute of so. We are not using he time-of-day clock
- on our boards.
-
- waytoobig any
- precision -10
- server 149.145.2.115
-
- --
-
- Eric L. Schott, HRB Systems, Inc. 814/238-4311 els@icf.hrb.com
- "As we acquire more knowledge, things do not become more comprehensible
- but more mysterious." Albert Schweitzer, "Paris Notes"
-