Hacker News new | ask | show | jobs
by OmarShehata 798 days ago
Amazing! I also had exactly the same experience that led me to research this a few years ago, realizing that:

- GPS works even in airplane mode (while on a literal airplane) - It works without cell service, or wifi, or anything - The United States of America controls the GPS constellation, and they can (and have!) turned off GPS off certain regions at will when necessary (which has prompted other countries to launch their own GNSS constellations) - GPS satellites don't send down a location, they only send down time

I think it's a really fun exercise to do this with data you receive on your phone. Your phone has a direct link to satellite.

(side note: I recently learned the basic principles of star navigation, and while it is a completely different mechanism, it also relies very much on keeping accurate time, which I thought was a fun symmetry!)

5 comments

> - GPS works even in airplane mode (while on a literal airplane) - It works without cell service, or wifi, or anything

Maybe this is a conception that some people have when their first experiences of using GPS was on a smartphone?

But my first couple GPS receivers were standalone devices without any sort of data connection, so it seems obvious to me that GPS doesn't require data.

A < 30 year old today almost certainly had a modern smartphone with mapping when they learned to drive, entirely skipping the era of garmin and similar GPS devices in cars.

My only exposure to GPS without data came from outdoor sports where GPS watches and PLBs are common, as are offline mapping applications. I don't think it's obvious to most casual users of GPS technology today that it is entirely independent from data connectivity.

> GPS satellites don't send down a location, they only send down time

They do send a location - to be more exact, they send rough locations of all satellites in the constellation (almanac) and precise location of themselves (ephemeris). Devices like mobile phones, however, usually get that data from other sources because it's much faster than listening to data over GPS.

A person would have to have a quite flawed mental model of what GPS is to form the belief that it would stop working without data service, wouldn't they?
One of the interview questions where I work (we do automotive electronics) is "Explain how GPS works." It's directly relevant to the job, but it's also a neat opportunity to see how someone sizes up their audience, manages time and assumptions, etc.

All those things are neat, but mostly what I've learned is that quite a lot of people, otherwise apparently reasonably smart and competent and toting a whole stack of prestigious degrees, have ghastly flaws in their mental model of what GPS is.

If you think that's bad.... try asking someone where they think electricity comes from.
I personally blame the rabid Libertarians that the other guy mentioned. Tons of people think that what GPS does is sends your location to the Air Force, which is a bit backwards (and doesn't pencil out in terms of either energy balance for the mobile station or channel capacity for the satellites). They think this because that's how people casually write about it (the FBI was tracking me over GPS, or whatever).
Most people have quite flawed mental models of how things work.
There's a difference between GPS vs A-GPS (Assisted GPS)[0][1].

Since A-GPS uses the cell tower to get the list of satellites in view, the GPS on some cellphones will keep working when cell service is lost but won't start working if cell service is unavailable.

I think this means my Samsung doesn't actually have GPS, since fallback to unassisted GPS has never worked for me (yes, I've tried waiting far longer than 15 minutes).

Maybe you can excuse a mental model that doesn't make the GPS vs A-GPS distinction, since A-GPS is often sold as GPS.

[0]https://en.wikipedia.org/wiki/Assisted_GNSS [1]https://news.ycombinator.com/item?id=40042686

> I think this means my Samsung doesn't actually have GPS

Usually this just means that it has a weak antenna or catches too much noise, which isn't as much of an issue when assisted. It will probably work just fine unassisted under perfect conditions, but struggles otherwise. Apparently it's pretty common for modern phones, but there are exceptions.

One samsung phone I had problems per software in getting a gps lock in it's last years of use.

Fancier software would sit there forever trying to get lock, but more primitive one's could get a lock and after that the fancier ones could as well.

This meant I got to "boot" the lock by hamgps first and then I could switch to maps and other software.

I can tell you with high confidence that a very large number of people have no mental model of what GPS is at all.
absolutely, and most people do! I encourage you to go around asking your friends and family this question (without judgement, and see if you can prod them along to the right answer on their own!) i think the world is better when the average person has a more accurate understanding of the tools they use

(and contrary to popular belief, I think the average person is interested in understanding this, they're more motivated to understand things that actually matter to them, that are in their hands every day. A lot just have an emotional aversion to math due to bad school experiences, but they are genuinely curious)

Mostly in the same way the average person would assume "Hacker News" is anything but a place for SV investment bros to hang out and become rabid Libertarians.

Functionally on most devices losing network coverage renders GPS useless. I keep telling people to download OsmAnd if they want to be able to view maps on a plane or get home from their hike outside cell range. Google maps will try to cache maps to some degree nowadays but it tends to be very flakey and it seems to be very easy to accidentally get it to drop its cache when you're outside cell coverage.

> The United States of America controls the GPS constellation

Heh, but they aren't the only global positioning system out there (nor the most accurate). EU, China, India, and Russia all have their own.

> GPS satellites don't send down a location, they only send down time

The GPS almanac data they transmit is effectively location. It's not literally location, but the P code isn't literally time either.

> and they can (and have!) turned off GPS off certain regions at will when necessary

As I understand it, those capabilities are no longer present in newer (possibly all active?) GPS satellites.

What the satellites are sending is effectively THEIR orbit, not YOUR location, I think is the point.