cagnulein / qdomyos-zwift

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

QZ won't connect to Norditrack C1750 #1373

Closed pbcsd closed 1 year ago

pbcsd commented 1 year ago

debug-Sun-Mar-19-15-52-33-2023.log

Have installed the companion app as instructed, and inserted the IP Address into the C2950 section of the QZ app. I see the companion app starting on my treadmill when I reboot. But QZ does not connect.

cagnulein commented 1 year ago

@pbcsd checked and the companion is not sending data.

possible cause: is there a /sdcard/.wolflogs/ directory inside your treadmill tablet? if so can you share the logs inside?

pbcsd commented 1 year ago

Hmm…now I can’t even log in to iFit. Says invalid user name (I can login just fine on my iPhone via web browser with same user name). Weird. Prior to this it was giving me an error and I had to logout.

cagnulein commented 1 year ago

i don't know, maybe @victorypoint can give you some hints

pbcsd commented 1 year ago

There doesn’t appear to be a Files app on the attached android tablet. Not sure how to check files on this thing?

cagnulein commented 1 year ago

you can install any file manager apk :) now i'm going to bed, italy here :) have a nice sunday, we will catch up tomorrow

Il giorno dom 19 mar 2023 alle 21:22 pbcsd @.***> ha scritto:

There doesn’t appear to be a Files app on the attached android tablet. Not sure how to check files on this thing?

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

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

pbcsd commented 1 year ago

Ok buona notte. Btw I just did a factory reset on the treadmill. I then logged in to iFit, installed the latest update. Then went into Privileged mode, turned on debug mode, and installed the companion app again (it doesn’t give me a security warning). Rebooted the device.

It gives me this same error. Not sure what is going on.

97253243-C61F-4ABB-B729-99FA27B2A207

pbcsd commented 1 year ago

..and get certificate errors when I try and search anything now on the built in browser.

![Uploading BF3160B3-44A3-4F01-9E3E-F56B4978B893.jpeg…]()

pbcsd commented 1 year ago

Going to try another factory reset. Weird.

pbcsd commented 1 year ago

Okay factory reset and this time did not apply the iFit update. Still not connecting to bike.

Installed file manager. I don’t see an sdcard directory anywhere.

![Uploading D6020F20-442E-4DE1-BA41-82D477B3DD45.jpeg…]()

pbcsd commented 1 year ago

0FF431AC-88EC-4772-AD81-B2A5DB294E84

pbcsd commented 1 year ago

9CE37331-41F6-47B1-84CC-6B0201289C98

victorypoint commented 1 year ago

@pbcsd, a screenshot you included that shows main storage, That is actually the inside of the SD card folder. What file manager did you install? I like to use one called solid explorer.

victorypoint commented 1 year ago

@pbcsd, the whoops error is a new development that several users are reporting. Replacing the iFit APK appears to fix it - see https://www.reddit.com/r/nordictrackandroid/comments/10oi2e6/whoops_an_error_occurred_x32i_treadmill/

Are you able to establish an ADB connection to your machine from a windows PC as per install guide?

pbcsd commented 1 year ago

@pbcsd, the whoops error is a new development that several users are reporting. Replacing the iFit APK appears to fix it - see https://www.reddit.com/r/nordictrackandroid/comments/10oi2e6/whoops_an_error_occurred_x32i_treadmill/

Are you able to establish an ADB connection to your machine from a windows PC as per install guide?

Simply downloading a new APK and installing it over the existing, or would I delete the existing app first?

Have not tried the adb/pc route yet. Presumably just for debugging?

victorypoint commented 1 year ago

In that reddit post, there is this reply that should work for you - https://www.reddit.com/r/nordictrackandroid/comments/10oi2e6/comment/j8jsx77/

Yes, please try the ADB solution just to confirm if it works or not on your machine. It's for debugging but also to help install and update the companion

pbcsd commented 1 year ago

In that reddit post, there is this reply that should work for you - https://www.reddit.com/r/nordictrackandroid/comments/10oi2e6/comment/j8jsx77/

Yes, please try the ADB solution just to confirm if it works or not on your machine. It's for debugging but also to help install and update the companion

I'm not sure I understand how to do the ADB solution, I always get confused with how/what stuff to download from github. Where it says "Download the QZ Companion installation package from this Github repository and extract it to your Windows PC. Go into the extracted folder and run qz-companion.bat by either double-clicking it or running it from the command-line", where is this download link for this package/file?

If I click here..

image

It just takes me to another page that looks like this, but no download link?

image

Also, where it says to establish an adb connection, do I need to download adb fastload or any external package to establish the connection, or does it try to establish the connection via wifi when I ultimately am able to insert the IP Address into the batch file that is contained in this folder/package I'm supposed to download?

Thx

victorypoint commented 1 year ago

@pbcsd, from the main Github companion page, click on Code button and then 'download zip'. Once its downloaded, extract the zip and you will find the .bat scripts in the Installpackage folder.

cagnulein_QZCompanionNordictrackTreadmill_ Companion App of QZ for Nordictrack Treadmills and Bikes and 10 more pages - Personal - Microsoft​ Edge 2023-03-19 10_23_12 PM

victorypoint commented 1 year ago

@pbcsd, the package will contain all the files you need. Just make sure your treadmill is on and ADB debugging is turned on, and it's connected to the same wifi as your Windows PC. The bat script on Windows PC will attempt to ping the treadmill and if successful, will try ADB connection and install the companion. I am going to bed now but Roberto will be up in a few hours to offer help if needed.

pbcsd commented 1 year ago

@pbcsd, the package will contain all the files you need. Just make sure your treadmill is on and ADB debugging is turned on, and it's connected to the same wifi as your Windows PC. The bat script on Windows PC will attempt to ping the treadmill and if successful, will try ADB connection and install the companion. I am going to bed now but Roberto will be up in a few hours to offer help if needed.

Thanks. So downloaded it, it has a successful ping to the treadmill, but ultimately is unable to establish an ADB connection:

[code]Enter treadmill IP address: 192.168.1.108

Pinging 192.168.1.108 ... Ping successful.

Waiting for 0 seconds, press a key to continue ...

Connecting to treadmill via ADB ... Cannot establish ADB connection.

Refer to QZ-Companion-log.txt for installation details.

Press any key to continue . . .[/code]

victorypoint commented 1 year ago

Ok, the ADB connection is tricky on the 1750s. Let's try the browser download option to install the APK.

pbcsd commented 1 year ago

Yeah, will do that, this was the log file btw:

Log generated at 21:38:47.66 2023-03-19 for IP 192.168.1.108

Pinging 192.168.1.108 ...

Pinging 192.168.1.108 with 32 bytes of data: Reply from 192.168.1.108: bytes=32 time=109ms TTL=64

Ping statistics for 192.168.1.108: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 109ms, Maximum = 109ms, Average = 109ms

Connecting to treadmill via ADB ...

disconnected everything

pbcsd commented 1 year ago

Ok, the ADB connection is tricky on the 1750s. Let's try the browser download option to install the APK.

Okay, so that was odd. I installed via browser. When I powered down and on the treadmill, while booting up the treadmill went into a full incline, stopped, and then went to a full decline, and stopped.

When I tried to use my android tablet to connect, nothing happened (see log file attached). debug-Sun_Mar_19_21_50_39_2023.log

I then tried my iPhone. It showed the tiles, but kept saying "Connecting...". I didn't think it connected, but when I tried a manual program I could see that QZ was showing the right speed/incline, even though it didn't actually ever say "Connected".

So there seems to still be something up with the Android tablet connecting, and not sure whether there is an issue with the iPhone since it never actually said "connected".

cagnulein commented 1 year ago

0FF431AC-88EC-4772-AD81-B2A5DB294E84

can you enable the hidden folders from here? i believe there is a hidden .wolflogs directory there

pbcsd commented 1 year ago

0FF431AC-88EC-4772-AD81-B2A5DB294E84

can you enable the hidden folders from here? i believe there is a hidden .wolflogs directory there

Just to confirm, you mean on the iFit tablet not my Android tablet?

cagnulein commented 1 year ago

yes ifit tablet

Il giorno lun 20 mar 2023 alle 11:05 pbcsd @.***> ha scritto:

[image: 0FF431AC-88EC-4772-AD81-B2A5DB294E84] https://user-images.githubusercontent.com/99127458/226208780-b03426ee-0b02-4c47-ad61-1c99ee52edc1.jpeg

can you enable the hidden folders from here? i believe there is a hidden .wolflogs directory there

Just to confirm, you mean on the iFit tablet not my Android tablet?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1373#issuecomment-1475941153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGFH6ZREKNTT4HVX6TW5ATWZANCNFSM6AAAAAAWAJVTGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

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

pbcsd commented 1 year ago

0FF431AC-88EC-4772-AD81-B2A5DB294E84

can you enable the hidden folders from here? i believe there is a hidden .wolflogs directory there

Okay, enables show system files which allowed me to see the sdcard directory. But no such wolf directory exists there.

There is this?

image

image

cagnulein commented 1 year ago

great! found the issue @pbcsd ! your tablet has a new folder that I never saw! Let me add it and I will create a new apk for you.

cagnulein commented 1 year ago

@pbcsd done! https://github.com/cagnulein/QZCompanionNordictrackTreadmill/suites/11677572450/artifacts/606980235

victorypoint commented 1 year ago

@cagnulein, which folder did you add? The eru folder is present on my tablet too but it's for the iFit Admin app which doesn't contain workout metrics from what I remember

cagnulein commented 1 year ago

ok. i didn't know. anyway I added the eru folder as a fallback in case i don't find any log file in their other directories

it should works fine on both cases

thoughts?

Il giorno lun 20 mar 2023 alle 14:28 Al Udell @.***> ha scritto:

@cagnulein https://github.com/cagnulein, which folder did you add? The eru folder is present on my tablet too but it's for the iFit Admin app which doesn't contain workout metrics from what I remember

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

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

victorypoint commented 1 year ago

@cagnulein, in this case the eru folder may contain workout metrics if no wolflog folder exists. @pbcsd, in the SDcard, can you look for a folder called .wolflogs? Note that it begins with a . to indicate a hidden folder. Maybe the file app you're using won't show it?

cagnulein commented 1 year ago

in this case the eru folder may contain workout metrics if no wolflog folder exists.

yes that's exactly my target.

pbcsd commented 1 year ago

@cagnulein, in this case the eru folder may contain workout metrics if no wolflog folder exists. @pbcsd, in the SDcard, can you look for a folder called .wolflogs? Note that it begins with a . to indicate a hidden folder. Maybe the file app you're using won't show it?

Maybe..is there a specific file manager you know that allows one to show hidden folders? The only option I saw in the one I am using was to click on "system" folders to show those, which is what brought up the SDCard directory. But there is no "show hidden files/folders" option.

pbcsd commented 1 year ago

@pbcsd done! https://github.com/cagnulein/QZCompanionNordictrackTreadmill/suites/11677572450/artifacts/606980235

Would I just go back into the tablet and install this apk? Or do I need to remove the original companion app I installed?

pbcsd commented 1 year ago

Also, seems strange to me that if I use my iPhone, while it never says "connected" and just keeps saying "Connecting", the tiles show up and I can see the treadmill speed/incline changing. But on my external android tablet, it never shows the tiles. I would have thought that implied some odd setting on that tablet vs needing to create a new directory in the iFit tablet. I.e., why would the iPhone get further than the android tablet?

cagnulein commented 1 year ago

@pbcsd done! https://github.com/cagnulein/QZCompanionNordictrackTreadmill/suites/11677572450/artifacts/606980235

Would I just go back into the tablet and install this apk? Or do I need to remove the original companion app I installed?

you can install directly this one. it will overwrite the existing one

Also, seems strange to me that if I use my iPhone, while it never says "connected" and just keeps saying "Connecting", the tiles show up and I can see the treadmill speed/incline changing.

yes that's fine. It's just an UI bug.

But on my external android tablet, it never shows the tiles. I would have thought that implied some odd setting on that tablet vs needing to create a new directory in the iFit tablet. I.e., why would the iPhone get further than the android tablet?

did you set the IP on the external tablet? and also location services are enabled on it?

Maybe..is there a specific file manager you know that allows one to show hidden folders? The only option I saw in the one I am using was to click on "system" folders to show those, which is what brought up the SDCard directory. But there is no "show hidden files/folders" option.

cx file explorer should do this

victorypoint commented 1 year ago

@pbcsd, are the QZ settings the same between iphone and Android tablet? Same Proform IP and settings?

Try an app called FV File Explorer to show hidden files. Turn on hidden files in it's settings

pbcsd commented 1 year ago

@pbcsd, are the QZ settings the same between iphone and Android tablet? Same Proform IP and settings?

Try an app called FV File Explorer to show hidden files. Turn on hidden files in it's settings

I was originally using the Proform IP but at some point switched to entering the IP into the c2950 section of the app (someone said to put it there instead). The android tablet has location services on.

cagnulein commented 1 year ago

please send me a debug log from your tablet @pbcsd https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

pbcsd commented 1 year ago

please send me a debug log from your tablet @pbcsd https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

Posted it earlier here..

https://github.com/cagnulein/qdomyos-zwift/issues/1373#issuecomment-1475508604

cagnulein commented 1 year ago

ah got the issue! it's the same of https://github.com/cagnulein/qdomyos-zwift/issues/1332 I can fix this in the next release for android as well. In the meantime you can workaround this just powering on a bluetooth device nearby this tablet. This will trigger QZ to connects to the companion app. Let me know!

pbcsd commented 1 year ago

Not sure I follow. Just power on any bluetooth device (eg my wahoo cadence meter on my bike that’s a few feet away)?

or power something on in pairing mode?

cagnulein commented 1 year ago

qz needs at least one device that broadcast itself over bluetooth. so the wahoo sensor not connected to anything else could be enough anyway i have already fixed it. it will be in the 2.13.16 on android

Il giorno lun 20 mar 2023 alle 18:00 pbcsd @.***> ha scritto:

Not sure I follow. Just power on any bluetooth device (eg my wahoo cadence meter on my bike that’s a few feet away)?

or power something on in pairing mode?

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

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

pbcsd commented 1 year ago

Thanks, haven't seen the version show up on Google Play yet, will try again in a few hours.

cagnulein commented 1 year ago

@pbcsd i didn't upload it yet :)

pbcsd commented 1 year ago

Just confirming whether the fix was uploaded into a new version? Also, curious, does the Peloton app work with the treadmill as well and does QZ auto adjust speed/incline or at least show the target incline/speed at all? Or just for Zwift?

pbcsd commented 1 year ago

Oh, and lastly, for the Nordictrack C1750, should I be putting the IP Address into the "Norditrack C2950 IP" section or "Proform IP" section?

cagnulein commented 1 year ago

Just confirming whether the fix was uploaded into a new version?

yes it's in the closed beta. Are you in the private beta group? If you aren't send me an email to roberto.viola83@gmail.com and I will add you!

Also, curious, does the Peloton app work with the treadmill as well and does QZ auto adjust speed/incline or at least show the target incline/speed at all?

Yes!

Oh, and lastly, for the Nordictrack C1750, should I be putting the IP Address into the "Norditrack C2950 IP" section or "Proform IP" section?

C2950 IP. Leave the proform IP empty, it's important.

Let me know!

pbcsd commented 1 year ago

Thanks…btw just turning on a Bluetooth device didn’t help. But connecting to my OH1 caused it to also connect to the treadmill.

Completely unrelated. Strata…won’t let me login via google when I use QZ if I try to use Googles SAML, says the app won’t let it. Is that a QZ/Android thing and I simply need to enter the user name and password vs going through single sign on?

cagnulein commented 1 year ago

Thanks…btw just turning on a Bluetooth device didn’t help. But connecting to my OH1 caused it to also connect to the treadmill.

Just sent you the beta. Let me know

Completely unrelated. Strata…won’t let me login via google when I use QZ if I try to use Googles SAML, says the app won’t let it. Is that a QZ/Android thing and I simply need to enter the user name and password vs going through single sign on?

On the advanced setting there is a setting to change the strava sign on. Change it and restart qz and it will work

Let me know