home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vxworks / 1044 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.5 KB

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