cagnulein / qdomyos-zwift

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

Pause and Pause Mode Settings Not Working Correctly with Horizon 7.4-AT-03 #2303

Open hellobensalt opened 3 weeks ago

hellobensalt commented 3 weeks ago

Hardware/software: Horizon 7.4AT-03 treadmill, Pixel 6 phone running latest Android version, QZ 2.16.50

I've attached an HCI snoof using Horizon's AFG Pro app. I did the following:

  1. Start the treadmill in the AFG Pro app.
  2. Pause the treadmill in the AFG Pro app.
  3. Restart the treadmill in the AFG Pro app.
  4. Pause the treadmill in the AFG Pro app.
  5. Start the treadmill manually.
  6. Pause the treadmill manually.
  7. Start the treadmill manually.
  8. Stop the treadmill in the AFG Pro app.
  9. Start a new activity
  10. Start the treadmill in the AFG Pro app.
  11. Pause the treadmill manually.
  12. Stop the treadmill manually.

Everything worked as expected. However, I realise there are a lot of steps above, so you may need separate logs for the different steps. Please let me know. btsnoop_hci.log

cagnulein commented 3 weeks ago

Thanks, I will have a look

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

Il giorno lun 22 apr 2024 alle ore 12:54 hellobensalt < @.***> ha scritto:

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

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

cagnulein commented 3 weeks ago

hi @hellobensalt I checked the pause frame used by the AFG app and it's the same that I implemented. Could you please create a debug log from QZ while you are trying to pause and unpause the treadmill from QZ directly?

The "Disable Pause" setting in the horizon treadmill must be disabled.

So follow this:

Let me know Thanks!

hellobensalt commented 3 weeks ago

I'll check later.

But it's not just pausing the treadmill in QZ. The app always starts the treadmill in pause mode. Every time. The General and Horizon Treadmill pause settings do not work. Also, once the treadmill is paused, the treadmill will not restart.

So, there are many issues. I can try to capture a debug log for each one, but I'm not sure what to do about the settings. I can turn them on/off and restart the app, then connect to the treadmill, if that helps?

Anyway, I'll start with what you asked for.

cagnulein commented 3 weeks ago

just show me a debug log in the scenario that i wrote , i would like to compare it with the hci snoof one thanks

Il giorno mar 23 apr 2024 alle 13:14 hellobensalt @.***> ha scritto:

I'll check later.

But it's not just pausing the treadmill in QZ. The app always starts the treadmill in pause mode. Every time. The General and Horizon Treadmill pause settings do not work. Also, once the treadmill is paused, the treadmill will not restart.

So, there are many issues. I can try to capture a debug log for each one, but I'm not sure what to do about the settings. I can turn them on/off and restart the app, then connect to the treadmill, if that helps?

Anyway, I'll start with what you asked for.

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

hellobensalt commented 2 weeks ago

Here it is:

debug-Fri_Apr_26_17_23_54_2024.log

Sorry for the delay. I'm going to try to look at all this during the next few days.

cagnulein commented 2 weeks ago

No problem, thanks! I will get back to you ASAP

Il giorno ven 26 apr 2024 alle 12:32 hellobensalt @.***> ha scritto:

Here it is:

debug-Fri_Apr_26_17_23_54_2024.log https://github.com/cagnulein/qdomyos-zwift/files/15129378/debug-Fri_Apr_26_17_23_54_2024.log

Sorry for the delay. I'm going to try to look at all this during the next few days.

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

hellobensalt commented 2 weeks ago

Many thanks.

cagnulein commented 2 weeks ago

@hellobensalt i checked your debug log and the main issue of this is that you're pressing the pause/play button in QZ while the treadmill is still initializing.

Consider that your treadmill took at least 1m 30s second to boot up. Try to wait so 2 minutes (to be sure) and let's try to replicate the issue after this.

Let me know