cagnulein / qdomyos-zwift

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

Debug log using qdomyos on a proform Tour de France 10.0 bike #877

Closed henryvandevorst closed 1 year ago

henryvandevorst commented 1 year ago

Hi,

As requested on facebook, I post the debug log of connecting qdomyos (running on Apple iPhone 12pro with iOs 15.1) to my Proform Tour de France 10.0 bike.

Best regards, Henry debug-zo_jul__31_14_54_46_2022.log

cagnulein commented 1 year ago

Hi @henryvandevorst I checked your log. Are you sure the ip is right? The connection is always refused from that ip. It suggest to me 2 possible cause: 1) wrong ip 2) different port

For the second one are you able to do an nmap to that address? Let me know

henryvandevorst commented 1 year ago

Hi,

Will try to do an nmap. I will also check the IP, but I am pretty sure it is correct.

Vriendelijke groet,

Henry van de Vorst

Op 31 jul. 2022 om 18:32 heeft Roberto Viola @.***> het volgende geschreven:

 Hi @henryvandevorst I checked your log. Are you sure the ip is right? The connection is always refused from that ip. It suggest to me 2 possible cause:

wrong ip different port For the second one are you able to do an nmap to that address? Let me know

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

henryvandevorst commented 1 year ago

Hi,

The IP was correct. nmap -p 1-65535 -T4 -A -v xxx.xxx.xxx.xxx gives the attached file. Basically it reports all ports ignored. Proform TDF 10.0 nmap scan.nmap.txt

Best regards,

Henry

cagnulein commented 1 year ago

hi @henryvandevorst thanks so are you sure also that your bike doesn't have bluetooth to remote control it? also which operative system the bike has? a flavor of android?

henryvandevorst commented 1 year ago

Hi @cagnulein, As far as I can see bluetooth only connects to headphones. The OS is android 7, but a scaled down version., the system boots directly into iFit. You can get around the booting into iFit to go directly to android, but even than you cannot install the google play store or google services for example. And next time the bike will boot into iFit again. Another thing I tried is giving the bike a fixed IP-address (when in android mode, cannot be done from iFit) but then iFit will hang. So now I give the bike a fixed IP address provided by my DHCP server.

cagnulein commented 1 year ago

@henryvandevorst so the solution could be same that I did here #815 check also this video https://www.youtube.com/watch?v=_KRMSHxo5AQ If you are interested, the first thing is to double check that the log @victorypoint could be very useful in this phase ;)

henryvandevorst commented 1 year ago

Hi Roberto,

I will look into that and keep you posted.

Thx,

Henry

Van: Roberto Viola @.> Verzonden: maandag 1 augustus 2022 15:37 Aan: cagnulein/qdomyos-zwift @.> CC: henryvandevorst @.>; Mention @.> Onderwerp: Re: [cagnulein/qdomyos-zwift] Debug log using qdomyos on a proform Tour de France 10.0 bike (Issue #877)

@henryvandevorst https://github.com/henryvandevorst so the solution could be same that I did here #815 https://github.com/cagnulein/qdomyos-zwift/issues/815 check also this video https://www.youtube.com/watch?v=_KRMSHxo5AQ If you are interested, the first thing is to double check that the log @victorypoint https://github.com/victorypoint could be very useful in this phase ;)

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/877#issuecomment-1201216500 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNTR7PVKQ65Q436CB5M2STVW7HGFANCNFSM55E4UQYA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ATNTR7LMOYNWLVEPVARID3DVW7HGFA5CNFSM55E4UQYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI6MRX5A.gif Message ID: @. @.> >

henryvandevorst commented 1 year ago

Hi, I tried to install QZ Companion, following the instructions in the youtube video. I get the impression nothing is installed. In any case, I get no info in the QZ Domyos app. I have attached the install log for QZ Companion. QZ-Companion-log.txt

cagnulein commented 1 year ago

@henryvandevorst wait :) first of install the apk (that it's build for a treadmill so for sure it will not work!), we need to understand if you have a similar wolflog dir in the /sdcard of your android device. you can get the contents of your tablet with adb, but you have first to follow the video in order to obtain root access.

henryvandevorst commented 1 year ago

Hi, I followed the instructions for setting up USB debugging. That works AFAIK. The I went on to install using the .bat file. Or did I miss something?

Van: Roberto Viola @.> Verzonden: maandag 1 augustus 2022 16:36 Aan: cagnulein/qdomyos-zwift @.> CC: henryvandevorst @.>; Mention @.> Onderwerp: Re: [cagnulein/qdomyos-zwift] Debug log using qdomyos on a proform Tour de France 10.0 bike (Issue #877)

@henryvandevorst https://github.com/henryvandevorst wait :) first of install the apk (that it's build for a treadmill so for sure it will not work!), we need to understand if you have a similar wolflog dir in the /sdcard of your android device. you can get the contents of your tablet with adb, but you have first to follow the video in order to obtain root access.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/877#issuecomment-1201290058 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNTR7MWQ7X5E7VF5SHCSY3VW7OEXANCNFSM55E4UQYA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ATNTR7KR2FMSSK6MWARUU6TVW7OEXA5CNFSM55E4UQYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI6NDWSQ.gif Message ID: @. @.> >

cagnulein commented 1 year ago

ok as I said dont' install the apk, first we need to know how your bike work on the log. So please via adb command share the contents of the /sdcard folder Are you able to do so?

henryvandevorst commented 1 year ago

Aha, now I understand, will try this.

Van: Roberto Viola @.> Verzonden: maandag 1 augustus 2022 16:44 Aan: cagnulein/qdomyos-zwift @.> CC: henryvandevorst @.>; Mention @.> Onderwerp: Re: [cagnulein/qdomyos-zwift] Debug log using qdomyos on a proform Tour de France 10.0 bike (Issue #877)

ok as I said dont' install the apk, first we need to know how your bike work on the log. So please via adb command share the contents of the /sdcard folder Are you able to do so?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/877#issuecomment-1201298827 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNTR7IOC6T2JARWUPAJCPLVW7PB7ANCNFSM55E4UQYA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ATNTR7NNKVJNCOXOSY27JCDVW7PB7A5CNFSM55E4UQYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI6NF3CY.gif Message ID: @. @.> >

henryvandevorst commented 1 year ago



Van: Roberto Viola @.> Verzonden: maandag 1 augustus 2022 16:44 Aan: cagnulein/qdomyos-zwift @.> CC: henryvandevorst @.>; Mention @.> Onderwerp: Re: [cagnulein/qdomyos-zwift] Debug log using qdomyos on a proform Tour de France 10.0 bike (Issue #877)

ok as I said dont' install the apk, first we need to know how your bike work on the log. So please via adb command share the contents of the /sdcard folder Are you able to do so?

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

cagnulein commented 1 year ago

@henryvandevorst i don't see anything in your last comment. if you attached something you have to do from github thanks

victorypoint commented 1 year ago

Hi guys. Sorry I'm late to the party. Henry, let me know if you need help with ADB commands.

Also, once you have ADB connection established, it would be useful to see which Android and SDK version is installed on your treadmill:

adb shell getprop ro.build.version.release adb shell getprop ro.build.version.sdk

-Al

henryvandevorst commented 1 year ago

Thx! Will look into it some time in the next few days

henryvandevorst commented 1 year ago

Ok, here we go:

adb shell getprop ro.build.version.release: 7.0 adb shell getprop ro.build.version.sdk: 24

sdcard folder structure:

J1002:/ $ ls -l -R /sdcard/ /sdcard/: total 96 drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Alarms drwxrwx--x 3 root sdcard_rw 4096 2015-01-01 01:00 Android drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 DCIM drwxrwx--x 2 root sdcard_rw 4096 2022-08-02 14:06 Download drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Movies drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Music drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Notifications drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Pictures drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Podcasts drwxrwx--x 2 root sdcard_rw 4096 2015-01-01 01:00 Ringtones drwxrwx--x 2 root sdcard_rw 4096 2022-08-02 13:52 eru drwxrwx--x 2 root sdcard_rw 4096 2022-08-02 13:52 update

/sdcard/Alarms: total 0

/sdcard/Android: total 8 drwxrwx--x 5 root sdcard_rw 4096 2022-08-02 14:06 data

/sdcard/Android/data: total 24 drwxrwx--x 3 u0_a46 sdcard_rw 4096 2018-08-27 02:00 com.android.browser drwxrwx--x 3 u0_a31 sdcard_rw 4096 2015-01-01 01:00 com.android.gallery3d drwxrwx--x 2 system sdcard_rw 4096 2022-08-02 14:06 com.ifit.eru

/sdcard/Android/data/com.android.browser: total 8 drwxrwx--x 2 u0_a46 sdcard_rw 4096 2018-08-27 02:00 files

/sdcard/Android/data/com.android.browser/files: total 0

/sdcard/Android/data/com.android.gallery3d: total 8 drwxrwx--x 2 u0_a31 sdcard_rw 4096 2015-01-01 01:00 cache

/sdcard/Android/data/com.android.gallery3d/cache: total 0

/sdcard/Android/data/com.ifit.eru: total 0

/sdcard/DCIM: total 0

/sdcard/Download: total 0

/sdcard/Movies: total 0

/sdcard/Music: total 0

/sdcard/Notifications: total 0

/sdcard/Pictures: total 0

/sdcard/Podcasts: total 0

/sdcard/Ringtones: total 0

/sdcard/eru: total 800 -rw-rw---- 1 root sdcard_rw 65464 2022-08-01 17:16 2022-08-01_logs.txt -rw-rw---- 1 root sdcard_rw 252732 2022-08-02 14:40 2022-08-02.logs.txt -rw-rw---- 1 root sdcard_rw 25605 2022-08-02 13:52 2022-08-02_logs.txt -rw-rw---- 1 root sdcard_rw 22946 2022-08-01 15:19 Combined_01Jan2015.txt -rw-rw---- 1 root sdcard_rw 13001 2022-08-01 15:19 DeviceAdmin_01Jan2015.txt -rw-rw---- 1 root sdcard_rw 7736 2018-08-27 02:00 Error_27Aug2018.txt -rw-rw---- 1 root sdcard_rw 91 2018-08-27 02:00 Startup_27Aug2018.txt

/sdcard/update: total 8 -rw-rw---- 1 root sdcard_rw 11 2022-08-02 14:06 manifest.json

What files are you interested in?

cagnulein commented 1 year ago

yes! I like these ones

/sdcard/eru: total 800 -rw-rw---- 1 root sdcard_rw 65464 2022-08-01 17:16 2022-08-01_logs.txt -rw-rw---- 1 root sdcard_rw 252732 2022-08-02 14:40 2022-08-02.logs.txt -rw-rw---- 1 root sdcard_rw 25605 2022-08-02 13:52 2022-08-02_logs.txt

can you download them and attach them here?

henryvandevorst commented 1 year ago

Here they are 2022-08-01_logs.txt 2022-08-02.logs.txt 2022-08-02_logs.txt :

cagnulein commented 1 year ago

@henryvandevorst did you do some workouts in these dates?

victorypoint commented 1 year ago

Henry, please do a ls showing hidden folders in sdcard as well:

adb shell ls -s -R -a /sdcard

henryvandevorst commented 1 year ago

I did a manual workout today (august 2) at around 14:40. I have suspende my subscription during the holiday period, because I am not using the bike much in summer.

henryvandevorst commented 1 year ago

Output of adb shell ls -s -R -a /sdcard:

total 152 8 . 8 .. 8 .ConsoleGuid 8 .ConsoleInfo 8 .ConsoleUpdateId 8 .activeConfig 8 .wolflogs 8 Alarms 8 Android 8 DCIM 8 Download 8 Movies 8 Music 8 Notifications 8 Pictures 8 Podcasts 8 Ringtones 8 eru 8 update

/sdcard/.activeConfig: total 16 8 . 8 ..

/sdcard/.wolflogs: total 5456 8 . 8 .. 3368 2022-08-01_logs.txt 1888 2022-08-02_logs.txt 8 Benchmark_27Aug2018.txt 96 Combined_27Aug2018.txt 8 DeviceAdmin_27Aug2018.txt 8 FitPro_27Aug2018.txt 8 MvxTrace_27Aug2018.txt 8 Navigation_27Aug2018.txt 8 Onboarding_01Aug2022.txt 8 Settings_27Aug2018.txt 8 Startup_27Aug2018.txt 8 Updating_01Aug2022.txt 8 Usb_27Aug2018.txt 8 crashes

/sdcard/.wolflogs/crashes: total 16 8 . 8 ..

/sdcard/Alarms: total 16 8 . 8 ..

/sdcard/Android: total 24 8 . 8 .. 8 data

/sdcard/Android/data: total 40 8 . 8 .. 0 .nomedia 8 com.android.browser 8 com.android.gallery3d 8 com.ifit.eru

/sdcard/Android/data/com.android.browser: total 24 8 . 8 .. 8 files

/sdcard/Android/data/com.android.browser/files: total 16 8 . 8 ..

/sdcard/Android/data/com.android.gallery3d: total 24 8 . 8 .. 8 cache

/sdcard/Android/data/com.android.gallery3d/cache: total 16 8 . 8 ..

/sdcard/Android/data/com.ifit.eru: total 16 8 . 8 ..

/sdcard/DCIM: total 16 8 . 8 ..

/sdcard/Download: total 16 8 . 8 ..

/sdcard/Movies: total 16 8 . 8 ..

/sdcard/Music: total 16 8 . 8 ..

/sdcard/Notifications: total 16 8 . 8 ..

/sdcard/Pictures: total 16 8 . 8 ..

/sdcard/Podcasts: total 16 8 . 8 ..

/sdcard/Ringtones: total 16 8 . 8 ..

/sdcard/eru: total 848 8 . 8 .. 136 2022-08-01_logs.txt 528 2022-08-02.logs.txt 64 2022-08-02_logs.txt 48 Combined_01Jan2015.txt 32 DeviceAdmin_01Jan2015.txt 16 Error_27Aug2018.txt 8 Startup_27Aug2018.txt

/sdcard/update: total 24 8 . 8 .. 8 manifest.json

cagnulein commented 1 year ago

Bingo! @victorypoint thanks!

@henryvandevorst download these

/sdcard/.wolflogs: total 5456 8 . 8 .. 3368 2022-08-01_logs.txt 1888 2022-08-02_logs.txt 8 Benchmark_27Aug2018.txt 96 Combined_27Aug2018.txt 8 DeviceAdmin_27Aug2018.txt 8 FitPro_27Aug2018.txt 8 MvxTrace_27Aug2018.txt 8 Navigation_27Aug2018.txt 8 Onboarding_01Aug2022.txt 8 Settings_27Aug2018.txt 8 Startup_27Aug2018.txt 8 Updating_01Aug2022.txt 8 Usb_27Aug2018.txt

henryvandevorst commented 1 year ago

There you go 2022-08-01_logs.txt 2022-08-02_logs.txt Benchmark_27Aug2018.txt Combined_27Aug2018.txt DeviceAdmin_27Aug2018.txt FitPro_27Aug2018.txt MvxTrace_27Aug2018.txt Navigation_27Aug2018.txt Onboarding_01Aug2022.txt Settings_27Aug2018.txt Startup_27Aug2018.txt Updating_01Aug2022.txt Usb_27Aug2018.txt !

victorypoint commented 1 year ago

Awesome! Roberto, looking at Henry's QZ Companion install attempt, it appears he used an older version of the install package if possible? The same error which we dealt with in https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/5 appears in his qz-companion-install.log regarding older version of Android and SDK.

cagnulein commented 1 year ago

@victorypoint let's check his log first, and then we can retry with the new apk https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/2.0.7/QZCompanionNordictrackTreadmill.apk

victorypoint commented 1 year ago

Dated logs appear to be same wolf structure as NT 2950 treadmill with additions for bike:

[9] 2499969 14:39:33.1473 [Trace:FitPro] Changed KPH to: 30,71 [5] 2500276 14:39:33.4620 [Trace:FitPro] Changed Grade to: -0,5 [9] 2500668 14:39:33.8540 [Trace:FitPro] Changed Watts to: 106 [9] 2500679 14:39:33.8570 [Trace:FitPro] Changed RPM to: 96 [19] 2504232 14:39:37.4182 [Trace:Workout] SetMeters 359

Note change in KPH units

cagnulein commented 1 year ago

yeah! so @henryvandevorst try to replace the apk that you download with this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/2.0.7/QZCompanionNordictrackTreadmill.apk at least we should see some values on QZ

victorypoint commented 1 year ago

Also replace qz-companion.bat with newest as it contains more debug capture. Better yet, download and replace entire install package folder

cagnulein commented 1 year ago

@henryvandevorst if the installation will go ok, i need to patch QZ and the APK in order to add the metrics for the bike, but it should be an easy job. Let me know

henryvandevorst commented 1 year ago

Hi, app stil won't install, see error log (version of SDK complaint) QZ-Companion-log.txt .

henryvandevorst commented 1 year ago

See attached the log after downloading the entire install package and replacing the apk with the newer one. Same result. QZ-Companion-log.txt .

cagnulein commented 1 year ago

got it, i'm building a new one @henryvandevorst

henryvandevorst commented 1 year ago

Great. Getting very curious if we can get this to work...

victorypoint commented 1 year ago

Henry, does your equipment have the latest Android and iFit updates installed? On my treadmill, it prompts to install updates when they come available.

Roberto, user has reported Android 7.0, SDK 24. Since the Companion APK gradle was previously updated to support minimum SDK of 25, we may need to drop the minimum further in this case to 24.

cagnulein commented 1 year ago

@henryvandevorst done https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/2.0.8/QZCompanionNordictrackTreadmill.apk

henryvandevorst commented 1 year ago

Yes, before starting this all, I did a hard reset and then installed all updates. There are no new updates available. As you now, admin mod is now only available with a separate code. Also, I notices that with every restart usb debugging is turend off again.

cagnulein commented 1 year ago

since we were posting at the same time, @henryvandevorst done https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/2.0.8/QZCompanionNordictrackTreadmill.apk

henryvandevorst commented 1 year ago

Well, the app installs. Used the settings in the read.me file. But nothing in the QZ Fitness app. I attached a debug file. Probably unrelated: Heart rate from my apple watch is not displayed, though I can see it in the apple watch app. debug-wo_aug__3_15_40_22_2022.log

cagnulein commented 1 year ago

@henryvandevorst did you enable the full permission for the qz companion app on the tablet? are you able to provide an adb log while the qz companion is running?

henryvandevorst commented 1 year ago

let's first try the full permissions.

henryvandevorst commented 1 year ago

@cagnulein The app seems only to ask for storage permissions. When I enable that, the apps keeps crashing with error "QZ Companion Nordictrack Treadmill keeps stopping". Wil try to make an adb log tomorrow.

cagnulein commented 1 year ago

ok @henryvandevorst thanks

victorypoint commented 1 year ago

Tested new QZ Companion 2.08 on NT 2950 treadmill - no issues - works fine. Added logcat export to qz-companion.bat installer in InstallPackage.

@cagnulein, can you confirm if APK gets updated in InstallPackage after each build? https://github.com/cagnulein/QZCompanionNordictrackTreadmill/tree/master/InstallPackage

cagnulein commented 1 year ago

nope, let me check if I can @victorypoint

cagnulein commented 1 year ago

@victorypoint done https://github.com/cagnulein/QZCompanionNordictrackTreadmill/commit/e8aa7abe108a52007f2e8462d2371d5ac4a99f9e

henryvandevorst commented 1 year ago

@cagnulein I attached the logfile from "Adb logcat -v threadtime >logcat.txt"

logcat.txt

cagnulein commented 1 year ago

got it @henryvandevorst try this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/2.0.9/QZCompanionNordictrackTreadmill.apk

cagnulein commented 1 year ago

@henryvandevorst did you have a chance to try?