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
0
votes
0 answers
Service start on boot and don't killed after Activity onDestroy()
I want to start a service when device is booted. I found BOOT_COMPLETED intent filter. I also want the service running all the time, if the application call onDestroy(), the service is always running.
Resume of my goal:
MainActivity <->…

user1400390
- 77
- 1
- 5
0
votes
1 answer
Can I enable PC to support GATT server (peripheral) role?
I tested BluetoothAdapter adapter = await BluetoothAdapter.GetDefaultAsync();
and found out that IsPeripheralRoleSupported = false.
I tested on both desktop and laptop, which are both Windows10(1903), but had no luck.
Is there any way I can enable…

Jess
- 51
- 7
0
votes
1 answer
How can I get my Bluetooth Devices Service UUID? Swift
I'm trying to make a basic connection with a bluetooth body weight scale that I own.
The problem is that I am unable to find the UUID in order to connect to the device.
I've reached out to the manufacture to see if they could provide the UUID,…

Casey Smith
- 13
- 2
- 7
0
votes
1 answer
Android characteristic.getValue empty array
Sometimes, if a GATT notification occurs, and I try to get the characteristic value through characteristic.getValue() multiple times, the call suddenly starts to return an empty array.
That mostly happens on the first notification in that…

Daniel D.
- 178
- 2
- 15
0
votes
1 answer
Bluetoothctl GATT mysterious output byte
I use bluetoothctl (a Linux command line tool based on BlueZ) to read a BLE GATT heart rate sensor (I select the heart rate measurement attribute then use "notify on").
In the previous bluetoothctl version, here was an output sample:
[CHG] Attribute…

Arinelle
- 3
- 2
0
votes
0 answers
BluetoothGATTSetDescriptorValue returns E_ABORT
I can only successfully connect to my device when it says "Connected" in Windows Bluetooth Menu, which happens only for a brief second after pairing, otherwise when the device says "Paired" I get an error when writing to the descriptor or…

karamazovbros
- 950
- 1
- 11
- 40
0
votes
0 answers
Application keep crashing when GATT service is connected
I tried to develop an app which will detect a BLE module and connect to the GATT services when module is selected. I can discover the BLE module and select it to connect to the GATT services. But as soon as the state changes from Connecting to…

Android Potato
- 1
- 3
0
votes
0 answers
Bluetooth Low Energy (BLE) GATT: How to expose a list?
Suppose we have a BLE GATT server which can be triggered to execute a search. The search yields a list (e.g. of device names). The list can be (way) longer than 512 bytes, so the result cannot be stored in
a single characteristic.
What is the…

DrP3pp3r
- 803
- 9
- 33
0
votes
1 answer
RxAndroidBle2 sometimes loses notification with ble sensor when pairing
I created my own bluetooth service that manages ble sensors. I am having troubles when I try to pair new sensors. It connects successfully but when rxandroidble calls setCharacteristicNotification() and it returns true after less than one second it…

Dennis
- 372
- 1
- 2
- 17
0
votes
1 answer
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 (server) is set up.
Characteristic build
fun…

giozh
- 9,868
- 30
- 102
- 183
0
votes
2 answers
How to find handles corresponding to different UUIDs of BLE devices
Using gattool, I am able to find the UUIDs correspoing to the handles of my smartwatch as follows:
Device: MAC address
Name: MS1020
Alias: MS1020
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile …

user3236841
- 1,088
- 1
- 15
- 39
0
votes
1 answer
Movesense CustomGATT and ECG or Accelerometer
There have been a few posts on this issue without any solutions announced.
Wanting to access internal movesense sensor data (ECG, Acc…) but without using the Android or iOS platforms ( as suggested by a movesense presentation…

BillyFS2
- 11
- 4
0
votes
1 answer
How to detect bluetooth changes (connection state and characteristic) when app is in background without a foreground service
I have a device that is a simple BLE device with a button, and I need to detect when the user long presses the device (via characteristic change) even when the app is in the background.
This click will trigger a remote call the server.
I have two…

Bruno Oliveira
- 255
- 1
- 8
0
votes
0 answers
windows ble interface - HCI_VS_MSFT_LE_Monitor_Advertisement examples?
In the Microsoft Bluetooth DOCs, I see these HCI commands that can be sent to the BLE stack
SEE:…

user3696153
- 568
- 5
- 15
0
votes
1 answer
BLE Connection getting lost after app is closed
I'm developing native BLE android app where I need to constantly remain connected with BLE device. Along with BLE, I also need to track GPS all the time until user doesn't logout. Here are my concerns
Can we keep multiple service in foreground? In…

moDev
- 5,248
- 4
- 33
- 63