Problem with BLE sensor not reconnecting on Linux

38 views
Skip to first unread message

Anže Blagus

unread,
Jan 21, 2026, 10:31:23 AM (2 days ago) Jan 21
to golden-cheetah-users
Hello,
I've tried searching for a solution in the FAQ and elsewhere, but there doesn't seem to be any mention of this out there.

What happens is sometimes, for one reason or another, my HRM gets disconnected during a Train ride. It then doesn't get reconnected, so I lose HR data for the rest of the ride.

goldencheetah.log from when this happened today:
[14:04:13.520] debug: pause...
[14:04:52.151] debug: service state changed  QLowEnergyService::InvalidService for device "HRM200:53879"   "{00000000-0000-0000-0000-000000000000}"
[14:04:52.152] debug: Lost connection to "HRM200:53879"   "{00000000-0000-0000-0000-000000000000}"
[14:04:52.152] debug: Connecting to device "HRM200:53879"   "{00000000-0000-0000-0000-000000000000}"
[14:05:17.596] warning: Controller Error: QLowEnergyController::UnknownError for device "HRM200:53879"   "{00000000-0000-0000-0000-000000000000}"
[14:07:15.636] debug: unpause...

Is there anything I can try or do when this happens? I'd be happy to help debug.

Thanks in advance

Ale Martinez

unread,
Jan 21, 2026, 11:09:27 AM (2 days ago) Jan 21
to golden-cheetah-users
There are some BTLE adapters which don't work well with GoldenCheetah this and other known issues are documented in https://github.com/GoldenCheetah/GoldenCheetah/wiki/ANT--and-BTLE-Troubleshooting.
Sensor reconnection is a pending issue https://github.com/GoldenCheetah/GoldenCheetah/issues/2246 not implemented yet.

Anže Blagus

unread,
Jan 22, 2026, 6:42:49 AM (yesterday) Jan 22
to golden-cheetah-users

Actually, I realized that what happened is that it tried to reconnect, but sensor wasn't available at that time (I was away from the computer). I ended up implementing a simple timer that tries to reconnect every 5 seconds and from the little testing I've done, it seems to work. It's available here:
https://github.com/AnzeBlaBla/GoldenCheetah/tree/BT40-reconnect
LMK if this is something that is worth making a PR for, or if you plan to implement differently later down the line (an implementation with a "reconnect" button during training would maybe also be viable?).

Ale Martinez

unread,
Jan 22, 2026, 7:10:52 AM (yesterday) Jan 22
to golden-cheetah-users
El jueves, 22 de enero de 2026 a la(s) 8:42:49 a.m. UTC-3, Anže Blagus escribió:

Actually, I realized that what happened is that it tried to reconnect, but sensor wasn't available at that time (I was away from the computer). I ended up implementing a simple timer that tries to reconnect every 5 seconds and from the little testing I've done, it seems to work. It's available here:
https://github.com/AnzeBlaBla/GoldenCheetah/tree/BT40-reconnect
LMK if this is something that is worth making a PR for, or if you plan to implement differently later down the line (an implementation with a "reconnect" button during training would maybe also be viable?).

Nobody is working on this and it is something users expect so a PR is welcome, your automatic approach seem right to me provided it stops when the session finishes.
Reply all
Reply to author
Forward
0 new messages