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
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
  • 11,012
  • 8
  • 42
  • 64
14
votes
3 answers

iOS Bluetooth dual-mode; connect BLE (GATT) to an already connected BR/EDR (A2DP/HFP) stereo headset simultaneously

I'm developing a stereo headset with Bluetooth using the classic profiles (HFP, A2DP, AVRCP) as one would expect Ina stereo headset. However, I want to deploy a remote control app for iOS, and use it simultaneously to the other classic links, but…
13
votes
6 answers

got error while download gattlib via pip3

I use Ubuntu 16.04 64bit OS when I run $ sudo pip3 install gattlib I got this error message /usr/bin/ld: cannot find -lboost_python-py34 collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-g++' failed with…
seok hyun Ko
  • 131
  • 1
  • 1
  • 5
13
votes
3 answers

BluetoothGattServer cancelConnection does not cancel the connection

I have Android application which exposes BLE Server. I connect with BluetoothGattServer#connect. It works - my app gets call to BluetoothGattServerCallback#onConnectionStateChange with STATE_CONNECTED. When I'm done with the client I try to…
13
votes
2 answers

BLuetooth Gatt Callback not working with new API for Lollipop

I currently have a method which writes to the BLE devices to beep it. My Bluetooth Callback goes as follows : ReadCharacteristic rc = new ReadCharacteristic(context, ds.getMacAddress(), serviceUUID, UUID.fromString(myUUID), "") { …
13
votes
3 answers

Bluetooth Low Energy: Use BlueZ stack as a peripheral (with custom services and characteristics)

I am trying to use the BlueZ stack on a Linux machine to create a GATT server with custom services and characteristics. The final goal is to use any central device (e.g. iOS or Android device) to connect to the GATT server, discover the services and…
Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72
12
votes
1 answer

GATT profile and UART service

I am new to developing a mobile app with bluetooth connection to peripheral device. I searched that GATT is the relevant profile used for bluetoothLE communication but our client recommended that we use UART service. Now I am confused as to 1. how…
Samra
  • 1,815
  • 4
  • 35
  • 71
12
votes
2 answers

Android How to read BLE properties Readable Writable Notifiable GATT Characteristics

How to read BluetoothGattCharacteristic properties like is characteristic Readable, Writable or Notifiable.
AZ_
  • 21,688
  • 25
  • 143
  • 191
11
votes
1 answer

BLE gatttool cannot connect even though device is discoverable with hcitool lescan

I'm running RPi with a USB Bluetooth dongle. When I use hcitool, I can discover the SmartTag device. But when I use gatttool, I cannot connect. It says "Host is down (112)". Here are my commands: $ sudo hcitool lescan LE Scan ... BC:6A:29:AB:DE:2B…
user3788217
  • 111
  • 1
  • 2
  • 5
10
votes
1 answer

BluetoothGatt: negotiating new MTU succeeds but new size cannot be used (3 bytes difference)

I'm working on an app that exchange data between devices using BLE. In order to get better performance, after connecting two devices I'm negotiating to increase the MTU in order to exchange bigger data packages over BLE. Once the BluetoothDevice is…
Omer
  • 5,470
  • 8
  • 39
  • 64
10
votes
1 answer

Android, How can I make BLE device to paired device (bonded)

Before GATT, createRfcommSocketToServiceRecord, createInsecureRfcommSocketToServiceRecord methods can make paired device, but GATT has no option about paired device, only use BluetoothDevice.connectGatt(...) I want to make a paired device if it's…
user3563211
  • 101
  • 1
  • 1
  • 3
9
votes
2 answers

Schemes for streaming data with BLE GATT characteristics

The GATT architecture of BLE lends itself to small fixed pieces of data (20 bytes max per characteristic). But in some cases, you end up wanting to “stream” some arbitrary length of data, that is greater than 20 bytes. For example, a firmware…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
9
votes
3 answers

Android BLE - Connecting to multiple devices at once

I am developing an Android Application that connects to a BLE Device and reads the Gatt Services and Gatt Characteristics. I used the BluetoothLeGatt sample project from the Android Development Site as my reference. So far, I am able to…
Razgriz
  • 7,179
  • 17
  • 78
  • 150
9
votes
0 answers

Bluetooth LE For Java SE

I am looking for a Java Library that supports Bluetooth LE connections, specifically GATT and if I am lucky Apple's new iBeacon Protocol. It needs to be able to broadcast itself and if possible be able to initiate a connection. I have seen BlueCove…
Daniel
  • 541
  • 2
  • 5
  • 16
8
votes
1 answer

Is there a list with Bluetooth GATT Services and their description?

I'm looking for a list of Bluetooth GATT Services with a short description of each. I'm developing a BLE Android App and have to choose the best service.
lila
  • 81
  • 1
  • 3
1
2
3
37 38