Questions tagged [rxandroidble]

RxAndroidBle is a library wrapping the native Android Bluetooth Low Energy (BLE) API based on RxJava. Use this tag when asking questions related to usage of the RxAndroidBle library.

rxandroidble
Filter by
Sorted by
Tagged with
11 votes
2 answers
9k views

Android BLE: "Scan failed, reason app registration failed for UUID"

I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually ...
starman's user avatar
  • 386
10 votes
1 answer
4k views

RxAndroidBle keeping a persistant connection + Write/Notification handling

I am building an Android application that has specific requirements regarding Bluetooth Low Energy. I need to write to a Write-only characteristic and receive responses on a separate notification ...
Frederic Portaria-Janicki's user avatar
6 votes
2 answers
5k views

Combining timeout() with retryWhen()

I'm creating a simple app for connecting with the bluetooth devices using RxAndroidBle library (Cheers Guys for great work!). What I'm experiencing is sometimes when I connect to the device I receive ...
Jogosb's user avatar
  • 155
6 votes
0 answers
275 views

129 error and 133 error from Rxble while read and write operation

BleGattException - occured during first read write operation sometimes it read and write correctly but after reconnects ble device get this exception... if (bleManager.getMacAddress() != null &&...
Prethivirajan's user avatar
5 votes
1 answer
2k views

How to receive all notifications in RxAndroidBle

I'm trying to communicate with a BLE data logger/sensor using rxBleAndroid running on both an Android phone as well as the Raspberry Pi using Android Things. I'm currently having an issue, however, ...
James E's user avatar
  • 75
5 votes
1 answer
1k views

BLE notification subscription gets 133

1 Android phone (N5X 6.0.1) is running a BLE server, another one (N5X O) is subscribing. Notification for a characteristic can be enabled however, on the write descriptor part, I'm consistently ...
mbmc's user avatar
  • 5,075
4 votes
1 answer
2k views

How to handle 16-bit characteristics in Bluetooth LE

I've been searching for days for the answer to this question. I'm writing an Android app to interface with a Bluetooth Low Energy device. I have the device's 128-bit Service ID UUID, and several 16-...
Robert Lewis's user avatar
  • 1,867
4 votes
1 answer
1k views

How to concatenate two observable operations in a linear fashion (do first this thing and after that one finishes do the second thing)?

Polidea has released a new handy library called RxAndroidBle which is very useful for dealing with a lot of issues when you're using vanilla Bluetooth APIs. Before explaining more the idea is to have ...
Aldo Borrero's user avatar
4 votes
0 answers
319 views

Getting Already Connected Devices from RxAndroidBle

How do you get already connected Bluetooth devices in RxAndroidBle? For example if a user manually connected a device through Android itself and not your app.
lorenzo's user avatar
  • 534
3 votes
3 answers
25k views

How to correctly use UUID.fromString method?

I am trying to read/write these ble characteristics: Right now, I'm trying to read AA01* I am using this library to do it. Here's my code: private void connectToSensorTag(RxBleDevice rxBleDevice) {...
Guy's user avatar
  • 6,483
3 votes
2 answers
7k views

How to read raw data from scanned BLE device?

I am using RxAndroidBle Library for my BLE application. Like nrfConnect application I want to read RAW data from BLE device. How to read RAW data from device?
Pallavi Tapkir's user avatar
3 votes
1 answer
2k views

com.polidea.rxandroidble2.exceptions.BleScanException: Scan failed because application registration failed (code 6) Samsung Galaxy 8

Currently i am working in a application where it involves ble device. I created a service and grnated all permission that a bluetooth application requires and bluetooth is enabled. When the service is ...
Anik Dey's user avatar
  • 616
3 votes
1 answer
1k views

RxAndroidBle: Setup notification, write on characteristic and wait for notification to proceed

I am using Polidea's RxAndroidBle library to communicate with a Device in my Android application. I am very new to Reactive Programming so I can't figure out exactly how to do the following: Setup ...
dglozano's user avatar
  • 6,497
3 votes
1 answer
744 views

RxAndroidBle Scan Timeout

I need help. How to set scan timeout for example 10 seconds when i am using rxandroidble. scanDisposable = rxBleClient.scanBleDevices( new ScanSettings.Builder() ...
kosancicivan's user avatar
3 votes
1 answer
2k views

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 ?
j.prashant's user avatar
3 votes
1 answer
788 views

Using multiple .subscribe() statements with RxJava

My Android app for a BLE peripheral writes to 2 different device characteristics and receives notifications from 2 others. The developers of the RxAndroidBle library caution against multiple ...
Robert Lewis's user avatar
  • 1,867
3 votes
2 answers
576 views

How do I effectively read temperature from two BLE devices at the same time?

First of all, I am using RxAndroidBLE library to manage my BLE connections. I have two SensorTag devices and I want to read temperature from both at the same time. For example, I'd like to read the ...
Guy's user avatar
  • 6,483
3 votes
1 answer
900 views

Sending the list of commands to device using RxAndroidBle (rxJava)

I am trying to send list of command to device via rxJava. Here is my code: public void startWriteCommucation(final ArrayList<byte[]> b) { if (isConnected()){ ...
KolinLoures's user avatar
3 votes
0 answers
554 views

RxBLELibraries/RxAndroidBle: with status 8 (GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT)

I'm using RxBLELibraries/RxAndroidBle for connecting mobile-app with peripheral device. The mobile-app work properly on Xperia, Samsung but always return ERR on device AQOUS R5G. My problem on AQOUS ...
tui team's user avatar
3 votes
2 answers
5k views

BxAndroidBle cannot read device, status=22

I am having troubles with reading a Ble device and using the RxAndroidBle library. I keep getting this error: BleGattException{status=22, bleGattOperation=BleGattOperation{description='...
Glennmen's user avatar
2 votes
1 answer
2k views

RxAndroidBle : Periodic advertising scan

I need to scan ble advertising permanently while i am not connected to my device to find it and know when connect to it (specific product). This scan is realized in foreground service to match 8.0 ...
Guillaume's user avatar
2 votes
1 answer
1k views

UndeliverableException thrown within a RxAndroidBle stream

I have a misbehaving BLE device (temp sensor) that keeps throwing a status 8 (GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT) exception everytime i try to connect to the device. I'm not concerned about ...
Mannie's user avatar
  • 1,645
2 votes
1 answer
2k views

RxAndroidBle - Auto connect issue

I am using RxAndroidBle library: This code is working fine as expected, on click of Connect button on UI, it establishes connection. Issue coming up when I wanted the auto-connect to the device when ...
Molay's user avatar
  • 1,234
2 votes
1 answer
250 views

RxAndroidBle receive notifications faster

I'm quite new in RxJava. I try now RxAndroidBle and compare it with Android API implementation for BLE. My peripheral sends a lot of notifications at once (about 30kB in 512b chunks). In Rx it takes ...
Nataliya Le Loup's user avatar
2 votes
2 answers
758 views

Log: Queue's awaitRelease() has been interrupted abruptly while it wasn't released byte release() method

Below is a section of logcat which contains the message I'm occasionally seeing: Queue's awaitRelease() has been interrupted abruptly while it wasn't released byte release() method. The "byte" seems ...
Robert Lewis's user avatar
  • 1,867
2 votes
3 answers
2k views

Android BLE connects in background after disconnect

We are using RxAndroidBle 1.3.1 to connect to BLE devices from Android. On certain phones (currently I'm seeing this on an LG V20 [LG-H918], Android 7.0), after our app disconnects, the phone will ...
Ken DeLong's user avatar
2 votes
2 answers
1k views

RxAndroidBle Multiple Characteristic Notifications and Read/Write

I'm having issues setting up notifications on multiple characteristics. I've reviewed the documentation and many of the examples only cover very granular situations. My use case is as follows: 1. ...
lorenzo's user avatar
  • 534
2 votes
1 answer
342 views

Error obtaining client on RxAndroidBLE

I'm not able to obtain the client. I'm starting on Android development, so maybe it's a config/newbie mistake, but nothing I've tried/searched works. Each time I call "RxBleClient.create(context);", I ...
Rafael Alcaide's user avatar
2 votes
1 answer
590 views

Android BLE logcat error: E/bt_btif: bta_gattc_process_indicate, ignore HID ind/notificiation

I have an app which communicates with a BLE device. It sends data packets @ 40hz to the phone. I'm using RxAndroidBle and everything works as it should (mostly anyway) I'm currently trying to optimise ...
OliverDeLange's user avatar
2 votes
1 answer
1k views

Why can we pair with the BLE device, without displaying system Dialog, by using BroadcastReceiver?

I'm using RxAndroidBle library to scan and connect with BLE devices. What I also need is to pair with this found device, without displaying system dialog about the key pairing. The bonding mechanism ...
Denathan's user avatar
  • 151
2 votes
1 answer
888 views

Resetup notifications in RxAndroidBle if a connection is lost

I am trying to set up notifications using RxAndroidBle, however when the connection to the peripheral is lost, the notification that I set up needs to be created again. I am creating notifications ...
user3370201's user avatar
2 votes
1 answer
572 views

RxAndroidBle scanBleDevices(UUID...) not firing

I am having trouble using the scanBleDevices method when passing it a (valid) UUID - the subscribe will never fire. Currently I have a working prototype using the usual android methods of scanning, ...
Ethan's user avatar
  • 1,567
2 votes
1 answer
587 views

RxAndroidBle WRITE_TYPE_DEFAULT or WRITE_TYPE_NO_RESPONSE

I was wondering which strategy the RxAndroidBle library uses regarding write acknowledgements: WRITE_TYPE_DEFAULT or WRITE_TYPE_NO_RESPONSE? Furthermore, should I wish to set (or query) this setting, ...
Steve Yohanan's user avatar
2 votes
1 answer
2k views

rxandroidble: ble device disconnected for long duration: App goes to sleep

I am using rxandroidble using autoconnect = true to continuously monitor data from a sensor. The app continuously scans for sensors it has previously connected to. The data monitoring and scanning ...
seano's user avatar
  • 21
2 votes
2 answers
1k views

Logging scanResult in Polidea - RxAndroidBle Scanning

I am trying to use the RxAndroidBle lib (https://github.com/Polidea/RxAndroidBle). I want the app the start and scan for BLE devices. I want to print the found devices in the LogCat. How can I do this?...
amanda45's user avatar
  • 565
2 votes
0 answers
2k views

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....
T_Anton_T's user avatar
2 votes
1 answer
168 views

What is the status of RxAndroidBle and RxJava3?

RxAndroidBle is a great piece of software and has reduced development time for Ble projects and has increased stability and readability significantly. I just want to ask, what the status is of the ...
t4rj4n's user avatar
  • 21
2 votes
0 answers
592 views

BLE different MTU for different implementations

I have tried different implementations of BLE connection on Android. One with RxAndroidBle and another one with simple Android API. I used RxAndroidBle example app for testing. I connect to the same ...
Nataliya Le Loup's user avatar
2 votes
1 answer
2k views

BleGattException status return 133 (onClientConnectionState() - status=133)

When I connect ble after I try to open the notification, but often return BleGattException status = 133, sometimes it will sometimes not . this is my code : mConnectingDevice.establishConnection(...
Jeong Woo's user avatar
1 vote
2 answers
5k views

Continue scanning for other BLE devices while connecting to one

I want my app to scan continuously for up to 3 different BLE peripherals (identified by MAC address). When one device is found, I stop scanning for it and connect to it. Code: static Observable<...
Robert Lewis's user avatar
  • 1,867
1 vote
2 answers
1k views

Using RxAndroidBle, how do I subscribe to responses from writing to a characteristic?

The BLE device that I'm connecting to emits bytes on one of its GATT characteristics in response to writes to the characteristic. Clients are supposed to enable notifications on that characteristic, ...
Ari Lacenski's user avatar
1 vote
1 answer
891 views

iOS Swift: Can't read iBeacon manufacturer data (raw data Android equivalent)

I am using this iBeacon BLE device https://www.beaconzone.co.uk/LC01BodyTemperature and trying to read its temperature data. I've successfully managed to do it in Android Kotlin using RxAndroidBle by ...
user avatar
1 vote
1 answer
218 views

How to maintain connection state between many Activities?

According to rxandroidble, dispose() should be called in onPause() of Activity lifeCycle, then the BLE connection will be close? And I can only connect BLE device in new Activity, and if I don't call ...
Andy_Gu4y's user avatar
1 vote
1 answer
1k views

How to create Bond or Pairing in BLE using RxAndroidBLE

I want to implement passkey for connect device or establish the connection with BLE device. I have 6 byte passkey, So how we will create bond or pairing and send passkey to the BLE device using ...
Nitin Karande's user avatar
1 vote
1 answer
418 views

How to implement synchronous task queue for RxAndroidBle

Summary I use RxAndroidBle as the BLE communication framework in my project. I receive the data from the notification after writing in the following way: public Observable<byte[]> ...
Zachary's user avatar
  • 63
1 vote
2 answers
469 views

How to obtain BluetoothGatt object from RxAndroidBle

As reported here, I have a legacy app that refuses to connect to one of the peripherals I'm trying to support (works OK with others). RxAndroidBle connects successfully too, and I'm thinking to use it ...
Robert Lewis's user avatar
  • 1,867
1 vote
1 answer
1k views

Finishing Bluetooth communication from Android with BLE device

What is the proper way to finish BLE communication from an Android device with peripheral measuring device? Current state: if I'm satisfied with received; write stop measuring on ...
Tomáš Havlíček's user avatar
1 vote
1 answer
723 views

RxAndroidBle connection timeout

I am connecting to a discovered device and reading RSSI periodically. I need to know exactly when the connection is lost. Is there any way to specify connection timeout after which I will receive ...
jacz's user avatar
  • 83
1 vote
5 answers
2k views

BLE Device dissonect after receive Notifications (BLEGattException Status = 0x8)

My BLE server permanently measures a sensor value and sends a notification with 20 byte user data after each measurement. The goal is to generate as much throughput as possible. On the client side, ...
Chris 123's user avatar
1 vote
2 answers
1k views

BleGattException when writing to a particular characteristic

Writing to a specific characteristic crashes the application and throws the following exception: Caused by: BleGattException{status=8, bleGattOperation=BleGattOperation{description='...
Orbit's user avatar
  • 3,075

1
2 3 4 5 6