0

I am trying to read distance between android which scans for devices which advertises and iphone which act as an advertiser, using Bluetooth Low Energy ie BLE.

Now using the rssi value is there any alogorithm through which approximate distance between android and iphone can be found?

Using android.bluetooth.BluetoothAdapter.LeScanCallback's call back method onLeScan , I am not always able to scan the advertised iphone device. But always iBeacon is able to get in the scanned device list.

Thanks in Advance.

Sreehari
  • 5,621
  • 2
  • 25
  • 59

1 Answers1

1

The open source Android Beacon Library has a built in function that estimates distance. A description of the feature is here: http://altbeacon.github.io/android-beacon-library/distance-calculations.html

You can see a discussion of how this works here:

Understanding ibeacon distancing

Community
  • 1
  • 1
davidgyoung
  • 63,876
  • 14
  • 121
  • 204