Giter Club home page Giter Club logo

Comments (45)

kwikzand avatar kwikzand commented on July 20, 2024

Here is a video of this issue happening. Hopefully the link works
https://www.icloud.com/attachment/?u=https%3A%2F%2Fcvws.icloud-content.com%2FB%2FAVfKeqlYLU3gBIbHs9XNic6SvMgIAQUKG3epohXcIrPAAdoHi19KOtUM%2F%24%7Bf%7D%3Fo%3DAr8NvCaW60M4pZN0-_LKWjFADvRmj61BVgILbNB7goBa%26v%3D1%26x%3D3%26a%3DCAogGEQBQKxtux4KyBvmeEkxJm3VAtHBmeJ4pgXIy0BZbqYSdhDgvZzE7TAY4M2XmPcwIgEAKgkC6AMA_0ZLHzRSBJK8yAhaBEo61QxqJWgqI39eYOq1obTv6hyxje38fpAbQ2jhwVyEPx5dDUJyy9VIb_pyJc14EWvlj7rADYe15MZxGJygdh78WXtVhvIcRxnYYRRJ3ftD4rU%26e%3D1681261979%26fl%3D%26r%3D65A868B7-D483-452F-B43A-F23DAC824D04-1%26k%3D%24%7Buk%7D%26ckc%3Dcom.apple.largeattachment%26ckz%3D5EF03398-D3ED-4988-A928-B21221744B41%26p%3D139%26s%3DQBTz9Yuwab9v_dKRMTwuQjokFBM&uk=M_mmGRHnJZnTnuewCmYxXw&f=IMG_9825.MOV&sz=247994085

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

Hi @kwikzand the issue is simple! I have to add the coordinate of your touch screen!
Simply follow this #29

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Mon03-13-2023@8-18-17 84
Mon03-13-2023@8-18-38 72
Here are the 2 screenshots.

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Here are the coordinates based on the screenshots (1280 x 800 with 0,0 at the top left corner)

<style> </style>
Incline (%) x y
0 74 585
1 74 545
2 74 505
3 74 465
4 74 425
6 74 385
7 74 346
8 74 307
9 74 268
10 74 229
     
Speed (mph) x y
0 1205 583
1 1205 539
2 1205 495
4 1205 451
5 1205 407
6 1205 363
7 1205 319
8 1205 275
10 1205 231

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Please let me know if there are some other specific things that you need. Thank you so much!

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

done, it's building @kwikzand !

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

@kwikzand done https://github.com/cagnulein/QZCompanionNordictrackTreadmill/suites/11524153744/artifacts/596013698
give it a try! (rememeber to select the new t6.5s setting in the companion!)

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Thank you for getting this out quick. I tested it out. It is definitely an improvement over when I have the t6.5si selected on qzcompanion. However it is still not quite accurate.

So I really only care about having the incline controlled by QZ since I prefer to use the onboard controls for the speed especially if I use it with zwift. The incline seems to be working better (but still not as responsive or accurate). Just for context, I have the inclination step set to 0.5 in the QZ app since that is the smallest that the treadmill can do (0, 0.5, 1.0, etc...) I also have the speed step set to 1.0 in the QZ app.

I still see 2 issues

  1. Example: when I set the incline to 5.0, then use the + on the incline in the QZ app, it jumps down to 2.0% (sometimes 1.5%). I'm not sure how it works, if QZcompanion has to increment the incline in order to get to an incline command from QZ. Maybe this is what the issues is coming from.

  2. Example: when I start a workout (0% incline and 1mph speed default from the treadmill), I would select the + on the incline in the QZ app and it increments to 0.5% incline as expected. Then I set the speed to 7mph using the on board buttons. I would select the + on the incline in the qz app and it increments to 1.0% as expected, BUT it sets the speed back down to 1mph. I can work around this problem by pressing the + on the speed in the QZ app, but since there is a delay, it will take a while to get to a certain speed. Also, if I choose to use smaller increments (specifically going to a speed of 7.3 mph for instance), it doesn't always get to that specific speed (even if I adjust the speed step to 0.1 in the QZ app settings). I think this is a limitation on the ifit app for the tablet (when I drag the speed on the tablet, it jumps 0.3 or 0.4mph and not 0.1). This is going to a separate issue, but the point is, I think the speed should stay the same (7mph) when I change the incline from QZ.

Please let me know if there is something I need to clarify on, or if you need debug files.

Thank you!

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

both issues should be easily fixable.
Please provide me a debug log showing the issue https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

Thanks

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

debug-Mon_Mar_13_13_34_21_2023.log

Here is the debug from QZ. Do you also need the debug from QZ companion?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Thanks. I'm actually having an issue establishing an adb connection now (I was able to do it before). I have a debug log file for qzcompanion but it's not the same test and time as the qz debug log file I sent you above. when I run the debug batch file it gets stuck at -waiting for device-. Any idea how I can reset this? I've already tried restarting the treadmill and my laptop.

Thanks!

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Yes

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

I also checked that the USB debugging mode is still enabled

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

stupid question: ping is working?
@victorypoint any idea?

from qzcompanionnordictracktreadmill.

victorypoint avatar victorypoint commented on July 20, 2024

@kwikzand, can you upload your QZ-Companion-log.txt?

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Yep. it's pinging properly
image

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

@victorypoint which folder can I find that in?

Thanks

from qzcompanionnordictracktreadmill.

victorypoint avatar victorypoint commented on July 20, 2024

@victorypoint which folder can I find that in?

Thanks

Same install folder as the QZ-Companion.bat. The log gets generated when the bat is run

from qzcompanionnordictracktreadmill.

victorypoint avatar victorypoint commented on July 20, 2024

Also make sure there is no previous ADB session still in memory - use task manager to kill if there is.

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

QZ-Companion-log.txt
I ended the adb (32 bit) task and still couldn't get past the waiting for device. I'll try some other things. I just don't want to lose the debug log from qzcompanion especially if it will help with the qz app debug log I already sent that corresponds to the same test.

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

logcat.log
logcat.txt
managed to get it to work (I had to force stop iFit and QZCompanion) to establish the ADB connection.

from qzcompanionnordictracktreadmill.

victorypoint avatar victorypoint commented on July 20, 2024

Have you tried restarting the treadmill and Windows PC? It seems one of them os keeping an old ADB connection open.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

debug-Mon_Mar_13_13_34_21_2023.log

Here is the debug from QZ. Do you also need the debug from QZ companion?

ok let's focus on the inclination first: what I'm seeing on the log is that there is a little offset from the request of QZ and the inclination on the treadmill. For example QZ asks for 3% and the treadmill goes to 3.5%

Then in a point I saw that QZ asks for 2.5% and the treadmill go to 6. If you didn't change this manually so yes, i need the companion log because it seems more an issue int the companion.

Thanks

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

I've actually included the latest QZ Companion logs a couple of comments above. I used the debug batch file. Is there a different way I need to get this?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

@kwikzand my fault, i didn't see it (it was 4am for me on my last comment :) )
I will check this later today

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

no worries. and I definitely don't expect you to work excessively on this. I'm able to use the app fine for zwift. I'm just looking forward to get automatic elevation as well. I appreciate all your efforts!

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

hi @kwikzand i checked the log that you posted but there is something strange: I can't see any workout on them. One thing that I learnt from @victorypoint is that you have to collect the logs while the workout is in progress, otherwise ifit app will delete them. Maybe that's the case?

Also I can't see the logcat from the QZ Companion directly

logcat.log logcat.txt managed to get it to work (I had to force stop iFit and QZCompanion) to establish the ADB connection.

these ones are from adb directly, but i need the one that the companion creates when you click on the adb logcat button on the companion GUI.

Let me know, thanks

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

2023-03-14_logs.0.txt
2023-03-15_logs.0.txt
2023-03-16_logs.txt
2023-03-12_logs.0.txt
2023-03-13_logs.0.txt

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

I think these are actually the files that you are looking for. I didn't realize the debug batch file also stored these on my laptop

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

okay. I'm not sure what else to try. is the adb-debug.bat the file I used to get it? Do you I need to do something specific on the treadmill tablet? I've also tried running the adb-debug batch file while a workout is running and I didn't get any different line items than before. I'm also not sure what you mean by the adb logcat button on the companion.

When I open the qz companion app on the tablet, there is only a "Dump log" button.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

yeah sorry, I mean the button dump log. The dump log will fill the text box inside the qz companion app and also will write the file /sdcard/logcat.log and then you can send me this file.
Do this only after a small workout so we can see the data coming from/to the QZC

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

got it. is the /sdcard/logcat.log saved internally in the tablet? or is there a batch file I can run from my laptop to get it?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Right. that's the batch file that I ran and you mentioned that the workout data isn't there. I've tried it while the workout is running. I'm not sure what else to try to get you the information.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

yes but when you did it did you press the dump log button before get the logs? i guess this is the missing step

from qzcompanionnordictracktreadmill.

victorypoint avatar victorypoint commented on July 20, 2024

@kwikzand, were you able to get ADB connection working between the treadmill and PC?

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

Sorry for the delay. After a lot of trial and error, I finally figured out how to get the ADB connection working consistently (I have to turn off USB debugging and turn it back on). Here are the logs that I got from tonight 3/21. the workout was around 8:33pm and it seems like it shows the speed requests on there.

logcat.log
logcat.txt

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 20, 2024

@kwikzand got it. Are you using the QZ companion 3.2.17 or above? because I don't see some debug prints about it.
Anyway I guess I found also the issue about the missing speed/incline control:

E QZ:AdbRemote: Stream closed

means the adb port was closed in the time where QZ Companion was running.

also these are the requested from qz

03-21 20:35:26.693  1431  4733 I QZ:UDPListenerService: requestSpeed: 8.0 8.0
03-21 20:35:26.701  1431  4733 I QZ:UDPListenerService: requestInclination: 6.5 6.5 -100.0
03-21 20:35:58.663  1431  3749 I QZ:UDPListenerService: requestSpeed: 8.0 8.0
03-21 20:35:58.667  1431  3749 I QZ:UDPListenerService: requestInclination: 6.5 6.5 -100.0

it don't change anything because the requested speed and inclination was already matchting the actual one.

Can you try another test pressing the plus button on the qz side of speed and incline?

from qzcompanionnordictracktreadmill.

victorypoint avatar victorypoint commented on July 20, 2024

Sorry for the delay. After a lot of trial and error, I finally figured out how to get the ADB connection working consistently (I have to turn off USB debugging and turn it back on).

@kwikzand, that's excellent 👍. So the trick is to toggle it on at first, then toggle it off and on? Do you wait between toggles? And which Android version is your tablet?

from qzcompanionnordictracktreadmill.

kwikzand avatar kwikzand commented on July 20, 2024

@cagnulein the one i have installed is 3.2.23
I did press the + and - button during that test so I wasn't sure why only those 2 speed and incline requests showed up.
I will write down the test procedure and sequence and send you an updated log.

from qzcompanionnordictracktreadmill.

stale avatar stale commented on July 20, 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.

from qzcompanionnordictracktreadmill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.