All Questions
Tagged with android-ble bluetooth-gatt
16
questions
13
votes
4
answers
24k
views
Android BLE Gatt connection change statuses
I have an android app to connect to a BLE device and write to it. I can successfully connect, read and write to it. As a part of testing, we are trying different disconnection scenarios.
Sometimes, if ...
3
votes
1
answer
4k
views
Getting Type_Gatt_Error with status 133 while connecting to AND UA651BLE
I am trying to connect to AnD UA-651BLE blood pressure monitor and get the values in an android app. The app is able to find the device but I am getting Type_Gatt_Error in 'onConnectionStateChange'.
...
3
votes
0
answers
310
views
Android BLE DFU multiple devices update one after another...But some devices fails to update
By using nordic Dfu library (updated) I have to update firmware of devices in one go,I have mac addresses of devices which required to update, let say i have 30 devices with their mac addresses and ...
3
votes
1
answer
1k
views
Turning off Bluetooth Adapter not calling onConnectionStateChange Android 8.1.0
Turning off the bluetooth in Android system settings gives us the BluetoothGattCallback.onConnectionStateChange() call in Android < 27 (Oreo). However when I try it on my Pixel or Nexus 5X (Android ...
2
votes
1
answer
917
views
BLE's - onCharacteristicRead not invoked on calling readCharacteristic
I'm trying to read a value from a custom characteristic in a custom service on a BLE device.
I successfully call the readCharcteristic method as it returns true. However, the onCharacteristicRead ...
2
votes
1
answer
6k
views
Scanning for BLE devices on Android 8+ in the background
I'm using the following method from BLE scanner API on Android 8+
to scan for BLE Beacons
startScan(List<ScanFilter> filters, ScanSettings settings,
PendingIntent callbackIntent)
The problem ...
1
vote
1
answer
497
views
Why Android BLE gatt callback method onCharacteristicChanged callback is called in lower rate in Wear OS device than on smartphone?
I develop an application designed for Wear OS devices that received data using BLE as Gatt client. I set the mtu size the maximum possible (517 bytes), and need to transfer some large amount of data - ...
1
vote
1
answer
932
views
GATT_REQUEST_NOT_SUPPORTED any more information available?
I am writing an android app to communicate with a BLE device. The app is a recreation of an iOS version however any write request raises a GATT_REQUEST_NOT_SUPPORTED response inside ...
1
vote
0
answers
89
views
Is there any solutions available to send data from BluetoothGattServer to connected devices simultaneously?
Here is my server code:
private BluetoothGattServer mGattServer;
mBluetoothLeAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser();
GattServerCallback gattServerCallback = new GattServerCallback(...
1
vote
0
answers
571
views
BLE iOS sending data to Android gattServer peripheral:writeValue:forCharacteristic:type not working
I am trying to use android as a BLE peripheral (gatt server). I was able to get it advertising, and I can have the iOS app reeive notifications when certain characteristics are changed, but I am ...
0
votes
1
answer
596
views
BLE android read readCharacteristic
I Try to devlope android app to read from cycling sensor ,
if anyone can help plz . its connect to the sensor but cant read the characteristic.
i dont know how to read the characterestic value . its a ...
0
votes
0
answers
226
views
Android BLE onCharacteristicChanged is not called on second time
What I am trying to do:
I am building an android ble application which will connect to IOT devices and when sending command it will return with some responses.
For example when sending "STATUS&...
0
votes
0
answers
224
views
Can't read the value that comes with the GATT Service characteristic; Not sure if I setup the GATT server correctly
The BLE is advertising just fine. I can establish a connection with it but I can't read the characteristic value I set here on the initialization of GATT server.
This is the GATT Server setup
@...
0
votes
1
answer
515
views
Android ble: Unable to send large data
I'm trying to implement an app for transfer some strings between ble devices (for now one device act as central and the other one as pheripheral) but without success.
This is how my peripheral (...
0
votes
0
answers
2k
views
GATT_READ_NOT_PERMIT error when trying to use Android device as GATT server
I have an android application that has BLE GATT Server running so the android phone would be a peripheral device and other devices can connect to it.
Sometimes the connections works fine, but very ...
0
votes
3
answers
2k
views
BLE writeCharacteristic issue
I'm trying to writeCharacteristic() to a BLE device.
I used Google example app to establish the connection, the connection is fine. I can see the BLE Services and the services Characteristics.
The ...