openScale icon indicating copy to clipboard operation
openScale copied to clipboard

Unable to connect to Sanitas SBF70 on new device

Open engeeaitch opened this issue 3 months ago • 4 comments

Preflight Check (Required)

  • [x] I tested the latest dev version https://github.com/oliexdev/openScale/releases/tag/dev-build
  • [x] The issue still occurs in the dev version
  • [x] I searched the existing open and closed issues
  • [x] This issue has not already been reported or fixed

Bug Description

I have a Samsung S22 Ultra running version 2.5.3-pro (65) of the app, and this successfully connects to my scale. I have a new phone - Pixel 11 Pro XL and have downloaded the latest version of the app from the Play Store - v 3.1.2-oss (76), but I am unable to connect to the scale. In Settings -> Bluetooth, I can see the scale, but I always get Connection to SANITAS SBF70 failed: UNKNOWN_STATUS_CODE. I have tried the Conservative and Aggressive settings. When trying to connect to the scale, the Bluetooth icon on the scale does appear from time to time.

Steps to Reproduce

Open the app. Go to Settings->Bluetooth. Select SANITAS SBF70 as device. Go to Overview. Tap on Bluetooth icon. After three attempts, app shows error message. Bluetooth icon changes to 'off'

Debug Log (Required)

| Field | Value |
|---|---|
| Time | 2026-08-31 15:29:49.481 |
| Timezone | Europe/London (UTC 0h) |
| Session ID | 1a05839f929 |
| App | openScale |
| Version | 3.1.2-oss (76) |
| Package | com.health.openscale.oss |
| Build Type | oss |
| Device | Google Pixel 11 Pro XL |
| Android | 17 (API 37) |
| Build ID | CD1A.260714.001.A9 |
| Build Time | 2026-08-09T13:03:32Z |
| Git SHA | 7a170e40 |


+ 2026-08-31 15:29:49.482 I/openScaleLog: File logging enabled during runtime – started fresh session log.


? 2026-08-31 15:29:49.481 D/openScaleLog: Initial markdown-diff headers written to: /storage/emulated/0/Android/data/com.health.openscale.oss/files/logs/openScale_current_log.txt
? 2026-08-31 15:29:49.483 D/openScaleLog: Markdown diff block closed.
? 2026-08-31 15:30:02.449 D/BluetoothActionButton: User clicked bluetooth icon connect → trying to connect to saved device SANITAS SBF70
+ 2026-08-31 15:30:02.450 I/BleConnector: Attempting to connect to SANITAS SBF70
? 2026-08-31 15:30:02.450 D/BleConnector: Switching to new device: Releasing active communicator: null
? 2026-08-31 15:30:02.450 D/BleConnector: Switching to new device: Active communicator released and set to null.
? 2026-08-31 15:30:02.450 D/ScaleHandlerFactory: createCommunicator: Searching for communicator for 'SANITAS SBF70' (84:EB:18:5F:1F:11). Handler hint: 'Sanitas SBF70 / SilverCrest SBF75 / Crane'
+ 2026-08-31 15:30:02.450 I/ScaleHandlerFactory: Modern handler 'Sanitas SBF70 / SilverCrest SBF75 / Crane' supports 'SANITAS SBF70'.
+ 2026-08-31 15:30:02.451 I/ScaleHandlerFactory: Modern communicator 'GattScaleAdapter' created for 'SANITAS SBF70' with linkMode=CONNECT_GATT.
+ 2026-08-31 15:30:02.451 I/BleConnector: ActiveCommunicator successfully created: GattScaleAdapter. Starting observation job...
? 2026-08-31 15:30:02.451 D/BleConnector: Adapter isConnected: false for SANITAS SBF70 (Status: CONNECTING)
+ 2026-08-31 15:30:02.451 I/BleConnector: Adapter no longer reports connected for SANITAS SBF70. Current status: CONNECTING. Expecting Disconnected Event.
+ 2026-08-31 15:30:02.509 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-08-31 15:30:13.576 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-08-31 15:30:13.579 D/BleConnector: BluetoothEvent received: DeviceMessage(message=Reconnecting… (try 1/3), deviceAddress=84:EB:18:5F:1F:11) for SANITAS SBF70
? 2026-08-31 15:30:13.579 D/BleConnector: Event: Message from SANITAS SBF70: Reconnecting… (try 1/3)
+ 2026-08-31 15:30:15.293 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-08-31 15:30:24.836 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: ERROR
? 2026-08-31 15:30:24.839 D/BleConnector: BluetoothEvent received: DeviceMessage(message=Reconnecting… (try 2/3), deviceAddress=84:EB:18:5F:1F:11) for SANITAS SBF70
? 2026-08-31 15:30:24.839 D/BleConnector: Event: Message from SANITAS SBF70: Reconnecting… (try 2/3)
+ 2026-08-31 15:30:26.399 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-08-31 15:30:37.482 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-08-31 15:30:37.483 D/BleConnector: BluetoothEvent received: DeviceMessage(message=Reconnecting… (try 3/3), deviceAddress=84:EB:18:5F:1F:11) for SANITAS SBF70
? 2026-08-31 15:30:37.484 D/BleConnector: Event: Message from SANITAS SBF70: Reconnecting… (try 3/3)
+ 2026-08-31 15:30:39.060 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-08-31 15:30:50.328 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-08-31 15:30:50.330 D/BleConnector: BluetoothEvent received: ConnectionFailed(deviceAddress=84:EB:18:5F:1F:11, error=UNKNOWN_STATUS_CODE) for SANITAS SBF70
! 2026-08-31 15:30:50.330 W/BleConnector: Event: Connection failed for 84:EB:18:5F:1F:11. Reason: UNKNOWN_STATUS_CODE
? 2026-08-31 15:30:50.331 D/BleConnector: ConnectionFailed event: Releasing active communicator: GattScaleAdapter
? 2026-08-31 15:30:50.333 D/BleConnector: ConnectionFailed event: Active communicator released and set to null.

engeeaitch avatar Aug 31 '26 14:08 engeeaitch

The connection never reaches the GATT layer: the scale is found, openScale calls connect, and ~10 s later the Android stack aborts. There is no Services discovered line, so the SBF70 driver is never even started. This is a link-layer failure, not a protocol problem.

The SBF70 accepts only one connection at a time. Since your S22 Ultra still has openScale 2.5.3 installed and (very likely) auto-connect enabled, it will keep grabbing the scale in the background — that also explains why "the Bluetooth icon on the scale does appear from time to time".

Could you try the following, in this order?

  1. On the S22 Ultra: turn Bluetooth off completely (or uninstall openScale there) and keep it that way while testing.
  2. On the Pixel: if SANITAS SBF70 appears in Android's system Bluetooth settings under paired devices, forget it there.
  3. In openScale on the Pixel: Settings → Bluetooth, remove the saved device, scan and add it again.
  4. Step on the scale so it wakes up, wait for the Bluetooth icon, then tap connect in openScale.

If it still fails afterwards, please attach a new log

oliexdev avatar Sep 02 '26 08:09 oliexdev

Many thanks for your help.

I have turned off Bluetooth on my S22. The scales do not appear in my Bluetooth settings. I removed the saved device. I then scanned for the scale and added it. I then tried to connect. Unfortunately, the results appear to be the same. I have attached the log. Just one observation - I could not get the Bluetooth indicator to show on the scale at any point (but it was never consistent before).

Here's the log: `| Field | Value | |---|---| | Time | 2026-09-02 11:51:52.555 | | Timezone | Europe/London (UTC 0h) | | Session ID | 1a061bf276b | | App | openScale | | Version | 3.1.2-oss (76) | | Package | com.health.openscale.oss | | Build Type | oss | | Device | Google Pixel 11 Pro XL | | Android | 17 (API 37) | | Build ID | CD1A.260714.001.A9 | | Build Time | 2026-08-09T13:03:32Z | | Git SHA | 7a170e40 |

+ 2026-09-02 11:51:52.557 I/openScaleLog: File logging enabled during runtime – started fresh session log.
? 2026-09-02 11:51:52.557 D/openScaleLog: Initial markdown-diff headers written to: /storage/emulated/0/Android/data/com.health.openscale.oss/files/logs/openScale_current_log.txt
? 2026-09-02 11:51:57.898 D/BluetoothScreen: Launching Bluetooth scan directly via ScanButton
+ 2026-09-02 11:51:57.899 I/BluetoothScannerMgr: Starting device scan for 20000 ms.
+ 2026-09-02 11:52:02.887 I/UserSettingsRepository: Saving device snapshot: addr=84:EB:18:5F:1F:11, name=SANITAS SBF70, uuids=2, hint=Sanitas SBF70 / SilverCrest SBF75 / Crane
+ 2026-09-02 11:52:06.767 I/BluetoothScannerMgr: Stopping device scan. Triggered by timeout: false
? 2026-09-02 11:52:06.769 D/BluetoothScannerMgr: Scan stopped. Found devices: 13
? 2026-09-02 11:52:25.801 D/BluetoothActionButton: User clicked bluetooth icon connect → trying to connect to saved device SANITAS SBF70
+ 2026-09-02 11:52:25.802 I/BleConnector: Attempting to connect to SANITAS SBF70
? 2026-09-02 11:52:25.802 D/BleConnector: Switching to new device: Releasing active communicator: null
? 2026-09-02 11:52:25.802 D/BleConnector: Switching to new device: Active communicator released and set to null.
? 2026-09-02 11:52:25.802 D/ScaleHandlerFactory: createCommunicator: Searching for communicator for 'SANITAS SBF70' (84:EB:18:5F:1F:11). Handler hint: 'Sanitas SBF70 / SilverCrest SBF75 / Crane'
+ 2026-09-02 11:52:25.803 I/ScaleHandlerFactory: Modern handler 'Sanitas SBF70 / SilverCrest SBF75 / Crane' supports 'SANITAS SBF70'.
+ 2026-09-02 11:52:25.805 I/ScaleHandlerFactory: Modern communicator 'GattScaleAdapter' created for 'SANITAS SBF70' with linkMode=CONNECT_GATT.
+ 2026-09-02 11:52:25.805 I/BleConnector: ActiveCommunicator successfully created: GattScaleAdapter. Starting observation job...
? 2026-09-02 11:52:25.805 D/BleConnector: Adapter isConnected: false for SANITAS SBF70 (Status: CONNECTING)
+ 2026-09-02 11:52:25.806 I/BleConnector: Adapter no longer reports connected for SANITAS SBF70. Current status: CONNECTING. Expecting Disconnected Event.
+ 2026-09-02 11:52:25.823 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-09-02 11:52:36.902 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-09-02 11:52:36.905 D/BleConnector: BluetoothEvent received: DeviceMessage(message=Reconnecting… (try 1/3), deviceAddress=84:EB:18:5F:1F:11) for SANITAS SBF70
? 2026-09-02 11:52:36.906 D/BleConnector: Event: Message from SANITAS SBF70: Reconnecting… (try 1/3)
+ 2026-09-02 11:52:38.466 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-09-02 11:52:49.697 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-09-02 11:52:49.699 D/BleConnector: BluetoothEvent received: DeviceMessage(message=Reconnecting… (try 2/3), deviceAddress=84:EB:18:5F:1F:11) for SANITAS SBF70
? 2026-09-02 11:52:49.699 D/BleConnector: Event: Message from SANITAS SBF70: Reconnecting… (try 2/3)
+ 2026-09-02 11:52:51.254 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-09-02 11:53:02.401 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-09-02 11:53:02.402 D/BleConnector: BluetoothEvent received: DeviceMessage(message=Reconnecting… (try 3/3), deviceAddress=84:EB:18:5F:1F:11) for SANITAS SBF70
? 2026-09-02 11:53:02.403 D/BleConnector: Event: Message from SANITAS SBF70: Reconnecting… (try 3/3)
+ 2026-09-02 11:53:04.005 I/GattScaleAdapter: Found 84:EB:18:5F:1F:11 → stop scan + connect
- 2026-09-02 11:53:15.101 E/GattScaleAdapter: Connection failed 84:EB:18:5F:1F:11: UNKNOWN_STATUS_CODE
? 2026-09-02 11:53:15.102 D/BleConnector: BluetoothEvent received: ConnectionFailed(deviceAddress=84:EB:18:5F:1F:11, error=UNKNOWN_STATUS_CODE) for SANITAS SBF70
! 2026-09-02 11:53:15.103 W/BleConnector: Event: Connection failed for 84:EB:18:5F:1F:11. Reason: UNKNOWN_STATUS_CODE
? 2026-09-02 11:53:15.104 D/BleConnector: ConnectionFailed event: Releasing active communicator: GattScaleAdapter
? 2026-09-02 11:53:15.106 D/BleConnector: ConnectionFailed event: Active communicator released and set to null.
? 2026-09-02 11:53:24.152 D/UserSettingsRepository: Setting file logging enabled to: false
`

engeeaitch avatar Sep 02 '26 11:09 engeeaitch

The second log looks the same as the first one: the scale is found during the scan, openScale calls connect, and the Android stack aborts ~11 s later — four times in a row. There is still no Services discovered line, so the connection never gets past the link layer and the SBF70 driver is never started. On top of that the Bluetooth icon on the scale did not appear a single time this round, which means the scale itself never accepted the connection attempt.

One last thing worth trying: reset the scale.

  1. Take the batteries out for about a minute (this clears the phone the scale has memorised).
  2. Put them back in, set up the scale/user again as if it were new.
  3. Then add it in openScale (Settings → Bluetooth) and connect right after the scale wakes up.

If it still fails after that, I'm honestly out of ideas here — from openScale's side there is nothing left to change, the failure happens in the Android Bluetooth stack before our code ever runs. In that case I'd recommend checking with the vendor app (Sanitas HealthCoach / Beurer HealthManager) on the Pixel: if the scale doesn't connect there either, it's a phone/scale pairing problem and not something openScale can fix.

oliexdev avatar Sep 02 '26 13:09 oliexdev

Resetting the scale and using Health Coach to set it up again did work.

Thanks for the suggestion.

engeeaitch avatar Sep 02 '26 14:09 engeeaitch