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

524 questions
71
votes
10 answers

Android BLE API: GATT Notification not received

Device used for testing: Nexus 4, Android 4.3 Connection is working fine but the onCharacteristicChangedMethod of my callback is never called. However I am registering for notifications using setCharacteristicNotification(char, true) inside…
Boni2k
  • 3,036
  • 3
  • 21
  • 23
43
votes
6 answers

Android BluetoothGatt - status 133 - register callback

First of all I read SOLVED: GATT callback fails to register and took the steps suggested in that post to solve this issue with no success. The recommended fix in there if you haven't read it is to make all BLE calls from the main thread directly or…
ck1221
  • 1,556
  • 1
  • 10
  • 17
43
votes
4 answers

Bluetooth Low Energy: listening for notifications/indications in linux

I'm trying to communicate with a BLE module through a Linux machine (the module is running a heart rate profile). So far, I've been able to do everything I need except listening for Notifications and indications (e.g. listening for the Heart Rate…
Youssif Saeed
  • 8,246
  • 4
  • 39
  • 62
36
votes
3 answers

Android Bluetooth Low Energy Pairing

How to pair a Bluetooth Low Energy(BLE) device with Android to read encrypted data. Using the information in the Android BLE page, I am able to discover the device, connect to it, discover services and read un-encrypted characteristics. When I try…
34
votes
11 answers

startLeScan with 128 bit UUIDs doesn't work on native Android BLE implementation

I am having trouble using startLeScan( new UUID[]{ MY_DESIRED_128_BIT_SERVICE_UUID }, callback ) on the new introduced BLE API of Android 4.3 on my Nexus 4. The callback just doesn't get called. I still can see incoming packages in the log: 08-02…
OneWorld
  • 16,782
  • 18
  • 79
  • 130
23
votes
2 answers

How to send data over a Bluetooth Low Energy (BLE) link?

I am able to discover, connect to bluetooth. Source Code--- Connect via bluetooth to Remote Device: //Get the device by its serial number bdDevice = mBluetoothAdapter.getRemoteDevice(blackBox); //for ble connection …
My God
  • 21,961
  • 23
  • 93
  • 166
22
votes
6 answers

Why does setCharacteristicNotification() not actually enable notifications?

The BluetoothLeGatt Android BLE example contains the following code: public void setCharacteristicNotification(BluetoothGattCharacteristic characteristic, boolean enabled) { if (mBluetoothAdapter == null…
Timmmm
  • 68,359
  • 51
  • 283
  • 367
21
votes
3 answers

Creating a Gatt Server?

I have a wider range question here, so if someone could point me to a doc or article that could explain this, that would suffice. Needless to say, a days worth of googling has gotten me nowhere, and I could use a helping hand. I am connecting to a…
Alxjrvs
  • 353
  • 1
  • 2
  • 8
19
votes
4 answers

Windows UWP connect to BLE device after discovery

I'm using BluetoothLEAdvertisementWatcher to find nearby BLE devices and it's working well. After finding them I want to connect and read/write data via GATT. But I can't figure out how to use the API after getting the BluetoothLEAdvertisement…
16
votes
3 answers

Smart Bluetooth: GATT Vs. ATT - what are the differences between them?

Can anyone please define for me what are the differences between GATT and ATT? I didn't manage to understand. I know that they are both generic protocol to handle BLE services. but didn't really understand it. Please explain. Thanks!
RRR
  • 3,421
  • 13
  • 48
  • 68
16
votes
1 answer

How to implement Bluetooth LE with Bluez in Linux

I'm working on setting up two Linux systems for a BLE demo. Obviously one system will be the peripheral and one will be the central devices. I have several questions surrounding both of these configurations. Environment 2x Ubuntu 14.04 systems 2x…
linsek
  • 3,095
  • 9
  • 38
  • 54
15
votes
3 answers

BlueZ: How to set up a GATT server from the command line

I would like to know if there is a way to set up a gatt server from the Linux command line. I know that the BlueZ gatttool command allows you to act as a gatt client and interrogate a remote gatt server, however, I do not think that this tool can be…
Youssif Saeed
  • 8,246
  • 4
  • 39
  • 62
15
votes
2 answers

Is the native Android BLE implementation synchronous in nature?

I remember reading in the "Guide and Hint"-doc to the Samsung BLE API (archived page): One of the most important concepts of the Samsung F/W and stack is its synchronous nature. That is, if we call for example, writeCharacteristic for a…
OneWorld
  • 16,782
  • 18
  • 79
  • 130
14
votes
4 answers

Android - Could not connect to bluetooth device on Lollipop

I have an application that working well on Android 4.3 and 4.4. The application will connect and communicate with a custom bluetooth device. After I flashed my Nexus 5 to Lollipop suddenly the I can't connect to the device at all. The connection…
Niko Adrianus Yuwono
  • 10,592
  • 7
  • 37
  • 61
14
votes
4 answers

How to solve the BluetoothGatt : android.os.DeadObjectException error happened in Android?

I following the page Bluetooth Low Energy for developing in Android 4.3 for Bluetooth Low Energy . I already can turn on the Bluetooth , scan the device and connect to the BLE device. But it show the BluetoothGatt : android.os.DeadObjectException…
Wun
  • 5,353
  • 8
  • 46
  • 90
1
2 3
34 35