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
8
votes
0 answers

get char value handle in windows

In linux we have the tool gatttool to query bluetooth low energy devices. If we run gatttool --device=[MAC] --characteristics we get a list of characteristics that the corresponding device has. Example output: handle = 0x0002, char properties =…
Peter
  • 37,042
  • 39
  • 142
  • 198
8
votes
4 answers

BLE subscribe to notification using gatttool or bluepy

I am writing a program using bluepy that listen for a characteristic sent by a bluetooth device. I can also use any library or language, the only constraint is to run on Linux and not in mobile environment (it seems is widely used only in mobile…
Alexander.It
  • 187
  • 1
  • 1
  • 16
7
votes
0 answers

ios CoreBluetooth connectionEventDidOccur not being called

I have a peripheral device which supports A2DP profile and gatt over BR/EDR. Various gatt services are registered in the sdp record for bluetooth classic. I have developed an Android app to communicate with it successfully as follows : //here scan…
Tiger Wang
  • 119
  • 9
7
votes
1 answer

Status is GATT_FAILURE in onConnectionStateChange after many reconnections

I'm connecting to ble device by: mBluetoothGatt = device.connectGatt(this.context, false, mGattCallback); and than mBluetoothGatt.disconnect(); but if I'm doing it quickly then I receive status=BluetoothGatt.GATT_FAILURE in…
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
7
votes
1 answer

Maximum no. of BLE Connection using BlueZ

Q1. Is there a connection limit for BLE Central Device while connecting to BLE peripherals using BlueZ 5.34? My question is for general connection capabilities using BlueZ not white list. Q2. If the no. of connection depends on the controller. Is…
swaroop
  • 93
  • 1
  • 10
7
votes
2 answers

BLE with Android 5.0 : How to get a device to act as Central AND Server?

I'm using two Android 5.0 devices to communicate through Bluetooth Low Energy and I wan't : Device 1 to act as Central and Server. Device 2 to act as Peripheral and Client. This is the behavior I'd like to achieve : 1) Device 2 starts…
Thomas W
  • 273
  • 2
  • 15
7
votes
1 answer

Android BLE BluetoothGatt object remains connected and triggers onCharacteristicChanged() even after a call to disconnect()

I am trying to disconnect characteristic notifications as I am exiting my app. Here is how I am doing it in my exitCleanup() function: if (btGatt != null && mWriteChar != null) { boolean b=btGatt.setCharacteristicNotification(mWriteChar, false); …
Temperage
  • 711
  • 1
  • 8
  • 17
7
votes
4 answers

Bluetooth Low Energy in C - using Bluez to create a GATT server

I'm attempting to use GATT on my Linux box to set up a custom service with a load of characteristics. Using this question, and the ones it links to, I was able to identify the code that I would need to write (making use of the gatt_service_add()…
Alex
  • 1,082
  • 3
  • 12
  • 23
7
votes
0 answers

Android BLE API: Autoconnect does not work for every device?

I have two peripheral devices, say device1 & device2 and one Android device for central role. Android can connect to both by BluetoothDevice.connectGatt() method with autoConnect = false. Problem is - While autoConnect functionalities work well for…
6
votes
1 answer

Cycling speed and cadence sensor's BLE Gatt characteristic data parsing and operation

We have identified the wheel and crank sensor Gatt characteristic measurement data which we have got in our application as per the split ups in the link below. "…
6
votes
3 answers

I want to identify the BLE wheel and crank sensor data from the 11-bytes data from a mobile application we have developed

I want to identify the wheel and crank sensor data from the 11-bytes data. I have tried to parse the 11-bytes hex data which i got in our mobile application as per the split ups in the link…
6
votes
1 answer

BLE connection is always calling to a disconnected action (GATT profile)

I establish a BLE connection to send data between devices (each 10 seconds aproximately they makes a new connection, send data, and then desconnect) and normally works fine. However, after some minutes, the devices never connect again and the…
adlagar
  • 877
  • 10
  • 31
6
votes
1 answer

Advertise Bluetooth LE Service using HCITool

I'm experimenting with creating a Bluetooth Low Energy Peripheral on my Linux computer (The goal is to send data over Bluetooth From an iPhone). Im currently using the Tools hciconfig, hcitool and hcidump. My current experiment is to advertise a…
Joakim
  • 3,224
  • 3
  • 29
  • 53
6
votes
1 answer

Android Bluetooth not discovering the characteristic after changing UUID

I am using Android 5.0.1 Lollipop and developing Bluetooth Low Energy server-client communication. I have Samsung Galaxy s4. I have three characteristic in my Custom Service. I made one of the characteristic's property as write-only and encrypted…
ulusoyca
  • 841
  • 9
  • 18
6
votes
1 answer

Linux BlueZ dbus communication

I work with BlueZ 5.30 and kernel 3.13.0-32 and I need to implement in my app read/write characteristics functionality via DBus. I'm using BlueZ test scripts to established connection: "test-discovery", and then "test-device connect". the problem is…
Marcin Joppek
  • 61
  • 1
  • 2
1 2
3
37 38