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

How to increase data rate via bluetooth low energy communication?

I have a bike trainer (Tacx Neo 2T) that supports bluetooth communication and I am reading some information such as speed of the bike via the bluetooth. To read the information, I am using a python library (Bleak) and there is a GATT server with…
Meysam
  • 11
  • 1
1
vote
0 answers

react-native-ble-manager, not getting any indications in connected device

Am using this library for connecting and communicating with a Bluetooth device such as bulb, headset. Am able to connect to a headset and play audio on certain event like a specific socket event. Till this all is good. But when I try to connect to a…
1
vote
1 answer

java.lang.SecurityException: Need android.permission.BLUETOOTH_SCAN permission for android.content.AttributionSource

I have been trying to build an Android App with the capability of connecting to a bluetooth device called ESP32 on BLE mode. I have found some posts helping me in these regards but I also have to debug lots of stuff. I ask runtime permissions on…
1
vote
1 answer

Web bluetooth DOMException: GATT Error: Not supported

I am trying to receive data from my ESP32 via the Web Bluetooth API. The device can connect to the webpage but after starting to listen to notifications I get the following error: DOMException: GATT Error: Not supported There is another thread…
BLB
  • 23
  • 1
  • 6
1
vote
1 answer

Send Battery Level notifications to nRF Connect app when battery level reaches certain level

I am new to BLE and I need help with Battery Service notifications. I am using nrf52840dk, nrf sdk 17.1.0 and I am using ble_app_proximity example which already uses Battery Service. I need to send a pop up notification from device to nRF Connect…
1
vote
1 answer

How to Connect GATT Server in Xamarin iOS

In Xamarin Forms, I want to know how the GATT server works with BLE for iOS. Anyone can help how to connect GATT server with iOS.
1
vote
1 answer

Bluetooth GATT: Set value and flag field correct

i have some problems by understanding the flag field in Bluetooth characteristics. For example the heart rate measurement characteristic: And its flags: According to my understanding, the first part of the value must contain the flags. For example…
1
vote
1 answer

Fatal Exception: java.lang.SecurityException Need android.permission.BLUETOOTH_CONNECT permission for android 12

fun connect(address: String?): Boolean { if (mBluetoothAdapter == null || address == null) { return false } try { if(BluetoothAdapter.checkBluetoothAddress(address)) { device = mBluetoothAdapter?.getRemoteDevice(address) } else…
1
vote
0 answers

How to only allow paired devices to connect?

I'm having a hard time understanding why a Bluetooth connection is able to be made without either pairing or trusting a device. I'm using bluetoothctl and and can connect two devices without pairing them first by using "Scan on" on the central side…
ascode
  • 13
  • 3
1
vote
0 answers

Send first message from peripherals to centrals in android

I have successfully establish a connection and normally I can able to communicate between each other but in my case I need to send a message to the centrals when in onConnectionStateChange callback newState is…
1
vote
0 answers

Bluetooth notify gatt characteristic losing data

I am receiving a large amount of real-time data from a BTLE device using a notify GATT Characteristic. We're definitely reaching the bandwidth limits of the protocol, the device is capable of sending approx 1.2Mbps. The problem: I am seeing a lot of…
Ryan_S
  • 304
  • 3
  • 10
1
vote
1 answer

Bluetooth gatt server accept connection with some validations

I am working on a Bluetooth-based application. GATT Server and Gatt Client, The above communication is working fine, I am not having an issue with it. The problem is I am getting a connection from an unknown device, I want to allow connection from…
Ashvin solanki
  • 4,802
  • 3
  • 25
  • 65
1
vote
0 answers

Bluetooth Low Energy (BLE) Bluetooth Address Randomisation

I am planning to code an application that has the capability of scanning advertising beacons around me and complete a BLE handshake with these beacons. (Basically central and peripheral functions). However, I need the device's bdaddress (Bluetooth…
1
vote
1 answer

ESP32 Bluetooth Pairing To Phone

I am trying to make it so that my ESP32 board can detect my phone when I approach it based on RSSI. However, the ESP32 cannot see the phone unless the phone is in discovery mode, which is not super useful. To solve this, I was hoping to pair my…
1
vote
2 answers

Can I sniff a BLE communication between my multimeter and my smartphone?

I am currently trying to manipulate a multimeter (Zoyi ZT-5BQ) using an Arduino board, but I don't know the protocol that uses my multimeter to change the reading mode (in example, from ohmeter to termometer). I have tried to pair my AT-09 module to…