cagnulein / qdomyos-zwift

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

[BUG] QZ disconnects from Zwift during activity #2643

Open spacebeez opened 2 weeks ago

spacebeez commented 2 weeks ago

Describe the bug Using QZ with Horizon 7.4 AT Treadmill and Zwift. After approximately 20-30 minutes QZ will disconnect from Zwift and stop the treadmill. This behavior has happened both using QZ and Zwift on a single android device, and on separate devices. Log below is from my two-device setup.

Smartphone (please complete the following information):

Same issue was present using Galaxy Tab S7 to run both QZ and Zwift, did not test S24 alone.

Append a debug log

debug-Wed_Oct_9_16_38_15_2024.log

-Note, I removed some of the middle and end of the log to reduce the file size to 25MB limit.

cagnulein commented 2 weeks ago

Does the treadmill have this problem even connected directly to zwift without qz using the same devices?

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

Il giorno gio 10 ott 2024 alle 18:24 spacebeez @.***> ha scritto:

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

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

spacebeez commented 2 weeks ago

I have not tested connecting the treadmill directly to Zwift since I don't have an interest in Zwift without the auto-incline feature that QZ provides. I will try this though at my next opportunity to see if I can replicate the issue that way.

cagnulein commented 2 weeks ago

my doubt is that the treadmill or the phone as some issue on Bluetooth So first of all, let's check this. Let me know.

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

Il giorno gio 10 ott 2024 alle 19:20 spacebeez @.***> ha scritto:

I have not tested connecting the treadmill directly to Zwift since I don't have an interest in Zwift without the auto-incline feature that QZ provides. I will try this though at my next opportunity to see if I can replicate the issue that way.

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

spacebeez commented 1 week ago

I have tried a couple sessions now with the treadmill paired directly to Zwift on the Galaxy Tab S7. One around 35 minutes and one around 47 minutes. Neither session had bluetooth issues and held a connection until I ended it.

cagnulein commented 1 week ago

That's great!

spacebeez commented 1 week ago

Well, perhaps I should have communicated more clearly. The original problem is still present when using QZ, I have just confirmed that the problem is NOT present when I connect the Horizon 7.4 directly to Zwift on the same tablet, without QZ.

cagnulein commented 1 week ago

It could be a firmware issue about the Inclination, I already saw this on another treadmills

Could you try to use qz without the auto inclination?

spacebeez commented 4 days ago

I tried running with Zwift auto-inclination disabled in the QZ app and it still disconnected around 23-ish minutes.

cagnulein commented 4 days ago

I will check again your log tomorrow if there is something else strange

cagnulein commented 4 days ago

@spacebeez i guess i found the issue. The issue is that QZ is using the custom horizon protocol to write the inclination, this protocol starts a manual workout on the horizon that could have a timeout after more or less 30 minutes.

You can try 2 things:

Let me know!