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
2
votes
1 answer

Cannot establish BLE connection between Android 5 and BLE device

I'm stuck with implementing connection between Android Lollipop smartphone and BLE device (TI experimenter board with BLE module). I use following call to connect: device.connectGatt(context, true, mGattCallback); I've managed to establish…
mol
  • 2,607
  • 4
  • 21
  • 40
2
votes
0 answers

changing gatt disconnection timeout

I am wondering if there is a way to change the gatt ble device disconnect timeout to something faster. The current timeout puts the detection of timeout roughly around 20 seconds. The code below is what is being triggered from the timeout. …
btelman96
  • 413
  • 4
  • 11
2
votes
3 answers

How can I set the BLE connection timeout of gatttool on Raspberry Pi?

I connect to a bluetooth le peripheral with the following command: gatttool -t random -b xx:xx:xx:xx:xx:xx -I and connect If the given MAC-address exists, I have no problem. If the given MAC-Address does not exist, the gatttool trys to connect…
Steff
  • 51
  • 1
  • 5
2
votes
1 answer

How to set Android BLE BluetoothGattCallback to have state BluetoothProfile.STATE_CONNECTING?

I'm writing a BLE app for an open source pedometer and I have it working great so far with one annoying problem: in the BluetoothGattCallback void method "onConnectionStateChange" in the BLE service, the parameter "int newState" can only be one of…
Tunji_D
  • 3,677
  • 3
  • 27
  • 35
2
votes
2 answers

Get value of BLE characteristic in GATT Android

I am Trying to read the characteristics and get its value using the following code private byte[] val; mBluetoothLeService.readCharacteristic(characteristic);// reads it val=characteristic.getValue(); String s=new String(val); My app crashes…
2
votes
0 answers

Bluetooth Low Energy Push Mode

With the release of Android L, I'm making an application that will utilize BLE in both modes. Some phones will be in the peripheral mode (i.e. GATT Servers), other phones will be in the central mode (i.e. GATT Clients). Exactly how each phone…
ahjohnston25
  • 1,915
  • 15
  • 36
2
votes
1 answer

Why does BluetoothManager.OpenGattServer() always return null on my Nexus 7?

I'm trying to get this tutorial working for my Nexus 7 (2012) running cyanogenMod (so it has BT LE) using BluetoothGattServer Android APis- http://www.jayconsystems.com/tutorial/android_ble_nrf8002/ However, setting up the GattServer is not working…
Kiran
  • 383
  • 2
  • 13
2
votes
1 answer

Use the Bluetooth LE Proximity Profile PXP with Bluez (5.17)

I want to run a BLE Profile called "Proximity Profile" or PXP on a Linux machine with bluez-5.17 installed. PXP is, if i understand correctly, a collection of three ble services: Link Loss Service Immediate Alert Service Tx Power Service What i…
Rob Anderson
  • 2,377
  • 3
  • 22
  • 31
2
votes
1 answer

Can't read Gatt characteristic (gatt error 15)

I'm trying to read a characteristic right after gatt connected and services discovered successfully. But receives error 15 (0x0f, GATT_INSUFFICIENT_ENCRYPTION) and then 137 (0x0089) in onCharacteristicRead gatt callback. After this error gatt…
Konstantin Konopko
  • 5,229
  • 4
  • 36
  • 62
2
votes
1 answer

How to get Disconnect Event from GATT Server on Bluez/Linux

Environment: Bluez 5.14, Linux 3.1, USB Plugable BLE radio, TI BLE keyfob (CC2541 dev kit) Linux Device <---hci----> USB BLE Radio We enabled key press events on TI keyfob using gatttool and started to listen for events gatttool -b [hardware ID]…
SC-SL
  • 377
  • 3
  • 19
2
votes
2 answers

BLE GattServices

I'm developing an application that tries to connect my smartphone to a BLE device with Gatt (it can be either a smartphone or a BLE device) and read just a piece of data. This data will dynamically change and I want to keep this data as the value of…
parliament
  • 371
  • 1
  • 5
  • 18
2
votes
3 answers

UUID of Alert Notification Profile - ANP (in GATT), in Bluetooth Low Energy

I am working with Alert Notification Profile (ANP) in Bluetooth Low Energy between Samsung Galaxy S3 and peripheral device. I can not find any information related to specific UUID's ANP at Android Developer Site. But in ANCS Specifications (iOS…
Huy Tower
  • 7,769
  • 16
  • 61
  • 86
2
votes
2 answers

Core Bluetooth unable to discover peripheral

I am working with hardware that is in the process of being developed. The board uses a TI CC2541 as the bluetooth chip. Prior to a test the board is discoverable by two devices and I am able to connect to the board and perform a test where I write…
stackOverFlew
  • 1,479
  • 2
  • 31
  • 58
2
votes
2 answers

GATT Profile for a BLE device (server) that switches on/off a LED

Not sure if to posted this on SO. I'm looking at pretty simple BLE Device. It has a two LEDS (to simplify) that can be switched on or off. While browsing the GATT profiles, i can't find which profile i should use. Most of them send something back…
Roger
  • 7,535
  • 5
  • 41
  • 63
1
vote
0 answers

How to indicate Service Changed with ESP32 BLE with Arduino Framework

I'm developing a firmware using ESP32 and Arduino Framework. I'm using BLE with the "official" library, this device will be connected to a smartphone. There is a peculiarity, I already done everything but there is a problem I add a new Service…