Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No response to QZ input on x22i treadmill #85

Closed
lthown opened this issue Feb 15, 2024 · 18 comments
Closed

No response to QZ input on x22i treadmill #85

lthown opened this issue Feb 15, 2024 · 18 comments
Labels
wontfix This will not be worked on

Comments

@lthown
Copy link

lthown commented Feb 15, 2024

Ok, I followed the troubleshooting steps and I do not get any response on the treadmill when I press tile input in QZ. I do have the sliders enabled, joined the beta on Android and even selected X22i in the new menu. I have ADB remote enabled and I even turned on show input touches in the treadmill Dev options.
Screenshot_20240214_212830

@cagnulein
Copy link
Owner

Are you able to connect to adb from your pc?

@lthown
Copy link
Author

lthown commented Feb 15, 2024

I was able to use the bat file and ADB to install the companion app. I haven't tried running commands manually via ADB since then but I'm happy to try any specific ones.

@cagnulein
Copy link
Owner

cagnulein commented Feb 15, 2024 via email

@lthown
Copy link
Author

lthown commented Feb 15, 2024

OK, that was weird - I had to revoke debugging authorizations a few times and disable and re-enable debugging and then I finally got it to connect to an ADB console and take commands. The command you suggested brought up a controls screen on the treadmill. Cool.

I was then able to exit out of ADB on my laptop and go into QZ on my android device and now the speed and inclination tile controls are working. Manually messing with those seems to work great.

A couple of questions:

I didn't see it specified in this page about the XML tags but what unit of measure is the speed tag? is that KPH? Is there a way to get it to mi/h like I'm using on the tile view in QZ?

Does the XML program ignore the warm-up/cool down on the treadmill?

When it says "Program has been loaded correctly, press start to begin!" on my android device - does that mean press start on the treadmill? I'm operating under the assumption that in order for QZ to do anything I have to start a manual workout and be on the manual workout screen

Is there a way to have QZ trigger the cool down or end workout on the treadmill? Pressing the STOP button near the tiles on my android device does not seem to cause any effect on the treadmill.

@cagnulein
Copy link
Owner

OK, that was weird - I had to revoke debugging authorizations a few times and disable and re-enable debugging and then I finally got it to connect to an ADB console and take commands. The command you suggested brought up a controls screen on the treadmill. Cool.

I was then able to exit out of ADB on my laptop and go into QZ on my android device and now the speed and inclination tile controls are working. Manually messing with those seems to work great.

Great!

A couple of questions:

I didn't see it specified in this page about the XML tags but what unit of measure is the speed tag? is that KPH? Is there a way to get it to mi/h like I'm using on the tile view in QZ?

xml is in KPH. There is a ticket about setting the unit but for now is in KPH.

Does the XML program ignore the warm-up/cool down on the treadmill?

QZ doesn't know about this (neither do I :) ). What is it?

When it says "Program has been loaded correctly, press start to begin!" on my android device - does that mean press start on the treadmill? I'm operating under the assumption that in order for QZ to do anything I have to start a manual workout and be on the manual workout screen

You have to press twice the start button on qz to engage the program or once if the play button was already blinking red (pause mode)

Is there a way to have QZ trigger the cool down or end workout on the treadmill? Pressing the STOP button near the tiles on my android device does not seem to cause any effect on the treadmill.

Again i don't know what is it. Is it a special mode on the treadmill tablet?

@lthown
Copy link
Author

lthown commented Feb 15, 2024

OK, I'll use math to convert to KPH, no biggie.

To confirm though - I do need to be in the manual workout screen on the treadmill before starting anything in QZ, correct?

On this treadmill, when you start a manual workout it defaults to a 3 minute "warm-up" at 1 mile/hour. there's a button to end the warm-up and then you're into the main workout screen

you can also trigger a cool down which defaults to 10 minutes and slowly reduces speed, that can be ended at any time to stop the workout (see attached video)

One last thing for this report =) I'm not sure what the integration with this treadmill is supposed to support but I do not see the heart rate monitor data from the treadmill in the QZ tiles and the fan control on the treadmill does not do anything in QZ. no data is sent and the tile does not control the fan on the treadmill.

2024-02-15.06.51.56-1.mp4

@cagnulein
Copy link
Owner

OK, I'll use math to convert to KPH, no biggie.

ok in case I can add it in the future!
I'm using CHATGPT to create my own program, you can do the same!

To confirm though - I do need to be in the manual workout screen on the treadmill before starting anything in QZ, correct?

yes!

On this treadmill, when you start a manual workout it defaults to a 3 minute "warm-up" at 1 mile/hour. there's a button to end the warm-up and then you're into the main workout screen

hah ok, do you see the metrics in qz as well during this period?

you can also trigger a cool down which defaults to 10 minutes and slowly reduces speed, that can be ended at any time to stop the workout (see attached video)

thanks, this is very helpful!

One last thing for this report =) I'm not sure what the integration with this treadmill is supposed to support but I do not see the heart rate monitor data from the treadmill in the QZ tiles and the fan control on the treadmill does not do anything in QZ. no data is sent and the tile does not control the fan on the treadmill.

sure I can add it!
Are you able to send me an adb logcat log so i can check if your treadmill is logging it as well as speed and inclination

Let me know!

@lthown
Copy link
Author

lthown commented Feb 15, 2024

During the warm-up/cool down I do see the speed and inclination in QZ and I'm able to change them on the treadmill using QZ

Yes I can - to be clear I believe what you are requesting is that I use my laptop to connect to the treadmill ADB, then I'll run the following:

adb logcat -c (clears the log)
adb logcat -f X22i_fan_and_HR.log (saves logcat to local file on windows machine)

Then I'll fire up a manual workout on the treadmill with the hear rate monitor active. I'll adjust the fan speed, end the warm-up early, adjust the speed and inclination for fun, start cool down, end the workout

Stop logcat capture. (Control+C).

Would you prefer I email the logs?

@cagnulein
Copy link
Owner

yes perfect! it's a pleasure working with people like you :)

you can attach the log compressed here, thanks! (so i keep a trace of every mod that I'm doing)

@lthown
Copy link
Author

lthown commented Feb 16, 2024

OK, logcat attached. Oddly it looks like QZ Companion is getting the heart rate data, it's just not passing it on to my Android device.

X22i_fan_and_HR.zip

@cagnulein
Copy link
Owner

cagnulein commented Feb 16, 2024 via email

@lthown
Copy link
Author

lthown commented Feb 16, 2024

Yep, I'm on the beta.

BTW I did mess with the fan, speed, incline, speaker volume, and did the warm up and cool down process during that period.

If you need it I can grab the wolf and ifit logs from the treadmill, I have Total commander with the network drive plugin installed so I can move stuff on and off easily.

@cagnulein
Copy link
Owner

cagnulein commented Feb 16, 2024 via email

@lthown
Copy link
Author

lthown commented Feb 16, 2024

Debug from QZ is attached.

every time I turn off the treadmill, in order to connect to ADB I have to disable and reenable debugging in the developer settings of the treadmill.

debug-Thu_Feb_15_20_59_41_2024.zip

@cagnulein
Copy link
Owner

cagnulein commented Feb 16, 2024 via email

@cagnulein
Copy link
Owner

done! https://github.com/cagnulein/qdomyos-zwift/actions/runs/7927097435

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

Copy link

stale bot commented Mar 2, 2024

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.

@stale stale bot added the wontfix This will not be worked on label Mar 2, 2024
@stale stale bot closed this as completed Mar 9, 2024
@cagnulein
Copy link
Owner

hi @lthown any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants