5

I am trying to see beacons with the estimote sdk in android but with no luck!I can see all the estimote beacons but with all other beacons is not working (fobo beacons etc.) I am using the uuid for the fobo beacons inside the Region constructor and i can see in the logcat that the bluetooth can see the devices but estimode sdk is not collecting it as a beacon!Any ideas why this is happening? I m posting the code below:

 private static final String FOBO_PROXIMITY_UUID = "00158800-587d-2206-d52b-fb6d6e2f0001";
 private static final Region FOBOBEACONS = new Region("rid", FOBO_PROXIMITY_UUID , null, null);
 public void BeaconManager(){
    beaconManager = new com.estimote.sdk.BeaconManager(this);
    beaconManager.setBackgroundScanPeriod(5000, 30000);
    beaconManager.setForegroundScanPeriod(7000, 5000);



    beaconManager.setRangingListener(new com.estimote.sdk.BeaconManager.RangingListener() {

        @Override
        public void onBeaconsDiscovered(final Region arg0, final List<Beacon> arg1) {
            // TODO Auto-generated method stub
            runOnUiThread(new Runnable() {
                  @Override
                  public void run() {
                    // Note that beacons reported here are already sorted by estimated
                    // distance between device and beacon.
                      int test=0;
                      if(arg1.size()<=0){
                          Toast.makeText(MainActivity.this, "No beacon found",
                                  Toast.LENGTH_SHORT).show();
                      }else{

                          for (int i = 0; i < arg1.size(); i++) {
                              String beac=arg1.get(i).getProximityUUID();
                              Toast.makeText(MainActivity.this, "I found a beacon with UUID; "+beac,
                                      Toast.LENGTH_SHORT).show();  
                        }


                      }



                   // adapter.replaceWith(beacons);
                  }
                }); 
        }

    });
    connectToService();

}

  private void connectToService() {
    beaconManager.connect(new com.estimote.sdk.BeaconManager.ServiceReadyCallback() {
      @Override
      public void onServiceReady() {
        try {
          com.estimote.sdk.utils.L.enableDebugLogging(true);
          beaconManager.startRanging(FOBOBEACONS);

        } catch (RemoteException e) {
          Toast.makeText(MainActivity.this, "Cannot start ranging, something terrible happened",
              Toast.LENGTH_LONG).show();
        }
      }
    });
  }
sfig
  • 51
  • 1
  • 4
  • I wouldn't necessarily expect that to work. But why are you passing the ESTIMOTE_PROXIMITY_UUID to the region constructor? If you intent to look for beacons with a non-estimote UUID, I'd expect you would need to construct a region for the UUID you want to see. – Chris Stratton Apr 15 '14 at 14:23
  • sorry this was a mistake in the writing the code i corrected but the problem is not that in my code i am using the fobo uuid and is not working!Also this code is working for the estimote beacons if i use the estimote uuid or if i use no uuid(then it supose that scan for all uuids)! – sfig Apr 15 '14 at 14:28
  • Are you positive that is the FOBO UUID? Can you use another app to detect the iBeacon successfully? – davidgyoung Apr 15 '14 at 16:21
  • yes with the locate ibeacon from radio networks i can see detect the beacon and as i can see in the logcat is saying that: "Device xx:xx:xx:xx:xx (MAC ADDRESS) is not an estimode beacon". So probably the estimode sdk is not suporting other beacons! – sfig Apr 15 '14 at 21:21

2 Answers2

2

This is Wojtek Borowicz, I'm a community evangelist at Estimote. Actually, Estimote SDK does not support Beacons from other vendors - that's why you cannot detect them.

Cheers.

Wojtek Borowicz
  • 465
  • 2
  • 8
  • Thanks Wojtek, That was my thoughs beacuse of the logcat message saying : "Device xx:xx:xx:xx:xx (MAC ADDRESS) is not an estimode beacon" i think i will use radio Networks library beacuse i far i know for android there is only Estimote and radio Networks Libraries Am i wrong? Can anyone another library to suggest? – sfig Apr 16 '14 at 10:00
  • This is super annoying, I like the Estimote SDK but not working with other iBeacons is a massive deal breaker. @WojtekBorowicz are there any plans to change this? – Ben May 12 '14 at 15:28
  • @Ben Currently not. We're introducing features that are exclusive to Estimote (for example accelerometer and temperature sensor) to our SDKs and want to provide the best experience possible, so right now we're focusing on our own software and hardware. – Wojtek Borowicz May 19 '14 at 14:28
  • @WojtekBorowicz Has this changed since your SDK now allows a UUID to be specified? Or is it still locked to Estimote beacons somehow? – Ted Avery May 27 '14 at 02:07
  • We did allow for interacting with other Beacons at one point, but we do not anymore. – Wojtek Borowicz May 27 '14 at 10:59
  • Is it possible to support applications with beacon technology on android devices running on versions prior to 4.3 by disabling just that module? – Nevaeh Feb 12 '15 at 12:30
  • @Nevaeh: Android versions prior to 4.3 do not support Bluetooth Smart. – Wojtek Borowicz Feb 14 '15 at 10:14
  • Hi Wojtek, i downloaded the recent estimote sample app and also tried the demo, i am able to get other beacon information as well, so does estimote support other beacons other than estimote becons from now on ? – pallavi Jul 21 '15 at 10:47
  • Actually, the Android app shouldn't display non-Estimote Beacons. Can you send more details to wojtek[at]estimote? – Wojtek Borowicz Jul 29 '15 at 10:06
0

Maybe check this link.. not tried it yet myself but plan to at some point.

https://github.com/AlvinBert

An Android source code of iBeacon SDK. without any limit on Android. It can detect all iBeacons.

timemirror
  • 586
  • 4
  • 11
  • Interestingly, its codebase is same as the estimote android sdk. I had to manually comment out the condition for checking whether the sensed beacon is estimote beacon or not. It then starts working. – Jigish Chawda May 26 '14 at 06:53
  • can we restrict search for particular UUID ? – Prasad Nov 27 '15 at 11:00