All Questions
Tagged with bluetooth-lowenergy android-ble
171
questions
-1
votes
0
answers
18
views
Write failed: this characteristic not support write in Ble Serial communication
private void sendTokenToBleDevice(String token) {
String tokenWithoutDashes = token.replace("-", "");
byte[] tokenBytes = tokenWithoutDashes.getBytes(); // Assuming token is ...
0
votes
0
answers
39
views
To perform OTA for BLE devices in Android Kotlin
When i write the end command after the data is written to the OTA data characteristics , the end command is found in the logs of the BLE device so the firmware is not updating.
I need to Perform OTA ...
0
votes
1
answer
46
views
Finding BLE Services
I'm trying to connect a smartphone running Android 13 to a server using BLE. Android 11 connects and finds services, but Android 13 can't find them. I have tried everything with permissions
I'd like ...
0
votes
1
answer
494
views
How to scan BLE devices that use Extended Advertisement and Coded PHY with Android?
I try do create an Android app that scan Bluetooth Low Energy devices that advertise using Extended Advertisement and use Coded PHY for advertisement.
I have a nrf52840 peripheral that I have setup to ...
0
votes
0
answers
517
views
Android BLE: GattCallback.onCharacteristicChanged is not triggered in response of a write operation on Android 12 and below
I am writing an Android app that can connect to a BLE device.
There are multiple types of devices handled by my application and I have to know the type of device I am connecting on.
The entire ...
0
votes
0
answers
61
views
How to check if a BLE device is currently busy?
I need to check if the device is writing a firmware chunk. If yes, then do not start recording the next chunk. I tried to do it with continuations but it didn't work.
Can a reliable write help me in ...
1
vote
2
answers
2k
views
writeDescriptor(BluetoothGattDescriptor!): Boolean' is deprecated. Deprecated in Java
I am working Bluetooth gatt with
minSdk 21
targetSdk 33
I see the writeDescriptor is deprecated in sdk 33. So I did this to wrap the code in SDK version check
gatt.setCharacteristicNotification(...
2
votes
1
answer
1k
views
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 ...
1
vote
0
answers
150
views
android 12: missing BLE serviceUUIDs
The sensors of are also bluetooth beacons with a custom (128 bit) serviceUUID.
This serviceUUID is sent as part of the scanResponse, not the advertisementData.
Doing a BLE scan with filtering by ...
0
votes
1
answer
708
views
BLE android read readCharacteristic
I Try to devlope android app to read from cycling sensor ,
if anyone can help plz . its connect to the sensor but cant read the characteristic.
i dont know how to read the characterestic value . its a ...
4
votes
0
answers
217
views
How do I avoid requesting BLE scan response?
I have a mobile app (android & iOS) that scans for peripherals with a filter by service UUID. I noticed a degradation in discoverability when multiple centrals scan at the same time. I assume this ...
1
vote
1
answer
374
views
onPhyUpdate is triggered with status 6 = GATT_REQUEST_NOT_SUPPORTED
I'm developing an Android app which communicates via BLE with an external module, and I am trying to set the BLE connection PHY.
I've tried calling the method gatt.setPreferredPhy(txPhy, rxPhy, ...
1
vote
2
answers
467
views
CompanionDeviceService gets destroyed right after creation
I have simple activity with function that when called displays ble pairing request. After user confirms, startObservingDevicePresence("Some Mac address") is called. That successfully ...
2
votes
2
answers
2k
views
Can I have an encrypted BLE connection without bonding? / Pairing BLE devices without bonding
So far I am able to do things two different ways.
I can advertise a service on the Pi, connect from an Android app, and read/write characteristics. From my understanding, this communication is not ...
0
votes
1
answer
631
views
Handling Notifications on Android with Multiple BLE Peripheral Connections
So, I am new to Android development and I am trying to connect my device to multiple BLE devices (T-Wristband) to receive frequent notifications (IMU sensor data less than 20 bytes at 50Hz).
When ...