cagnulein / QZCompanionNordictrackTreadmill

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

Request: Auto resistance for Nordictrack S15i bike #35

Closed ferdiretief closed 1 year ago

ferdiretief commented 1 year ago

This is a request to add auto resistance for the Nordictrack S15i bike please Thanks

cagnulein commented 1 year ago

sure I need the screenshot like this thread https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/24

You can use the batch file to acquire them https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/InstallPackage/adb-screenshot.bat

Let me know!

ferdiretief commented 1 year ago

Hi @cagnulein,

How do I use the batch file? Do I run it from my pc or on the bike? Sorry - not sure what to do. Also please confirm the screenshots you need please

cagnulein commented 1 year ago

hi @ferdiretief are you able to connect via adb to the tablet?

ferdiretief commented 1 year ago

adb?

cagnulein commented 1 year ago

ok let's make it simpler: download an apk to create screenshots from your tablet and attach them here thanks

ferdiretief commented 1 year ago

ok - which screenshots specifically do you need?

ferdiretief commented 1 year ago

@cagnulein 20230410_161434467 20230410_161507847 20230410_161557281 20230410_161729136 20230410_161800185

ferdiretief commented 1 year ago

20230410_162925379 20230410_162823490

ferdiretief commented 1 year ago

20230410_163403189

cagnulein commented 1 year ago

perfect, i will implement this in the next days

Il giorno lun 10 apr 2023 alle 08:37 ferdiretief @.***> ha scritto:

[image: 20230410_163403189] https://user-images.githubusercontent.com/111111642/230842378-82069164-bd24-4a9a-9c7b-2adb2b29ab74.jpeg

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

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

cagnulein commented 1 year ago

@ferdiretief in the meantime: if you press on the inclination and/or resistance tile with the plus/minus button on qz are you getting a touch event on the tablet of your bike?

ferdiretief commented 1 year ago

@cagnulein No it does not. It also does not increment the counter on qz when I tap the button. When I incline on the bike it does register on qz however

cagnulein commented 1 year ago

ok so first of all we need to understand this @ferdiretief are you to send me a logcat.txt log after pressing the log button in the companion?

the file is located in the sdcard

let me know

ferdiretief commented 1 year ago

@cagnulein logcat.log

cagnulein commented 1 year ago

hi @ferdiretief actually I saw the request from QZ into this log, this is a good sign. Unfortunately they are all set to null. Could you please also attach a debug log from QZ? Thanks

ferdiretief commented 1 year ago

Hi @cagnulein Where do I go to download the log on QZ? I am using an android device

cagnulein commented 1 year ago

@ferdiretief https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

ferdiretief commented 1 year ago

debug-Tue_Apr_18_06_03_34_2023.log debug-Tue_Apr_18_06_08_36_2023.log debug-Tue_Apr_18_06_09_11_2023.log debug-Tue_Apr_18_06_11_29_2023.log debug-Tue_Apr_18_06_27_30_2023.log logcat.log @cagnulein

ferdiretief commented 1 year ago

I had to restart multiple times this morning to get Zwift to see qz (first 4 files) and then the app would not see the S15i's signals so I have to restart everything again to get that to work (last 2 files) @cagnulein

cagnulein commented 1 year ago

I had to restart multiple times this morning to get Zwift to see qz (first 4 files) and then the app would not see the S15i's signals so

are you using the virtual bluetooth interface of qz or the wahoo virtual? if you are not using the wahoo one i suggest to use this to resolve this instability

debug-Tue_Apr_18_06_27_30_2023.log

in this I can see that QZ is asking to change the inclination but in the logcat file, this time, I can't see anything. Are the time synced between the 2 devices? if so i guess the logcat terminates before the last test with qz. Could you please double check this?

ferdiretief commented 1 year ago

are you using the virtual bluetooth interface of qz or the wahoo virtual? if you are not using the wahoo one i suggest to use this to resolve this instability

I am using the QZ bluetooth - How do I use the wahoo virtual option - is it a setting on QZ?

in this I can see that QZ is asking to change the inclination but in the logcat file, this time, I can't see anything. Are the time synced between the 2 devices? if so i guess the logcat terminates before the last test with qz. Could you please double check this?

I will recreate the files and send it to you

@cagnulein

cagnulein commented 1 year ago

I am using the QZ bluetooth - How do I use the wahoo virtual option - is it a setting on QZ?

it's the default one. You will see in Zwift a device called Wahoo. Don't you see it?

I will recreate the files and send it to you

ok!

ferdiretief commented 1 year ago

MicrosoftTeams-image This is what I have enabled on Experimental Features @cagnulein

cagnulein commented 1 year ago

@ferdiretief yes correct

ferdiretief commented 1 year ago

it's the default one. You will see in Zwift a device called Wahoo. Don't you see it?

I do use the Wahoo option in Zwift - that is what connects automatically after the second reboot @cagnulein

cagnulein commented 1 year ago

ok so when you talked about instability, what were you talking about? you didn't see the metrics on qz? or you saw the metrics on qz but not on zwift?

ferdiretief commented 1 year ago

When I start everything up I do it in this order

  1. Turn off Bluetooth and reboot my android phone (qz device)
  2. Switch on the S15i
  3. After I hear the chime and the screen is up, I then turn on Bluetooth on my phone and launch the app
  4. I then launch Zwift on my laptop

9 out of 10 times Zwift does not see QZ at this point so then I:

  1. Turn off Bluetooth on my phone and reboot it again
  2. At the same time I close the Zwift app
  3. Turn in Bluetooth on my phone and launch QZ
  4. Launch Zwift on my laptop again.

9 times out of 10, it will then connect and I can ride. @cagnulein

ferdiretief commented 1 year ago

QZ connects to the bike immediately so that is not the issue - it is Zwift not seeing QZ

cagnulein commented 1 year ago

ok first of all, bluetooth is completely not involved in this process. It's all over wifi. So it could be that your PC is not on the same wifi of the qz app and the bike? You can use this software on the PC https://bonjour-browser.software.informer.com/1.3/ to check if you can see the wahoo service from your pc when qz is showing the tiles.

ferdiretief commented 1 year ago

Definitely on the same wifi.... Zwift connects over Bluetooth does it not? @cagnulein

ferdiretief commented 1 year ago

You can use this software on the PC https://bonjour-browser.software.informer.com/1.3/ to check if you can see the wahoo service from your pc when qz is showing the tiles.

Ok I will give it a go

cagnulein commented 1 year ago

Definitely on the same wifi.... Zwift connects over Bluetooth does it not? @cagnulein

zwift can connect to wifi or bluetooth qz can send metrics to zwift via bluetooth or wifi (default both)

so on zwift you should see both.

If not it means that something on the PC is preventing this. I will focus on the WIFI since is the easiest way to have all of this working

ferdiretief commented 1 year ago

Not having much luck ... even though the service seems to be running, it is not connecting zwift1 zwift2 @cagnulein

ferdiretief commented 1 year ago

Then I started rebooting the devices

image image @cagnulein

ferdiretief commented 1 year ago

eventually I got some of the Zwift services connecting even though the Wahoo services seemed to not be running... but unless Controlable connects, it does not work image @cagnulein

ferdiretief commented 1 year ago

more reboots... no luck image ![image](https://user-imag@cagnulein ithubusercontent.com/111111642/233758541-7099b83f-21a1-4aec-b4ff-b17d0e79a6cf.png) @cag

cagnulein commented 1 year ago

@ferdiretief do you have another phone in order to install zwift there and try without the PC?

Maybe the windows firewall is doing something

ferdiretief commented 1 year ago

Don't think so @cagnulein - If it was windows firewall it would never work - but it works most of the time after about 2 phone reboots

cagnulein commented 1 year ago

ok but try to remove the PC from the equation for a test. Because Windows has so many things that we have to be sure that's the issue is there. QZ with Dircon never miss a beats on my end and actually is the most used solution in the facebook group. So try to install zwift on another mobile and keep qz running there. Let me know

ferdiretief commented 1 year ago

Will qz work with Apple TV @cagnulein ?

cagnulein commented 1 year ago

yes it's my setup, qz on iphone and zwift on apple tv Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno sab 22 apr 2023 alle ore 07:28 ferdiretief < @.***> ha scritto:

Will qz work with Apple TV @cagnulein https://github.com/cagnulein ?

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

ferdiretief commented 1 year ago

Ok - here are the new debug files logcat.txt debug-Sat_Apr_22_15_29_24_2023.log I re-installed the companion to get a clean log file @cagnulein

cagnulein commented 1 year ago

@ferdiretief ok so the metrics are coming from the companion, qz writes the inclination, but the companion never reiceved them for some reason. qz says that the bytes are sent, so the issue must be on the companion side. I have to think about this

In the mean time, we can override this, enabling the "ADB Remote" setting in the proform bike section and restart QZ. This will send the inclination directly with adb, without passing from the qz companion.

If it works, you should see a swipe on the touch screen (probably with a wrong coordinate) when you press the inclination or the resistance plus/minus button tile

Let me know

stale[bot] commented 1 year 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.

ferdiretief commented 1 year ago

@cagnulein I sold my Nordictrack so unable to test any further - Thanks for your help on this thus far, I am sure there will be another S15i owner that would like to continue discussions with you

cagnulein commented 1 year ago

ah ok @ferdiretief what did you buy instead?

ferdiretief commented 1 year ago

I bought a Wahoo Kickr V6 @cagnulein