cagnulein / qdomyos-zwift

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

[REQ] NordicTrack S15i bike with MyWoosh #2436

Open jones-d opened 2 months ago

jones-d commented 2 months ago

Is your feature request related to a problem? Please describe. When using MyWoosh, I would like QZ just to just control incline/decline. So I can manually adjust the resistance.

Describe the solution you'd like QZ to control incline and decline as per the route I am following.

Describe alternatives you've considered I have the new beta app, but it does not align to the route I am following.

Additional context Add any other context or screenshots about the feature request here.

cagnulein commented 2 months ago

hi, please attach a debug log with the issue https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

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

Il giorno mar 9 lug 2024 alle 15:03 jones-d @.***> ha scritto:

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

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

jones-d commented 2 months ago

debug-Tue_Jul_9_19_20_00_2024.log Here is a simple debug file. Expectation is the incline would increase as myWoosh starts on a hill. But didn't see any change. You will see I manually changed the resistance (needed it higher to increase the watts) at the end I manually increased the incline to match what was on screen. Let me know if I have any options incorrect. On the bike I have S22i selected.

cagnulein commented 2 months ago

first of all, with qz only, are you able to change the inclination with the inclination plus button? if not, did you enable the slider on the ifit manual workout screen?

jones-d commented 2 months ago

The sliders on ifit are visible in a manual workout. No changes when I do a change in QZ app directly. CheersDaveOn 9 Jul 2024, at 19:38, Roberto Viola @.***> wrote: first of all, with qz only, are you able to change the inclination with the inclination plus button? if not, did you enable the slider on the ifit manual workout screen?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

cagnulein commented 2 months ago

ok that's the main issue. adb is working on your bike? you can try this guide if you didn't https://github.com/cagnulein/QZCompanionNordictrackTreadmill

jones-d commented 2 months ago

Companion app is running on the bike (used Mac script method) and I see the standard cadence and watts etc being sent to the QZ app. Settings updated and ADB remote activated (used the latest beta)CheersDaveOn 9 Jul 2024, at 19:47, Roberto Viola @.***> wrote: ok that's the main issue. adb is working on your bike? you can try this guide if you didn't https://github.com/cagnulein/QZCompanionNordictrackTreadmill

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

cagnulein commented 2 months ago

OK, so I have to add the s15i Profile. run the adb Screenshot batch file on your mac And upload it here. thanks

jones-d commented 2 months ago

I have reinstalled the new companion app. Attached is the log. It was a successful install.

There is no new profile on the bike, so I have selected the s22i on the bike.

During this process, the IP address has changed; I have now set it to static (update the QZ app with the correct new IP).

I retested, but I was still unable to change the resistance on the app. 

On 9 Jul 2024, at 19:57, Roberto Viola @.***> wrote:

OK, so I have to add the s15i Profile. run the adb Screenshot batch file on your mac And upload it here. thanks

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2436#issuecomment-2218429674, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5MAMWQSPVIFZFP4LUAOBLZLQXDDAVCNFSM6AAAAABKS2QJRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGQZDSNRXGQ. You are receiving this because you authored the thread.

Log generated at Tue 9 Jul 2024 20:10:22 BST for IP 192.168.1.134

Pinging 192.168.1.134 ... PING 192.168.1.134 (192.168.1.134): 56 data bytes 64 bytes from 192.168.1.134: icmp_seq=0 ttl=64 time=2.603 ms

--- 192.168.1.134 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 2.603/2.603/2.603/0.000 ms

Connecting to treadmill via ADB ...

disconnected everything

List of devices attached 192.168.1.134:5555 device product:argon2 model:MalataMediatekArgon2ExtraMemory device:argon2 transport_id:1

Android version: 9 SDK version: 28

Checking for previous installation ... QZ Companion found - removing

Success Installing QZ Companion ... Performing Streamed Install Success Launching QZ Companion ...

bash arg: -p bash arg: org.cagnulein.qzcompanionnordictracktreadmill bash arg: 1 args: [-p, org.cagnulein.qzcompanionnordictracktreadmill, 1] arg: "-p" arg: "org.cagnulein.qzcompanionnordictracktreadmill" arg: "1" data="org.cagnulein.qzcompanionnordictracktreadmill" // Warning: no activities found for category android.intent.category.MONKEY Events injected: 1

Network stats: elapsed time=60ms (0ms mobile, 0ms wifi, 60ms not connected)

Launching iFit ...

bash arg: -p bash arg: com.ifit.standalone bash arg: 1 args: [-p, com.ifit.standalone, 1] arg: "-p" arg: "com.ifit.standalone" arg: "1" data="com.ifit.standalone" // Warning: no activities found for category android.intent.category.MONKEY Events injected: 1

Network stats: elapsed time=35ms (0ms mobile, 0ms wifi, 35ms not connected)

Rebooting treadmill ...

cagnulein commented 2 months ago

ok but i asked to provide me the screenshot from the bike using the script in the installer so i can add the profile for your bike, it doesn't exist yet :)

jones-d commented 2 months ago

 Sorry, is this the one?

On 9 Jul 2024, at 20:22, Roberto Viola @.***> wrote:

ok but i asked to provide me the screenshot from the bike using the script in the installer so i can add the profile for your bike, it doesn't exist yet :)

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2436#issuecomment-2218470239, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5MAMT6VS275COVJDAOU2TZLQ2ANAVCNFSM6AAAAABKS2QJRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGQ3TAMRTHE. You are receiving this because you authored the thread.

cagnulein commented 2 months ago

you have to put the attachments directly on the github web interface, otherwise I can't see them

jones-d commented 2 months ago

dumpsys.log QZ-Companion-log.txt Are these the right files?

cagnulein commented 2 months ago

no you have to run this https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/InstallPackage/adb-screenshot-mac.sh

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

Il giorno mar 9 lug 2024 alle 21:28 jones-d @.***> ha scritto:

dumpsys.log https://github.com/user-attachments/files/16149373/dumpsys.log QZ-Companion-log.txt https://github.com/user-attachments/files/16149375/QZ-Companion-log.txt Are these the right files?

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

jones-d commented 2 months ago

2024-07-09@20-36-42 This is the file it creates in the output of the script

cagnulein commented 2 months ago

you have to run it keeping the ifit Manual workout screen on foreground . the target of this is getting the coordinates of the sliders of the ifit app

jones-d commented 2 months ago

2024-07-09@20-42-40

cagnulein commented 2 months ago

ok perfect, i will add this in the next days!

in the meantime you can try to run this from your mac

adb shell input swipe 100 200 300 400 100

you should see a fake swipe on your ifit console on a random position

let me know

jones-d commented 2 months ago

Yes, when I run the command, it brings up this screen - IMG_3910

cagnulein commented 2 months ago

perfect! i will let you know!

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

Il giorno mar 9 lug 2024 alle 21:50 jones-d @.***> ha scritto:

Yes, when I run the command, it brings up this screen - IMG_3910.jpg (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/49987634/0eaae96b-4e8c-485d-a96c-90a2e3c29745

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

cagnulein commented 2 months ago

@jones-d i was checking the log that you sent me yesterday and I noticed this

adb_connect(const char *)_block_invoke unable to connect to 192.168.1.139:5555

can you try now always with adb remote enabled on qz and with the mac disconnected from adb to collect a debug log? We have to see that the adb connection between the iphone and the bike is working correctly before going on. Thanks

jones-d commented 2 months ago

This was the old IP address; I updated it to 192.168.1.134 yesterday (and made it static) - I did ride this morning and was unable to control the resistance via the QZ app - here is the full debug.
debug-Tue_Jul_9_20_08_18_2024.log.zip

cagnulein commented 2 months ago

perfect

Tue Jul 9 20:08:22 2024 1720552102671 Debug: /Users/cagnulein/qdomyos-zwift/src/ios/lockscreen.mm void lockscreen::adb_connect(const char *)_block_invoke connected to 192.168.1.134:5555

i'm doing the modification on qz I will let you know when it's ok

cagnulein commented 2 months ago

ok last question @jones-d using mywhoosh and qz, can you just do just a quick test changing the gears tile on qz. setting for example a 10 or 20, you should see with the current settings the slider changing of the inclination. for sure the inclination will assume the wrong values, but at least you should see the sliders changing. let me know

jones-d commented 2 months ago

I have done a very quick test. I can change the gears in the QZ tile, but I don't see any changes to either of the sliders on the bike. Here is the log file. debug-Tue_Jul_9_20_08_18_2024.log.zip

cagnulein commented 2 months ago
Tue Jul 9 20:08:22 2024 1720552102671 Debug: /Users/cagnulein/qdomyos-zwift/src/ios/lockscreen.mm void lockscreen::adb_connect(const char *)_block_invoke connected to 192.168.1.134:5555
Tue Jul 9 20:19:01 2024 1720552741562 Debug: /Users/cagnulein/qdomyos-zwift/src/ios/lockscreen.mm void lockscreen::adb_sendcommand(const char *)_block_invoke protocol fault (no status)
Tue Jul 9 20:19:02 2024 1720552742384 Debug: /Users/cagnulein/qdomyos-zwift/src/ios/lockscreen.mm void lockscreen::adb_sendcommand(const char *)_block_invoke device not found
Wed Jul 10 08:10:10 2024 1720595410602 Debug: /Users/cagnulein/qdomyos-zwift/src/ios/lockscreen.mm void lockscreen::adb_sendcommand(const char *)_block_invoke device not found
Wed Jul 10 08:10:12 2024 1720595412238 Debug: /Users/cagnulein/qdomyos-zwift/src/ios/lockscreen.mm void lockscreen::adb_sendcommand(const char *)_block_invoke device not found

there is a protocol fault error. that's the issue. Never seen this before, i'm checking it.

jones-d commented 2 months ago

I am using the latest QZ iOS app Beta release - 2.16.60

cagnulein commented 2 months ago

yeah i know, it seems something about the bike itself.

ok other test when you have time: 1) disable the adb remote setting in qz and restart qz 2) without mywhoosh try to increase the inclination from the qz tile, do you see any reaction on the screen of ifit?

jones-d commented 2 months ago

Disabled the ADB remote in QZ I tested changing the incline from the QZ app. It did change the bike, but it went only negative (pressing +) Here is the log file - debug-Wed_Jul_10_12_48_14_2024.log

cagnulein commented 2 months ago

ok that's perfect! now i will add the coordinates ! keep this configuration on qz main app, i will update the companion app, asap

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

Il giorno mer 10 lug 2024 alle 13:54 jones-d @.***> ha scritto:

Disabled the ADB remote in QZ I tested changing the incline from the QZ app. It did change the bike, but it went only negative (pressing +) Here is the log file - debug-Wed_Jul_10_12_48_14_2024.log https://github.com/user-attachments/files/16160309/debug-Wed_Jul_10_12_48_14_2024.log

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

cagnulein commented 2 months ago

done, download the new companion apk from here https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.47/QZCompanionNordictrackTreadmill.apk

set the s15i on the companion and restart the bike

let me know

jones-d commented 2 months ago

Many Thanks. I installed the new version, selected the s15i bike, and restarted the bike. No other changes in the QZ app. With only using the QZ app and the bike. I can now use the incline tile to change the bike. Nothing changes when I try the resistance tile (in the app or on the bike). With the gears tile, I can make the change in the QZ app, but no change on the bike.
Here is the log file. debug-Thu_Jul_11_10_41_59_2024.log

cagnulein commented 2 months ago

Nothing changes when I try the resistance tile (in the app or on the bike)

yes this is expected, i choose to use inclination since with one slider I can affect inclination and resistance in one shot.

With the gears tile, I can make the change in the QZ app, but no change on the bike. Here is the log file.

yes without adb enabled (don't turn it on) gears are applied only when you use mywhoosh or zwift.

You can try now Let me know

jones-d commented 2 months ago

OK, a little further testing. Please let me know if this is expected. QZ app and MyWhoosh running Started Freeride (for around 5mins) - the incline automatically adjusted to the map (not exactly - but it moved) - Manually controlled resistance, changing gears in the QZ app had no effect. Started new workout - No auto adjustment of resistance or incline to match the required power output or terrain Please advise if this is as expected. My expectations In Freeride, it is working, auto incline adjustment, manual resistance adjustment In the Workout, I would expect auto incline adjustment to map terrain and auto resistance adjustment to keep within the workout ranges. Please advise - here is the latest log - debug-Thu_Jul_11_18_11_25_2024.log

cagnulein commented 2 months ago

I will check the log. Actually workout mode is not yet implemented but I can do it. Gears should works in the first scenario, so I will check the log in order to understand which is the issue Thanks

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

Il giorno gio 11 lug 2024 alle 19:33 jones-d @.***> ha scritto:

OK, a little further testing. Please let me know if this is expected. QZ app and MyWhoosh running Started Freeride (for around 5mins) - the incline automatically adjusted to the map (not exactly - but it moved) - Manually controlled resistance, changing gears in the QZ app had no effect. Started new workout - No auto adjustment of resistance or incline to match the required power output or terrain Please advise if this is as expected. My expectations In Freeride, it is working, auto incline adjustment, manual resistance adjustment In the Workout, I would expect auto incline adjustment to map terrain and auto resistance adjustment to keep within the workout ranges. Please advise - here is the latest log - debug-Thu_Jul_11_18_11_25_2024.log https://github.com/user-attachments/files/16181422/debug-Thu_Jul_11_18_11_25_2024.log

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

jones-d commented 2 months ago

Many thanks for all your support!

On 11 Jul 2024, at 18:36, Roberto Viola @.***> wrote:

I will check the log. Actually workout mode is not yet implemented but I can do it. Gears should works in the first scenario, so I will check the log in order to understand which is the issue Thanks

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

Il giorno gio 11 lug 2024 alle 19:33 jones-d @.***> ha scritto:

OK, a little further testing. Please let me know if this is expected. QZ app and MyWhoosh running Started Freeride (for around 5mins) - the incline automatically adjusted to the map (not exactly - but it moved) - Manually controlled resistance, changing gears in the QZ app had no effect. Started new workout - No auto adjustment of resistance or incline to match the required power output or terrain Please advise if this is as expected. My expectations In Freeride, it is working, auto incline adjustment, manual resistance adjustment In the Workout, I would expect auto incline adjustment to map terrain and auto resistance adjustment to keep within the workout ranges. Please advise - here is the latest log - debug-Thu_Jul_11_18_11_25_2024.log https://github.com/user-attachments/files/16181422/debug-Thu_Jul_11_18_11_25_2024.log

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

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2436#issuecomment-2223510768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5MAMR4MDKCELNLOF7R6HDZL27BNAVCNFSM6AAAAABKS2QJRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRTGUYTANZWHA. You are receiving this because you were mentioned.

cagnulein commented 2 months ago

ok i fixed the gears issue. Let's first check if it's right, then we can go on with the erg mode

jones-d commented 2 months ago

I tested this morning, and the gears are working by changing the incline on the bike - QZ App and MyWhoosh with a simple freeride. - Thank you. From a user experience perspective, as the bike moves up and down (a feature of the NordicTrac), having the bike move up when you change gears could be better, especially when the terrain changes. The bike is moving up and down and is okay with terrain, but it doesn't make for an enjoyable ride when you change gears. I suggest the gears change the resistance, leaving the incline and declining to work independently for a free ride. Does this make sense? Here is today's log - debug-Fri_Jul_12_08_51_35_2024.log

cagnulein commented 2 months ago

i'm running at the moment anyway I was thinking about your message and I don't have your bike, but if I remember right, your bike doesn't allow to change inclination and resistance without affecting each other. I mean, if you change the inclination and one second Later you change the resistance, and then back push up the inclination again, doesn't the resistance been overridden?

You can check this, for example, putting the resistance to the maximum or the minimum and then changing the inclination. If they don't affect each other, yes, I can do it.

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

Il giorno ven 12 lug 2024 alle 10:07 jones-d @.***> ha scritto:

I tested this morning, and the gears are working by changing the incline on the bike - QZ App and MyWhoosh with a simple freeride. - Thank you. From a user experience perspective, as the bike moves up and down (a feature of the NordicTrac), having the bike move up when you change gears could be better, especially when the terrain changes. The bike is moving up and down and is okay with terrain, but it doesn't make for an enjoyable ride when you change gears. I suggest the gears change the resistance, leaving the incline and declining to work independently for a free ride. Does this make sense? Here is today's log - debug-Fri_Jul_12_08_51_35_2024.log https://github.com/user-attachments/files/16190588/debug-Fri_Jul_12_08_51_35_2024.log

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

jones-d commented 2 months ago

Hope you enjoyed the run!They are independent of each other, you can increase the incline and it has no impact on the resistance and vice versa. Incline actually moves the bike, to simulate going up and down hills. It can go to +20% and down to -10%.  When the bike changes it does impact the effort required.  In free ride mode, I would attempt to mirror the incline percentage and use the resistance as gears to manage my output.For a workout, I fix the incline % and then just change the resistance to match the watt output. Does this help?CheersDaveOn 12 Jul 2024, at 15:26, Roberto Viola @.***> wrote: i'm running at the moment anyway I was thinking about your message and I

don't have your bike, but if I remember right, your bike doesn't allow to

change inclination and resistance without affecting each other. I mean, if

you change the inclination and one second Later you change the resistance,

and then back push up the inclination again, doesn't the resistance been

overridden?

You can check this, for example, putting the resistance to the maximum or

the minimum and then changing the inclination. If they don't affect each

other, yes, I can do it.

Roberto Viola

Software engineer and open source enthusiast

http://robertoviola.cloud

Il giorno ven 12 lug 2024 alle 10:07 jones-d @.***> ha

scritto:

I tested this morning, and the gears are working by changing the incline

on the bike - QZ App and MyWhoosh with a simple freeride. - Thank you.

From a user experience perspective, as the bike moves up and down (a

feature of the NordicTrac), having the bike move up when you change gears

could be better, especially when the terrain changes. The bike is moving up

and down and is okay with terrain, but it doesn't make for an enjoyable

ride when you change gears.

I suggest the gears change the resistance, leaving the incline and

declining to work independently for a free ride.

Does this make sense?

Here is today's log - debug-Fri_Jul_12_08_51_35_2024.log

https://github.com/user-attachments/files/16190588/debug-Fri_Jul_12_08_51_35_2024.log

Reply to this email directly, view it on GitHub

https://github.com/cagnulein/qdomyos-zwift/issues/2436#issuecomment-2225049875,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AAALYWCYKXGJJX6IOTXZWMLZL6FFTAVCNFSM6AAAAABKS2QJRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRVGA2DSOBXGU

.

You are receiving this because you were mentioned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 months ago

ok i'm doing it. i will send you a new beta for QZ and also a new QZ companion app to handle this

cagnulein commented 2 months ago

new companion https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.48/QZCompanionNordictrackTreadmill.apk i'm sending the ios one shortly

jones-d commented 2 months ago

Tested the new app and companion this morning on a quick free ride. The ride had two hills, the bike automatically adjusted, but to roughly half of the % incline and decline (so when it was at 5% in MyWhoosh, it was around 2.5% in the bike) I tried the gears option in the app, I could see it change the target resistance, but this wasn't reflected on the bike. Here is the latest log debug-Sat_Jul_13_09_53_49_2024.zip

cagnulein commented 2 months ago

Ok, I'll check it out. I'm currently on a century ride outdoor

Il giorno sab 13 lug 2024 alle 12:06 jones-d @.***> ha scritto:

Tested the new app and companion this morning on a quick free ride. The ride had two hills, the bike automatically adjusted, but to roughly half of the % incline and decline (so when it was at 5% in MyWhoosh, it was around 2.5% in the bike) I tried the gears option in the app, I could see it change the target resistance, but this wasn't reflected on the bike. Here is the latest log debug-Sat_Jul_13_09_53_49_2024.zip https://github.com/user-attachments/files/16201740/debug-Sat_Jul_13_09_53_49_2024.zip

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

cagnulein commented 2 months ago

ok i guess i got the resistance issue https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.49/QZCompanionNordictrackTreadmill.apk

don't check the target resistance, it will assume another value. let me know if it's better

if it works i will check the calculation of the inclination, it seems that we can simply add a 2 in the slider calculation. maybe you can try to use the inclination tile without mywhoosh to check if it's a simply 2 for all the inclinations values

let me know

jones-d commented 2 months ago

Many thanks! I will give it a try in the morning!On 13 Jul 2024, at 21:16, Roberto Viola @.**> wrote: ok i guess i got the resistance issue https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.49/QZCompanionNordictrackTreadmill.apk don't check the target resistance, it will assume another value. let me know if it's better if it works i will check the calculation of the inclination, it seems that we can simply add a 2 in the slider calculation. maybe you can try to use the inclination tile without mywhoosh to check if it's a simply *2 for all the inclinations values let me know

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

jones-d commented 2 months ago

Performed a quick test this morning with the updated companion app loaded on the bike. The incline is working as expected. I found a setting in MyWhoosh called "Gradient feel" This was set at 51%, so MyWhoosh would only send half the gradient to the QZ App. Changing the QZ incline tile manually steps up at the correct values for the bike. The resistance is controlling the bike, as it increased to 7 when the bike started. Changing either the resistance tile or gear tile had no impact; the resistance didn't change. But when I changed the incline tile (above test), the resistance changed on the bike to 19. The expectation is that the resistance title (or gear) only adjusts the bike's resistance, while the incline title only adjusts the incline setting. It's great to see the progress; the resistance is changing on the bike! Here is the log file - debug-Sun_Jul_14_08_46_17_2024.log

cagnulein commented 2 months ago

that's strange, the qz app is doing it correctly. Could you try to send me a picture of the debug log area on the companion when you're pressing the gears button? you have to:

jones-d commented 2 months ago

Will do, out on a cycle at the moment, will have a look when I get back. CheersDaveOn 14 Jul 2024, at 14:28, Roberto Viola @.***> wrote: that's strange, the qz app is doing it correctly. Could you try to send me a picture of the debug log area on the companion when you're pressing the gears button? you have to:

stay on the qz companion app screen press the plus on the gears tile on qz press the dump log button on the qz companion take a picture of what you see there thanks

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

jones-d commented 2 months ago

I can pull down the full log file if it helps. When I change gear in QZ, it does adjust the resistance, but it is not consistent and with some delay.

2024-07-14_logs.txt

cagnulein commented 2 months ago

ok that's an half good news. For the log i need the one from the companion directly. you can also get them using

adb logcat -f > log.txt

let me know