Jump to content

how does gps even work

Go to solution Solved by Kisai,
19 hours ago, apoyusiken said:

i mean think about it. there are so many devices connected to gps. how do satellites keep up? (i am talking about the cpu workload) 

 

also unrelated, how do the satellites send and receive data? what about the receivers here on earth?

GPS is broadcasting from 24 for satellites in Medium Earth Orbit (MEO.) GLONASS and Galileo also do.

 

Your device never connects to them, it only receives data. Your phone only needs to be able to see 3 of them to find it's 2D coordinates, and needs 4 to get a 3D location. But you must have a clear view of the sky.

 

What your Cell phone actually has is A-GPS, which is done with cell phone towers but is only precise down to about 100 meters or 300ft. Satellite GPS is precise down to about 3 meters if it can see 4+ satelites but it depends on weather and buildings around.

 

That said, I've had some of the first gen USB GPS stuff, a Nokia N95, and every iPhone I've had has had GPS support. It's kind of unobvious how GPS is used unless you look into it.

 

On an iPhone "Precise Location" uses your WiFi and bluetooth as location points.

image.png.c4f93a5d3368b52b8782903771dc76fe.png

 

In most cases the actual satellite GPS is probably not being used until you are outside of a city when it can see 5 of them. Like the Nokia N95 required being able to see 5 to lock on, but only needed 3 to actually show a position on the map. The USB receiver that came with Microsoft Steets and Maps from like, 2004 was a 3" device that you stick to your windshield, and could see around 12 IIRC.

 

it uses less power to rely on the radios that are already turned on for other reasons.

 

All GPS does is, in an over-simplification, is send the time and it's orbital information and the "gps device" in your computer/phone gets several of these to figure out the coordinates from the deltas in the time from the constellation position.

 

The same with using A-GPS from Cellular towers, and WiFi/Bluetooth.  If you've ever gone "war driving" back when WiFI was new, you could figure out where a WiFi access point was from about 1000m away if there was nothing obstructing it. So in that case it uses the signal strength.

 

i mean think about it. there are so many devices connected to gps. how do satellites keep up? (i am talking about the cpu workload) 

 

also unrelated, how do the satellites send and receive data? what about the receivers here on earth?

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/
Share on other sites

Link to post
Share on other sites

Often time, the "gps" you have is not even satellite based.

On your phone, the "gps" is more likely cell tower based. Where as with multiple cell tower in an area, your phone can triangulate your position through a bunch of maths based on your distance from each towers. This is how you can get pinpoint accuracy for map location.

But if you're out and about far from multiple cell towers... You will often time find out that your location is not exactly accurate. Because satellite based GPS for us normies is not super accurate. Still better than nothing.

CPU: AMD Ryzen 3700x / GPU: Asus Radeon RX 6750XT OC 12GB RAM: Corsair Vengeance LPX 2x16GB DDR4-3200
MOBO: MSI B450m Gaming Plus NVME: Corsair MP510 240GB / Case: TT Core v21 PSU: Seasonic 750W / OS: Bazzite

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16689995
Share on other sites

Link to post
Share on other sites

the cpu workload i dont presume is much worse than just the upkeep of a cell signal. the "consumer" version of GPS is also very much a "lite" version of what it does for the US army, apparently...

 

for the rest of it, wikipedia has a pretty good writeup, very abbreviated: it's a bunch of standardized messages on the UHF radio band.

https://en.wikipedia.org/wiki/GPS_signals

 

2 minutes ago, TetraSky said:

Where as multiple cell tower in an area can triangulate your position through a bunch of maths based on your distance from each tower.

that's exactly what GPS does too, just with satalites instead of cell towers.

also.. is this why my old phone's google maps had absolutely no idea where i was? living in a relatively rural area with very little overlap between cell towers...

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16689997
Share on other sites

Link to post
Share on other sites

3 minutes ago, manikyath said:

overlap

overlap doesnt matter but you need 4 towers

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690002
Share on other sites

Link to post
Share on other sites

1 hour ago, apoyusiken said:

how do satellites keep up?

They key thing to know is that your GPS device is not speaking to the satellites, and the satellites are not listening.

 

The satellites speak, and your device listens - it's one way communication.

 

GPS satellites transmit signals and using the difference in time between signals from several satellites at once, your device figures out it's own co-ordinates.

 

 

 

https://en.wikipedia.org/wiki/Global_Positioning_System#Principles

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690041
Share on other sites

Link to post
Share on other sites

1 hour ago, apoyusiken said:

i mean think about it. there are so many devices connected to gps. how do satellites keep up? (i am talking about the cpu workload) 

 

also unrelated, how do the satellites send and receive data? what about the receivers here on earth?

It's not that there are a lot of devices connected to GPS...it's that there are a lot of devices that are using the GPS signal.

 

It's like wayfinding based on the stars.  You can reliably tell where you are on the Earth's surface just based on where the stars are in the sky etc.  The stars aren't doing the work, you are just working based on where the stars are.

 

GPS is very similar.  In effect what the GPS will do is send out a nice broadcast signal on a specific frequency with the current time along with which satellite it is.  The thing is we know orbital mechanics quite well and can predict where an object will be based on just the time and starting position of the satellite.  So each time you receive a signal you can calculate where in 3d space the satellite is.  Now the thing is you don't necessarily "know" how long the signal has been travelling to you.  So you will need another satellite's time, and eventually you build up enough "times" and positions in 3d space and you can effectively triangulate where you are (compensating for time).

 

So in reality the GPS sats don't really have to do much work except making sure their clocks are running accurately.

 

As for how satellites send and receive data, well it's similar to how cell phones work...except in this case instead of sending the signal every which way to the cell tower, you use a directional broadcaster.  It's why you used to have sat dishes with large U looking things.  It takes a very weak signal from one direction and essentially only looks at a specific point [like a telescope really].  Sats of old also had similar things to capture the weak signals sent from Earth.

3735928559 - Beware of the dead beef

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690046
Share on other sites

Link to post
Share on other sites

27 minutes ago, whispous said:

They key thing to know is that your GPS device is not speaking to the satellites, and the satellites are not listening.

 

The satellites speak, and your device listens - it's one way communication.

 

GPS satellites transmit signals and using the difference in time between signals from several satellites at once, your device figures out it's own co-ordinates.

 

 

 

https://en.wikipedia.org/wiki/Global_Positioning_System#Principles

thanks this was enough info

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690063
Share on other sites

Link to post
Share on other sites

17 minutes ago, wanderingfool2 said:

It's not that there are a lot of devices connected to GPS...it's that there are a lot of devices that are using the GPS signal.

 

It's like wayfinding based on the stars.  You can reliably tell where you are on the Earth's surface just based on where the stars are in the sky etc.  The stars aren't doing the work, you are just working based on where the stars are.

 

GPS is very similar.  In effect what the GPS will do is send out a nice broadcast signal on a specific frequency with the current time along with which satellite it is.  The thing is we know orbital mechanics quite well and can predict where an object will be based on just the time and starting position of the satellite.  So each time you receive a signal you can calculate where in 3d space the satellite is.  Now the thing is you don't necessarily "know" how long the signal has been travelling to you.  So you will need another satellite's time, and eventually you build up enough "times" and positions in 3d space and you can effectively triangulate where you are (compensating for time).

 

So in reality the GPS sats don't really have to do much work except making sure their clocks are running accurately.

 

As for how satellites send and receive data, well it's similar to how cell phones work...except in this case instead of sending the signal every which way to the cell tower, you use a directional broadcaster.  It's why you used to have sat dishes with large U looking things.  It takes a very weak signal from one direction and essentially only looks at a specific point [like a telescope really].  Sats of old also had similar things to capture the weak signals sent from Earth.

well, we could listen to waves from space too right? are we not sensitive enough?

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690065
Share on other sites

Link to post
Share on other sites

16 hours ago, apoyusiken said:

i mean think about it. there are so many devices connected to gps. how do satellites keep up? (i am talking about the cpu workload) 

 

also unrelated, how do the satellites send and receive data? what about the receivers here on earth?

Satellites sends out a signal, that the device picks up. It's like with a radio tower, the signal doesn't get weaker just because you put up some more radios listening to the signal. 

 

They work by knowing the satellite position and the signal contains code that makes calculating the distance from the satellite to your device possible. So it's like drawing a circle with the satellite as center, do that with enough satellites and you can see your position from where all the circles intersect. 

Somewhat simplified 🙂

 

Remember, it was originally designed for soldiers to navigate by. Not good if they could get tracked, so it had to be a passive receiver 

mITX is awesome! I regret nothing (apart from when picking parts or have to do maintainance *cough*cough*)

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690586
Share on other sites

Link to post
Share on other sites

15 hours ago, whispous said:

They key thing to know is that your GPS device is not speaking to the satellites, and the satellites are not listening.

 

The satellites speak, and your device listens - it's one way communication.

 

GPS satellites transmit signals and using the difference in time between signals from several satellites at once, your device figures out it's own co-ordinates.

 

 

 

https://en.wikipedia.org/wiki/Global_Positioning_System#Principles

This. It's like OTA TV signals, the signal is broadcast, your device just picks it up and the transmitter the signal is broadcast from doesn't receive anything. So you can have one broadcast signal and effectively an infinite number of TVs receiving that signal. And the cost to the broadcaster is the same if they have 1 viewer or 1,000,000 viewers, it's the same cost.

 

Streaming is different - it's bandwidth x number of viewers which is why streaming video dominates Internet traffic.

US Gaming Rig (April 2021): Win 11Pro/10 Pro, Thermaltake Core V21, Intel Core i7 10700K with XMP2/MCE enabled, 4x8GB G.Skill Trident Z RGB DDR4 @3,600MHz, Asus Z490-G (Wi-Fi), SK Hynix nvme SSDs (1x 2TB P41, 1x 1TB P31), 1x WD 4TB SATA SSD, 2x16TB Seagate HDD, Asus Dual RTX 3060 V2 OC, Seasonic Focus PX-750, LG 27GN800-B monitor. Logitech Z533 speakers, Xbox Stereo & Wireless headsets, Logitech G213 keyboard, G703 mouse with Powerplay

 

UK HTPC #2 (April 2022) Win 11 Pro, Silverstone ML08, (with SST-FPS01 front panel adapter), Intel Core i5 10400, 2x8GB Corsair Vengeance LPX DDR4 @3,600MHz, Asus B560-I, SK Hynix P31 (500GB) nvme boot SSD, 1x 5TB Seagate 2.5" HDD, Drobo S with 5x4TB HDDs, Hauppauge WinTV-quadHD TV Tuner, Silverstone SST-SX500-LG v2.1 SFX PSU, LG 42LW550T TV. Philips HTL5120 soundbar, Logitech K400.

 

US HTPC (tbc 2025): Win 11 Pro, Streacom DB4, Intel Core i5 14500T, 2x16GB G.SKILL Ripjaws S5 @6,400MHz, ASRock Z790-itx Wifi, Samsung 980 Pro 1TB SSD, Streacom ZF240 PSU, LG TV, Logitech K400.

 

US NAS (planning): tbc

 

UK Gaming Rig #2 (May 2013, offline 2020): Win 10 Pro/Win 8.1 Pro with MCE, Antec 1200 v3, Intel Core i5 4670K @4.2GHz, 4x4GB Corsair DDR3 @1,600MHz, Asus Z87-DELUXE/Dual, Samsung 840 Evo 1TB boot SSD, 1TB & 500GB sata m.2 SSDs (and 6 HDDs for 28TB total in a Storage Space), no dGPU, Seasonic SS-660XP2, Dell U2410 monitor. Dell AY511 soundbar, Sennheiser HD205, Saitek Eclipse II keyboard, Roccat Kone XTD mouse.

 

UK Gaming Rig #1 (Feb 2008, last rebuilt 2013, offline 2020): Win 7 Ultimate (64bit)/Win Vista Ultimate (32bit)/Win XP Pro (32bit), Coolermaster Elite 335U, Intel Core 2 Quad Q9650 @3.6GHz, 4x2GB Corsair DDR3 @1,600MHz, Asus P5E3 Deluxe/WiFi-Ap@n, 2x 1TB & 2x 500GB 2.5" HDDs (1 for each OS & 1 for Win7 data), NVidia GTX 750, CoolerMaster Real Power M620 PSU, shared I/O with gaming rig #2 via KVM.

 

UK HTPC #1 (June 2010, rebuilt 2012/13, offline 2022) Win 7 Home Premium, Antec Fusion Black, Intel Core i3 3220T, 4x2GB OCZ DDR3 @1,600MHz, Gigabyte H77M-D3H, OCZ Agility3 120GB boot SSD, 1x1TB 2.5" HDD, Blackgold 3620 TV Tuner, Seasonic SS-400FL2 Fanless PSU, Logitech MX Air, Origen RC197.

 

Tablet: Google Pixel Tablet 128GB

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690597
Share on other sites

Link to post
Share on other sites

16 hours ago, apoyusiken said:

well, we could listen to waves from space too right? are we not sensitive enough?

I don't know what you mean by this?  What do you mean listen to waves from space?

 

If you are talking about 3d positioning based on other signals from space...that doesn't quite work in that you need to really know where the satellite is in 3d space and time in order to really triangulate where you are.  You can still roughly do it though with stars (iirc some space crafts use that to track where they are/align correctly)...but it can only really give so much information that way

3735928559 - Beware of the dead beef

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690677
Share on other sites

Link to post
Share on other sites

11 minutes ago, wanderingfool2 said:

I don't know what you mean by this?  What do you mean listen to waves from space?

 

If you are talking about 3d positioning based on other signals from space...that doesn't quite work in that you need to really know where the satellite is in 3d space and time in order to really triangulate where you are.  You can still roughly do it though with stars (iirc some space crafts use that to track where they are/align correctly)...but it can only really give so much information that way

what about finding relative position?

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690684
Share on other sites

Link to post
Share on other sites

48 minutes ago, apoyusiken said:

what about finding relative position?

GPS is all about effectively finding the relative position though.  You can't just use any old signal because you lack the basic information of where the signal was coming from.

 

In theory you could make one that used an antenna that was capturing directionality as well, but that would I guess would require a large antenna and massive amounts of circuitry and latest processing.

3735928559 - Beware of the dead beef

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690724
Share on other sites

Link to post
Share on other sites

19 hours ago, apoyusiken said:

i mean think about it. there are so many devices connected to gps. how do satellites keep up? (i am talking about the cpu workload) 

 

also unrelated, how do the satellites send and receive data? what about the receivers here on earth?

GPS is broadcasting from 24 for satellites in Medium Earth Orbit (MEO.) GLONASS and Galileo also do.

 

Your device never connects to them, it only receives data. Your phone only needs to be able to see 3 of them to find it's 2D coordinates, and needs 4 to get a 3D location. But you must have a clear view of the sky.

 

What your Cell phone actually has is A-GPS, which is done with cell phone towers but is only precise down to about 100 meters or 300ft. Satellite GPS is precise down to about 3 meters if it can see 4+ satelites but it depends on weather and buildings around.

 

That said, I've had some of the first gen USB GPS stuff, a Nokia N95, and every iPhone I've had has had GPS support. It's kind of unobvious how GPS is used unless you look into it.

 

On an iPhone "Precise Location" uses your WiFi and bluetooth as location points.

image.png.c4f93a5d3368b52b8782903771dc76fe.png

 

In most cases the actual satellite GPS is probably not being used until you are outside of a city when it can see 5 of them. Like the Nokia N95 required being able to see 5 to lock on, but only needed 3 to actually show a position on the map. The USB receiver that came with Microsoft Steets and Maps from like, 2004 was a 3" device that you stick to your windshield, and could see around 12 IIRC.

 

it uses less power to rely on the radios that are already turned on for other reasons.

 

All GPS does is, in an over-simplification, is send the time and it's orbital information and the "gps device" in your computer/phone gets several of these to figure out the coordinates from the deltas in the time from the constellation position.

 

The same with using A-GPS from Cellular towers, and WiFi/Bluetooth.  If you've ever gone "war driving" back when WiFI was new, you could figure out where a WiFi access point was from about 1000m away if there was nothing obstructing it. So in that case it uses the signal strength.

 

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690758
Share on other sites

Link to post
Share on other sites

14 minutes ago, Kisai said:

GPS is broadcasting from 24 for satellites in Medium Earth Orbit (MEO.) GLONASS and Galileo also do.

 

Your device never connects to them, it only receives data. Your phone only needs to be able to see 3 of them to find it's 2D coordinates, and needs 4 to get a 3D location. But you must have a clear view of the sky.

 

What your Cell phone actually has is A-GPS, which is done with cell phone towers but is only precise down to about 100 meters or 300ft. Satellite GPS is precise down to about 3 meters if it can see 4+ satelites but it depends on weather and buildings around.

 

That said, I've had some of the first gen USB GPS stuff, a Nokia N95, and every iPhone I've had has had GPS support. It's kind of unobvious how GPS is used unless you look into it.

 

On an iPhone "Precise Location" uses your WiFi and bluetooth as location points.

image.png.c4f93a5d3368b52b8782903771dc76fe.png

 

In most cases the actual satellite GPS is probably not being used until you are outside of a city when it can see 5 of them. Like the Nokia N95 required being able to see 5 to lock on, but only needed 3 to actually show a position on the map. The USB receiver that came with Microsoft Steets and Maps from like, 2004 was a 3" device that you stick to your windshield, and could see around 12 IIRC.

 

it uses less power to rely on the radios that are already turned on for other reasons.

 

All GPS does is, in an over-simplification, is send the time and it's orbital information and the "gps device" in your computer/phone gets several of these to figure out the coordinates from the deltas in the time from the constellation position.

 

The same with using A-GPS from Cellular towers, and WiFi/Bluetooth.  If you've ever gone "war driving" back when WiFI was new, you could figure out where a WiFi access point was from about 1000m away if there was nothing obstructing it. So in that case it uses the signal strength.

 

bro ok thx but this is resolved

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690778
Share on other sites

Link to post
Share on other sites

2 hours ago, Kisai said:

GPS is broadcasting from 24 for satellites in Medium Earth Orbit (MEO.) GLONASS and Galileo also do.

 

Your device never connects to them, it only receives data. Your phone only needs to be able to see 3 of them to find it's 2D coordinates, and needs 4 to get a 3D location. But you must have a clear view of the sky.

 

What your Cell phone actually has is A-GPS, which is done with cell phone towers but is only precise down to about 100 meters or 300ft. Satellite GPS is precise down to about 3 meters if it can see 4+ satelites but it depends on weather and buildings around.

 

That said, I've had some of the first gen USB GPS stuff, a Nokia N95, and every iPhone I've had has had GPS support. It's kind of unobvious how GPS is used unless you look into it.

 

On an iPhone "Precise Location" uses your WiFi and bluetooth as location points.

image.png.c4f93a5d3368b52b8782903771dc76fe.png

 

In most cases the actual satellite GPS is probably not being used until you are outside of a city when it can see 5 of them. Like the Nokia N95 required being able to see 5 to lock on, but only needed 3 to actually show a position on the map. The USB receiver that came with Microsoft Steets and Maps from like, 2004 was a 3" device that you stick to your windshield, and could see around 12 IIRC.

 

it uses less power to rely on the radios that are already turned on for other reasons.

 

All GPS does is, in an over-simplification, is send the time and it's orbital information and the "gps device" in your computer/phone gets several of these to figure out the coordinates from the deltas in the time from the constellation position.

 

The same with using A-GPS from Cellular towers, and WiFi/Bluetooth.  If you've ever gone "war driving" back when WiFI was new, you could figure out where a WiFi access point was from about 1000m away if there was nothing obstructing it. So in that case it uses the signal strength.

 

And then we can start talking about RTK 😁

mITX is awesome! I regret nothing (apart from when picking parts or have to do maintainance *cough*cough*)

Link to comment
https://linustechtips.com/topic/1606503-how-does-gps-even-work/#findComment-16690956
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×