2

I am currently working on a program that utilizes RSSI to determine location based on signal strength. Does anybody know where a working java example is of trilateration? I couldn't find any online.

The program will basically need to take in 3 distances, which are the distances derived from the RSSI's and then the latitude and longitude of the three points and then determine the user's location using 2 dimensional trilateration (I'm ignoring the height of each beacon for now).

I saw a Python one on here, but I don't know Python well enough to understand it.

Levon
  • 138,105
  • 33
  • 200
  • 191
johns4ta
  • 886
  • 2
  • 12
  • 38
  • 3
    Does this help? http://code.google.com/p/talking-points-3/source/browse/trunk/WifiPosition/src/TalkingPoint/thejoo/Trilateration.java?r=109 – Girish Rao Jun 12 '12 at 13:41
  • That is the current code that I based mine off of but there appears to be problems when two or three beacons are extremely close together or when they are co-linear. – johns4ta Jun 12 '12 at 13:43
  • Girish, I ended up using your link and found a way to account for when beacons are coplanar. Thanks for the response though. – johns4ta Jun 13 '12 at 14:22
  • @GirishRao: +1 for your link :) – Amol M Kulkarni Oct 30 '13 at 06:42
  • @GirishRao, I want to ask you if the rssi value used in the code you provided is in db? – Amit0191 Mar 14 '15 at 19:50

1 Answers1

3

For future reference for anybody with the same problem.

I just used the link Girish provided. http://code.google.com/p/talking-points-3/source/browse/trunk/WifiPosition/src/TalkingPoint/thejoo/Trilateration.java?r=109

but be aware you have to account for when coordinates are coplanar as this isn't accounted for in the code.

johns4ta
  • 886
  • 2
  • 12
  • 38