bluetooth-lowenergy

Android: Limit of simultaneous BLE connections

我们两清 提交于 2020-01-10 03:01:13
问题 we are developing an Android app which can connect to multiple heart rate sensors simultaneoulsy via Bluetooth Low Energy. We have an implementation which is working quite well, so the code is not the problem. What drives us crazy is the limitation of parallel BLE-connections which seems to be different from device to device. We have a few test devices here: Motorola MotoE and MotoG, a Samsung Galaxy Tab A and an HTC Nexus 9. All of them are running Android 5 or 6, original vendor versions.

Android: Limit of simultaneous BLE connections

半腔热情 提交于 2020-01-10 03:01:07
问题 we are developing an Android app which can connect to multiple heart rate sensors simultaneoulsy via Bluetooth Low Energy. We have an implementation which is working quite well, so the code is not the problem. What drives us crazy is the limitation of parallel BLE-connections which seems to be different from device to device. We have a few test devices here: Motorola MotoE and MotoG, a Samsung Galaxy Tab A and an HTC Nexus 9. All of them are running Android 5 or 6, original vendor versions.

How to change BLE pin programmatically

孤街醉人 提交于 2020-01-07 14:40:35
问题 Can we change passkey (4 digit pin) in Bluetooth Low Energy? How to change it programmatically ? FYI : I using sensortag cc2650 and https://github.com/don/cordova-plugin-ble-central 回答1: No, it's generated by the internal bluetooth stack. By the way it is 6 digits, not 4. You shouldn't change it anyway since it should be a randomly generated code. The standard says: If the IO capabilities of a device are DisplayOnly or if Table 2.8 defines that the device displays the passkey, then that

How to change BLE pin programmatically

你。 提交于 2020-01-07 14:39:04
问题 Can we change passkey (4 digit pin) in Bluetooth Low Energy? How to change it programmatically ? FYI : I using sensortag cc2650 and https://github.com/don/cordova-plugin-ble-central 回答1: No, it's generated by the internal bluetooth stack. By the way it is 6 digits, not 4. You shouldn't change it anyway since it should be a randomly generated code. The standard says: If the IO capabilities of a device are DisplayOnly or if Table 2.8 defines that the device displays the passkey, then that

How to identify a device found via bluetooth using BLE for iOS

白昼怎懂夜的黑 提交于 2020-01-07 05:04:10
问题 I am writing an app for checking attendance on a classroom via bluetooth. It works just fine so far, I have been testing with my Macbook, iPad, Apple TV. And I get their name, such as: "Eduardo's iPad, Apple TV, Eduardo's Macbook". The problem is that yesterday I tested it on a mall, and all I got was a bunch of "unnamed" devices. That's going to be a problem on the classroom as well. I am also getting an id, but I don't know how to identify that id on the iOS or Android device, this are the

BLE android notifications read

牧云@^-^@ 提交于 2020-01-07 04:41:11
问题 I'm experiencing an android application on Android Studio. I'm actually able to enable and receive notifications or characteristics reads without problem. Where I'm a bit stuck it's when I read characteristics (by button) if notifications are enable. In my application the data from characteristics reading is right on a case and the notification's data on an other case. But when I read characteristics when notifications are enable, sometimes data exchange their places. I tried to put a global

No eddystone service in Radius beacons?

与世无争的帅哥 提交于 2020-01-07 02:52:31
问题 I am building an android app and I am trying to read the available services of my Radius Networks Radbeacon. I have clicked the beacon so that it comes to connectible mode. The available services are the following: BluetoothGatt: onGetService() - Device=0C:F3:EE:04:2B:57 UUID=00001800-0000-1000-8000-00805f9b34fb BluetoothGatt: onGetService() - Device=0C:F3:EE:04:2B:57 UUID=f0cec428-2ebb-47ab-a753-0ce09e9fe64b ..and no Eddystone service (a3c87500-8ed3-4bdf-8a39-a01bebede295) , even though it

Android L Developer Preview packages missing?

雨燕双飞 提交于 2020-01-07 02:29:10
问题 I'm trying to use the Android L Developer Preview SDK, specifically the Bluetooth Low Energy classes. I set compileSdkVersion 'android-L' , minSdkVersion 'L' , and targetSdkVersion 'L' . I can see the L platform SDK under "External Libraries", but when I go to see what is inside the android.jar, the android.bluetooth.le package is missing. Thus, I cannot use any of the Bluetooth LE classes such as BluetoothLeScanner and ScanCallback. Does anyone know how to fix this? 回答1: I would guess this

BLE Scanning: callback gets invoked only once on “Huawei Ascend Mate2 Phone”

对着背影说爱祢 提交于 2020-01-06 15:46:45
问题 I have a working BLE scanning app that has been working fine for last few months on Nexus 5 (on various API versions from 4.4 to 6.0 ). Today we ran the app on different device "Huawei Ascend Mate2" that has API 22 and found what I thought was an interesting or peculiar behavior: callback gets fired continuously (about thrice a second), but my iBeacon is detected in only one callback and in remaining callbacks it picks other devices in the house (like netgear router and roku etc; I donot know

com.polidea.rxandroidble2.exceptions.BleCharacteristicNotFoundException: Characteristic not found with UUID

ⅰ亾dé卋堺 提交于 2020-01-06 08:29:20
问题 I'm trying to read an unsolicited data stream from my Bluetooth device. The data should appear as a byte array. Unfortunately, the UUID I'm supplying doesn't seem to be the correct one. What could be going wrong? val stringDeviceUUID = rxBleDevice.bluetoothDevice.uuids[0].toString() val charUUID = UUID.fromString(stringDeviceUUID) println("$stringDeviceUUID = $charUUID?") /* If device if it is not already connected... */ if (rxBleDevice.connectionState != RxBleConnection.RxBleConnectionState