Skip to content

[Bug]: Bluetooth disconnecting when workout starts #333

Description

@MichaelWilko

Platform

Android

OS Version

Android 16

App Version

0.6.0

Device Model

Pixel 6

Bug Description

Everything seems to be pretty smooth sailing until I start any sort of workout. As soon as the workout starts, the app says that the bluetooth connection to the machine has been lost. Here is the connection log:

=== Vitruvian Connection Logs ===
Exported: 2026-04-04 11:58:35.639
Total entries: 38

[2026-04-04 11:58:04.634] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:58:04.532] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:57:35.942] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:57:22.379] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:57:22.277] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:56:41.287] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:56:20.513] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:56:20.512] [INFO] CONNECT_SUCCESS
  Device connected successfully
  Device:  ()

[2026-04-04 11:56:20.157] [INFO] SCAN_STOP
  BLE scan stopped
  Details: Found 1 Vitruvian device(s)

[2026-04-04 11:56:20.156] [ERROR] CONNECT_FAIL
  Failed to connect to device
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: y15 was cancelled

[2026-04-04 11:56:18.494] [INFO] SCAN_STOP
  BLE scan stopped
  Details: Found 1 Vitruvian device(s)

[2026-04-04 11:56:18.494] [INFO] CONNECT_START
  Connecting to device
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:56:17.881] [INFO] SCAN_START
  Scan and connect started

[2026-04-04 11:56:16.473] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:56:16.371] [ERROR] ERROR
  Failed to send command
  Device:  ()
  Details: OnCharacteristicWrite(characteristic=6e400002-b5a3-f393-e0a9-e50e24dcca9e, status=GATT_ERROR(133))

[2026-04-04 11:56:16.368] [INFO] DISCONNECT
  Device disconnected
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:59.541] [DEBUG] COMMAND_SENT
  Command sent (NUS TX)
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: Size: 4 bytes

[2026-04-04 11:54:46.256] [INFO] NOTIFICATION
  Enabling BLE notifications and starting polling (matching parent repo)
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:46.256] [INFO] SERVICE_DISCOVERED
  Device ready, starting notifications and heartbeat
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:46.256] [INFO] SERVICE_DISCOVERED
  GATT services discovered
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: Services: 3

[2026-04-04 11:54:46.255] [INFO] MTU_CHANGED
  MTU negotiated: 517 bytes
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:46.160] [DEBUG] COMMAND_SENT
  Command sent (NUS TX)
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: Size: 34 bytes

[2026-04-04 11:54:46.024] [INFO] CONNECT_SUCCESS
  Device connected successfully
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:44.002] [INFO] SCAN_STOP
  BLE scan stopped
  Details: Found 1 Vitruvian device(s)

[2026-04-04 11:54:44.002] [INFO] CONNECT_START
  Connecting to device
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:43.788] [INFO] SCAN_START
  Scan and connect started

[2026-04-04 11:54:42.381] [WARNING] ERROR
  Cannot send command - not connected

[2026-04-04 11:54:42.281] [INFO] DISCONNECT
  Device disconnected
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:42.280] [ERROR] ERROR
  Failed to send command
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: OnCharacteristicWrite(characteristic=6e400002-b5a3-f393-e0a9-e50e24dcca9e, status=GATT_ERROR(133))

[2026-04-04 11:54:31.908] [INFO] NOTIFICATION
  Enabling BLE notifications and starting polling (matching parent repo)
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:31.908] [INFO] SERVICE_DISCOVERED
  Device ready, starting notifications and heartbeat
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:31.908] [INFO] SERVICE_DISCOVERED
  GATT services discovered
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: Services: 3

[2026-04-04 11:54:31.905] [INFO] MTU_CHANGED
  MTU negotiated: 517 bytes
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:31.849] [DEBUG] COMMAND_SENT
  Command sent (NUS TX)
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)
  Details: Size: 34 bytes

[2026-04-04 11:54:31.751] [INFO] CONNECT_SUCCESS
  Device connected successfully
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:29.685] [INFO] SCAN_STOP
  BLE scan stopped
  Details: Found 1 Vitruvian device(s)

[2026-04-04 11:54:29.685] [INFO] CONNECT_START
  Connecting to device
  Device: Vee_000060E1_13CE877C (7C:87:CE:13:E1:62)

[2026-04-04 11:54:29.225] [INFO] SCAN_START
  Scan and connect started
Jot something down

Steps to Reproduce

Not sure if it can be reproduced or if it's just my phone/machine but it's just any time a workout starts with the current issue.

Expected Behavior

No response

Logs/Screenshots

No response

Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I have tested with the latest version of the app

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdeferredvery complex process with insufficient testing engagement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions