ptx2 / gymnasticon

Make obsolete and/or proprietary exercise bikes work with popular cycling training apps like Zwift, TrainerRoad, Rouvy and more.
https://ptx2.net/posts/unbricking-a-bike-with-a-raspberry-pi
MIT License
298 stars 39 forks source link

Ensure ANT+ server is stopped after ride ends #77

Closed djfjeff closed 3 years ago

djfjeff commented 3 years ago

The issue I have is that Gymnasticon always broadcast the sensors, even when the indoor bike (IC4) is OFF and disconnected.

The issue it cause is when I get on my road bike outside and start an activity, my watch pick up and link with my indoor bike Power sensor. So, my Garmin watch start to use this Power sensor for the activity instead of using my actual road bike power sensor.

Also, everytime I start an activity, I get the message that the Power sensor is connected, even for a walk or run activity.

Having Gymnasticon stop broadcasting when the bike disconnect would solve this issue.

nealjane commented 3 years ago

Maybe it’s specific to that bike - As far as I know - my pi gymnasticon stops broadcasting when my keisers off.

Easyest fix to your issue = turn off you pi when not using it?

djfjeff commented 3 years ago

Turning off my Rpi will not be ideal as I run the read-only version on a Zero W. So it would imply unplugging and replugging the Rpi everytime. Not impossible but far from ideal.

It might effectively be a bug with the IC4 bike if it works with your Keiser bike.

djfjeff commented 3 years ago

I did some more testing and it seems that only the Power ANT+ is still broadcasting after the bike turn off. The BLE Cadence is effectively stopped.

ptx2 commented 3 years ago

Thanks for reporting this @djfjeff!