Android Distance calculation between beacon and device?


#1

Am using estimote proximity beacon, i can get the values of beacon UUID, measuredPower, macaddress, major, minor and rssi value ,but i want to calculate distance between beacon and device. How can i solve this, can you help me.


#2

Check out Utils.computeAccuracy (:


#3

Hi, are we supposed to refer to this link ?

https://estimote.github.io/Android-SDK/JavaDocs/com/estimote/sdk/Utils.html

Is there any documentation that is friendly to beginners ?


#4

There’s an introductory Android tutorial on:

http://developer.estimote.com/android/tutorial/part-1-setting-up/

Is that more or less what you’re looking for? (:


#5

Hi,

note that with the 1.0.0 version package names have changed and now you should use com.estimote.coresdk.observation.region.RegionUtils.


#6

The value of RegionUtils.computeAccuracy is always below 1 meter even I test with larger distance between smartphone and beacon.
I am using compile 'com.estimote:sdk:1.4.1’
My distance log and corresponding beacon identifier is:
The beacon distance is: 0.06263495819771697 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.06263495819771697 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.06263495819771697 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.04043606363236757 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.03032831327615424 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.07891226719206429 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.07891226719206429 m .
1c5a9498520321b83d448906a4834a2e
The beacon distance is: 0.07891226719206429 m .
1c5a9498520321b83d448906a4834a2e