Questions tagged [bluetooth-gatt]

The Generic Attribute Profile (GATT) defines the way that two Bluetooth Low Energy (BTLE) devices transfer data back and forth using concepts called Services and Characteristics.

459 questions
3
votes
1 answer

bluetooth (bluepy) disconnects during GATT notifications

I'm just new to BLE with GATT services programming. Currently using an OH1 sensor https://developer.polar.com/wiki/H6,_H7,_H10_and_OH1_Heart_rate_sensors dev env = raspbian stretch (v4.14), bluepy (python 3.5.3) I have managed to get the…
codem
  • 283
  • 1
  • 2
  • 9
3
votes
1 answer

BluetoothGattServer is always disconnecting after 30 seconds

I've been trying to figure out how to get these phones to talk to each other via Bluetooth. I have the android phone set up as a peripheral, and I have my iPhone running the nrf connect app. I am able to advertise and connect to the Android phone…
3
votes
1 answer

Detecting the buttons on a Bluetooth Remote (HID over GATT)

I have a Bluetooth LE Remote which I would like to pair with my Raspberry Pi Zero. ] I was able to successfully pair the remote with an Android phone and it then worked like a Keyboard and I was able to type numbers on the keypad into a blank note…
Besi
  • 22,579
  • 24
  • 131
  • 223
3
votes
1 answer

How to know if BLE indicate was acknowledged in Android

We are working on a Bluetooth Low Energy communication between two Android apps. One is the peripheral/server one the central/client. The server will send an indicate to the clients if the data has changed. However, we didn't find a way to make sure…
3
votes
1 answer

Reading log data records from a BLE device

I am implementing a BLE device which stores some log data based on sensor data and a iOS app which acts a Central to access the data. I know how to read GATT characteristics data, but I wonder how to read a bunch of from the device. Is there…
akw
  • 2,090
  • 1
  • 15
  • 21
3
votes
1 answer

Getting Type_Gatt_Error with status 133 while connecting to AND UA651BLE

I am trying to connect to AnD UA-651BLE blood pressure monitor and get the values in an android app. The app is able to find the device but I am getting Type_Gatt_Error in 'onConnectionStateChange'. This is working fine for certain devices like…
3
votes
1 answer

Which GATT Profile and Services are used by OBD BLE Adapters like LELink, Automatic, Carista?

I am exploring building apps (Android & iOS) for Car OBD2 Adapters that support BLE (Bluetooth Low Energy). In order for the app to be able to work with such adapters from different vendors, I presume there would be a standard set of GATT profile…
3
votes
3 answers

Web Bluetooth API get list of all available device nearby

I am looking for an API call that could be used to retrieve all the Bluetooth devices near me. These samples Web Bluetooth talk about getting different characteristics from a single Bluetooth device, however I couldn't find any example which…
3
votes
1 answer

Bluetooth LE Gatt server characteristic value is always NULL on Tizen 3.0.0.2

I am currently doing a project that uses Samsung Galaxy Gear S3 as Bluetooth Low Energy server to build customer services. The problem is after I built the characteristic and descriptor, added them to another and to the service, registered the…
3
votes
1 answer

Turning off Bluetooth Adapter not calling onConnectionStateChange Android 8.1.0

Turning off the bluetooth in Android system settings gives us the BluetoothGattCallback.onConnectionStateChange() call in Android < 27 (Oreo). However when I try it on my Pixel or Nexus 5X (Android 8.1.0) I don't get that callback. Is there some…
3
votes
0 answers

bluetooth gatt server : how to set the appearance characteristic?

I've created a Bluetooth Gatt server on Android : I was able to implement/configure a new service (thanks to the https://github.com/androidthings/sample-bluetooth-le-gattserver), but unfortunately, I am not able to change the "appearance" of the…
Delta
  • 198
  • 7
3
votes
0 answers

How does Android detect/determine Bluetooth device type?

Questions first... 1) How does Android (pre API23) detect device type of Bluetooth devices? Apparently setting the BLE ADV flag BREDR_NOT_SUPPORTED in the dual-mode Bluetooth headset I’m trying to connect to does the trick, but at the cost of…
3
votes
1 answer

BluetoothGattCallBack function onCharacteristicRead called only once

I am trying to develop a BT application for connecting to a BLE device and read some data from it. For the device information part, I am looping through all the characteristics of the device, read the characteristic and collect returned data from…
Kshitij
  • 392
  • 2
  • 13
3
votes
1 answer

How to connect multiple BLE devices through android application?

I am working on android and BLE device connectivity. I want to connect multiple BLE devices on same time . How to achieve this ?
3
votes
2 answers

Android BLE GATT Disconnected vs. Device Disconnected

I'm working on an Android app that communicates with a custom bluetooth device. After calling BluetoothGatt.Disconnect() I am seeing that the OnConnectionStateChange callback is called, and the new state is Disconnected, however, there seems to be a…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136