Can't pair with Accu-Check Combo.
- /e/ version: 1.19
- Device model(s): pstar (Motorola Edge 20 Pro)
- Developer mode enabled: yes
- Device rooted: no
- Trackers blocker enabled: yes
Summary
While using AAPS, I'm unable to pair to an Accu-Check Combo. I was able to pair by downgrading to the oldest version of /e/os on my machine, version 1.11. I was also able to successfully pair when using Motorola's official ROM and latest Lineage (version 20.0).
The problem
AAPS stands for Android Artificial Pancreas System. It automatically manages an insulin pump, which it connects to through bluetooth. My pump is the Accu-Check Combo, a pump that is over a decade old with no software updates. This means it's running some older version of bluetooth, which I imagine could be causing all of this. As a note, the pairing must be done through AAPS.
What is the current behavior?
Pairing fails with the following error message: Could not establish an RFCOMM client connection to device with address XX:XX:XX:XX:XX:XX
What is the expected correct behavior?
The pump pairs with no errors.
Technical informations
After snooping through AAPS's code, I am fairly certain this is where it's throwing this error.
From looking at AAPS's log (attached below), I believe this line is failing:
systemBluetoothSocket = device.createInsecureRfcommSocketToServiceRecord(Constants.sdpSerialPortUUID)
- As a note, device is defined as:
device = systemBluetoothAdapter.getRemoteDevice(androidBtAddressString)
I am not an Android developer, however, so this is as far as my debugging skills go.
Relevant logs (AndroidAPS.log
)
Solutions
Only solution that worked was downgrading.