Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect distance #73

Open
lakshmanpasala opened this issue Mar 31, 2017 · 2 comments
Open

Incorrect distance #73

lakshmanpasala opened this issue Mar 31, 2017 · 2 comments
Labels

Comments

@lakshmanpasala
Copy link

I am using Kontakt beacons for testing and have changed the txPower to -69 as that is the default values for Kontakt.
But for beacons that are placed at 5m the my values range from 11-45m with a median of 18m.
Interestingly the closer the beacon is from the device the more accurate my values are for the distance.

Is there a way to get correct distances for beacons placed at about 5-10m?

@pwittchen
Copy link
Owner

Hi,

Thanks for reporting that issue. I've seen the similar problem. I think it may be related to the hardware. As you noticed, when the device is close to the beacon, distance is calculated correctly. Maybe it requires a separate calculation formula for longer distances? You can check, how it behaves with official SDK provided by the Kontakt. If official SDK also returns incorrect values, you can report it to the support of the Kontakt company.
Exact formula for calculating distance is here: https://github.com/pwittchen/ReactiveBeacons/blob/RxJava1.x/library/src/main/java/com/github/pwittchen/reactivebeacons/library/Beacon.java#L72

Regards,
Piotr

@lakshmanpasala
Copy link
Author

The issue was not with the formula but rather the device and environment noise. Since my use case was indoor navigation, I had account for the noise in the RSSI values using Kalman Filter and some other statistical models and then use the formula to get distance. This at least ensured that even though the values were not accurate but they were relatively correct while dealing with multiple beacons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants