tags:

views:

437

answers:

4

I was thinking about making a fun project that would tell me where I am throughout my house. My idea was to put two routers in different spots of the house at the same height and then send ping requests or something and check the latency, from that it should be able to triangulate where I am in the house.

I know this would only really work if I was on the same level as the routers, but I'm wondering if this is a reliable way to actually do it. Has anyone else tried to do something like this before, or is there a better or cheaper way to accomplish finding a position of a computer?

+1  A: 

I don't think ping time would be a reliable indicator of distance. If the routers are wireless there could be other factors that change the latency between them. Maybe during certain times of day there is more electromagnetic interference in the area which would affect the latency.

As for determining distance through the internet, this also would be impossible to determine through latency as you are passing through many routers which are not under your control. Some could have a substantial load on them which would cause more latency and increase the latency (or decrease) skewing the proportions.

I don't think there really is a way to find the position of a router in 3d space.

Peter D
Very true. I was thinking of having it on just a private LAN but didn't factor in the eletromagnetic stuff or other indirect things that could affect a ping time. I've seen this in just doing small tests to one router. The time is different.
rball
Not to nerd this up too much; but if you were to perform this experiment with wireless routers within a closed network in your house (with all the appliances off,) you'd see negligible affects from interference, since your house actually approximates a "Faraday Cage." I assume the best you could do would be to approximate the topology of your network, with the most precise dimension being the distance between the routers/computers.
Jason Watts
Not to disappoint you, but latency does reveal a lot about your whereabouts. See Hopper, Vasserman, and Chan-Tin: "How Much Anonymity does Network Latency Leak?", 2009, for a nice information on how low latency anonymizer networks can be attacked by measuring latency. (And yes they are considering geo-localization too.) [http://www.cs.umn.edu/~hopper/tissec-latency-leak.pdf]
Don Johe
+1  A: 

You would probably need access to lower level information from the radio in the WiFi system.

The XO-OLPC laptop had a distance-measuring application which would tell you the distance between two XO laptops, but I never was able to try it, so it's certainly possible.

You would also need to (accurately) measure the distance between your base stations.

Cade Roux
I'll definately have to look into the XO-OLPC laptop stuff... Thanks!
rball
+2  A: 

The XO-OLPC laptops measure distance between themselves using sound instead of radio waves.

Assume your 2 routers were 1,000 feet apart and you were standing between them. It only takes 0.0000005 seconds for the radio signal to go 500 feet. I don't think your computer's clock will be accurate enough to measure that.

David
So it sounds like I'd need to use something else instead of routers, maybe just two different radio's of some type? Thanks for the info!
rball
+1  A: 

You could always use a flux capacitor.

codingguy3000