标签: android-ibeacon

5
推荐指数
1
解决办法
2324
查看次数

如何使用AltBeacon获得更快的测距响应?

我目前正在使用BEACONinside的BLE信标开发一个展示应用程序.我已将我的应用程序设置为我的两个信标范围(因此有2 Region秒).这工作正常,我收到所有的回调和我需要的所有信标信息.

我正在监控报告的距离并注意到它不会立即更新距离值,而是逐渐更新.每次回调都会让我看到报告的距离缓慢下降,即使我跑向信标.这意味着,即使有一个(用于测试)非常低的扫描间隔,我到达了信标,仍然需要等待十秒钟才能报告距离以反映接近度.

这是否有原因,我可以调整设置以立即更新吗?

我的场景只是放置在不同点的两个信标,我想在接近它们时触发一个动作.因此,使用范围而不是监控将是方法,对吗?目前我比较了最后三次测量,看看我是否更接近灯塔.

谢谢!

android bluetooth-lowenergy ibeacon-android android-ibeacon altbeacon

4
推荐指数
1
解决办法
2190
查看次数

使用altBeacon库在Android中不显示所有信标

我正在使用AltBEacon Android库为Android设备开发iBeacon应用程序.我正在扫描信标,但是,只发现了四个信标中的两个(有时是1/4).

我增加到mBeaconManager.setForegroundScanPeriod(5000l);5秒,但结果仍然相同.我不确定CustomAdapter我用于查看绑定详细信息是错误还是问题与移动设备有关(我使用的是Galaxy Note II - Android 4.4.2(KitKat))?谁能找到我的错误?

另一个问题是从设备到信标的距离计算返回不正确(当我距离大约0.5米时它返回到3-6米之间)

我究竟做错了什么?

注意:我已经检查了Beacon的UUID,Major,Minors是否有任何错误.我增加了扫描时间.这些都没有奏效.

这是开始监视和测距的片段:

public class FragmentScanBeacons extends Fragment implements BeaconConsumer{

    public static Region mRegion = new Region("Server", Identifier.parse("Here is my UUID"), null, null);
    private BeaconManager mBeaconManager;

    private BeaconBaseAdapter beaconBaseAdapter;

    private ListView beaconsListLv;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBeaconManager = BeaconManager.getInstanceForApplication(getActivity());

        //BEACON PARSER
        mBeaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));
        //mBeaconManager.debug = true;
        beaconBaseAdapter = new BeaconBaseAdapter(getActivity());
    }

    @Override
    public View …
Run Code Online (Sandbox Code Playgroud)

android baseadapter ibeacon-android android-ibeacon altbeacon

4
推荐指数
1
解决办法
4270
查看次数

当getBluetoothLeAdvertiser返回一个对象时,为什么isMultipleAdvertisementSupported()返回false?

我正试图在我的设备上玩BLE传输.

这是我使用的代码和输出:

// check BLE support
Log.i(TAG, "BLE supported: " + getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)); // true

// check BLE transmission support
final BluetoothManager bluetoothManager =
        (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
BluetoothAdapter mBluetoothAdapter = bluetoothManager.getAdapter();

Log.i(TAG, "isMultipleAdvertisementSupported: " + mBluetoothAdapter.isMultipleAdvertisementSupported()); // false
Log.i(TAG, "isOffloadedFilteringSupported: " + mBluetoothAdapter.isOffloadedFilteringSupported()); // false
Log.i(TAG, "isOffloadedScanBatchingSupported: " + mBluetoothAdapter.isOffloadedScanBatchingSupported()); // false

BluetoothLeAdvertiser mBluetoothLeAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser();
Log.i(TAG, mBluetoothLeAdvertiser.toString()); //android.bluetooth.le.BluetoothLeAdvertiser@1c51f789

// check BLE transmission support
// android-beacon-library, https://github.com/AltBeacon/android-beacon-library
int result = BeaconTransmitter.checkTransmissionSupported(getApplicationContext());
Log.i(TAG, "ABL checkTransmissionSupported: " + result); // 0
Run Code Online (Sandbox Code Playgroud)

我无法理解为什么mBluetoothLeAdvertiser不是 …

android sony ibeacon-android android-ibeacon android-ble

4
推荐指数
1
解决办法
3653
查看次数

如何在一个区域添加多个信标?

根据Estimote:

在一个地区可以包含多少个信标几乎没有限制(技术上,它超过40亿).

我们如何在一个区域中添加多个信标进行监控?

我们创建一个这样的区域:

UUID ESTIMOTE_PROXIMITY_UUID = UUID.fromString("B9407F30-F5F8-4568-AFF9-25556B57FE6D");
Region ALL_ESTIMOTE_BEACONS = new Region("regionId", ESTIMOTE_PROXIMITY_UUID, null, null);
Run Code Online (Sandbox Code Playgroud)

android ibeacon-android estimote android-ibeacon

4
推荐指数
1
解决办法
463
查看次数

Android 4.4 设备可以充当 iBeacon 吗?

另一个问题回答中,我看到“您也可以在有根的 Android 4.4.3 设备上作为信标传输,但它需要安装有系统权限的应用程序。”

如何才能做到这一点?

android bluetooth-lowenergy android-bluetooth ibeacon android-ibeacon

3
推荐指数
1
解决办法
911
查看次数

Altbeacon 停止在 Android10 上工作并且 didEnterRegion 根本没有被调用

Android 10 上的altbeacon已停止工作。是否需要进行任何更改,特别是要转到 Android 10?

我已将以下权限添加到我的 AndroidManifest.xml

<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>
<uses-permission android:name=\"android.permission.BLUETOOTH\"/>
<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>
<uses-permission android:name=\"android.permission.ACCESS_BACKGROUND_LOCATION\"/>
<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\" />
<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>
Run Code Online (Sandbox Code Playgroud)

查看应用程序权限,我的应用程序在运行时具有位置和BT权限。我开始onBeaconServiceConnect按照https://altbeacon.github.io/android-beacon-library/samples.html 的规定寻找信标。我错过了什么?

ibeacon android-ibeacon altbeacon kontakt.io android-10.0

3
推荐指数
1
解决办法
958
查看次数

确定信标的距离精度

我有几个关于Radius网络Beacon的问题.

  1. 我们怎样才能获得Android设备和信标之间的准确距离?到目前为止,我们通过"android-beacon-library"的距离是波动的.
  2. 我们如何限制信标的传输半径,比如允许信标仅传输5米或20厘米?

请找到各种设备(Moto g,Nexus 5,Nexus 4和iPhone 5s)的信标距离读数图像

android proximity ibeacon ibeacon-android android-ibeacon

1
推荐指数
1
解决办法
3174
查看次数

未调用onBeaconServiceConnect

和以前一样,我使用Android Beacon Library,

它已经工作了,我可以通过BLE找到信标 - 蓝牙低功耗,

但是现在,在更新到最新版本的库之后,现在方法onBeaconServiceConnect()不再运行了.

请告诉我我需要做些什么来使其工作,

谢谢,

p/s:代码:

的Manifest.xml

<uses-feature
    android:name="android.hardware.bluetooth_le"
    android:required="true" />

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.INTERNET" />

<service
        android:name="org.altbeacon.beacon.service.BeaconService"
        android:enabled="true"
        android:isolatedProcess="false"
        android:label="beacon" />
<service
        android:name="org.altbeacon.beacon.BeaconIntentProcessor"
        android:enabled="true" />
Run Code Online (Sandbox Code Playgroud)

Java的

public class FoundBeaconFragment extends Fragment
    implements BeaconConsumer {

@Override
public boolean bindService(Intent intent, ServiceConnection serviceConnection, int i) {
    return false;
}

@Override
public Context getApplicationContext() {
    return getActivity();
}

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, …
Run Code Online (Sandbox Code Playgroud)

android bluetooth ibeacon ibeacon-android android-ibeacon

1
推荐指数
1
解决办法
3137
查看次数

Altbeacon Library示例似乎在后台不起作用

我在Github repo上使用了Altbeacon(Radio Network)提供的基本示例应用程序.

一切似乎都适用于我的iBeacon,Monitoring直到Ranging前景

我已经完成了以下步骤,以使其在Foreground中运行.

public class BeaconReferenceApplication extends Application implements BootstrapNotifier, RangeNotifier
{

private static final String TAG = "BeaconReferenceApplication";
private BeaconManager mBeaconManager;
private Region mAllBeaconsRegion;
private BackgroundPowerSaver mBackgroundPowerSaver;
private RegionBootstrap mRegionBootstrap;
private BackgroundPowerSaver backgroundPowerSaver;

@Override
public void onCreate()
{
    mAllBeaconsRegion = new Region(getPackageName(), null, null, null);

    mBeaconManager = BeaconManager.getInstanceForApplication(this);
    mBackgroundPowerSaver = new BackgroundPowerSaver(this);
    mRegionBootstrap = new RegionBootstrap(this, mAllBeaconsRegion);
    mBeaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));
    backgroundPowerSaver = new BackgroundPowerSaver(this);
}

@Override
public void didRangeBeaconsInRegion(Collection<Beacon> arg0, …
Run Code Online (Sandbox Code Playgroud)

android ibeacon ibeacon-android android-ibeacon altbeacon

0
推荐指数
1
解决办法
3099
查看次数