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

RxAndroidBle: BleDisconnectedException: Disconnected from MAC='XX:XX:XX:XX:XX:XX' with status 0 (GATT_SUCCESS)

I'm working on an application that uses your framework and I faced into the next issue after my phone connected with ble device after few seconds: com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from…
T_Anton_T
  • 11
  • 1
  • 4
1
vote
0 answers

Bluetooth LE - Characteristic Values only read once

I am developing a Windows app, that reads values from a characteristic. Its a very simple task, and i managed to write working code. Everything does what it should - but only on my development PC. I have written a C# class dll, using .Net 4.8, on…
1
vote
1 answer

Losing/Duplicate BLE notifications on Android

I'm trying to send "continuous" notifications from a Nordic nRF52840 (peripheral) to a Samsung S8 (central) running Android 9. I request an MTU of 247 and a Phy of 2MBPS. The characteristics being sent are 244 bytes in size and include a sequence…
1
vote
0 answers

Android OS 9.0 , BLE 5.0 specific issue fetching list of services from BluetoothGatt

Developed the following source code for sending message from one Android device to another Android device using BLE: public static String SERVICE_STRING = "6exxxxxx-xxxx-xxxx-xxxx-xxxxxdcca9e"; public static String CHARACTERISTIC_ECHO_STRING =…
1
vote
1 answer

Is it illegal to not follow bluetooth low energy standards regarding UUIDs

Can I have any 16-bit/32-bit UUID in advertisement packet for like filtering purpose? Is it mandatory to have the list of service UUID listed in advertisement packet to be available in service discovery after connection? Can I have standard GATT…
1
vote
0 answers

My BLED112 dongle doesn't list as a COM port in device manager

I am implementing a project based Bluetooth so I bought a bluetooth dongle BLED112.Normally, when I plug in to PC this dongle, I could see it as COM port in Windows or Ubuntu.But now I cannot see it as COM port.When I plug in to PC, PC detect it as…
1
vote
1 answer

Reading actual txPower of Android mobile

It is possible to find actual ble txPower of android device. So that, I can use it below Beacon builder object instead of -59 as txPower. Beacon beacon = new Beacon.Builder() .setId1("2f234454-cf6d-4a0f-adf2-f4911ba9ffa6") .setId2("1") …
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
0 answers

Not getting response of requestMtu on Huawei deices

I am working on Android BLE, i found strange behavior on Huawei(Honor 7C) devices some times i didn't get response from requestMtu mean when i call this method onMtuChanged method never triggers, this works fine on Samsung devices but on Huawei…
1
vote
3 answers

HM-10 BLE microcontroller connected without PIN

I'm using HM-10 controller to communicate with my Android App. In Arduino console I set pin with command AT+PIN112233 which should be Passkey for BLE device. This PIN was saved to my device but Android phone can connect to this device without any…
martin1337
  • 2,384
  • 6
  • 38
  • 85
1
vote
0 answers

BLE response back to Peripheral Connection mobile to mobile

Hey I am working on application in which I am using BLE to transfer User ID from mobile to mobile by using my application when they interact with each other , which means in one mobile my app will work as Peripheral Mode and in other it will work as…
1
vote
1 answer

Is calling disconnect() and close() subsequently the right approach in BLE Android app?

I am working on implementing an Android app that connects to BLE devices but the lack of proper documentation is killing me. Nothing seems to be working the same way twice if I run the app once it might work but the next time stops somewhere(no idea…
user13102338
1
vote
1 answer

Garmin BLE heart rate monitor -- cannot get HRM data via Bluetooth, what am I missing?

With an unbranded Bluetooth/ANT+ heart rate monitor, I can get the HRM data easily using gatttool: > connect Attempting to connect to Connection successful > primary (...) > char-desc 0x000c…
user4378634
1
vote
1 answer

Receive notifications for multiple characteristics in Android

I have several characteristics (all under one service) that I would like to be notified of in my Android app. When I set the notification descriptor for one of them, it works well. I understand that some sort of a queue or delay must be utilized for…
1
vote
0 answers

BLE error : D/BluetoothLeScanner: Scan failed, reason: app registration failed

I am getting this error sometimes while trying to scan BLE in android studio, usually after a while of using my app but cerntainly not all the time. I am using a class especially for BT connection, this is what's inside: package…
Omri
  • 95
  • 5