Skip to content
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

[BUG] Gears don't work for mid-work free ride segment #2897

Open
wizzy99 opened this issue Dec 10, 2024 · 123 comments · May be fixed by #2961
Open

[BUG] Gears don't work for mid-work free ride segment #2897

wizzy99 opened this issue Dec 10, 2024 · 123 comments · May be fixed by #2961
Assignees
Labels
bug Something isn't working

Comments

@wizzy99
Copy link

wizzy99 commented Dec 10, 2024

QZ was set as resistance, with the virtual Wahoo drivers for power and cadence. Play connected directly to Zwift.

Did a Zwift workout that had a free ride (non-ERG) segment. I could see the virtual gears changing on the screen, but it didn't have any impact on the trainer resistance (it stayed at the last ERG level). I had to manually change gears, and then when the 1 minute free ride ended, ERG didn't re-engage appropriately. I ultimately repaired directly with the trainer to get ERG working again.

Expected behavior
Virtual gear support during free ride with a return to ERG when free ride segment is done.

Smartphone (please complete the following information):

  • Device: iphone 16 pro
  • OS: 18.1.1
  • Version : 2.18.9 (test drive)

I haven't had time to try to recreate the bug to capture a log.

@wizzy99 wizzy99 added the bug Something isn't working label Dec 10, 2024
@cagnulein
Copy link
Owner

hi @wizzy99 i need unfortunately a debug log to check your case.
thanks

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

debug-Tue_Dec_10_11_41_04_2024.log

ok, just recreated. I did a custom workout with 2 short intervals (1 min / 10 seconds each) , a 30 second freeride, and then a 10 min cooldown (that I stopped). ERG turned off about halfway through the free ride but gear changes had to impact. When ERG reengaged, it was way under target.

@cagnulein
Copy link
Owner

Hah i got the issue better now. The issue is only when you have erg events inside? I mean on a free ride everything works fine with gears?

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

The opposite. Virtual gears don't work at all during the free ride portion of the workout. I click the button on the Play, the Zwift screen changes, but there's no impact to resistance. (How) does QZ handle the transition from ERG to free back to ERG on the same ride?

@cagnulein
Copy link
Owner

Never tried with the gears, that's why I was asking to try a free ride and check if it works correctly there. So we have a starting point

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

I've used it successfully multiple times on free rides, last night was my first workout attempt since I set up the virtual gears.

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

Sounds good. Let me know if there are any scenarios you want me to test, etc.

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

Here you go. Virtual worked fine in this freeride with a robopacer.

debug-Tue_Dec_10_13_06_29_2024.log

@cagnulein
Copy link
Owner

Thanks I will compare them in the next days

@cagnulein
Copy link
Owner

hi @wizzy99 log checked there are 3 different issues I guess:

  1. the fact erg doesn't rengage: i guess it's because you set the trainer under the ftms bike setting in the bike options. can you try to set it to disable and press ok and restart qz? then you will have the full control of the gears under the wahoo options in the bike options
  2. zwift uses the gears in the ERG mode to change the difficulty level, so it directly handled by zwift
  3. there is a known issue that I have still to understand that zwift when the "get gears from zwift" is enabled, it sends the target wattage scaled in some strange way, that's why you saw " it was way under target."

So try 1. and I will try in the next weeks to check the 3.

@wizzy99
Copy link
Author

wizzy99 commented Dec 13, 2024

I disabled ftms and the experience was worse. ERG didn’t seem to work before the free ride, gears didn’t work in free ride, but maybe erg worked after free ride (but wasn’t exactly on target)

debug-Fri_Dec_13_14_06_00_2024.log

@cagnulein
Copy link
Owner

Which kickr version is this?

I will check the log in the next days, I'm really OVERWHELMED by tickets right now

@wizzy99
Copy link
Author

wizzy99 commented Dec 13, 2024

kickr v5. No rush, I don't often do workouts with free ride, it just so happened the Baseline challenge has some.

@cagnulein
Copy link
Owner

cagnulein commented Dec 13, 2024 via email

@cagnulein
Copy link
Owner

cagnulein commented Dec 13, 2024 via email

@wizzy99
Copy link
Author

wizzy99 commented Dec 13, 2024

I just finished a ride so won't be able to try the ERG tile until tomorrow, but I did try a normal free ride with FTMS disabled and the gears didn't do anything. I had to go back into FTMS and enable Wahoo to get the virtual gears to work.

I'm with you, I'd prefer not to toggle ERG on and off, the workout is controlling than and it would be great if qz could handle. Appreciate all your hard work!

@cagnulein
Copy link
Owner

cagnulein commented Dec 14, 2024 via email

Copy link

stale bot commented Dec 29, 2024

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 Dec 29, 2024
@cagnulein
Copy link
Owner

@wizzy99 happy new year! fixed in the #2961 !
send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS. Thanks

you will have to select wahoo kickr to all the tiles in zwift, also the resisstance one now! let me know!

@stale stale bot removed the wontfix This will not be worked on label Jan 1, 2025
@cagnulein cagnulein linked a pull request Jan 1, 2025 that will close this issue
@serbasan
Copy link

serbasan commented Jan 2, 2025

Hi Roberto,

I’ve tested version 2.18(991) and today I completed a race in SIM mode and a workout in ERG mode.

In ERG mode, everything works quite well with the Wahoo Kickr selected in all Zwift tiles. However, I encountered an issue in SIM mode: there’s now a noticeable delay between pressing the gear shift button on the Zwift Play controller and the bike adjusting its resistance. Currently, the delay is 1.6 seconds, whereas it used to be around 0.6 seconds. This difference is significant and makes the ride feel uncomfortable.

I’ve run several tests comparing version 2.18(985), where the response is quick, to version 2.18(991), where the delay is much longer. I’m attaching two logs: one for ERG mode and another for SIM mode.

Looking forward to your feedback.

Best regards.
debug-jue_ene_2_08_07_29_2025.log
debug-jue_ene_2_08_08_17_2025.log

@cagnulein
Copy link
Owner

thanks @serbasan yes i received similar feedbacks also from the others. i will send you a new one ASAP. This is currently a branch, so in case you can return to the previous build via the test flight app.thanks

@wizzy99
Copy link
Author

wizzy99 commented Jan 2, 2025

When I started, it took several seconds before I actually started moving. Changes between ERG power were delayed by 6-7 seconds. Free ride seemed to work ok, but when switching back to ERG mode, the power shown in Zwift was a lot higher than shown in the qz app.
Uploading debug-Thu_Jan_2_11_03_26_2025.log…

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

I guess so but didn't see that in Workout mode. I'm going to try again.

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

All tiles in Zwift connected with DirCon and Target Watts match perfectly.

@cagnulein
Copy link
Owner

cagnulein commented Feb 4, 2025 via email

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

Just to confirm that the trainer was turned off and BTW the output watts and cadence shown in QZ and in Zwift did NOT match (but I think you know about this). Let me know if you need anything else, but I have to go out for a couple of hours.

@cagnulein
Copy link
Owner

Yes they are not matching by purpose in order to recreate the behavior of the user.

Just a confirmation so: are you doing something different on zwift from the standard setup?

Because I can't understand what's the difference otherwise

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

No, as far as I know my Zwift setup is completely standard apart from pairing the resistance tile with QZ (Wahoo KICKR 0000 33). I need to check whether ERG mode works with Power and Cadence connected directly to the trainer and Resistance connected by BT to the OZ device (I think this was the case before I updated QZ with the DirCon version), because that would indicate there is a problem with the DirCon connection.

@cagnulein
Copy link
Owner

cagnulein commented Feb 4, 2025 via email

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

Pair qz as wahoo kickr 0000 device only for resistance and your trainer directly as power and cadence

When I first tried the dircon version you told me to pair the Power and Cadence tiles directly to the trainer. Is this no longer the case?

@cagnulein
Copy link
Owner

cagnulein commented Feb 4, 2025 via email

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

OK. I will give it a whirl and let you know.

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

Sorry, unless I pair the Cadence and Power tiles directly to the trainer, the gears in SIM mode do not work. In ERG mode, with Cadence and Power tiles paired to Wahoo KICKR 0000 33 the Target Watts do not match and neither do Power and Cadence. So for the moment I can only do a Workout without QZ and for virtual gears just use QZ Wahoo KICKR 0000 33 for the Resistance tile.

@cagnulein
Copy link
Owner

I don't understand : I mean from the zwift point of view is the same.

Do you see the correct wattage on zwift from the trainer with wahoo kickr 0000? What about cadence?

@Nagusia
Copy link

Nagusia commented Feb 4, 2025

No, with wahoo kicker 0000 the readings for Power and Cadence are not the same in Zwift and QZ. It says spin faster/slower or more/less power in a random way. I am not using the ERG mode in QZ because before I found it made no difference. Could that be the problem?

@cagnulein
Copy link
Owner

@Nagusia I'm talking using the real trainer not the fake device: The wattage in qz and on zwift doesn't match using the wahoo kickr 0000? If so that's the issue

@Nagusia
Copy link

Nagusia commented Feb 5, 2025

Yes. I'm talking about the real trainer (Kicker v4). Something is different to the fake device.

@cagnulein
Copy link
Owner

ok i will check again your logs with the real device, i guess if it's so there is an easy fix! thanks for the feedbacks

@cagnulein
Copy link
Owner

btw: did you upload here a log with your real device using all the wahoo kickr 0000 to zwift? @Nagusia

@Nagusia
Copy link

Nagusia commented Feb 5, 2025

I think I did at some stage but I'll do another.

@cagnulein
Copy link
Owner

cagnulein commented Feb 5, 2025 via email

@Nagusia
Copy link

Nagusia commented Feb 5, 2025

Good news! It's apparently working fine now, both in ERG mode (all the readings in QZ and Zwift matching up) and in SIM mode with virtual gears. I don't think I did anything different except maybe pairing all the Zwift tiles with Kickr 0000 right from the get-go. I also removed the Speed and Elevation tiles from QZ but I can't see that would make any difference. This is an updated version, isn't it? Maybe the problem was with the previous version and I was confusing things. Anyway, it's a bit of a mystery and I'm sorry to have maybe wasted your time. I will have another go tomorrow to confirm that it's all good. You probably won't need it but here is the debug:

debug-Wed_Feb_5_18_36_41_2025.log

Thanks Roberto.

@cagnulein
Copy link
Owner

cagnulein commented Feb 5, 2025 via email

@Nagusia
Copy link

Nagusia commented Feb 7, 2025

Here's some feedback from a session I did today (with Kickr 0000 connected to all Zwift tiles):
1 Started free ride with virtual gears. OK
2 Changed to 2 by 2 workout without ending ride. Target Power tile on QZ matched Zwift but power, cadence and resistance were all wrong, and lost connection. Tried restarting QZ but wasn't able to pair with Kickr 0000, only bluetooth options available.
3 Closed Zwift and restarted. Paired with Kickr 0000 successfully. Started 2 by 2 workout. In QZ the changes were quick and the trainer seemed to follow QZ, but there was a lag (5 seconds?) in Zwift readings matching the tiles in QZ. Resistance in QZ was consistently high (140) when normally it's around 50, but the actual resistance on the trainer felt fine.
4 When the workout finished continued as freeride. After about 30 seconds virtual gears seemed to be working.
5 Changed to Alpha workout. This time the the changes (power/cadence) in Zwift and QZ took about 30 seconds to adjust, although the the target power tile changed immediately for each new block.
Conclusions:
1 In freeride mode with virtual gears everything works fine.
2 In workout mode it works OK, (just a problem with the lag in the Zwift display mentioned above). Doesn't work as well as with direct connection to the trainer though.
3 Changing from ERG mode to SIM mode or vice versa seems to be a problem and causes communication issues between QZ and Zwift.
I'm afraid I don't have debug files. If there is something specific you would like me to try, I can do it and produce a debug file.

@cagnulein
Copy link
Owner

Thanks @Nagusia if you will be able to replicate the issues even with small sessions will be great.

What did you change since the last successful test?

@Nagusia
Copy link

Nagusia commented Feb 8, 2025

debug-Sat_Feb_8_18_02_29_2025.log
Here's what I did:
1 Set up with Kickr 0000 in all the Zwift tiles and did the Alpha workout in ERG mode, skipping through the blocks to the end. Took about 5 seconds for Zwift and trainer to adjust to each new block, but was working well.
2 When the workout was completed Zwift went back into SIM mode with virtual gears. This seemed to be OK, but then ...
3 Without ending the ride, I went into the Alpha workout again and this is where things started to go awry. The resistance wasn't right and I couldn't generate the target power for the block. And then something I've never seen before - it showed 'Gear 8' just below the middle section of the HUD (not below the lefthand section as happens in SIM mode). It then disappeared. I don't know what the behaviour is in a trainer which natively has virtual gears. Anyway, I ended the ride without saving it and started the workout again but there was the same mismatch between power/cadence on Zwift and QZ as before. And 'Gear 8' flashed up again momentarily.
In answer to your question, I have never successfully been able to change from workout to freeride and back to workout. It seems that the sync between QZ and Zwift breaks down, as described by Wizzy99 at the top of this thread. (To be honest, I don't know if what I did today works using just Zwift connected directly to the trainer without QZ.)
In any case, the Kickr 0000 DirCon is a great improvement and works for normal use (i.e. not what I did in the test above). Out of curiosity, I will try doing the Sprint Test workout which has Free Ride sections (the one that started this whole thread in the first place), to see if QZ can cope with it. I'll let you know.

@cagnulein
Copy link
Owner

cagnulein commented Feb 8, 2025 via email

@Nagusia
Copy link

Nagusia commented Feb 8, 2025

OK. Did the "Sprint Test" workout (in the Zwift Camp Baseline section)

debug-Sat_Feb_8_19_02_13_2025.log

and .... the first few blocks in ERG mode worked OK. In the first freeride block it put me straight into gear 8 in QZ and in Zwift, where it showed gear 8 at the bottom of the middle section of the HUD as a described above. There was a mismatch between the power and cadence shown by Zwift (much lower) and QZ, but the trainer seemed to be following QZ Then we went back into ERG mode and the pattern was repeated until the workout was completed. So the issue seems to be Zwift not showing the correct power and cadence in the freeride sections. Could it be that there is an issue with the virtual gears as implemented for the Wahoo trainer in QZ and what happens when you switch between freeride and workout mode?

@cagnulein
Copy link
Owner

Yes it's what I'm thinking too.

I will give it a go in the next days

Thanks!

@Nagusia
Copy link

Nagusia commented Feb 9, 2025

Hey Roberto. Back again I'm afraid after doing a group ride this morning in SIM mode with virtual gears, and finding an issue. I paired all the tiles to Kickr 0000 and started the ride. AT some stage I was going up a hill and noticed I was being passed by everyone as I was going really slowly, despite putting out around 300 watts in QZ. I noticed that the watts in Zwift were a lot lower than in QZ, and also the cadence didn't match. There might be a lag of around 30 seconds because on the other side of the hill Zwift was showing 300 watts when I wasn't pushing hard. The issue is that QZ seems to supply the right resistance and reflect the correct power and cadence, but that this isn't passed on to Zwift correctly. In previous tests I hadn't properly taken note of this.

I stopped and re-paired the power and cadence tiles in Zwift directly to the trainer, which fixed the problem, i.e. the power and cadence readings matched up. When I finished the ride I switched to a workout (without 'End Ride'), but this didn't work - power and cadence didn't match up and the resistance was all wrong. Here's the debug for all this:

debug-Sun_Feb_9_11_54_15_2025.zip

Then .... I closed Zwift and opened it again and paired Kickr 0000 to the resistance tile in Zwift, but Power and Cadence directly to the trainer and started the Alpha workout. Didn't work correctly. I paused the workout and paired all tiles to to Kickr 0000 and worked better, but was laggy. Seems that changing the pairing mid-activity causes some problems.

debug-Sun_Feb_9_13_21_39_2025.zip

Conclusion: For freeriding in SIM mode with virtual gears I need to pair Power and Cadence directly to the trainer, and resistance to Kickr 0000. This way, everything works perfectly.
For workout/ERG mode I need to pair everything with Kickr 0000.
For this reason changing from one mode to the other causes a problem.
Apologies for bombarding you with feedback and debug files - I hope it helps!

@cagnulein
Copy link
Owner

@Nagusia Your feedbacks are gold for me! I will deeply check the logs tomorrow and I will try to find any reasons for this

I will keep you posted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants