Range of oscillatory networks

I am new to iBeacon, but I spent a day trying to get information and a working Android app with iBeacon.

I came across samples of the Android iBeacon Library and gave it a try. I used the last aar file (0.7.3) and basically copied / pasted my examples into a new project. I created a beacon using an iPad with AirLocate (compiled from Apple code from Dev Center) and run the code.

My problem is the range fluctuating all the time without logic. For example, a phone (in this case, Nexus 5, the original rum, unchanged), located at a distance of half a meter from the iPad, gives me the following measures:

  • 0.01M
  • 0.03 M
  • 0.07 M
  • 0.48m
  • 0.01M
  • 0.02m

and etc.

iPad AirLocate, . .

Nexus 7 2013 (Original rom, ), . , Wi-Fi , , . Radius Networks Play Store: iBeacon Locate

, - ? -, , ? , , ?

. .

+4
1

, , , Android Bluetooth LE. , Android.

iOS CoreLocation, iBeacon Android - , .

Android iBeacon , iOS CoreLocation, iOS CoreLocation . , . Android iBeacon 10- 80- (, 10- .) :

protected static double calculateAccuracy(int txPower, double rssi) {
  if (rssi == 0) {
    return -1.0; // if we cannot determine accuracy, return -1.
  }

  double ratio = rssi*1.0/txPower;
  if (ratio < 1.0) {
    return Math.pow(ratio,10);
  }
  else {
    double accuracy =  (0.89976)*Math.pow(ratio,7.7095) + 0.111;    
    return accuracy;
  }
}   

Android API Bluetooth LE . iOS . iBeacon Android bluetooth 1,1 , , 1,1 . , iBeacon, 30 ( iOS-, iBeacons), iOS 300 10 , Android 9. , Android. , .

Android, , . , . , .

+12

Source: https://habr.com/ru/post/1523566/


All Articles