cagnulein / QZCompanionNordictrackTreadmill

Companion App of QZ for Nordictrack Treadmills and Bikes
https://www.qzfitness.com/
GNU Affero General Public License v3.0
43 stars 12 forks source link

No response to QZ input on x22i treadmill #85

Closed lthown closed 6 months ago

lthown commented 6 months ago

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 commented 6 months ago

Are you able to connect to adb from your pc?

lthown commented 6 months ago

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 commented 6 months ago

Try for example to run

adb shell input swipe 100 200 300 400 200

And let me know if you see a touch reaction

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

Il giorno gio 15 feb 2024 alle 06:55 Chris Bair @.***> ha scritto:

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.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/85#issuecomment-1945418002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWG3NFQE5B7MTPWLUOTYTWPORAVCNFSM6AAAAABDJSET5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVGQYTQMBQGI . You are receiving this because you commented.Message ID: @.*** com>

lthown commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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.

https://github.com/cagnulein/QZCompanionNordictrackTreadmill/assets/750471/a3482ae9-0733-4468-86d9-9d25047cde5d

cagnulein commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

Easy fix for this! Are you on the beta on android? https://play.google.com/apps/testing/org.cagnulen.qdomyoszwift

Let me know!

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

Il giorno ven 16 feb 2024 alle 04:20 Chris Bair @.***> ha scritto:

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 https://github.com/cagnulein/QZCompanionNordictrackTreadmill/files/14305294/X22i_fan_and_HR.zip

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/85#issuecomment-1947696352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGTZHFD4BEGSNGMDD3YT3GAZAVCNFSM6AAAAABDJSET5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGY4TMMZVGI . You are receiving this because you commented.Message ID: @.*** com>

lthown commented 6 months ago

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 commented 6 months ago

i guess a debug log from qz could be sufficient now https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

i will check again the previous log in the meantime

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

Il giorno ven 16 feb 2024 alle 04:35 Chris Bair @.***> ha scritto:

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.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/85#issuecomment-1947705197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFXJUCKOTMMPLJOD5DYT3HWZAVCNFSM6AAAAABDJSET5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXG4YDKMJZG4 . You are receiving this because you commented.Message ID: @.*** com>

lthown commented 6 months ago

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 commented 6 months ago

got the issue, this treadmill is logging it in a slightly different way. i will fix this later today thanks

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

Il giorno ven 16 feb 2024 alle 05:05 Chris Bair @.***> ha scritto:

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 https://github.com/cagnulein/QZCompanionNordictrackTreadmill/files/14305654/debug-Thu_Feb_15_20_59_41_2024.zip

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/85#issuecomment-1947724040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGTNP6OLR6UAFBIF53YT3LJJAVCNFSM6AAAAABDJSET5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXG4ZDIMBUGA . You are receiving this because you commented.Message ID: @.*** com>

cagnulein commented 6 months ago

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

stale[bot] commented 6 months 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 6 months ago

hi @lthown any news?