Toolchain for real-time simulations: GSN-MeteoIO-GEOtop
Gps Receiver Leap Second Testing An06 101 Rev A
1. Application Note: GPS Receiver Testing
Leap Second Testing Made Easy
The first leap second since late 2008 will No future leap Leap second Within +/- 6 hours of the After July 1
be added to the official time scale on June second (last leap on coming on June leap second on UTC mid- (no future leap
30, 2012. This will be the first mid-year December 31, 2008) 30, 2012 night June 30, 2012 second)
leap second event in 16 years. No doubt
WNLSF 488 670 670 670
most GPS receivers in current production
have not experienced a leap second event DN 4 7 7 7
and none would have experienced a mid- tLS 15 15 15 or 16
year leap second. For these reasons, it is (depends if almanac updated and received)
strongly recommended to test the upcom- tLSF 15 16 16 16
ing leap second event for all GPS receivers
and systems to determine if algorithms and UTC GPS Time + tLSF GPS Time + tLS GPS Time + tLS + (tLSF - tLS) GPS Time + tLSF
software successfully manages the leap Figure 2. Key leap second parameters in the UTC calculation
second event and to uncover any detrimen-
tal effect of the leap second discontinuity. The Case Against Leap Seconds almanac. The parameters that apply to
There has been considerable discussion in the current and future leap second events
Introduction are contained in subframe 4, page 18 of
Spectracom’s GPS constellation simulators, the GPS and other precise timing commu-
nities that leap seconds are a nuisance at the navigation data message (see section
models GSG 54, 55, and 56 can easily
best, and can cause significant issues as 20.3.3.5.2.4 of the interface specification).
simulate the leap second event of June 30,
more and more applications require pre- The key parameters are as follows:
2012. A typical test takes less than 35
minutes to set up and run. A sample leap cise timing data on a scale much better • WNLSF – Week number when the leap
second scenario is available for download. than a second. Google has recently posted second becomes effective
This application note provides background their approach to managing leap seconds • DN – Day number when the leap sec-
on the leap second event and describes for their critical data center/server appli- ond becomes effective
leap second testing with the Spectracom cations – they “smear” the leap second • tLS – Current or past leap second value
simulator. over a period of time (http://googleblog. • tLSF – Current or future leap second value
blogspot.com/2011/09/time-technology-
What is a Leap Second? and-leaping-seconds.html). In fact, there is For correct management of the leap second
Since the official definition of time is based a discussion to eliminate leap seconds from event, the receiver must determine which
on atomic standards, a leap second is in- the official time scale. This debate is likely to value to use (either tLS or tLSF, or both) for
serted in the UTC time scale to keep it in have added confusion in the GPS develop- its UTC calculation.
step with the solar day much like a leap ment community which in turn underscores
For example:
day is used to keep the calendar in step the need for leap second testing to ensure
1. If the leap second event is not in the
with the seasons. A leap second can be proper performance of GPS devices.
past and if the present time is less than
added or removed. It can occur at the end 6 hours before the leap second event,
of the day on December 31 or June 30 How GPS Manages Leap Seconds
The GPS (and other GNSS) system operates the receiver should use the value of tLS.
and must be announced approximately 6
months in advance. on the principal of synchronized precise time. 2. If the present time is within a window
Every satellite broadcasts “GPS Time” which of 6 hours before to 6 hours after the
The sequence for adding a leap second to was in sync with official UTC time at one leap second event, the receiver is in a
UTC compared to a normal day: point. GPS does not reconcile the discontinu- transition period where it looks at the
ity of a leap second in its time scale. It trans- difference between those 2 values and
Normal Day Leap Second Event mits GPS Time along with the number of leap adds it to tLS (so if tLS is already up-
23:59:58 23:59:58 seconds according to GPS Interface Specifi- dated in the almanac, zero is added,
cation IS-GPS-200E (latest June 2010). The if not +1 is added).
23:59:59 23:59:59
responsibility to convert GPS time to UTC falls
00:00:00 23:59:60 to the GPS receiver and supporting software. 3. If the present time is more than 6 hours
00:00:01 00:00:00 past the leap second event the receiv-
The information about leap seconds is er will use the value for tLSF.
Figure 1. Adding a leap second broadcast by the satellites as part of the
ctracomco
.spe
. . . quality
rp.c
Q
om . . . . .
USA | 1565 Jefferson Road, Suite 460 | Rochester, NY 14623 | +1.585.321.5800 | sales@spectracomcorp.com
FRANCE | 3 Avenue du Canada | 91974 Les Ulis, Cedex | +33 (0)1 64 53 39 80 | sales@spectracom.fr
...
..
IS
UK | 6A Beechwood | Chineham Park | Basingstoke, Hants, RG24 8WA | +44 (0)1256 303630 | info@spectracom.co.uk O 9001
.