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

Android BLE write byte[] including unsigned values

this question started life here here but this appears to be a red herring! So, the issue is, I have a byte array of values that need to be written to a BLE device. byte bytes[] =…
3
votes
2 answers

Read data from ble in android app continuously

I want to read data from ble hardware continuously in android app via bluetooth. Connection has done i can send data from app to ble but cant read data from ble. onCharactersticChanged method has to be called when getting some data from ble but this…
sushma1008
  • 125
  • 5
  • 14
2
votes
1 answer

How to read a BLE peripheral's model and serial number before connecting to it on Android?

The model and serial number of the BLE device I am interested in can be recognized by its company's iOS app during a Bluetooth scan. I also want my Android app to do it. The device has GATT characteristics for reading its model number string and…
2
votes
0 answers

How can I use React to display real-time data from an ESP32 device over Bluetooth?

I'm trying to build a web application using React that can communicate with an ESP32 device over Bluetooth and display real-time data. I've already set up the ESP32 to act as a Bluetooth Low Energy (BLE) peripheral device and I'm able to read and…
2
votes
0 answers

Flutter blue plus library, when trying to read a characteristics from esp32 driver getting PlatformException

here I'm trying to read a characteristics from esp32 driver and I'm getting these issues. "PlatformException(read_characteristic_error,unknown reason,may occur if readCharacteristic was called before last read finished, null, null)". here below I'm…
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
1 answer

BLE's - onCharacteristicRead not invoked on calling readCharacteristic

I'm trying to read a value from a custom characteristic in a custom service on a BLE device. I successfully call the readCharcteristic method as it returns true. However, the onCharacteristicRead callback function is never invoked. I am unable to…
2
votes
1 answer

Web Bluetooth - Windows 11 disconnection

I have a web app which uses web bluetooth api. GATT server is running on STM32 microcontroller. Web app works good on Android devices, but it keeps disconnecting on Windows 11 in a Chrome browser. I used WireShark to track BLE packets. The…
2
votes
1 answer

How to add double tap detection to sample app gatt_sensordata_app?

I am developing an Android app that gets data from Movesense using the GATT profile from the sample app GATT Sensor Data App here. I followed the tutorial available here. Building the app and getting the DFU worked fine. I can get IMU, HR and…
2
votes
1 answer

Can any BLE device be a Companion Device?

I'm developing a flutter application (fairly new to this). My app need to connect to a BLE device and get data when it is close by. As I found Android Companion Device Manage seems to suit my requirement. BLE Hardware which I'm supposed to work is…
2
votes
1 answer

Receiving ERR UNLIKELY when doing a Write With Response

I have written an application in C using Bluez that implements a peripheral (a GATT server). I managed to advertise and make my peripheral work. Reading a characteristic works fine, notifying works fine and even a Write Without Reponse works.…
2
votes
0 answers

How to reproduce bluetooth communication logged from iOS / xcode using Python?

I have a bluetooth-enabled clock from Amazon that I want to control with python (using bleak). I've connected to it without any problems and logged all the services/characteristics (see below). The clock also has a (very bad) iOS app. I've used…
zchrywht
  • 51
  • 2
2
votes
0 answers

how to wrangle dual-mode Bluetooth (BREDR and LE GATT) to the same device

I'm building a headset device which is using the Qualcomm QCC512x family. I need to be able to connect to a third party device using BREDR for the "classic" profiles - HFP/A2DP/AVRCP etc. On top of that I am implementing a GATT server to act as a…
akatz
  • 106
  • 6
2
votes
3 answers

Differentiate between Bluetooth connection to Mac or Windows/Linux device

Is it possible to check if a connected device is manufactured by Apple / runs macOS? I saw some info on the UUID might containing that information but I haven't found a way to extract that information from…
2
votes
0 answers

Exposing Android app services over Bluetooth?

Is it possible to expose some kind of custom app services/profile over Bluetooth? For example, if I have an app that provides some functionality like fun doSomething(params) fun doSomethingElse(params) would it be possible to expose this…
daneejela
  • 13,081
  • 7
  • 38
  • 50