Bridouille / android-beacon-scanner

A simple android iBeacon, AltBeacon, Eddystone and RuuviTag beacon scanner
https://play.google.com/store/apps/details?id=com.bridou_n.beaconscanner
330 stars 108 forks source link

Distance Calculation #6

Closed 1stmetro closed 7 years ago

1stmetro commented 7 years ago

The distance calculation appears to be way off, can you point me in the right direction where the calculation code is located ?

lakshmanpasala commented 7 years ago

The RSSI values vary a lot depending on the environment. For closer distances the computed values shouldn't be way off but as you go further away the computed values are known to be way off. I'd suggest you use Kalman Filter to normalize the RSSI values and then compute the distance.

1stmetro commented 7 years ago

I have over a hundred ibeacons to index so I will be looking to sort the list on major and minor but thanks for your answer on rssi

Bridouille commented 7 years ago

Hi! The distance is calculated by the library alt-beacon: Have a read here (assigned here)

lakshmanpasala commented 7 years ago

Just a word of caution, do not depend on BLEs and the distance computed for indoor navigation if that is what your use case is.