cagnulein / qdomyos-zwift

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

Unable to connect my Zwift Play to QZ #2458

Closed felixlbr closed 2 months ago

felixlbr commented 3 months ago

I followed the tutorial on Youtube to use my controllers Zwift Play on QZ but it doesn’t work. Even my Home Trainer that I am able to connect, when I can’t change gear by using “+” “-“ on the screen. I am using Zwift Cog and not a classic Gear

To Reproduce Steps to reproduce the behavior:

  1. Enable “Zwift Play”, “Gear” and adjust “Gear gain”
  2. Quit the app
  3. Connect my Zwift Play to my Ipad via Bluetooth
  4. Restart QZ

Expected behavior I expected to have my Zwift Play connected to QZ. I only see my Home Trainer “found” on the dashboard.

image

Device

debug-merjuil17_22_12_06_2024.log

cagnulein commented 3 months ago

thanks i will check this tomorrow, 11pm here have a great day Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mer 17 lug 2024 alle ore 22:35 Félix Liburski < @.***> ha scritto:

Assigned #2458 https://github.com/cagnulein/qdomyos-zwift/issues/2458 to @cagnulein https://github.com/cagnulein.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#event-13542785220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFYVCFAU7ZA77ZAOXLZM3IPLAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGU2DENZYGUZDEMA . You are receiving this because you were assigned.Message ID: @.***>

cagnulein commented 3 months ago

hi @felixlbr I checked the log: I can't see the zwift play at all in bluetooth in this log. Are you sure they aren't connected somewhere else and also did you press a button on both before opening QZ to wake them up? You can also use the free app nrfconnect to see if you can see them. They are called "zwift play" Let me know

cagnulein commented 3 months ago

https://github.com/user-attachments/assets/5946cd71-2681-4b2f-9571-102d8400ceb2

felixlbr commented 2 months ago

debug-lunjuil22_15_18_07_2024.log

cagnulein commented 2 months ago

got it! the zwift ride has a different value! i will do this tonight! thanks

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno lun 22 lug 2024 alle ore 15:23 Félix Liburski < @.***> ha scritto:

debug-lunjuil22_15_18_07_2024.log https://github.com/user-attachments/files/16334023/debug-lun__juil__22_15_18_07_2024.log

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2242952787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWCLQGWOSMU3AWY25ZDZNUBWBAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSHE2TENZYG4 . You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 months ago

just sent a new version! let me know! Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno lun 22 lug 2024 alle ore 16:10 cagnulein @.***> ha scritto:

got it! the zwift ride has a different value! i will do this tonight! thanks

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno lun 22 lug 2024 alle ore 15:23 Félix Liburski < @.***> ha scritto:

debug-lunjuil22_15_18_07_2024.log https://github.com/user-attachments/files/16334023/debug-lun__juil__22_15_18_07_2024.log

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2242952787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWCLQGWOSMU3AWY25ZDZNUBWBAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSHE2TENZYG4 . You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 months ago

@felixlbr any news?

felixlbr commented 2 months ago

IMG_1780

I can still not change gear with my zwift play, I have the impression that gear does not affect the Home trainer Resistance

cagnulein commented 2 months ago

Nope, its nor the reason. Send me a fresh debug log. Thanks Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno ven 26 lug 2024 alle ore 09:34 Félix Liburski < @.***> ha scritto:

IMG_1780.png (view on web) https://github.com/user-attachments/assets/9ba60d7d-1682-4bfd-8367-390fc7a948bd

I can still not change gear with my zwift play, I have the impression that gear does not affect the Home trainer Resistance

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2252148975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWDE2HVQZAF5BHC4NOLZOH3WZAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGE2DQOJXGU . You are receiving this because you were mentioned.Message ID: @.***>

felixlbr commented 2 months ago

I am currently on vacation, I will be able to send it in one week.

cagnulein commented 2 months ago

Ok, no problem. Have a great vacation! Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno ven 26 lug 2024 alle ore 09:46 Félix Liburski < @.***> ha scritto:

I am currently on vacation, I will be able to send it in one week.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2252166637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEYDJ3VUSERXPYEEATZOH5DTAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGE3DMNRTG4 . You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 months ago

https://github.com/ajchellew/zwiftplay/issues/5

Citizenyolo commented 2 months ago

I have the same issue with my new Zwift Ride. Same way to replicate it as described above.

Zwift Play does seem to connect and the device appears on the Bluetooth list. If I go to Settings / Advanced setting and pull down the Manual Device list it appears as "Zwift Ride".

However virtual shifting does not work. The only thing it does is when I press the orange brake lever on my LEFT handlebar it changes the virtual shift with a -2 value and if I press it hard it decreases with a value of about -6 or more. It does not feel more difficult or more easy in watt terms. If I press the same button on the RIGHT side, nothing happens, no values change.

I would also consider assigning a different button for gear shifting. Did you know that the orange brake lever (the long button) has a dual function in Zwift? If you press it softly it is used for steering to that direction. If you press it hard it is used for braking (front or rear).

In Zwift the shifting is assigned to the buttons on the SIDE. You can find two shifters (like on a real roadbike) and in Zwift either of the 2 you press on the right side will shift to smaller virtual cog (more effort) and when you press either on the left side will shift to larger virtual cog (less effort). Maybe you could consider keeping consistency with this approach.

debug-Tue_Aug_6_18_44_36_2024.log

I have attached the log file.

cagnulein commented 2 months ago

Hi @Citizenyolo thanks for the log. Checked and understood the issue: your zwift ride is different from the previous one because it sends both controller frome one bluetooth device. I just handled it and I'm sending you a new build. Check the gear tile in qz to see that if it's changing: in the log that you sent me the gears just moves only negative (from 0 to -99), did you notice this?

About the buttons: yes we can map also other buttons, for first of all, let's see if this it's working, then we can proceed mapping other buttons.

Let me know

Citizenyolo commented 2 months ago

Thank You!

Yes, The Virtual gear only progressed in negative increments and only on the left side button (no positive gear change when pressing on the right side button). Also it should probably progress in an increment of 1 at a time and not 2, 4 or 8. Also It changed nothing on the pedalling difficulty in any way.

Shall I go to the Testflight app on my iPhone and install QZ again or I need to wait for it to offer update?

cagnulein commented 2 months ago

you will receive a new testflight version by email. for the 2 4 or increment you can adjust the gears gain to 0.5. then i can also add a new setting to increase it only to the rising edge of the button. i did it in this way so that if you want to increase or decrease quickly, you are able to.

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mar 6 ago 2024 alle ore 20:33 Zoltan Haas < @.***> ha scritto:

Thank You!

Yes, The Virtual gear only progressed in negative increments and only on the left side button (no positive gear change when pressing on the right side button). Also it should probably progress in an increment of 1 at a time and not 2, 4 or 8. Also It changed nothing on the pedalling difficulty in any way.

Shall I go to the Testflight app on my iPhone and install QZ again or I need to wait for it to offer update?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2271904882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEXK6FKMWQRUQO3LW3ZQEJIBAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZRHEYDIOBYGI . You are receiving this because you were mentioned.Message ID: @.***>

Citizenyolo commented 2 months ago

Now it's shifting up and down but there is no change in resistance at all. I can shift from -50 to +50 and have the same watt output at the same rpm. debug-Tue_Aug_6_20_47_24_2024.log

Citizenyolo commented 2 months ago

Another issue is that when I launch two apps at the same time (1) IndieVelo on my iPad and (2) QZ on my iPhone, while both of them connect to my trainer but when IndieVelo is running the virtual shifting (using Zwift Play buttons) no longer works on QZ. I tried to shift from the app and the values go up and down but does not change the resistance feel. debug-Tue_Aug_6_20_52_04_2024.log

cagnulein commented 2 months ago

great! the problem about resistance is that indievelo is not sending resistance control at all! did you try to restart indievelo? did you select resistance control on indievelo?

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mar 6 ago 2024 alle ore 20:56 Zoltan Haas < @.***> ha scritto:

Another issue is that when I launch IndieVelo both apps (1) IndieVelo and (2) QZ connect to my trainer but when IndieVelo is running the virtual shifting no longer works on QZ. I trie debug-Tue_Aug_6_20_52_04_2024.log https://github.com/user-attachments/files/16514609/debug-Tue_Aug_6_20_52_04_2024.log d to shift from the app and the values go up and down but does not change the resistance feel.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2271941903, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGQUSYPEFL7YXSYQLTZQEL5NAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZRHE2DCOJQGM . You are receiving this because you were mentioned.Message ID: @.***>

Citizenyolo commented 2 months ago

I’ll try try it now but the resistance does not change even if i change virtual gear only on QZ. Zwift play works, changes gear, wattage is the same on QZ during training

Citizenyolo commented 2 months ago

OK, I restarted IndieVelo and the Zwift Play shifting is moving the "Gears" tile up or down. BUT it does nothing. I can be in gear 500 and pull 54 watt and do the same in -500 gear. There does not seem to be any connection between resistance feel and the gear set with or without IndieVelo is the same ie. constant. I would forget about IndieVelo for starters and focus on QZ. My understanding is that when the gears change in QZ, the resistance should change too. This does not happen yet.

cagnulein commented 2 months ago

I’ll try try it now but the resistance does not change even if i change virtual gear only on QZ. Zwift play works, chamges gear, wattage is rhe same on QZ zraining

that's normal, i'm applying gears mod only when i receiving a resistance request from any 3rd party apps. of course i can do this as well, but let's focus on indievelo first. I will check the log again, in the meantime, try the same setup with zwift, just to double check that it's an indievelo setup issue.

let me know

cagnulein commented 2 months ago

i was checking the log and just a stupid question but it worth to ask: are you connecting the iphone to indievelo right? you don't have to connect your trainer to indievelo

Citizenyolo commented 2 months ago

So the set up is as follow (and maybe wrong, but I'm new to this gear :) ) (1) Indivelo is run on an iPad Pro and connects to the trainer AND IMG_0057

IMG_0056

IMG_0055 (2) on my iPhone 14 Pro Max I have QZ and it also connects to the Wahoo trainer.

cagnulein commented 2 months ago

ok that's the issue, on indievelo you have to select the iphone not the kickr core. don't you see the qz device there?

Citizenyolo commented 2 months ago

OK, I set it up this way, I can see QZ as a separate trainer in IndieVelo and now everything is working. Changing gears and changing resistance in IndieVelo with Zwift Play Orange big buttons. The only observation is that there is a 5 to 10 second lag between shifting gear and receiving the resistance change feel.

cagnulein commented 2 months ago

image

You have to setup this way.

For the lag send me the debug log, I guess I know what is it and it's fixable of course

Citizenyolo commented 2 months ago

herre is the log debug-Tue_Aug_6_21_36_44_2024.log

cagnulein commented 2 months ago

@Citizenyolo the log is corrupted, you have to wait the finish of the upload before clicking on the comment button

Citizenyolo commented 2 months ago

Here it is again. debug-Tue_Aug_6_21_36_44_2024.log

cagnulein commented 2 months ago

got the issue! i'm sending a new on in 15 minutes!

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mar 6 ago 2024 alle ore 21:56 Zoltan Haas < @.***> ha scritto:

Here it is again. debug-Tue_Aug_6_21_36_44_2024.log https://github.com/user-attachments/files/16515085/debug-Tue_Aug_6_21_36_44_2024.log

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2272039731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWHXWD54ZLWC26A45NLZQES6TAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGAZTSNZTGE . You are receiving this because you were mentioned.Message ID: @.***>

Citizenyolo commented 2 months ago

In the meantime (but do take a break today, it is 22.00 already :) ) for future consideration please find attached an illustration of the zwift shifter button assignment. You can not change it in zwift so it would be cool (IMO) to use the same across all apps if possible. The photo explains the left side, the same logic is on the right side but increasing the resistance with the side 2 buttons.

IMG_1293

cagnulein commented 2 months ago

yes i have already handled these button for the classic zwift play devices. i just need a debug log from you where you are pressing only the new buttons so i can handle this as well. note: ONLY the new buttons. I'm uploading now the version with the lag fix. Don't worry for the time, i have my daugther and my wife to my parents in law so i'm a free bird :D

Citizenyolo commented 2 months ago

OK :) so, I just start IndieVelo and press say 5-10 times the right 2 buttons and than do the same 5-10 times the left side buttons and you can identify the buttons from the log file?

Citizenyolo commented 2 months ago

I can also press DIFFERENT times the 4 buttons (2 on each side) so you can clearly identify them?

cagnulein commented 2 months ago

I guess you forgot to add the log :)

cagnulein commented 2 months ago

or you are saying that I should look the last one?

Citizenyolo commented 2 months ago

No I have not done it, just wanted to ask if that is how I can help? If yes, I'll go and do that and send the log file.

cagnulein commented 2 months ago

sure that's exaclty what i need, you can even use only qz for this, without indievelo.

cagnulein commented 2 months ago

write the order of you presses, so i can identify them

Citizenyolo commented 2 months ago

OK, here is what I did: Right Top side button: 3x Right Bottom side button: 6x Left Top side button: 5x Left Bottom side button: 10X debug-Tue_Aug_6_22_12_54_2024.log

cagnulein commented 2 months ago

perfect, so just to be sure: i'm adding the 2 right buttons to the plus gear and the other 2 left ones to the minus one, right?

Citizenyolo commented 2 months ago

Give me 2 mins to double check on Zwift...

Citizenyolo commented 2 months ago

Correct: 2 right buttons to the plus gear (higher resistance) and the other 2 left ones to the minus one (lower resistance)

cagnulein commented 2 months ago

done! i'm sending you also this one!

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mar 6 ago 2024 alle ore 22:24 Zoltan Haas < @.***> ha scritto:

Correct: 2 right buttons to the plus gear (higher resistance) and the other 2 left ones to the minus one (lower resistance)

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2458#issuecomment-2272084707, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWDM3MTKBAAEUFF4XIDZQEWGTAVCNFSM6AAAAABLBLGERWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGA4DINZQG4 . You are receiving this because you were mentioned.Message ID: @.***>

Citizenyolo commented 2 months ago

Buttons are perfect, same as in Zwift. Lag is much better but it's still there but not 5-10 sec more like 2-3 sec lag.

debug-Tue_Aug_6_22_41_34_2024.log

cagnulein commented 2 months ago

got the issue, i don't know why but it wasn't fixed the previous one. let me check. perfect for the buttons!

Citizenyolo commented 2 months ago

Lag is still there, I did not feel any change vs previous version. Log is attached. This week I'm working from home so you can reach me any time for testing new versions. Thanks!

debug-Tue_Aug_6_23_35_11_2024.log

cagnulein commented 2 months ago

ok i have to add some other debug log to understand it. tomorrow we will solve it for sure :) have a good night!

Citizenyolo commented 2 months ago

I tested it but something got worse. Now the resistance does not change to any direction, always at about 75 watt. Attached the log. The "gear" tile does change though and the buttons work as expected.

debug-Wed_Aug_7_10_01_40_2024.log