home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / comms / misc / xprcl014.lzh / TimeConstant.TXT < prev    next >
Encoding:
Internet Message Format  |  1992-09-26  |  2.3 KB

  1. From: mrapple@quack.sac.ca.us (Nick Sayer)
  2. Newsgroups: comp.protocols.time.ntp
  3. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  4.  
  5. N I C K ' S   C H U   P R E A C H !
  6.  
  7.  
  8. Simply put, the highest accuracy-per-dollar method of getting time
  9. to a Unix system is via a CHU modem.
  10.  
  11. CHU is a radio station in Canada that broadcasts on 3,330, 7.335, and
  12. 14,670 kHz. The transmissions come from 45 degrees 18 minutes
  13. north, 75 degrees 45 minutes west, and are 3 kW on 3 and 14 Mhz and 10
  14. kW on 7 MHz. The transmissions are upper-sideband, reinjected
  15. carrier (so they're audible on most AM radios).
  16.  
  17. The signal is more boring to a human listener, consisting mostly of
  18. second markers and a once-a-minute station ID and time announcement,
  19. but between :31 and :39 seconds past the minute, CHU transmits 
  20. Bel 103 compatable AFSK tones with 300 bps data containing the
  21. day of the year, hour, minute and second.
  22.  
  23. Specifically, the mark tone is 2225 Hz and the space tone is 2025 Hz.
  24. The mark tone begins 10 ms after the start of the second. It goes on
  25. for 123.333... ms. The first start bit then begins and the bits continue
  26. for 10 8N2 characters. The last stop bit ends at precisely 500 msec
  27. past the minute, and the mark tone drops out shortly after that.
  28. Each bit is timed precisely and is exactly 1/300 of a second
  29. long.
  30.  
  31. The 10 characters are all pairs of BCD digits. The first 5 and second
  32. 5 are the same, to allow error detection.
  33.  
  34. Example data (in Hex):
  35.  
  36. 16 59 80 42 73 16 59 80 42 73
  37.  
  38. First, you throw away one half:
  39.  
  40. 16 59 80 42 73
  41.  
  42. Next, flip the nibbles around
  43.  
  44. 61 95 08 24 37
  45.  
  46. Next, a little prettying-up:
  47.  
  48. 6 195 08:24:37
  49.  
  50. It's 08:24:37 UTC on the 195th day of the year. The 6 is a constant.
  51.  
  52. The best part of all is that a CHU system is simply a shortwave radio
  53. and a standard computer 300 baud modem, and that you can get just as
  54. accurate results as radio-clocks costing hundreds or thousands of
  55. dollars.
  56.  
  57. A schematic of a suitable modem made with 3 simple chips is available
  58. on louie.udel.edu along with the source for a loadable driver used
  59. to accurately timestamp CHU stuff. Just make the module, compile
  60. xntpd with CHU support, hook up a modem, and there you are!
  61.  
  62. -- 
  63. Nick Sayer <mrapple@quack.sac.ca.us> | 
  64. N6QQQ @ N0ARY.#NOCAL.CA.USA.NA       | The .signature virus
  65. 37 19 49 N / 121 57 36 W             | was here (v2.2f).
  66. +1 408 249 9630, log in as 'guest'   | 
  67.