Questions tagged [android-ble-library]

Android BLE library that solves a lot of Android's Bluetooth Low Energy problems

An Android library that solves a lot of Android's Bluetooth Low Energy problems. The BleManager class exposes high level API for connecting and communicating with Bluetooth LE peripherals. The API is clean and easy to read.

See https://github.com/NordicSemiconductor/Android-BLE-Library

11 questions
4
votes
1 answer

How to test BLE objects on Android?

I am learning to communicate over Bluetooth Low Energy on Android.. Here is an example app There in there source code are several Bluetooth related objects, which were final classes obviously: private BluetoothManager mBluetoothManager; private…
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
3
votes
2 answers

How to read raw data from scanned BLE device?

I am using RxAndroidBle Library for my BLE application. Like nrfConnect application I want to read RAW data from BLE device. How to read RAW data from device?
3
votes
1 answer

Android: Why is BluetoothLeScanner sometimes not discovering any BLE device?

I'm using BluetoothLeScanner to scan for BLE devices, which I start using: startScan(null, settings.getScanSettings(), scanCallback); Every once in a while, a call to startScan() does not discover any BLE device, even though some devices are…
2
votes
1 answer

BluetoothGattCharacteristic > write crashes with Android 13

I have the following code that is working perfectly on Android 12 and below, but that is crashing on Android 13 for no apparent reason. I'm implementing ObservableBleManager and calling: writeCharacteristic(characteristic, data) …
Filnik
  • 352
  • 1
  • 12
  • 33
2
votes
0 answers

Delay in Android BLE StartScan returning a match

We have developed an Android app that tracks vehicle journeys, where each vehicle has a BLE device installed that wakes up when the vehicle is started. To identify when the user is in the vehicle and when we should start tracking their journey, the…
2
votes
0 answers

Get any error code on connect failure due to max connections limit reached on Android BLE

I am connecting to a BLE device and want a specific error code that could help me determine the reason of connection failure. Scenario i want to cover is for maximum connections limit being reached. I want any specific error code or method to…
2
votes
0 answers

Bluetooth onCharacteristicWrite not invoked after Status=8 when writing to a characteristic on Android 9

I sometimes get connectionStatus=8 when writing to a characteristic Writing characteristic 03... (WRITE COMMAND) gatt.writeCharacteristic(03...) //6 seconds gap BluetoothGatt: onClientConnectionState() - status=8 clientIf=7…
Maragues
  • 37,861
  • 14
  • 95
  • 96
1
vote
1 answer

BLE scan callback not invoked on missing permission

I am using Samsung Note 8 (Android 9) and Samsung A50(Android 10). I am doing BLE scan which needs Bluetooth as well as location permissions (Android >=23). I am NOT providing the Location permission to the App before starting the BLE scan. While…
1
vote
0 answers

Android OS 9.0 , BLE 5.0 specific issue fetching list of services from BluetoothGatt

Developed the following source code for sending message from one Android device to another Android device using BLE: public static String SERVICE_STRING = "6exxxxxx-xxxx-xxxx-xxxx-xxxxxdcca9e"; public static String CHARACTERISTIC_ECHO_STRING =…
0
votes
1 answer

Is the transmission power on Bluetooth Low Energy an Android configurable?

I have a Bluetooth Low Energy Android app project here which works fine so far for most of my android smartphones. I use my BLE weather thermometer in my app anywhere within my room, it works. Except for a Huawei P30 Lite deivce: With my Huawei I…
0
votes
1 answer

Ble distance calculation using Time

Is it possible to calculate distance between BLE-BLE or Beacon-BLE device using Time(T) taken on packet received on receiver device with measured power or RSSI value? Is there any formula for that?