Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected sensor disconnection raised at Android 13, with 2.6.0-alpha4 #451

Open
junebeans opened this issue Dec 29, 2022 · 0 comments
Open

Comments

@junebeans
Copy link

Hello

We were testing the connectivity with our Bluetooth peripheral on Android 13, and we encountered an issue where the connection is failing, but it is connected in the android system.

The log was showing that the read rssi command running successfully, while the connection updated callback was providing a false value.

The frequency of the issue is not clear enough, so haven't got a chance to identify the steps to reproduce it. Though, thought it would be helpful if there's a log to approach the issue. I'm assuming the error level log from the BleManager is considered critical for the library ass well.

From my research, the status that is raised from Android OS, which is 22 represents the android device (host device) terminated the connection BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION

2022-12-29 13:22:04.969 29029-29064 BluetoothGatt           com.sibelhealth.app                  D  onPhyRead() - status=0 address=**:**:**:**:**:** txPhy=1 rxPhy=1
2022-12-29 13:22:05.206 29029-29461 BluetoothGatt           com.sibelhealth.app                  D  onPhyUpdate() - status=0 address=**:**:**:**:**:** txPhy=2 rxPhy=2
2022-12-29 13:22:05.988 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:06.106 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:06.530 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:06.889 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:07.012 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  readRssi() - device: **:**:**:**:**:**
2022-12-29 13:22:07.033 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  readRssi() - device: **:**:**:**:**:**
2022-12-29 13:22:12.017 29029-29056 BluetoothGatt           com.sibelhealth.app                  D  readRssi() - device: **:**:**:**:**:**
2022-12-29 13:22:12.196 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:13.490 29029-29461 BluetoothGatt           com.sibelhealth.app                  D  onConnectionUpdated() - Device=**:**:**:**:**:** interval=12 latency=3 timeout=400 status=0
2022-12-29 13:22:13.691 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: false
2022-12-29 13:22:17.024 29029-29056 BluetoothGatt           com.sibelhealth.app                  D  readRssi() - device: **:**:**:**:**:**
2022-12-29 13:22:19.141 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:22.037 29029-29056 BluetoothGatt           com.sibelhealth.app                  D  readRssi() - device: **:**:**:**:**:**
2022-12-29 13:22:22.859 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:22.964 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:23.356 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: false
2022-12-29 13:22:23.694 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: false
2022-12-29 13:22:23.792 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: false
2022-12-29 13:22:23.948 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:26.622 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: false
2022-12-29 13:22:27.047 29029-29056 BluetoothGatt           com.sibelhealth.app                  D  readRssi() - device: **:**:**:**:**:**
2022-12-29 13:22:27.122 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:28.923 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: false
2022-12-29 13:22:29.343 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  setCharacteristicNotification() - uuid: ********-****-****-**** enable: true
2022-12-29 13:22:30.549 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  cancelOpen() - device: **:**:**:**:**:**
2022-12-29 13:22:30.555 29029-29461 BluetoothGatt           com.sibelhealth.app                  D  onClientConnectionState() - status=0 clientIf=7 device=**:**:**:**:**:**
2022-12-29 13:22:30.562 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  close()
2022-12-29 13:22:30.564 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  unregisterApp() - mClientIf=7
2022-12-29 13:22:31.918 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  connect() - device: **:**:**:**:**:**, auto: false
2022-12-29 13:22:31.918 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  registerApp()
2022-12-29 13:22:31.918 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  registerApp() - UUID=7ca68460-ae58-4e61-8302-6b78a57b494b
2022-12-29 13:22:31.922 29029-29461 BluetoothGatt           com.sibelhealth.app                  D  onClientRegistered() - status=0 clientIf=7
2022-12-29 13:22:31.933 29029-29461 BluetoothGatt           com.sibelhealth.app                  D  onClientConnectionState() - status=0 clientIf=7 device=**:**:**:**:**:**
2022-12-29 13:22:32.330 29029-29482 BluetoothGatt           com.sibelhealth.app                  D  onConnectionUpdated() - Device=**:**:**:**:**:** interval=12 latency=3 timeout=400 status=22
**2022-12-29 13:22:32.330 29029-29029 BleManager              com.sibelhealth.app                  E  onConnectionUpdated received status: 22, interval: 12, latency: 3, timeout: 400**
2022-12-29 13:22:32.333 29029-29482 BluetoothGatt           com.sibelhealth.app                  D  onClientConnectionState() - status=0 clientIf=7 device=**:**:**:**:**:**
2022-12-29 13:22:33.535 29029-29029 BluetoothGatt           com.sibelhealth.app                  D  discoverServices() - device: **:**:**:**:**:**

Details:
Device: Galaxy Tab S8 / SM-X700
OS: Android 13
Library Version: v2.6.0-alpha.4

@junebeans junebeans changed the title Unexpected sensor disconnection raised from the library at Android 13, with 2.6.0-alpha4 Unexpected sensor disconnection raised at Android 13, with 2.6.0-alpha4 Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant