Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 使用BT classic模拟BLE广播角色?_Android_Bluetooth Lowenergy_Altbeacon - Fatal编程技术网

Android 使用BT classic模拟BLE广播角色?

Android 使用BT classic模拟BLE广播角色?,android,bluetooth-lowenergy,altbeacon,Android,Bluetooth Lowenergy,Altbeacon,据我所知,目前只有少数安卓设备拥有支持可编程外围模式的芯片组。对于我的应用程序,我希望我的设备能起到灯塔的作用,但我不关心功耗。有没有可能使用常规的BT广播广告数据,以便附近以中央模式运行BLE的手机能够“听到”该广告?是的,有可能使用Android棒棒糖。查看Android 5.0 API中的蓝牙低能量部分: 是的,安卓棒棒糖是可能的。查看Android 5.0 API中的蓝牙低能量部分: 这不应该起作用,因为蓝牙低能量模式的工作原理与“旧”BR/EDR模式大不相同。由于BLE使用不同的通

据我所知,目前只有少数安卓设备拥有支持可编程外围模式的芯片组。对于我的应用程序,我希望我的设备能起到灯塔的作用,但我不关心功耗。有没有可能使用常规的BT广播广告数据,以便附近以中央模式运行BLE的手机能够“听到”该广告?

是的,有可能使用Android棒棒糖。查看Android 5.0 API中的蓝牙低能量部分:


是的,安卓棒棒糖是可能的。查看Android 5.0 API中的蓝牙低能量部分:


这不应该起作用,因为蓝牙低能量模式的工作原理与“旧”BR/EDR模式大不相同。由于BLE使用不同的通道映射和协议,物理层甚至会发生变化


如果您能够以非常非常低的级别(即固件)访问Bluetooth 2.1控制器,通过大量工作,您可能会成功地在正确的频率上发布广告。不过,这只是猜测。

这不应该起作用,因为蓝牙低能量模式与“旧”BR/EDR模式相比有很大不同。由于BLE使用不同的通道映射和协议,物理层甚至会发生变化


如果您能够以非常非常低的级别(即固件)访问Bluetooth 2.1控制器,通过大量工作,您可能会成功地在正确的频率上发布广告。不过这只是猜测。

我认为这只是开始一个BLE广告的标准方式,据我所知,目前很少有芯片组支持这一点。根据我最初的问题,我想知道是否有一种方法可以使用BT classic发送广告(当然没有低能耗的好处)。我认为这只是开始一个BLE广告的标准方法,而且据我所知,目前很少有芯片组支持这一点。根据我最初的问题,我想知道是否有一种方法可以使用BT classic发送广告(当然没有低能耗的好处)。
BluetoothManager bluetoothManager = (BluetoothManager) 
getSystemService(Context.BLUETOOTH_SERVICE);
BluetoothAdapter myBluetoothAdapter = bluetoothManager.getAdapter();
BluetoothLeAdvertiser myBluetoothLeAdvertiser =  myBluetoothAdapter.getBluetoothLeAdvertiser ();
myBluetoothLeAdvertiser.startAdvertising (AdvertiseSettings settings, AdvertiseData advertiseData, AdvertiseCallback callback);