Closed keatontaylor closed 3 weeks ago
i'm trying to put my hands on a nordictrack treadmill or bike broken here in italy to sniff the usb communication. this will be so smooth then. ocr thing is like putting an elephant over a car :) but of course if it's the only way..
I did try to see if I could get some output from the USB serial interface for the ICON fitness USB device, but didn't have much luck. Suggestions would be great and I might be able to assist with using adb shell
to see what the serial interface is up to.
@keatontaylor if you can build something like this we will have everything that we need https://hackaday.com/2024/08/03/need-a-usb-sniffer-use-your-pico/
or another way is to decompile very old version of ifit trying to see if the usb code was not obscured.
with @victorypoint i was already able to open the serial communication, now i have to understand the protocol
I just had a blast! Why don't you do the opposite?! I can create a fake ESP32 that expose the HID device that ifit wants and in this way i can get the first request of the ifit and so on! I will bring my esp32 with me on vacation and I will experiment with this!
got the issue, i was trying to remove too much :D anyway from your previous log i already saw that the OCR thing is taking alone more than 1.5sec! that's crazy! so for sure i have to bring this at the minimum pieces possible. and maybe decreasing the color. i just leave you the version fixed. i'm still thinking that the best way will be having access to the usb directly
@cagnulein, here is logcat for latest APK. All speed and incline changes received by QZ. Same delays as before. stream-logcat.txt
Thanks, I will investigate the idea that I had yesterday. Also we should try paddleocr on android too, to see if it has better performance
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno sab 10 ago 2024 alle 16:22 Al Udell @.***> ha scritto:
got the issue, i was trying to remove too much :D anyway from your previous log i already saw that the OCR thing is taking alone more than 1.5sec! that's crazy! so for sure i have to bring this at the minimum pieces possible. and maybe decreasing the color. i just leave you the version fixed. i'm still thinking that the best way will be having access to the usb directly
@cagnulein https://github.com/cagnulein, here is logcat for latest APK. All speed and incline changes received by QZ. Same delays as before. stream-logcat.txt https://github.com/user-attachments/files/16569874/stream-logcat.txt
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/103#issuecomment-2282042780, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGK3HL245OE7P2Q3VDZQYOYXAVCNFSM6AAAAABL3L5J6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGA2DENZYGA . You are receiving this because you were mentioned.Message ID: @.*** com>
ok i found that the perfect solution is a raspberry with usb otg.
i will investigate it when i will come back from the vacation. so exciting!
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.
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.
Just a heads up, looks like NordicTrack is starting to push the new UI out wider, downgrading back to the old version now says that downgrade is temporary.
Yeah thanks a temporary solution it's already available with OCR, if you want you can test it too
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno gio 19 set 2024 alle 02:52 Keaton Taylor @.***> ha scritto:
Just a heads up, looks like NordicTrack is starting to push the new UI out wider, downgrading back to the old version now says that downgrade is temporary.
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/103#issuecomment-2359694439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWDGTTMKO2J6I4IXMYTZXIN57AVCNFSM6AAAAABL3L5J6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZGY4TINBTHE . You are receiving this because you modified the open/close state.Message ID: <cagnulein/QZCompanionNordictrackTreadmill/issues/103/2359694439@ github.com>
@victorypoint Would you mind letting me know how to install the latest APK when the latest iFIT Beta software is installed...I have an NordicTrack S22i bike. Many thanks.
@EnglandAngling, I do everything over ADB so privileged mode and developer tools ADB debugging definitely have to be enabled. I'm able to activate privileged mode from the iFit beta workout screen. Are you able to do so as well?
@victorypoint Hi - I do not know how to activate privileged mode from the iFit beta workout screen - can you let me know how to do that please?
@EnglandAngling, it's exactly the same procedure as before. Do the taps at the top right of the screen. See - https://github.com/cagnulein/QZCompanionNordictrackTreadmill
@victorypoint ah ok..I'll give it a try again...I did try that a few weeks ago but it didn't respond...
@EnglandAngling, I just enabled privileged mode from ifit beta main screen, so it definitely still works.
@victorypoint thanks yes, I have managed to do it now...but I can't seem to do anything with the APK - I've downloaded the ZIP file from the web browser that's on the machine, I can view the APK file but not do anything with it...it won't open if I double click on it etc...any ideas?
This is the link Roberto gave me: https://github.com/cagnulein/QZCompanionNordictrackTreadmill/actions/runs/10592813760/artifacts/1863668226
@victorypoint thanks yes, I have managed to do it now...but I can't seem to do anything with the APK - I've downloaded the ZIP file from the web browser that's on the machine, I can view the APK file but not do anything with it...it won't open if I double click on it etc...any ideas?
Can't you extract it first on the file manager on the treadmill?
I've now managed to install the APK on the bike, thanks. Can you give me a link to the latest software for the QZ for my laptop please, I'm not sure if I have an up-to-date version on my laptop.
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno lun 23 set 2024 alle 20:44 EnglandAngling < @.***> ha scritto:
I've now managed to install the APK on the bike, thanks. Can you give me a link to the latest software for the QZ for my laptop please, I'm not sure if I have an up-to-date version on my laptop.
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/103#issuecomment-2369088268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFVD3ODX6GPUFNAT4DZYBORRAVCNFSM6AAAAABL3L5J6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRZGA4DQMRWHA . You are receiving this because you modified the open/close state.Message ID: <cagnulein/QZCompanionNordictrackTreadmill/issues/103/2369088268@ github.com>
The only metric I'm seeing on QZ on my laptop is "inclination" - all of the other usual metrics such as speed, cadence, resistance remain at zero. I've attached a log. @cagnulein @victorypoint debug-Mon_Sep_23_20_38_23_2024.log
hi @EnglandAngling i guess i already fixed it! https://github.com/cagnulein/QZCompanionNordictrackTreadmill/actions/runs/11027669224/artifacts/1975357631
@cagnulein Thanks, I will give it a try tonight. Is there a way of getting the APK from my laptop to the bike? Earlier in the week I just used the web browser on the bike, but typing in the long URL is not easy...
you can use adb from your laptop, didn't you do before?
I was able to do that with the original version of QZ before the Ifit beta update, I just followed the instructions and clicked on what it told me to click on........but I don't know how to use ADB.
@EnglandAngling were you following this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill in the instructions has explained how to push the apk using adb. but you have to replace the apk in the package with the one that I just gave you. If you are unsure, i suggest to use the browser method
Ah ok...I can try that. Thanks for your help.
OK I've installed everything and now I get resistance reading as well as inclination, but still now speed, cadence or power.....please advise... regards Tim
--
Regards Tim TEL: 01904 400242
England Angling Unit 17D Malton Road Industrial Estate Malton Road York YO32 9TN
web: https://www.englandangling.co.uk email: @.***
live chat: https://tawk.to/chat/55e80b42ef156c730753a784/default
From: "Roberto Viola" @.> Sent: 25/09/2024 09:41 To: cagnulein/QZCompanionNordictrackTreadmill @.> Cc: EnglandAngling @.>, Mention @.> Subject: Re: [cagnulein/QZCompanionNordictrackTreadmill] iFit Beta Equipment Software Breaks QZCompanion (Issue #103)
@EnglandAngling were you following this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill in the instructions has explained how to push the apk using adb. but you have to replace the apk in the package with the one that I just gave you. If you are unsure, i suggest to use the browser method — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
please share an adb logcat and i will check it! also at least a debug log from qz https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F
Thanks
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno gio 26 set 2024 alle 21:14 EnglandAngling < @.***> ha scritto:
OK I've installed everything and now I get resistance reading as well as inclination, but still now speed, cadence or power.....please advise... regards Tim
--
Regards Tim TEL: 01904 400242
England Angling Unit 17D Malton Road https://www.google.com/maps/search/Unit+17D+Malton+Road?entry=gmail&source=g Industrial Estate Malton Road York YO32 9TN
web: https://www.englandangling.co.uk email: @.***
live chat: https://tawk.to/chat/55e80b42ef156c730753a784/default
From: "Roberto Viola" @.> Sent: 25/09/2024 09:41 To: cagnulein/QZCompanionNordictrackTreadmill @.> Cc: EnglandAngling @.>, Mention @.> Subject: Re: [cagnulein/QZCompanionNordictrackTreadmill] iFit Beta Equipment Software Breaks QZCompanion (Issue #103)
@EnglandAngling were you following this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill in the instructions has explained how to push the apk using adb. but you have to replace the apk in the package with the one that I just gave you. If you are unsure, i suggest to use the browser method — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/103#issuecomment-2377738682, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWCLXL2XUAQESAJGKHDZYRMHXAVCNFSM6AAAAABL3L5J6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXG4ZTQNRYGI . You are receiving this because you were mentioned.Message ID: @.*** com>
@cagnulein, here's details about the iFit beta wolflog:
Line 2597: 17:14:07.296 INFO SDS Changed KPH from 1.6 kph to 3.21 kph
Line 2600: 17:14:10.429 INFO SDS Changed KPH from 3.21 kph to 4.82 kph
Line 2603: 17:14:12.574 INFO SDS Changed KPH from 4.82 kph to 6.43 kph
Line 2608: 17:14:14.895 INFO SDS Changed KPH from 6.43 kph to 8.04 kph
…
Line 2614: 17:14:24.791 INFO SDS Changed INCLINE from 0.0 % to -3.0 %
Line 2619: 17:14:28.172 INFO SDS Changed INCLINE from -3.0 % to -2.0 %
Line 2624: 17:14:29.490 INFO SDS Changed INCLINE from -2.0 % to -1.0 %
Line 2629: 17:14:30.747 INFO SDS Changed INCLINE from -1.0 % to 0.0 %
adb shell tail -n5000 /sdcard/android/data/com.ifit.glassos_service/files/.valinorlogs/log.latest.txt | grep -a "Changed KPH" | tail -n1 | grep -oP "(?<=to\s)\d+(\.\d+)?(?=\skph)"
adb shell tail -n5000 /sdcard/android/data/com.ifit.glassos_service/files/.valinorlogs/log.latest.txt | grep -a "Changed INCLINE" | tail -n1 | grep -oP "(?<=to\s)[+-]?\d+(\.\d+)?(?=\s%)"
Attached is example log and working VBS test code. Hope that helps. ifit-beta.zip
Awesome, thanks for the info! I will implement this tomorrow hopefully!
Il giorno sab 5 ott 2024 alle 14:03 Al Udell @.***> ha scritto:
@cagnulein https://github.com/cagnulein, here's details about the iFit beta wolflog:
- location accessible by ADB: /sdcard/android/data/com.ifit.glassos_service/files/.valinorlogs/log.latest.txt
- TM speed and incline lines are recorded in slightly different format. Examples:
Line 2597: 17:14:07.296 INFO SDS Changed KPH from 1.6 kph to 3.21 kph Line 2600: 17:14:10.429 INFO SDS Changed KPH from 3.21 kph to 4.82 kph Line 2603: 17:14:12.574 INFO SDS Changed KPH from 4.82 kph to 6.43 kph Line 2608: 17:14:14.895 INFO SDS Changed KPH from 6.43 kph to 8.04 kph … Line 2614: 17:14:24.791 INFO SDS Changed INCLINE from 0.0 % to -3.0 % Line 2619: 17:14:28.172 INFO SDS Changed INCLINE from -3.0 % to -2.0 % Line 2624: 17:14:29.490 INFO SDS Changed INCLINE from -2.0 % to -1.0 % Line 2629: 17:14:30.747 INFO SDS Changed INCLINE from -1.0 % to 0.0 %
- Grep is changed to accommodate the new format:
adb shell tail -n5000 /sdcard/android/data/com.ifit.glassos_service/files/.valinorlogs/log.latest.txt | grep -a "Changed KPH" | tail -n1 | grep -oP "(?<=to\s)\d+(.\d+)?(?=\skph)"
adb shell tail -n5000 /sdcard/android/data/com.ifit.glassos_service/files/.valinorlogs/log.latest.txt | grep -a "Changed INCLINE" | tail -n1 | grep -oP "(?<=to\s)[+-]?\d+(.\d+)?(?=\s%)"
Attached is example log and working VBS test code. Hope that helps. ifit-beta.zip https://github.com/user-attachments/files/17266084/ifit-beta.zip
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/103#issuecomment-2395033581, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWBDOKVHX2X7TFMQ5S3ZZ7IPZAVCNFSM6AAAAABL3L5J6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGAZTGNJYGE . You are receiving this because you were mentioned.Message ID: @.*** com>
@keatontaylor @EnglandAngling we have good news, check this https://github.com/cagnulein/QZCompanionNordictrackTreadmill/pull/116
OK I will try it again this week thanks.
Tim
--
Regards Tim TEL: 01904 400242
England Angling Unit 17D Malton Road Industrial Estate Malton Road York YO32 9TN
web: https://www.englandangling.co.uk email: @.***
live chat: https://tawk.to/chat/55e80b42ef156c730753a784/default
From: "Roberto Viola" @.> Sent: 08/10/2024 08:52 To: cagnulein/QZCompanionNordictrackTreadmill @.> Cc: EnglandAngling @.>, Mention @.> Subject: Re: [cagnulein/QZCompanionNordictrackTreadmill] iFit Beta Equipment Software Breaks QZCompanion (Issue #103)
@keatontaylor @EnglandAngling we have good news, check this #116 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
Hi - still the same for me - only inclination is showing....do I need to adjust some settings in qdomyos-zwift perhaps? I've put the correct IP in there for the bike....anything else need changing or any settings I must use ??
--
Regards Tim TEL: 01904 400242
England Angling Unit 17D Malton Road Industrial Estate Malton Road York YO32 9TN
web: https://www.englandangling.co.uk email: @.***
live chat: https://tawk.to/chat/55e80b42ef156c730753a784/default
From: "Roberto Viola" @.> Sent: 08/10/2024 08:52 To: cagnulein/QZCompanionNordictrackTreadmill @.> Cc: EnglandAngling @.>, Mention @.> Subject: Re: [cagnulein/QZCompanionNordictrackTreadmill] iFit Beta Equipment Software Breaks QZCompanion (Issue #103)
@keatontaylor @EnglandAngling we have good news, check this #116 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
@EnglandAngling did you use the new one that i linked in the pull request? can you provide a logcat? qz is not involved in this
let me know
i mean this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.5.0/QZCompanionNordictrackTreadmill.apk
@EnglandAngling i don't remember do you have the ifit beta installed?
Hi - yes I-Fit beta installed and using the latest APK that you mentioned.
I've attached the logcat.txt
--
Regards Tim TEL: 01904 400242
England Angling Unit 17D Malton Road Industrial Estate Malton Road York YO32 9TN
web: https://www.englandangling.co.uk email: @.***
live chat: https://tawk.to/chat/55e80b42ef156c730753a784/default
From: "Roberto Viola" @.> Sent: 08/10/2024 17:59 To: cagnulein/QZCompanionNordictrackTreadmill @.> Cc: EnglandAngling @.>, Mention @.> Subject: Re: [cagnulein/QZCompanionNordictrackTreadmill] iFit Beta Equipment Software Breaks QZCompanion (Issue #103)
i mean this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.5.0/QZCompanionNordictrackTreadmill.apk
@EnglandAngling i don't remember do you have the ifit beta installed?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
--------- beginning of system
10-08 20:14:26.488 248 248 I vold : Vold 3.0 (the awakening) firing up
10-08 20:14:26.489 248 248 V vold : Detected support for: ext4 vfat
10-08 20:14:26.500 248 248 V vold : Found unmanaged dm device named vroot
10-08 20:14:26.500 248 248 V vold : Found unmanaged dm device named vendor
10-08 20:14:26.500 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop3: No such device or address
10-08 20:14:26.500 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop0: No such device or address
10-08 20:14:26.500 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop2: No such device or address
10-08 20:14:26.501 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop6: No such device or address
10-08 20:14:26.501 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop5: No such device or address
10-08 20:14:26.501 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop7: No such device or address
10-08 20:14:26.501 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop4: No such device or address
10-08 20:14:26.501 248 248 W vold : Failed to LOOP_GET_STATUS64 /dev/block/loop1: No such device or address
10-08 20:14:26.505 248 248 D vold : VoldNativeService::start() completed OK
10-08 20:14:26.516 248 252 D vold : e4crypt_init_user0
10-08 20:14:26.516 248 252 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
10-08 20:14:26.516 248 252 D vold : Preparing: /data/system/users/0
10-08 20:14:26.517 248 252 D vold : Preparing: /data/misc/profiles/cur/0
10-08 20:14:26.518 248 252 D vold : Preparing: /data/system_de/0
10-08 20:14:26.518 248 252 D vold : Preparing: /data/misc_de/0
10-08 20:14:26.518 248 252 D vold : Preparing: /data/vendor_de/0
10-08 20:14:26.519 248 252 D vold : Preparing: /data/user_de/0
10-08 20:14:26.519 248 252 V vold : /system/bin/vold_prepare_subdirs
10-08 20:14:26.519 248 252 V vold : prepare
10-08 20:14:26.519 248 252 V vold :
10-08 20:14:26.519 248 252 V vold : 0
10-08 20:14:26.519 248 252 V vold : 1
10-08 20:14:26.553 248 252 D vold : e4crypt_unlock_user_key 0 serial=0 token_present=0
10-08 20:14:27.622 295 295 D BootLogoUpdater: [boot_logo_updater main 186]boot_logo_updater,
10-08 20:14:27.622 295 295 D BootLogoUpdater: [boot_logo_updater]boot_mode = 0
10-08 20:14:27.622 295 295 E BootLogoUpdater: [boot_logo_updater]boot package = 0
10-08 20:14:27.622 295 295 E BootLogoUpdater: [boot_logo_updater]update boot reason = 0, ret = 2
10-08 20:14:27.629 295 295 D BootLogoUpdater: [boot_logo_updater]schedule on
10-08 20:14:27.657 287 287 I @.: Wifi Hal is booting up...
10-08 20:14:28.279 364 364 I installd: installd firing up
10-08 20:14:28.510 378 378 I wificond: wificond is starting up...
10-08 20:14:28.555 405 405 I sn : Retry Times 15
10-08 20:14:28.555 405 405 I sn : Sleep Time 10 sec
10-08 20:14:28.555 405 405 I sn : Retry 0
10-08 20:14:28.555 405 405 I sn : Fail to access err=2
10-08 20:14:28.556 405 405 I chatty : uid=1000(system) identical 1 line
10-08 20:14:28.556 405 405 I sn : Fail to access err=2
10-08 20:14:28.556 405 405 I sn : Check all possible paths
10-08 20:14:32.266 558 558 I SystemServer: InitBeforeStartServices
10-08 20:14:32.266 558 558 I SystemServer: Entered the Android system server!
10-08 20:14:32.552 558 558 I SystemServer: StartServices
10-08 20:14:32.552 558 558 I SystemServer: Reading configuration...
10-08 20:14:32.552 558 558 I SystemServer: ReadingSystemConfig
10-08 20:14:32.553 558 558 I SystemServer: StartInstaller
10-08 20:14:32.553 558 558 I SystemServiceManager: Starting com.android.server.pm.Installer
10-08 20:14:32.562 558 558 I SystemServer: DeviceIdentifiersPolicyService
10-08 20:14:32.562 558 558 I SystemServiceManager: Starting com.android.server.os.DeviceIdentifiersPolicyService
10-08 20:14:32.563 558 558 I SystemServer: StartActivityManager
10-08 20:14:32.563 558 558 I SystemServiceManager: Starting com.android.server.am.ActivityManagerService$Lifecycle
10-08 20:14:32.571 558 570 I SystemConfig: Non-xml file /system/etc/permissions/pms_sysapp_removable_system_list.txt in /system/etc/permissions directory, ignoring
10-08 20:14:32.604 558 570 I SystemConfig: Non-xml file /vendor/etc/permissions/pms_sysapp_removable_vendor_list.txt in /vendor/etc/permissions directory, ignoring
10-08 20:14:32.629 558 570 W SystemConfig: Got exception parsing permissions.
10-08 20:14:32.629 558 570 W SystemConfig: org.xmlpull.v1.XmlPullParserException: Unexpected start tag in /vendor/etc/permissions/media_codecs.xml: found MediaCodecs, expected 'permissions' or 'config'
10-08 20:14:32.629 558 570 W SystemConfig: at com.android.server.SystemConfig.readPermissionsFromXml(SystemConfig.java:398)
10-08 20:14:32.629 558 570 W SystemConfig: at com.android.server.SystemConfig.readPermissions(SystemConfig.java:362)
10-08 20:14:32.629 558 570 W SystemConfig: at com.android.server.SystemConfig.
@EnglandAngling i was checking the log but i can't find any reference of qz
did you run adb while a manual workout was running and qz was showing the inclination?
also please attach it to github directly otherwise its hard to check
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.
This is just a PSA the beta version of the latest software for the nordictrack hardware appears to no longer write to the wolflogs directory. Thus completely breaks fetching the stats from the bike via that file.