/contrib/ntp/scripts/stats/README.timecodes

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 149 lines · 117 code · 32 blank · 0 comment · 0 complexity · f3783a66338e3c152f14cdc5a4a633b4 MD5 · raw file

  1. Radio Timecode Formats (README.timecodes)
  2. Following are examples of the serial timecode formats used by various
  3. timecode receivers as given in the instruction manuals. These examples
  4. are intended only for illustration and not as the basis of system
  5. design. The following symbols are used to identify the timecode
  6. character that begins a subfield. The values given after this symbol
  7. represent the character offset from the beginning of the timecode string
  8. as edited to remove control characters.
  9. C on-time character (start bit)
  10. Y year of century
  11. T time of day
  12. D day of year or month/day
  13. A alarm indicator (format specific)
  14. Q quality indicator (format specific)
  15. <LF> ASCII line feed (hex 0a)
  16. <CR> ASCII carriage return (hex 0d)
  17. <SP> ASCII space (hex 20)
  18. In order to promote uniform behavior in the various implementations, it
  19. is useful to have a common interpretation of alarm conditions and signal
  20. quality. When the alarm indicator it on, the receiver is not operating
  21. correctly or has never synchronized to the broadcast signal. When the
  22. alarm indicator is off and the quality indicator is on, the receiver has
  23. synchronized to the broadcast signal, then lost the signal and is
  24. coasting on its internal oscillator.
  25. In the following uppercase letters, punctuation marks and spaces <SP>
  26. stand for themselves; lowercase letters stand for fields as described.
  27. Special characters other than <LF>, <CR> and <SP> are preceded by ^.
  28. Spectracom 8170 and Netclock/2 WWV Synchonized Clock (format 0)
  29. "<CR><LF>i ddd hh:mm:ss TZ=zz<CR><LF>"
  30. C A D T
  31. poll: ?; offsets: Y = none, D = 3, T = 7, A = 0, Q = none
  32. i = synchronization flag (<SP> = in synch, ? = out synch)
  33. ddd = day of year
  34. hh:mm:ss = hours, minutes, seconds
  35. zz = timezone offset (hours from UTC)
  36. Note: alarm condition is indicated by other than <SP> at A, which
  37. occurs during initial synchronization and when received signal has
  38. been lost for about ten hours
  39. example: " 216 15:36:43 TZ=0"
  40. A D T
  41. Netclock/2 WWV Synchonized Clock (format 2)
  42. "<CR><LF>iqyy ddd hh:mm:ss.fff ld"
  43. C AQY D T
  44. poll: ?; offsets: Y = 2, D = 5, T = 9, A = 0, Q = 1
  45. i = synchronization flag (<SP> = in synch, ? = out synch)
  46. q = quality indicator (<SP> < 1ms, A < 10 ms, B < 100 ms, C < 500
  47. ms, D > 500 ms)
  48. yy = year (as broadcast)
  49. ddd = day of year
  50. hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
  51. l = leap-second warning (L indicates leap at end of month)
  52. d = standard/daylight time indicator (<SP> standard, D daylight)
  53. Note: alarm condition is indicated by other than <SP> at A, which
  54. occurs during initial synchronization and when received signal has
  55. been lost for about ten hours; unlock condition is indicated by
  56. other than <SP> at Q, with time since last lock indicated by the
  57. letter code A < 13 min, B < 1.5 hr, C < 7 hr, D > 7 hr.
  58. example: " 92 216 15:36:43.640 D"
  59. AQ D T
  60. TrueTime 468-DC Satellite Synchronized Clock (and other TrueTime
  61. receivers)
  62. "<CR><LF><^A>ddd:hh:mm:ssq<CR>"
  63. D T QC
  64. poll: none; offsets: Y = none, D = 0, T = 4, A = 12, Q = 12
  65. hh:mm:ss = hours, minutes, seconds
  66. q = quality/alarm indicator (<SP> = locked, ? = alarm)
  67. Note: alarm condition is indicated by ? at A, which occurs during
  68. initial synchronization and when received signal is lost for an
  69. extended period; unlock condition is indicated by other than <SP>
  70. at Q
  71. example: "216:15:36:43 "
  72. D T Q
  73. Heath GC-1000 Most Accurate Clock (WWV/H)
  74. "<CR>hh:mm:ss.f dd/mm/yy<CR>"
  75. C T A D
  76. poll: none; offsets: Y = none, D = 15, T = 0, A = 9, Q = none
  77. hh:mm:ss = hours, minutes, seconds
  78. f = deciseconds (? when out of spec)
  79. dd/mm = day, month
  80. yy = year of century (from DIPswitches)
  81. Note: 0?:??:??.? is displayed before synch is first established and
  82. hh:mm:ss.? once synch is established and then lost again for about
  83. a day.
  84. example: "15:36:43.6 04/08/91"
  85. T A D Y
  86. PST/Traconex 1020 Time Source (WWV/H) (firmware revision V4.01)
  87. "frdzycchhSSFTttttuuxx<CR>" "ahh:mm:ss.fffs<CR>" "yy/dd/mm/ddd<CR>"
  88. A Q T Y D
  89. poll: "QMQDQT"; offsets: Y = 0, D = 3 T = 1,, A = 11, Q = 13
  90. f = frequency enable (O = all frequencies enabled)
  91. r = baud rate (3 = 1200, 6 = 9600)
  92. d = features indicator (@ = month/day display enabled)
  93. z = time zone (0 = UTC)
  94. y = year (5 = 1991)
  95. cc = WWV propagation delay (52 = 22 ms)
  96. hh = WWVH propagation delay (81 = 33 ms)
  97. SS = status (80 or 82 = operating correctly)
  98. F = current receive frequency (1-5 = 2.5, 5, 10, 15, 20 MHz)
  99. T = transmitter (C = WWV, H = WWVH)
  100. tttt = time since last update (minutes)
  101. uu = flush character (03 = ^C)
  102. xx = 94 (unknown) (firmware revision X4.01.999 only)
  103. a = AM/PM indicator (A = AM, P = PM, <SP> - 24-hour format)
  104. hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
  105. s = daylight-saving indicator (<SP> standard, D daylight)
  106. yy = year of century (from DIPswitches)
  107. dd/mm/ddd = day of month, month of year, day of year
  108. Note: The alarm condition is indicated by other than ? at A, which
  109. occurs during initial synchronization and when received signal is
  110. lost for an extended period. A receiver unlock condition is
  111. indicated by other than "0000" in the tttt subfield at Q.
  112. example: "O3@055281824C00000394 91/08/04/216 15:36:43.640"
  113. T Y D T
  114. David L. Mills
  115. University of Delaware
  116. mills@udel.edu
  117. 23 October 1993