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
1
vote
0 answers

Using Noble to communicate with BLE device

I have spent the last couple of days researching and understanding GATT to control my new adjustable bed which I can currently only control via Manufacturer's app but I want to control via my smart home setup. I am able to get characteristics which…
1
vote
0 answers

Does anyone have a working example of a GATT HID Keyboard Server using BLUEZ?

I'm using my Raspbery PI4-b with Raspian Lite distro to write a virtual keyboard using BLUEZ to create a GATT HID (HOGP) Service. I've taken the GATT sample code for a heart rate monitor service provided by BLUEZ and modified it to add Services and…
HeadHodge
  • 21
  • 2
1
vote
1 answer

Is it possible to connect and read data from OBD Bluetooth LE adapter using Android GATT interface?

I am trying to read data from a obd2 Bluetooth LE adapter. I am able to connect to the adapter (Carista). I know this because onDescriptorWrite callback is called but I never get a response after sending a command using the write characteristic…
Ali Feili
  • 61
  • 1
  • 9
1
vote
2 answers

Is it possible to have an Bluetooth SPP connection and BLE GATT connection in an android phone at the same time?

I am making application to connect an android based tablet to BLE GATT based temperature sensor and an Bluetooth SPP based printing device at the same time. Is this possible in android devices? My purpose is to read the temperature sensor to my…
C_dez
  • 11
  • 1
1
vote
1 answer

onCharacteristicChanged not being hit. Android BLE

I have an app that is using BLE connectivity with my device. Everything works from connecting to the device, discovering the services, writing the characteristic and descriptor. But for some reason, onCharacteristicChanged is not triggering. The…
1
vote
0 answers

BLE CSC Service not always detected - proper setup?

I'm building a bike cadence sensor on an Arduino that connects via Bluetooth LE to a bike computer. It is reliably detected by a Bryton bike computer but not by an iOS smartphone app from Wahoo. This suggests to me that maybe the service is not…
Christian Lindig
  • 1,216
  • 1
  • 9
  • 24
1
vote
0 answers

Bluetooth connection state problem of Arduino BLE

When connected to a Bluetooth device in android os, it is indicated in blue to check the connection status. enter image description here When I paired the Arduino device and launched the app, I connected the GATT and got the signal. But I don't know…
1
vote
1 answer

BLE Cycling Speed and Cadence Service - Crank Timing Data

A Bluetooth LE Cycling Speed and Cadence sensor sends measurements data according to the Gatt characteristic measurement data. For the crank cadence this is: Cumulative Crank Revolutions - an unsigned 16bit integer Last Crank Event Time - an…
Christian Lindig
  • 1,216
  • 1
  • 9
  • 24
1
vote
0 answers

Android BLE: readCharacteristic is not working

I have a BLE peripheral running on Raspberry Pi and I'm trying to communicate with it via Android. The goal is to read a characteristic, which is supposed to trigger a process on the peripheral side. My code is as follows: public class MainActivity…
Ariel Malka
  • 15,697
  • 6
  • 31
  • 33
1
vote
0 answers

BLE device does not make new /dev/input/eventX when it reconnects, using Python Gatt Library

I am new to python gatt module, and i am having a problem with reconnections. Basically what I am trying to do is establish a connection with a Bluetooth Low Energy (BLE) device with the python gatt module( https://github.com/getsenic/gatt-python )…
D.Bozikis
  • 11
  • 2
1
vote
0 answers

GATT-like procotol over TCP

I am searching for a protocol on top of TCP/IP that behaves like BLE GATT. The server should announce which characteristics/properties it offers and the client can read/write/subscribe to them. Also, it should be very lightweight, since it needs to…
Daniel D.
  • 178
  • 2
  • 15
1
vote
0 answers

How to make sense out of bluetooth characteristics (Cycling Speed and Cadence) data in flutter?

I am getting following output while cycling using a smart trainer which is attached to Bluetooth sensor which gives cycling speed and cadence values: flutter: [0, 23, 19, 9, 20, 20, 22, 14, 28, 24, 227, 13, 31, 22, 236, 104, 18, 29, 34, 10] flutter:…
1
vote
1 answer

Using BLE Notify characteristic characteristic to send a list of data?

I am working on a BLE interface to setup wifi on a device. I need to send a list of available networks back from the device. Should I have 10 characteristics (one for each available SSID) or just one characteristic which I send 10 notifies on. What…
jr.
  • 4,503
  • 7
  • 44
  • 62
1
vote
2 answers

Are there known issues with Samsung phones according android background services?

I am developing an Android Application with Android Studio in Java, that should do the following thing: Connect with one or multiple BLE-Devices and receive GATT-notifications of those over a long period of time (4-10h) in the background. I wrote a…
1
vote
1 answer

BLE GATT in UWP application : Problem with async functions

I'm working on UWP Application to manage a BLE / GATT device. I'm following the official documentation from Microsoft (https://learn.microsoft.com/fr-fr/windows/uwp/devices-sensors/gatt-client). But I have a problem with the async function from…
xNiux
  • 145
  • 1
  • 9