Questions tagged [gatt]

GATT: Generic Attribute Profile

Provides profile discovery and description services for Bluetooth Low Energy protocol. It defines how a set of ATT attributes are grouped together to form services.

See Bluetooth Profile

556 questions
4
votes
2 answers

Android Peripheral BluetoothGattServerCallback onServiceAdded() not getting called

So I have a simple Peripheral application that I am coding in Android Studio running on my Samsung S8 mobile phone. I can setup all my BLE Advertisements and Characteristics just fine but when I add my services. I am not seeing expected results…
kem
  • 41
  • 3
4
votes
0 answers

iOS Core Bluetooth not working on Bluetooth 5.0 Devices (iPhone X, iPhone 8, iPhone 8 Plus)

I'm working on BLE, my code run perfectly on bluetooth 4.2 devices (iPhone SE, iPhone 6, iPhone 6 Plus, iPhone 7). When I switch to on Bluetooth 5.0 devices(iPhone X, iPhone 8 Plus), my code will stop at didDiscoverPeripheral function, will not get…
4
votes
2 answers

iOS - How to discover unadvertised services on a BLE peripheral

I got this Nordic nRF52 BLE peripheral which doesn't advertise its services. I'm able to connect to it, but can't discover services on iOS. Since I know the service UUIDs, I've tried to pass them to the discoverServices function. But this does not…
ya man
  • 443
  • 1
  • 10
  • 15
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
4
votes
2 answers

Gatt cache in Android 6.0.1

I have inherited an Android App that reads a characteristic then closes the connection. For versions 4 and 5 of Android Gatt caches the services and characteristics and on subsequent connections uses the cache. This is good for my application…
BillBob
  • 67
  • 4
4
votes
0 answers

Microsoft Band 2 - BLE Protocol (communication without SDK)

I'm developing a custom desktop application that requires more flexibility then what the current SDK for Microsoft Band is offering (only MS Windows OS, no win32 API, Windows 10 UWP applications are too limiting in background tasks, ecc..). I just…
mattewre
  • 91
  • 2
  • 6
4
votes
1 answer

Android Using BluetoothGattServer

For an application I have need for an android device to be both a Ble Gatt peripheral and server to accept both incoming and send outgoing messages; however, it seems I cannot find much information pertaining to setting up and maintaining the server…
kdgwill
  • 2,129
  • 4
  • 29
  • 46
4
votes
1 answer

Qt 5.7 QBluetooth LE GATT Server Example with Raspberry Pi 3 and BlueZ 5.39

I am trying to run the Qt 5.7 beta QBluetooth GATT Server example ( https://doc-snapshots.qt.io/qt5-dev/qtbluetooth-heartrate-server-example.html ) on a Raspberry Pi 3 with it's integrated Broadcom Bluetooth chip. Bluetooth works great on my Pi 3…
PhilBot
  • 748
  • 18
  • 85
  • 173
4
votes
0 answers

It's slow to get disconnect signal form BluetoothGatt

I connected to a ble device. Then I reseted the ble device. I got a disconnect callback after 8 second at last. Can I reduce the time to get disconnect callback ?
tiny sunlight
  • 6,231
  • 3
  • 21
  • 42
4
votes
1 answer

Forcefully turning off BLE device connected to Android app fires onConnectionStateChange with status 8

I have an Android app that uses the BLE API to connect to a BLE device. If I connect to the device and then turn off the power of the device after a few seconds I get this line in the logcat: 11-15 12:33:07.977…
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
4
votes
3 answers

Enabling Bluetooth characteristic Notification in Android (Bluetooth Low Energy ) Not Working

If we call setCharacteristicNotification on a character, not giving Remote Notification on value Change? How to enable the remote Notification on a Central Device in Bluetooth LE ?
sreekumar
  • 2,439
  • 1
  • 21
  • 27
4
votes
1 answer

BluetoothGatt showing 10,000 identical characteristics for service

I've got a problem that I'm completely flummoxed about, mostly because of how persistent it is. I was writing a small Android app to communicate with my Bluegiga BLE113. I've connected to this device before, but I'd recently made a GATT modification…
SJoshi
  • 1,866
  • 24
  • 47
4
votes
3 answers

BluetoothDevice.ConnectGatt() with transport parameter

I just started with Android and set up an API 21 project in Android Studio using Bluetooth LE. Digging into BluetoothDevice shows me two signatures of ConnectGatt() method: public BluetoothGatt connectGatt(Context context, boolean autoConnect, …
Christian W
  • 88
  • 1
  • 9
4
votes
1 answer

What GATT services use multiple characteristics with the same UUID?

The Bluetooth v4.0 specification says: A service may have multiple characteristic definitions with the same Characteristic UUID. [1] Are there any GATT services that have multiple characteristics with the same UUID? What is the use case for…
Martijn Thé
  • 4,674
  • 3
  • 29
  • 42
4
votes
1 answer

samsung ble api cannot get notification from multiple GATT characteristics

I am developing an app on Samsung ACE3 to connect Bluetooth Low Energy device. Since Samsung do not want ACE3 to upgrade to Android 4.3, I need to use Samsung ble api. Currently, connection, reading data, sending data and getting notification from…
skyin
  • 558
  • 5
  • 18