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

How do callback methods for GATT services in bluez look like?

When adding a GATT Service using BlueZ (using 'gatt_service_add()') you can specify various callback methods for ATTRIB_READ, ATTRIB_WRITE, etc. There is an example for 'reading' the characteristics already given: static uint8_t…
geri-m
  • 665
  • 2
  • 11
  • 23
3
votes
3 answers

Android Bluetooth LE error : Failed to register callback

I am in the process of writing an Android application that will connect to a health device over Bluetooth LE. However, it seems as though I am not connecting to its GATT server properly. Every few seconds, my log file shows this: 03-27 11:33:39.821:…
jgriner91
  • 51
  • 1
  • 5
3
votes
1 answer

Android Bluetooth Low Energy (BLE) API Not Ready for Prime Time

I am working on a fitness app that is to supports two BLE sensors (heart rate, stride). I ended up with two bounded services (one for each sensor) called and bounded by my main activity. This is running on Nexus 7 II, with KitKat. I have spent…
Jason Porter
  • 461
  • 1
  • 4
  • 8
3
votes
0 answers

IOS Bluetooth Low Energy Generic Access Profile

I'm working on a iOS bluetooth LE app. The app scans for peripherals and read/write with LE. I was searching for tutorials/examples about GATT and GAP (Generic Access Profile). I wasn't able to find any beginners materials. I hope there any one can…
Qutayba
  • 197
  • 9
2
votes
1 answer

How to send BLE characteristic notification if value len > MTU size?

I have an Android GATT server with the following code: // Data length = 24 bytes void onNewData(GattServerDelegate gattServer, byte[] data) { // data = 24 bytes characteristic.setValue(data); // MTU = 23 …
Thijs
  • 714
  • 9
  • 23
2
votes
0 answers

Can't see BlueetoothLE devices

I'm working on BluetoothLE, I want to see the devices around me in a list with their names, and I want to see the properties, services and characters of a device, but I can't see these devices even though the bluetooth of my phone and headset is…
orcunor
  • 61
  • 7
2
votes
1 answer

Bluetooth GATT send data to BLE device

how can I send Data to BLE device. I already Connected to ble device but don't know how to send and receive data Via Gatt Callback.
2
votes
0 answers

Disabled bluetooth cache. But the app still getting wrong data?

Previously we had an issue: if there is a change of characteristics in the new build of our firmware, then the app will get the wrong data. By saying changed characteristics, it can be an added or removed characteristic, or adding notification to an…
user1556331
  • 345
  • 2
  • 12
2
votes
0 answers

Android BluetoothGattServer hangs - client cannot read/write characteristics

I'm developing a project that consists of a BLE GATT server ran on Android phone (using BluetoothGattServer Java class) and a BLE client on an IoT board. The concept of using the phone as the server is to somehow protect the IoT board from attacking…
Todor Simeonov
  • 806
  • 1
  • 6
  • 11
2
votes
1 answer

How to modify the BLE gatt server profile

I need to create a ble custom profile for my peripheral server in Linux and C code. I tried to modify existing time profile under /bluez_source_code/profiles/time folder. I have modified UUID number (added custom UUID number in the uuid16_table…
2
votes
1 answer

Zephyr BLE: Can a GATT Client connect to multiple GATT Servers

My question is very brief - In the Zephyr documentation, I couldn't find an answer to my question (which surprised me). Is it possible for a GATT Client to connect to more than one GATT Server? Right now I am using two boards to compute something…
Robert
  • 165
  • 10
2
votes
1 answer

Zephyr OS: General BLE API

I am trying to write a little Zephyr OS runtime system that uses BLE to communicate between my two nrf52840dk boards. I have spent the past couple of days reading up on BLE and have gotten acquainted with GATT servers/clients. The API I would…
Robert
  • 165
  • 10
2
votes
3 answers

Is Bonding required for BLE <-> Android, iOS device communication?

We have a BLE device and android/ios app for communication with the device. The requirement is to have an android/ios app connect to the device without any pairing request. No security is required on the device. Hereafter a few questions around…
2
votes
1 answer

Bluetooth GATT service uuid overview

I'm thinking about to implement a couple of GATT services for a custom app, but I'm stuck right now in the research. I know that the service uuids are not random, some parts are well defined, others are still confusing me. E.g. The Device…
rekire
  • 47,260
  • 30
  • 167
  • 264
2
votes
1 answer

How to Mimic nRF Connect (for Android) Actions to Pygatt Script?

I'm using nRF Connect for Android to test a BLE peripheral. The peripheral is a BSX Insight residual muscle oxygen monitor whose software application is no longer functional or supported by the manufacturer. Thus, my only option to use my device…