dvmarinoff / Flux

Indoor Cycling App for Structured Training
https://flux-web.vercel.app
GNU Affero General Public License v3.0
495 stars 86 forks source link

Support o CycleOps PowerTap G2/G3 over ANT+ #145

Open torresweb opened 1 year ago

torresweb commented 1 year ago

Hi, Please, anyone could give any tip how to include support for my old CycleOps G2 powermeter? Looks that webant+ project is frozen. I am available to give any information, test and even put some lines of code if some help is provide me. Thanks.

dvmarinoff commented 1 year ago

Hi,

Thanks for checking the projects! I can't find any info on the internet about this power meter, but if it only supports ANT+ than the only option to support it in Flux is by getting the WebANT+ project done. This one has 2 issues.

First last time I checked there is no practical way to use it on Windows. You'd have to change drives manually to get it working on Windows. And second there is a bug with the code that makes the connection work only for a bit than stop than work again and so on. Now think I know how to fix, but I didn't have the time this year to work on it.

If its viable solution for you, you'd need to be on another OS, but Windows. And than we have to check if this powermeter at least connects and works for a bit in the current version of WebANT+. If not than its using some custom protocol or it is encrypted and I can't do much to supported.

torresweb commented 1 year ago

I am an OSX and Linux user. I have no plans to use Windows. I have no success to sync my old_ANT+_only powermeter using Webant+ in OSX. I can sync very easily in GondenCheetha, RGT, retired MaximumTrainer (missing it), etc. Let me know if I should try something else.

torresweb commented 1 year ago

My hub: https://www.thisisant.com/directory/powertap-pro-hub1/

dvmarinoff commented 1 year ago

Nice, it seems to support the official ANT+ Power profile. Will see what I can do over this weekend and let you know when it's time for testing with the physical device.

torresweb commented 1 year ago

Maybe this code can help us: https://github.com/8beeeaaat/web-ant-plus I tried the example code and it works fine with my classic PowerMeter, see the log:

BicyclePowerSensorState {DeviceID: 33686, ..., Cadence: 64, …} AccumulatedPower: 22495 ... ReceivedAt: 1687354611475 ...

dvmarinoff commented 1 year ago

Thanks I'll sure take a look at the code! I am most curious if they have any solution for the driver issue on Windows.