Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Fitness Equipment → Thread

   

Replaying a real ride on a trainer

Rank

Total Posts: 5

Joined 2019-10-31

PM

Hello everyone,

I would like to write a small Android app that will take my real ride as "fit" file (generated by my Garmin 500)
and send it to my bike trainer (Hammer H3)
I will be very thankful if you could help to figure out the necessary steps to replay my ride on the trainer.

I did manage to connect to the trainer and to control "Target Power", but I can not figure out how to
load a 'fit' file, and then start/stop its execution by the trainer.

Then my other question is: how can I control what is being replayed - my power or the terrain gradient ?

Any help, or reference to relevant documentation will be highly appreciated.
Thank you all in advance,

Tomer      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Hi Tomer,

Loading a .fit file for playback is not a feature that is part of the ANT+ profile. If trainers support this feature it is likely specific to the particular device.

Ian      

Signature

Ian Haigh

Rank

Total Posts: 5

Joined 2019-10-31

PM

Thank you, Ian.

I have Hammer H3 and it does support this feature. Where would you recommend me to look for more info ?

Tomer      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Where did you originally find out this feature exists? I can't find reference to it anywhere.

Ian      

Signature

Ian Haigh

Rank

Total Posts: 5

Joined 2019-10-31

PM

well....I could replay various rides using other apps, such as Rouvy for example.
So if they could do it, I think this is doable. Do you agree or am I missing something ?      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Ah ok I am understanding now. That functionality doesn't work by loading a fit file to the trainer. Rouvy, Zwift, TrainerRoad, and other similar applications are controlling the trainer in real time through the controls aspect of the FE-C profile. When they support loading a fit file, it is functionality controlled by the individual application. They are converting the information in the fit file into the format presented in section 8.8 of the profile document "Control Data Pages". If your trainer supports simulation mode, you will find page 50 and 51 the easiest to convert to in your application.

Ian      

Signature

Ian Haigh

Rank

Total Posts: 5

Joined 2019-10-31

PM

Thank you Ian.
This was helpful.

I've looked on the pages you recommended and believe that I have a high level understanding now.
What is still not clear to me - assuming I know to convert gradients from "fit" file to "page 51" format, how do I send this data to the trainer ?

Is there some example I can learn from ?
It was pretty straightforward with the Target Power.

Tomer      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Target power is sent with page 49, so you just send page 51 instead using very similar methods.

If you are using the ANT+ Android plugin look for constructs for "track resistance" instead of "target power", requestSetTrackResistance similar to requestSetTargetPower for example.

Ian      

Signature

Ian Haigh

Rank

Total Posts: 5

Joined 2019-10-31

PM

Got it, thanks.

I just tried it with the simulator and it worked.
I think I have all the components (in my head) ready...now to work smile

Tomer      
Rank

Total Posts: 12

Joined 2022-10-27

PM

haighi - 11 November 2019 03:09 PM
Ah ok I am understanding now. That functionality doesn't work by loading a fit file to the trainer. Rouvy, Zwift, TrainerRoad, and other similar applications are controlling the trainer in real time through the controls aspect of the FE-C profile. When they support loading a fit file, it is functionality controlled by the individual application. They are converting the information in the fit file into the format presented in section 8.8 of the profile document "Control Data Pages". If your trainer supports simulation mode, you will find page 50 and 51 the easiest to convert to in your application.

Ian


I have read this post and my question is that how Rouvy, Zwift, TrinerRoad and other similar applicaiton controlling the trainer in real time while the ANT+ data transmission is 4Hz ( it has delay like 254mili seconds ) for controlling the resistance. No?
Please let me know if there is possibility to control your trainer in rearl time with ANT+ while the ANT+ data rate is 4 Hz. When I say real time I mean maximum delay of 50ms.      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

ANT+ does not support resistance control with less delay.      

Signature

Ian Haigh