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
2
votes
1 answer
I want to know when and where onClientConnParamsChanged() appears in the log
I developed an app that uses ble.
I was using Eclipse as a development tool.
My "app that uses ble" is installed on my smartphone.
And I connected my smartphone and pc to usb.
Then on my smartphone, I launched the "app that uses ble" that I…

전철우
- 51
- 4
2
votes
1 answer
Bluetoothctl or gatttool for BLE notifications from multiple devices
I have read many questions on the topic but found no information on how to best (or if it is even possible) to receive notifications from more than 1 device at a time using any library or API (preferably command line or Python library).
After…

Luis
- 31
- 1
- 6
2
votes
2 answers
Music Player via BLE
I'm building an Android music player that is controlled by messages received via BLE. My application is working fine on API 4.4(18) but it crashes in 8.1(27) possibly due to bad thread handling. Here is my Scan Activity and Music Player Activity as…

Andreas Parlatas
- 41
- 4
2
votes
1 answer
What will be the MAC address for same type of BLE devices , different or same in android?
I have a BLE device with mac address 88:5B:0F:07:E7:70 (as I'm getting in android app). In my app I'm scanning devices with a specific type(In my case BLE lock), but there can be multiple type of devices in environment, but I have to scan only for…

Nirmal Prajapat
- 1,735
- 1
- 12
- 23
2
votes
1 answer
Android: how to get the timestamp related to a measured characteristic of a BLE heart rate GATT service?
I'm doing as the guide says and all work perfectly fine. I can discover the heart rate service from the GATT server and then get all the updates from the heart rate characteristic samples.
However, is there a characteristic to get the timestamp…

user3290180
- 4,260
- 9
- 42
- 77
2
votes
1 answer
Android BLE peripheral disconnects with status code BLE_HCI_INSTANT_PASSED(0x28)
My application is able to connect to the BLE peripheral(which is an OBDII/J1939 device) device successfully.
2018-01-24 14:58:38,413 INFO LogUtil - GATT Server Status = (0) : BLE_HCI_STATUS_CODE_SUCCESS(0x00)
2018-01-24 14:58:38,414 INFO …

Ravi Sharma
- 873
- 7
- 24
2
votes
0 answers
Can't connect to gatt server
I'm developing an app that would simulate a Smart Home through BLE technology.
I created an app client and an app server for a lighting service and they worked very fine.
But when I tried to merge the two apps into only one, the client part can't…

euros
- 21
- 2
2
votes
0 answers
Not Able to read the Glucose Measurement Characterist on Android BLE
I am developing an app to read glucose measurements from a BLE device which has the Glucose service enable. However i am not being able to read the measurements already taken, the on onCharacteristicChanged callback is never called. My code snippet…

Alex
- 21
- 1
1
vote
1 answer
Android BLE on Xiaomi T11 completely broken behaviour
Im currently trying to figure out why some Android devices have problem with our Bluetooth Low Energy app.
Working with this I am running the same codebase&app on my Samsung S22 and Xiaomi T11 or OnePlus Nord2.
Its a simple Bluetooth Low Energy app…

Robertko
- 21
- 3
1
vote
1 answer
Android BLE GATT disconnection taking longer time and hence Re-connection fails or get stuck in BluetoothSocket.connect()
Hi am working on Android BLE, with GATT connections.
As Android is responsible for creating the bonding and we do not call createBond().
The problem what i am facing is with few Android 12 devices, where the Pairing and connection is happening…

Rishabh Gupta
- 113
- 1
- 9
1
vote
0 answers
Why does the Bluetooth state automatically change when advertising and starting a Gatt server in Android?
I am working on One application that needs to Advertise itself and start a Gatt server at the same time. But somehow when I tried to do that device's Bluetooth state gets changed by itself.
I am unsing device
Samsung m32
Andriod 12
private val…

Niral Bhavsar
- 21
- 2
1
vote
2 answers
Is there standard of using ble write requests to control notification from peripheral?
I am replicating an iOS exclusive app for a ble device to Android. The device has a notify and write custom gatt service.
I understood the meaning of some data, but I have no clue to the rest. From the part I understood, in order to get data, an app…

chungchung
- 85
- 1
- 6
1
vote
0 answers
How do I make my FLUTTER app collect data from an ergometer exercise machine that uses FTMS Bluetooth connectivity?
my friends. I am working on a graduation project and would like your help, please.
One of the functionalities is to connect the exercise machine via Bluetooth to the app (this part is already done). When the machine is connected to the app, the user…

Gustavo Fonsêca
- 11
- 2
1
vote
0 answers
How to handle multiple bluetooth connections in python on raspberry pi?
I have a raspberry pi 4. I am already able to communicate to one other device with the ble python backend "bleak". Here you can see come code snippets of this communication.
async def run(address, loop):
async with BleakClient(address, loop=loop)…

Michael
- 13
- 3
1
vote
0 answers
Android BluetoothGatt discover services not discovering updated services after services changed in paired device
I am building a Flutter application which uses bluetooth to communicate with STM32 Microcontroller (device). There are two binaries using BLE stack in microcontrollers with different Gatt profile.
Normal (application) binary with different services…

zainhassan
- 1,684
- 6
- 12