The Generic Attribute Profile (GATT) defines the way that two Bluetooth Low Energy (BTLE) devices transfer data back and forth using concepts called Services and Characteristics.
Questions tagged [bluetooth-gatt]
459 questions
5
votes
0 answers
Unable to connect to BLE device using NRF library
Can anybody provide an simple example how to connect BLE device, Read and write data using NRF library.
https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library
https://github.com/NordicSemiconductor/Android-BLE-Library
What I have…

RakeshGupta
- 61
- 4
5
votes
1 answer
Multiple BluetoothGattCharacteristic not being notified
I am working on a BLE device and am not able to get onCharacteristicChanged to ever be called. I have 8 BluetoothGattCharacteristic that I need to be subscribed to.
After I find the device onServicesDiscovered I start a process to subscribe to each…

temp_
- 1,238
- 2
- 12
- 24
5
votes
1 answer
Communication between BLE device and different android apps on same device
I'm new in Android BLE so my question may be uncorrect or naive in some way. If this is the case please explain me where I'm wrong and kindly show me the correct way to manage this scenario.
Scenario is the following: my Android app communicates…

Carlo
- 1,539
- 1
- 11
- 25
5
votes
0 answers
Looping 133 status in BluetoothGattCallback onConnectionStateChange
So I haven't been able to figure out what's causing this issue or how to work around it. I'm developing an app that stays connected to a BLE peripheral all day and collects data from sensors on the device. At times, the device will disconnect, and…

salbury
- 91
- 1
- 7
5
votes
0 answers
Read notifications when touch button in BLE device
Some days ago I have written this question: Is possible to detect touches in MiBand 2?
I discovered using Wireshark that when I pulse MiBand button, the band send a UUID code to the mobile device.
I modifed this sample…

pablogupi
- 774
- 11
- 27
4
votes
1 answer
Bluetooth Advertising Data
I was trying to understand basics of Bluetooth. I have few queries regarding the scanning and advertising of classic and low energy Bluetooth.
Is EIR data (classic Bluetooth extended inquiry response) and AD data (Bluetooth low energy scan…

Tejas Pawar
- 690
- 8
- 16
4
votes
1 answer
Issue with Scanning Specific BLE Devices
I am working on BLE and have to scan the BLE devices with specific udid.
Currently, All BLE supported devices comes as a scan result.
To avoid and scan only specific devices, what I have done is as below :
fun startScanDevices(interval: Long =…

Jaimin Modi
- 1,530
- 4
- 20
- 72
4
votes
0 answers
BLE Gatt custom services - How to notify only registered centrals (app level based)
Context
An app connects via BLE 5.0 to a device for simple configuration/to get some information of the device. (Used as a service tool)
It is not allowed to communicate with the device without some kind of registration before. Therefore, one can…

Andy
- 41
- 2
4
votes
1 answer
Can I send files over web-bluetooth?
I am currently developing an embedded system who count the number of cars and saved theirs speed and time. All these data are stored in a simple logs file (thanks to rsyslog). In parallel, I develop an web-API (in Typescript/Angular with Electron…

Rekoc
- 438
- 6
- 17
4
votes
1 answer
Receive BLE notifications > 20 bytes on Android
After establishing a connection with a CC2652 BLE Peripheral device, an Android app I'm using sends an MTU update request
requestMtu (65)
Does this update the MTU size for outgoing data(Android App) only? Or should I be able to now receive…

sdmello
- 431
- 2
- 6
- 14
4
votes
3 answers
BluetoothGattServerCallback : onCharacteristicReadRequest() called multiple times
I have a one Android Phone acting as Central Device and another Android Phone acting as Peripheral.
From Central, I'm making a request to read characteristic of Peripheral, using mBluetoothGatt.readCharacteristic ( characteristic )
Onto the…

Ritwik Jamuar
- 351
- 1
- 4
- 17
4
votes
0 answers
GATT Internal Error 129
I am using Marshmallow device to develop my BLE application. Many times I am getting status code 129 in the onServicesDiscovered() method. I have tested on 3 different devices, In all the devices I found the same issue. This is a random issue. I…

Nik
- 1,679
- 1
- 20
- 36
3
votes
0 answers
Device BLE connects and disconnects instantly intel NUC 11, ubuntu 20.04
context: I'm trying to connect a blood pressure monitor via BLE on my intel NUC 11. I have another pc, dell xps 15 where I can connect without problem (using the script below).
config (my two pcs have the same configs, see below) :
OS : ubuntu…

SollierMathieu
- 31
- 4
3
votes
1 answer
Are GATT Event notifications possible without pairing?
I've been pouring over the BT 4.x (LE) spec trying to figure out if this is possible or not (events without pairing/boding).
Does anyone have an insight (and link to the spec preferably) if it's possible?

jh125486
- 33
- 1
- 6
3
votes
1 answer
Accessing GATT Error codes instead of int
How via android I can access to GATT error codes
Instead of doing this:
override fun onConnectionStateChange(gatt: BluetoothGatt?, status: Int, newState: Int) {
super.onConnectionStateChange(gatt, status, newState)
if…

Dim
- 4,527
- 15
- 80
- 139