cagnulein / qdomyos-zwift

Zwift bridge for smart treadmills and bike/cyclette
https://www.qzfitness.com/
GNU General Public License v3.0
420 stars 116 forks source link

[BUG] Auto-Resistance Breaks the "Gears" Settings #1180

Closed Mike-MacLeans closed 1 year ago

Mike-MacLeans commented 1 year ago

Auto resistance does not work in Zwift. It does work if I adjust the setting in Zwift, but it disables the gears setting when I do this. Details below.

  1. I have the auto resistance setting turned on in Zwift. image

  2. have auto resistance turned on in your app. image I think this is related to the "Gears" in the app, because when I change the "Trainer Difficulty" slider in the Zwift App, the "Gears" setting in your app does not work anymore.

To Reproduce Steps to reproduce the behavior:

  1. Open QZ Fitness. Make sure Auto-Resistance is turned on and the gears setting is set to a number. I use '5'.
  2. Open Zwift - Auto resistance will not work. The resistance stays the same whether going uphill or downhill.
  3. Click somewhere in the "trainer difficult" slider in Zwift to adjust the trainer difficulty.
  4. Error occurs - the gears setting no longer works in QZ fitness. However, the auto-resistance setting did not work beforehand.

Expected behavior Auto-resistance should work in Zwift when the "Gears" setting is enabled.

Desktop (please complete the following information):

Debug log is attached. I also attached testing notes of what I was physically doing.

debug-Wed_Jan_18_18_05_02_2023.log

debug notes.txt

cagnulein commented 1 year ago

@mikemac400 I checked your log and i saw clearly that QZ is applying the gear mod correctly. So i have a doubt about the zwift setup: could you send me a screenshot of the zwift pair screen? I would like to check which devices you choose there.

Because in the log I got that you're using the Wahoo KICKR virtual device correctly, but for what you're telling to me it seems that the bike is connected directly to zwift instead going through QZ.

Let me know

cagnulein commented 1 year ago

also in the log I saw a lot of

Wed Jan 18 18:05:15 2023 1674090315269 Warning:   Unable to set value for descriptor "{00002902-0000-1000-8000-00805f9b34fb}" for characteristic "{00002a05-0000-1000-8000-00805f9b34fb}" of the service "{00001801-0000-1000-8000-00805f9b34fb}" : "Access is denied."
Wed Jan 18 18:05:15 2023 1674090315282 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "ftmsbike::errorServiceDescriptorWriteError"

it makes me think about this issue #1151

Mike-MacLeans commented 1 year ago

@cagnulein - That is interesting. I double checked that I sent you the correct log, and I did. The bike was connected.

Unfortunately, I cannot connect my laptop to QZ fitness anymore. I am consistently getting the bluetooth error now. I will purchase one of the dongles we discussed in #1151 and see if that helps. I cannot send over anymore debug logs until then since my device will not connect.

To clarify a few of your questions...

Could you send me a screenshot of the zwift pair screen? I would like to check which devices you choose there.

I checked your log and i saw clearly that QZ is applying the gear mod correctly.

Take a quick look at the logs, but don't spend too much time on it. This issue may resolve itself with a new bluetooth dongle. I will also try to connect to a friend's laptop and my desktop to see if that works. I will update the ticket when I test on other devices or test the new dongle.

cagnulein commented 1 year ago
  • Here is a screenshot of the devices I choose in Zwift. I actually cannot choose the "Zwift Hub". It gets replaced by the fake wahoo kickr device. Let me know if this is correct.

yes it is

  • To clarify, the "Gears" setting was working correctly UNTIL I tried to adjust the trainer difficulty in Zwift. When I did that, the bike became a lot easier to pedal imediately despite the ground still being flat in Zwift. This happened around 6:09 in the notes I attached.

yes what I saw in that moment is that the incline from zwift decreases, but qz was still applying the gear mod. That's why i'm confused...

Ok let me know when you will be ready to test it again.

Mike-MacLeans commented 1 year ago

@cagnulein - This issue is resolved. Getting the UB-400 dongle resolved the issue. Auto-Resistance works now. The bluetooth errors must have been interfering with auto-resistance.

cagnulein commented 1 year ago

great @mikemac400 ! yes i supposed this!