cagnulein / qdomyos-zwift

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

[BUG] Can't connect QZ to Zwift #2579

Closed johnatas-henrique closed 2 weeks ago

johnatas-henrique commented 2 months ago

Describe the bug My trainer and the HR armband are connected to the QZ app in Android and works within the app, but when I opened Zwift, nothing showed to me to connect the trainer and the armband.

To Reproduce Steps to reproduce the behavior:

  1. Powered on everything
  2. Opened QZ on my android phone
  3. Tested that everything was working on the QZ app
  4. Opened Zwift on PC
  5. The sensors didn't show in connections page on Zwift

Expected behavior I expected the sensors to show on Zwift to pair.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Append a debug log debug-Fri_Sep_6_16_23_22_2024.log

cagnulein commented 2 months ago

Thanks, it's an issue with the cadence I'm trying to fix it asap

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

Il giorno ven 6 set 2024 alle 21:41 Johnatas Henrique < @.***> ha scritto:

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

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

cagnulein commented 2 months ago

done @johnatas-henrique https://github.com/cagnulein/qdomyos-zwift/actions/runs/10744352261

Google is very slow in these days, reviewing the app on the store, even the beta ones. For this reason, in order to check right now if the patch that I did is right, you can use the android build in the link (check at the bottom of the page in about 1 hour). In order to test it you need first to remove the current QZ version on your phone, install the one that you downloaded. This version is a 15 minutes trial (you can restart it as many times as you want) and I can unlock it if you want, send me an email to roberto.viola83@gmail.com mentioning this ticket and that you are on android. Let me know if you have any questions

johnatas-henrique commented 2 months ago

Unfotunately, didn't wok at all.

The game doesn't show qz fo me to connect, but trainer works on qz app, this powertap that's showing on is a pedal that I use as secondary powemeter and isn't connected to qz image

image

cagnulein commented 2 months ago

ok so the fix worked because now you can see the metrics in qz! now let's check the experimental settings: did you change something there? virtual device, virtual bluetooth and dircon must be enabled

johnatas-henrique commented 2 months ago

Enable virtual device / Virtual device bluetooth / Wahoo direct connect are all enabled, and they were enabled when I started the app in the first time, I didn't need to change these configs.

Do you want a new log?

image image

cagnulein commented 2 months ago

A fresh log will be useful, yes. Anyway try to enable also the android notification icon setting in the experimental settings and restart qz and try to run then zwift on the same android, if it works it means that we have to check the zwift device that you are using. by the way where does zwift run now?

johnatas-henrique commented 2 months ago

A fresh log will be useful, yes. Anyway try to enable also the android notification icon setting in the experimental settings and restart qz and try to run then zwift on the same android, if it works it means that we have to check the zwift device that you are using. by the way where does zwift run now?

Will try to enable this and test in 2h, when I will be back on my house. I run Zwift on my PC, same wifi as the android phone. Which config I need to make to use Qz and Zwift on same android phone?

johnatas-henrique commented 2 months ago

Tested in same android phone and it worked, although a bit laggy to change power and cadence, and sometimes putting cadence at 0. So the problem is with my PC, right? Could it be helped if I use QZ for Windows?

cagnulein commented 2 months ago

Only enable the android notification icon setting in the experimental settings plus the other ones that you have already

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

Il giorno sab 7 set 2024 alle 17:18 Johnatas Henrique < @.***> ha scritto:

A fresh log will be useful, yes. Anyway try to enable also the android notification icon setting in the experimental settings and restart qz and try to run then zwift on the same android, if it works it means that we have to check the zwift device that you are using. by the way where does zwift run now?

Will try to enable this and test in 2h, when I will be back on my house. I run Zwift on my PC, same wifi as the android phone. Which config I need to make to use Qz and Zwift on same android phone?

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

cagnulein commented 2 months ago

Yes you can try qz on the same pc. You can download the nightly build from the release page here on github. Let me know!

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

Il giorno sab 7 set 2024 alle 19:26 Johnatas Henrique < @.***> ha scritto:

Tested in same android phone and it worked, although a bit laggy to change power and cadence, and sometimes putting cadence at 0. So the problem is with my PC, right? Could it be helped if I use QZ for Windows?

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

johnatas-henrique commented 2 months ago

Hi, was travelling and got back to my house today. Tried to use the qz nightly, but qz app didn't saw any bt items. When I open Zwift on this PC all items are encountered. Aside disabling the firewall, what I need to do fo qz see the trainer and armband?

image

johnatas-henrique commented 2 months ago

After, I installed the qz app on my Samsung Watch 5 Pro and tried to connect the HR to QZ desktop app, but QZ didn't found the watch too.

Below there is two logs, because I opened the app, tried to make it work, after I closed, disconnect and power off everything, connect everything to the wall and poweron everything and opened the app a second time, didn't work too.

Thanks for all

debug-sáb_set_14_18_36_42_2024.log

debug-sáb_set_14_18_43_43_2024.log

cagnulein commented 2 months ago

Watch works only with the android version (installed from the play store)

For the windows version you need to use the msvc build, did you?

johnatas-henrique commented 2 months ago

Used windows-binary.zip version, will try to use windows-msvc2019-binary.zip and get back to say if it has worked.

Thanks!

cagnulein commented 2 months ago

Glad it worked! Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno dom 15 set 2024 alle ore 15:27 Johnatas Henrique < @.***> ha scritto:

Used windows-binary.zip https://github.com/cagnulein/qdomyos-zwift/releases/download/nightly/windows-binary.zip version, will try to use windows-msvc2019-binary.zip https://github.com/cagnulein/qdomyos-zwift/releases/download/nightly/windows-msvc2019-binary.zip and get back to say if it has worked.

Thanks!

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

johnatas-henrique commented 2 months ago

The msvc version shows my equipments, but started to force close after 1 or 2 minutes. debug-dom_set_15_10_47_21_2024.log

cagnulein commented 2 months ago

is it your first time you use the windows msvc version?

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

Il giorno dom 15 set 2024 alle ore 15:50 Johnatas Henrique < @.***> ha scritto:

The msvc version shows my equipments, but started to force close after 1 or 2 minutes. debug-dom_set_15_10_47_21_2024.log https://github.com/user-attachments/files/17005962/debug-dom_set_15_10_47_21_2024.log

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

johnatas-henrique commented 2 months ago

Yeah, I tried to use the wrong version before. I'm on windows 10.

cagnulein commented 2 months ago

@johnatas-henrique i guess I saw something similar here https://github.com/cagnulein/qdomyos-zwift/actions/runs/10871613685

wait for the build and download the msvc from there at the bottom and share a debug log if the crash persists.

are you on windows 11?

stale[bot] commented 1 month ago

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.

cagnulein commented 2 weeks ago

@johnatas-henrique Any news?