How do you pin point the location of a user with 3 nodes, using Triangulation?

泄露秘密 提交于 2021-02-18 19:34:25

问题


I am trying to find a user through their Bluetooth strength (RSSI value).

I have 3 Raspberry PIs, each gathering the signal strength of the user. Lets say the nodes returned:

node1 = 65
node2 = 70
node3 = 75

How would I find the user through triangulation and pin point them on a map, and output the RSSI value?

I have researched Trilateration and Ceva's Theorem but do not know how to implement them.

I am unsure on how to locate the nodes in an environment, do I give the main node a location of x=0 y=0, and what do I give the other two nodes?


回答1:


Your approach is predicated on some flimsy assumptions.

Trilateration is determining a position in space based on three (or four, if working in three dimensions) distance measurements to known locations. Triangulation is determining a position in space based on three angular (what direction is the signal coming from) measurements to known locations. The three Raspberry PI nodes are fixed in space, and you have some measurement system where your (x,y (z)) positions for each are known.

What you have are three values of signal strength in some units of power (dBm, say) and you want that to be proxy for distance to a particular receiver. The problem is, unless you are doing this in a big empty room, it isn't a particularly good proxy. RF signals bounce off of some things, develop little interference nodes, shadows, and all sorts of fun stuff. Depending on how cluttered your environment is, this can make the accuracy of your trilateration result poor, or totally worthless.

Assuming you are operating in an empty warehouse, first you have to pick some coordinate frame and make some measurements and assign locations to your nodes. Making one node zero simplifies one of your measurements, you just need to make relative measurements to the others. Make sure your X and Y axes are perpendicular.

Then you will want to generate some data that correlates RSSI with distance. That is, walk a known distance away from the node and make a note of what the RSSI number is. If you're lucky, this measurement will be the same for each of your nodes. It might not be - not all radios are created equally. Also, not all antenna radiate power uniformly in each direction. Use that data and some handwaving to approximate distances from the known node locations; from there the rest of the implementation should be straight forward geometry (as the wiki no doubt has laid out).




回答2:


As Mikeb answer states approach to locate device from signal strengths is not a good way (unless you have very many nodes and want just find closest node like Telephone Cells are located without GPS)

An alternative is to test travel time of signal

  • for that your distances or electronics must be big/fast enough to this task to meet your desired accuracy

    1. you have to have synchronized time
    2. sent timestamp packet to target device from each node (or continuous time signal)
    3. get the 3 times (one from each known node) at single time (time_of_receive) on the device
    4. send all 3+1 times to device where the position is wanted
    5. convert time differences to distance
      • bigger the time-shift longer the distance ...
      • dtime = time_received_from_node-time_of_receive
      • if you know the time of send then that is easy (dist = c * dtime) +/- environment impact on signal speed
      • if not (like on GPS) then it is more complicated and you have to search for the start time of single node from the time shift
      • it is possible from 3 nodes but the complexity of bruteforce attack is horrible so more nodes is better
      • if your data transfer channel is not synchronous (or is delayed) then the precision can be also poor for short distances
    6. when you got the 3 distances then just solve intersection of 3 spheres
      • center is node and radius is the computed distance
      • you should add some safety value to radiuses if no intersection is found due to wrongly measured time


来源:https://stackoverflow.com/questions/27069009/how-do-you-pin-point-the-location-of-a-user-with-3-nodes-using-triangulation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!