Skip to content

[REQ] Cadence Missing on FMTS on Decathlon D100 #3282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
geel97 opened this issue Mar 7, 2025 · 24 comments · May be fixed by #3292
Open

[REQ] Cadence Missing on FMTS on Decathlon D100 #3282

geel97 opened this issue Mar 7, 2025 · 24 comments · May be fixed by #3292
Assignees
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@geel97
Copy link

geel97 commented Mar 7, 2025

Is your feature request related to a problem? Please describe.
Unfortunatelly, by specs, the Decathlon D100 doesn't send cadence measurements. It looks like to be simply disabled by software. The D100 is a just a rebranded Magene T110, which does broadcast cadence data.

Describe the solution you'd like
Maybe is possible that the data are still broadcasted. Maybe a check in the non-standard FMTS data transmitted.
EDIT: Cadence is not broadcasted, at least not in the 0.106 firmware version

Describe alternatives you've considered
Another solution for me could be to add a cadence sensor by a hall sensor connected to a GPIO on a Raspberry Pi.
EDIT: Another solution could be to calculate cadence based on speed using virtual shifting. Coasting will give wrong cadence but could be acceptable.

Additional context
btsnoop_hci_20250306_164047.zip
debug-Thu_Mar_6_17_15_26_2025.log

@geel97 geel97 added the enhancement New feature or request label Mar 7, 2025
@geel97
Copy link
Author

geel97 commented Mar 7, 2025

This morning I tried the new code from #3280 but I don't think is working. In the test I was pedaling at around 55-60 rpm.
I attach the log:
debug-Fri_Mar_7_08_55_13_2025.log

@cagnulein cagnulein linked a pull request Mar 7, 2025 that will close this issue
@cagnulein cagnulein linked a pull request Mar 7, 2025 that will close this issue
@cagnulein
Copy link
Owner

is this log from the last commit that i did?

@cagnulein
Copy link
Owner

yes it is but yes the cadence seems high. maybe the double or don't you think?

@geel97
Copy link
Author

geel97 commented Mar 7, 2025

It could be that is doubled. We can give it a shot.

@cagnulein
Copy link
Owner

ok let me know, tonight i can't sleep :D

@geel97
Copy link
Author

geel97 commented Mar 7, 2025

I made another test. I think is linked to the speed because when I stop pedaling it keeps going slowly down with the speed. Maybe the cadence is not transmitted at all...
I forgot to try to gear change. I will make another test later.

debug-Fri_Mar_7_10_02_09_2025.log

video_2025-03-07_10-17-57.mp4

@cagnulein
Copy link
Owner

cagnulein commented Mar 7, 2025 via email

@geel97
Copy link
Author

geel97 commented Mar 8, 2025

I will start to take a look on the brench treadmill-gpio.

Is it possible to tell QZ to calculate cadence from the speed transmitted by the trainer if I set a specific gear and use virtual shifting as if I had a Zwift Cog?

@cagnulein
Copy link
Owner

cagnulein commented Mar 8, 2025 via email

@geel97
Copy link
Author

geel97 commented Mar 8, 2025

Thanks. Then if you can also tell me how to set it up would be great, because I know there is the section for virtual shifting in Wahoo options, but I don't understand the meaning of Virtual Wheel Size. It will impact the calculated cadence? The trainer outputs speed, but how is calculated? The trainer has to have a wheel size in mind.
The other settings are clear.

@cagnulein
Copy link
Owner

Your trainer doesn't have the Bluetooth capabilities to use the wahoo options

You have only to use the gear gain setting to make it harder or softer with the gear tile or zwift click or zwift play

@geel97
Copy link
Author

geel97 commented Mar 10, 2025

Ah ok. I thought all trainers that support Zwift virtual shifting would have the bluetooth capabilities to do this. I gave it a quick try and it seems to do something, but maybe in the wrong way...
debug-Sun_Mar_9_17_19_16_2025.log

@cagnulein
Copy link
Owner

cagnulein commented Mar 10, 2025 via email

@geel97
Copy link
Author

geel97 commented Mar 10, 2025

No issues. I want just to understand if wahoo options are only for wahoo trainers or are for all trainers that are compatible with virtual shifting in Zwift. https://zwiftinsider.com/virtual-shifting-support-status/
There is a way to tell to QZ to calculate the cadence based on speed and based on Chainring Size, Cog Size and (I think is needed also but maybe I'm wrong) Virtual Wheel Size?
My goal is to have some cadence reading until I manage to use the GPIO with the hall sensor to measure the real cadence.
Tell me if I'm going in the wrong direction.
Thanks

@cagnulein
Copy link
Owner

No issues. I want just to understand if wahoo options are only for wahoo trainers or are for all trainers that are compatible with virtual shifting in Zwift. https://zwiftinsider.com/virtual-shifting-support-status/

No as I said the wahoo options it's only for compatible trainers that have the possibility to receive wheel diamater configurations. Are you aware if your trainer does?

There is a way to tell to QZ to calculate the cadence based on speed and based on Chainring Size, Cog Size and (I think is needed also but maybe I'm wrong) Virtual Wheel Size?

Not at the moment. But I can implement it. This week I'm in Germany the whole week so I can't.

My goal is to have some cadence reading until I manage to use the GPIO with the hall sensor to measure the real cadence.

Got it

Tell me if I'm going in the wrong direction.
Thanks

If you want I can do a quick branch to show you how to set the cadence quickly from the speed while I'm on the car

@geel97
Copy link
Author

geel97 commented Mar 10, 2025

No as I said the wahoo options it's only for compatible trainers that have the possibility to receive wheel diamater configurations. Are you aware if your trainer does?

Ah ok. I will check if it can. I was thinking the point was the compatibility with Zwift Virtual shifting, not with wheel diameter configurations.

If you want I can do a quick branch to show you how to set the cadence quickly from the speed while I'm on the car

If you can, that would be great. I don't want to bother you too much.

@cagnulein
Copy link
Owner

cagnulein commented Mar 10, 2025 via email

@geel97
Copy link
Author

geel97 commented Mar 10, 2025

Cool! I start to understand the code. 😺
Now I have only to calculate/find the right ratio. Thanks a lot.

@cagnulein
Copy link
Owner

cagnulein commented Mar 10, 2025 via email

@geel97 geel97 linked a pull request Mar 11, 2025 that will close this issue
Copy link

stale bot commented Mar 25, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 25, 2025
@stale stale bot closed this as completed Apr 1, 2025
@cagnulein
Copy link
Owner

@geel97 Any news?

@geel97
Copy link
Author

geel97 commented Apr 3, 2025

I'm using now the cadence calculated from the speed. Maybe is not the best but for now it works. For the future the feature can be added to the app via #3292 .
I'm really busy in this period as is the last month with a bit of sunlight here in Concordia Station. When I will have a bit of time I will take in hand again the PR #3292 so that this work will be usefull for all the comunity.

@cagnulein cagnulein reopened this Apr 3, 2025
@cagnulein
Copy link
Owner

cagnulein commented Apr 3, 2025 via email

@stale stale bot removed the wontfix This will not be worked on label Apr 3, 2025
Copy link

stale bot commented Apr 20, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
2 participants