57 points · by edward · 5y ago · 41 comments
UTC has provisions for positive or negative leap seconds; that works fine. GPS runs without the hassle of leap seconds; that works fine too. GPS users often want to know UTC, so GPS also broadcasts the difference between GPS time and UTC; this works fine.
All of this is in the GPS spec; almost all GPS receiver firmware gets it right. But there is a weird edge case that is hard to test. Specifically if there has been no leap second for 256 weeks (1792 days, ~5 years) inadequately tested GPS receiver firmware could mess up. It happened to one make/model GPS receiver in 2003. [1] It could happen again later this year, in 2021.
The math is fun. The most recent leap second was 2016-12-31 (MJD 57753). 8 bits or 256 weeks later(1792 days, not to be confused with Ramanujan's taxi number 1729) will be 2021-11-27 (MJD 59545). So shortly before, or on, or after that date it is possible a faulty GPS receiver will misrepresent a leap second or miscalculate UTC. GPS positioning and navigation is likely completely unaffected (because it avoids leap seconds entirely).
It will most certainly cause some issues.
I worked somewhere that sold a software appliance back in the day. This software appliance did a bunch of ETL and ran analytics processes. We had a leap second that caused all the ETL jobs to stop working. 400 some appliances in different data centers that we had some connectivity through a VPN. It was not a fun experience but it has always kept leap seconds and time problems in the front of my mind.
The first issue has already been found: https://twitter.com/uputronics/status/1418990637299519493
The issue is that only certain defined gps weeks use those bits for that purpose (when to actually apply the upcoming leap second), and it doesn't happen that often.
But anyone who assumed that an upcoming leap second message implies a non-zero value hasn't done their basic homework. It's a regularly recurring message, not only done when required.
1. http://www.leobodnar.com/shop/index.php?main_page=product_in...
Lots of critical military devices still use star based navigation, and likely even more will in the future, since it's become obvious we can't rely on NAVSTAR GPS to be working if we go to war.
ICBM's inclusive. I've always thought it poetic that if humanity destroys itself, one of its final acts of comprehension will be that of a robot contemplating the heavens. We end as we began.
I pine for a commercial/hobbyist grade celestial navigation system (point CCD at sky, get position). If anyone has any recommendations or pointers, would love them.
Would this potentially work during the day, or do you need to be able to see stars? If you can see the Sun I guess that should be good enough, if the sensor can even handle that without clipping to hell?
Do you also have to be able to accurately measure angle to the horizon too? I'm not all that familiar with celestial navigation in practice.
Whether the instruments being used are precise enough for any of this to matter is a different story. I’m quite curious whether military clocks correct their own relativistic errors. Military satellites almost certainly do.
It's not that they can or can't make adjustments vs any other standard of keeping time, it's that they don't have to.
Whatever may (or may not) make sense today, we adjust to Navy time, because that's what's official, and that's what GPS time is ultimately based on.
Re, relativistic corrections, I don't know the answer for sure, but they average the time between multiple (I think cesium?) atomic clocks. If those clocks all shared the ~same reference frame, I'd think, by definition, you'd not need to make a relativistic adjustment. The frame you'd reference to is the one you're already in.
It's easier to just keep high noon at the Greenwich observatory as the defining datum, since most worldwide coordinates ultimately reference back to it, being 0deg longitude.
Ultimately, either time or location would need to be adjusted, and it's easier to do time. Plus it's consistent with what's been done historically.
https://en.wikipedia.org/wiki/Leap_second#International_prop...
The GPS broadcast contains GPS time and enough information for receivers to obtain UTC from GPS.
> Information in subframe 4 of the NAV message includes the relationship between GPS time and UTC, and it also notes future scheduled leap seconds. In this area, subframe 4 can accommodate 8 bits, 255 leap seconds, which should suffice until about 2330.