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

How can I use hci command to setup my Linux laptop as a BLE peripheral to advertise service with specified UUID?

I need to setup my Linux laptop as a BLE peripheral to advertise service with specified device name and service UUID. I can achieve this with the following set of commands, sudo hciconfig 0 reset sudo hcitool -i hci0 cmd 0x08 0x0008 15 02 01 1a 11…
kuang
  • 309
  • 1
  • 11
2
votes
1 answer

Using BLE - Read GATT characteristics

I'm trying to read GATT characteristic values from a Bluetooth LE device (a Heart Rate bracelet). Its specs are: Services Characteristics I have not yet figured out how to "read" the specifications and "translate" them into code. I need to show on…
eldivino87
  • 1,425
  • 1
  • 17
  • 30
2
votes
2 answers

How to write the Characteristics into BLE GATT server in android?

I am working on Bluetooth low energy GATT to communicate with the chip. I can able to read the response from chip but i could not able to send the characteristics into that chip and also notify some characteristics. Can any only help. Thanks in…
Shine
  • 309
  • 3
  • 13
2
votes
0 answers

Will Bluez 4.101 work with Bluetooth Low Energy?

I have an embedded linux device I am attempting to set up a bluetooth stack on. I am using the TI CC2564b dual mode bluetooth chip. Of course, Bluez is the first choice for embedded linux. The problem is that most of what I am seeing out there for…
wfb0002
  • 66
  • 7
2
votes
1 answer

Android BLE - Connecting to multiple devices seem to fail and GATT Response is the same for both connections?

I am developing an Android Application that connects to a BLE Device and reads the specific GATT Characteristics and Services that I need to check. I used the BluetoothLeGATT example from the Android Dev site as my reference. I can connect to a…
Razgriz
  • 7,179
  • 17
  • 78
  • 150
2
votes
1 answer

Multiple writeDescriptor() calls fail on Android 5.1

I have an application which communicates with a Bluetooth Low Energy Glucometer. Currently my application is working OK on Android 4.4.4, but fails on 5.1.1 Debugging I've found that the writeDescriptor() method fails when executed more than…
2
votes
0 answers

GATT Service not found: Issue with gatt_discover_primary()

I'm using bluez on a GATT client (laptop) and TI's SimpleBLEPeripheral code on a GATT server (TI's CC2541-based PCB). The PCB's UUID is: 0000fff0-0000-1000-8000-00805f9b34fb Using bluez, I have the following static GAttrib *attrib = NULL; ... static…
John M.
  • 2,642
  • 7
  • 26
  • 55
2
votes
1 answer

How come it is always the GATT server that exposes services?

Looking at various GATT-based profiles, it seems that services are always exposed in the GATT server rather than the GATT client. For instance, the Time Profile (TIP) has the server exposing the Current Time Service (CTS). So, if a phone is to…
John M.
  • 2,642
  • 7
  • 26
  • 55
2
votes
1 answer

BluetoothGattDescriptor is always NULL

My CLIENT_CHARACTERISTIC_CONFIG is public final static UUID CLIENT_CHARACTERISTIC_CONFIG = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"); I do this to change CHARACTERISTIC: BluetoothGatt mBluetoothGatt =…
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
2
votes
0 answers

How can i communicate between my app and a device using BLE?

I am trying to establish and test communication between my iOS app and an external device with a BLE module (TI's CC2541). I have gone through a lot of documentation on how to go about doing this and i have understood bits and pieces. My…
Jobs
  • 628
  • 7
  • 27
2
votes
0 answers

subscribe notification characteristics linux/ios

I am trying to write a simple Gatt peripheral on linux device. I am currently able to see my service thanks to btgatt-client binary. I can read/write characteristics, enable notification, etc... I am using API from src/shared/gatt-db.h from bluez5,…
ArthurLambert
  • 749
  • 1
  • 7
  • 30
2
votes
1 answer

Android - Starting a Service on Boot

I'm trying to start an Android Service on Boot that entails starting advertisements on boot which can be read by a BLE scanner. Do you know how to go about doing so? Currently, I keep getting "Unfortunately, 'myService' has stopped." Note: I am…
2
votes
1 answer

Windows 10 Bluetooth Gatt Client ValueChanged issue

I'm having an issue with Bluetooth Gatt characteristic reading at the moment. I was trying to run the code with my own custom profile thermometerCharacteristic.ValueChanged += temperatureMeasurementChanged; It causes this exception An exception of…
2
votes
1 answer

Android 5.0.2 onwards don't allow HID access through Bluetooth LE

My app is working fine, until Android 5.0.2 doesn't allow third party app to connect to HID device over Bluetooth low energy. myGatt.setCharacteristicNotification(gattChar, true); 06-01 17:39:35.356:…
amed
  • 21
  • 3
2
votes
2 answers

Android BluetoothGATT discoverServices() delivers a lot of services

After connecting to a specific ScanResult like this bluetoothGatt = scanResult.getDevice().connectGatt(getActivity(), false, new MyBluetoothGattCallback()); I call Androids BluetoothGatt.discoverServices() method and in…
deadpoint
  • 433
  • 3
  • 17