Closed motty-bot closed 11 months ago
hi @motty-bot the recent version of ifit closed down the qz standard way but i have already a solution
follow this https://github.com/cagnulein/qdomyos-zwift/issues/1591#issuecomment-1664105559
let me know
Sorry I'm new to adb. Do I use a usb cable or is there something I need to do to give the ip?
no it's wifi based, you just need the ip of your fitness device
here you can find the tools https://github.com/cagnulein/QZCompanionNordictrackTreadmill/tree/master/InstallPackage
and on this page https://github.com/cagnulein/QZCompanionNordictrackTreadmill/tree/master you can find the adb instructions to setup an adb link
let me know
Using adb-debug I get connection actively refusesd. Ping successful. I had to install companion app using tinyurl. Usb debugging is turned on. How do I get the adb connection to work?
@motty-bot did you enable the adb setting in the tablet? a factory reset could help, you can ask to the OP here https://github.com/cagnulein/qdomyos-zwift/issues/1627 https://github.com/cagnulein/qdomyos-zwift/issues/1590 https://github.com/cagnulein/qdomyos-zwift/issues/1534 https://github.com/cagnulein/qdomyos-zwift/issues/1227 https://github.com/cagnulein/qdomyos-zwift/issues/1693?notification_referrer_id=NT_kwDNvFiwNzk5NDE4MDk2Njo0ODIxNg#issuecomment-1758916419 <-- newest one
Is adb setting different to usb debugging?
yes usb debugging is only for usb if i remember correctly. maybe @victorypoint could help here. thanks
I've factory reset and followed everything correctly from the start. I've proven adb works from my pc to my phone. Can't establish adb to the bike
so strange, in the meanwhile try selecting the c1750 device in the companion and reboot the bike. let me know if you see the metrics then in qz. also you can try with the t7.5s device and restart also
It's working with the c1750 profile. I don't get all the data, it's missing watts, cadence and fan setting
that's great! it's because that one is a treadmill profile. could you please send me a debug log from the qz app on your phone?
Il giorno gio 12 ott 2023 alle 10:22 motty-bot @.***> ha scritto:
It's working with the c1750 profile. I don't get all the data missing watts cadence and fan setting
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1700#issuecomment-1759156456, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWB2V3C5CV4Z377JI53X66SCRANCNFSM6AAAAAA54TG4VU . You are receiving this because you were assigned.Message ID: @.***>
debug-Thu_Oct_12_19_18_03_2023.log I believe that's the working one with C1750 profile on the companion app
@motty-bot hi could you please upload it again? The file is a 0byte log Thanks
debug-Thu_Oct_12_19_17_17_2023.log It was too big. Hopefully this works
yes thanks @motty-bot I checked and yes I can't see wattage and RPM. That's strange because the companion it's already looking for them. probably ifit on your machine is writing rpm and wattage in other ways. In order to know it I need to see a log file available int the .wolflogs directory on your bike. Are you able to install a file manager there and open a wolflog file while you're doing a manual workout? it's important to edit them while you're doing a manual workout, otherwise ifit will clean it. We need to find all the strings with "Changed RPM or similar". Actually the companion is already finding "Changed Grade" or "Changed Speed" I guess wattage and rpm on your machine are different
Let me know
I don't have a .wolflogs directory in sdcard.
@motty-bot, you need to install a file manager that shows hidden files and folders. In this case, hidden folders start with a dot. So a file manager like Solid Explorer, FV File Explorer, ES File Explorer will do this.
s22i dump.zip Alright so this is all the files in ,.wolflog at the time of a manual workout. I did a dump via companion app, not sure if that was the right method. Hopefully I got what you need
@motty-bot unfortunately there is no wattage or rpm in the log file, that's because it's an old usb device. The only way to collect these metrics is from the usb directly. I started already a branch about this #1577 but I need a lot of time and for sure someone with the possibility to test each change on his device. Let me know if you are interested into
Yeah I'm happy to help. Bike isn't any good to me without this app working. Let me know what you need me to do.
ok I will try my best to complete this branch ASAP. Did you just buy the bike? What we will do is to completely remove the ifit app and use directly a custom version of the qz app directly on the bike. If it works it will be AMAZING
@motty-bot let's start from here this is the QZ apk modified to run on the tablet of your bike https://github.com/cagnulein/qdomyos-zwift/suites/14652532576/artifacts/831407139
try to install it. then completely close all the app, ifit included (remove it if you can) and start qz with the debug log enabled.
post here the debug log, thanks!
Bike is about 3 years old. I installed the app however it crashes after booting. I uninstalled ifit and closed the companion app. It crashes with companion running and closed.
ok are you able to run a
adb logcat
and post the result after the qz crash?
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno sab 14 ott 2023 alle ore 10:21 motty-bot @.***> ha scritto:
debug-Sat_Oct_14_08_10_34_2023.log https://github.com/cagnulein/qdomyos-zwift/files/12903819/debug-Sat_Oct_14_08_10_34_2023.log
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1700#issuecomment-1762724551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWD74Z6YB6WZGHFGMODX7JDRDAVCNFSM6AAAAAA54TG4VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRSG4ZDINJVGE . You are receiving this because you were assigned.Message ID: @.***>
also can you post a
lsusb
output from an adb shell?
Adb connection is actively refused. Debugging is on. Any ideas how to solve that? Is it possible to do a similar command locally on the tablet? Reading into it apparently the only way to enable adb over lan is to do it using usb first. How do I get around that?
I'm pretty sure the usb port is locked down I can't adb via usb either.
Adb connection is actively refused. Debugging is on. Any ideas how to solve that? Is it possible to do a similar command locally on the tablet?
Reading into it apparently the only way to enable adb over lan is to do it using usb first. How do I get around that?
yes i guess you can install a terminal app on the tablet or also if the usb accepts an external keyboard you can try ctrl-alt-f1 to f8 to check if you see a terminal
I could use ls usb via command line but j got a dump via an app blueftp1846661320.txt blueftp-672573982.txt blueftp-1410459118.txt
I think I'm stuck with logcat seems you need root or adb I've tried via terminal however it only appears to log the terminal app itself
Keyboard works via usb port which is handy
ok perfect i will try to fix the crash tomorrow. did you full close all the ifit app when you tried?
Il giorno dom 15 ott 2023 alle 03:54 motty-bot @.***> ha scritto:
Keyboard works via usb port which is handy
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1700#issuecomment-1763233957, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWBIW6YSS23NOPCQZ5LX7M65VAVCNFSM6AAAAAA54TG4VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGIZTGOJVG4 . You are receiving this because you were assigned.Message ID: @.***>
Same result with ifit uninstalled and eru processes force stopped
it could be the vid and pid of the usb that are different from the one that i implemented for @victorypoint i will check this tomorrow (away from home now)
Il giorno dom 15 ott 2023 alle 08:28 motty-bot @.***> ha scritto:
I just tried it with the eru processes stopped with same result. I think that is the admin app?
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1700#issuecomment-1763290787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWAIIGMKJ6GPEL5TTR3X7N67PAVCNFSM6AAAAAA54TG4VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGI4TANZYG4 . You are receiving this because you were assigned.Message ID: @.***>
Thanks Roberto. I don't have the companion app installed anymore. That's not required is it?
nope qz companion is not needed for this
Il giorno dom 15 ott 2023 alle 10:48 motty-bot @.***> ha scritto:
Thanks Roberto. I don't have the companion app installed anymore. That's not required is it?
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1700#issuecomment-1763324148, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEYL627XY7GTTCWWJDX7OPNHAVCNFSM6AAAAAA54TG4VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGMZDIMJUHA . You are receiving this because you were assigned.Message ID: @.***>
pid and vid are right. did you try to press ctrl+alt+f1 to f8 with a real keyboard to check if you see a terminal on the tablet?
Il giorno dom 15 ott 2023 alle 11:00 cagnulein @.***> ha scritto:
nope qz companion is not needed for this
Il giorno dom 15 ott 2023 alle 10:48 motty-bot @.***> ha scritto:
Thanks Roberto. I don't have the companion app installed anymore. That's not required is it?
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1700#issuecomment-1763324148, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEYL627XY7GTTCWWJDX7OPNHAVCNFSM6AAAAAA54TG4VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGMZDIMJUHA . You are receiving this because you were assigned.Message ID: @.***>
It minimises the screen but nothing else. I sideloaded a terminal app but logcat only logs what's happening with that terminal app from what I can tell.
yes an android app can only log itself, it needs root permission to log the system. maybe in the .wolflog we can also capture the qz crash as well? did you try dumping them after the qz crash?
If I dump via companion app it doesn't modify the existing wolflog files from the 14th which I've attached. Not sure if I had ifit installed at that point. It does dump some new files in /eru which Ive also attached DeviceAdmin_16Oct2023.txt DeviceAdmin_15Oct2023.txt DeviceAdmin_14Oct2023.txt Combined_15Oct2023.txt Combined_16Oct2023.txt Combined_14Oct2023-1.txt Combined_14Oct2023.txt Startup_14Oct2023.txt MvxTrace_14Oct2023.txt Usb_14Oct2023.txt Wifi_14Oct2023.txt Error_14Oct2023.txt
argh unfortunately no useful information. We need for sure to understand how to read the logcat
from the terminal app that you downloaded
did you try to run these commands?
dmesg
logcat
?
Bear with me 've never done any Android / Linux stuff. Output of dmesg attached. Do I run how do you want me to do the logcat? Just upload whatever it gives me? Or does it work with dmesg somehow
yes you did right (unfortunately dmesg doesn't contain anything useful, did you run qz before and it crashed?) do the same thing with logcat
you can redirect everything in a file if you find it more confortable
logcat -f > log.txt
Rebooted machine, opened qz and crashed, ran commands logcatout1.txt dmesgout.txt
unbelieavable, there is no information at all :( Can you try to look in the folders, maybe /var/log looking for any possible logs? we need to find some useful information about android crashes. Maybe also in the developer settings of the tablet there is something to generate a bug report? Let me know, we have only to find a way to gather informations Thanks!
Unfortunately no /var folder. I found "dynamic_debug" which I've attached although I don't expect it to yield anything. I installed an app that shows what files are being modified in real time and when qz crashes the only file it lists is the qz debug log, which I've attached. There is a bug report button in developer options but it doesn't seem to do anything, I can't find any output from it. Apparently it's stored in /data but thats locked down without ADB control.txt debug-Tue_Oct_17_21_39_11_2023.log
they did a very good job about closing every doors. from xda did you find something? the only other way that i'm thinking of is disconnecting the usb cable directly from the bike and using it with a phone directly, but i don't know if the usb connector is a classic TYPE A or it has a special connector. Did you ever open it?
Do you mean the cable from the bike hardware to the tablet? It's a 8 pin cable ref photo. Or so you think there might be a usb cable between that port and the tablet?
Describe the bug QZ companion app installed on Norditrack S22i after factory reset, using tinyurl method as ADB failed. S22i selected on companion app. QZ app on Android. IP address of bike in TDF companion field. Can ping IP from phone successfully No data appears in QZ app when starting a manual workout in iFit app
To Reproduce Steps to reproduce the behavior: Start iFit. Start Qz app Start manual workout. All tiles in QZ app remain at 0
Expected behavior Expect to see watts, cadence, resistance etc
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): NA
Smartphone (please complete the following information):
Append a debug log
Follow this guide https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F
Additional context Add any other context about the problem here. debug-Wed_Oct_11_18_30_17_2023.log