cagnulein / qdomyos-zwift

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

[BUG] Norditrack S22i no data on QZ app #1700

Closed motty-bot closed 11 months ago

motty-bot commented 1 year ago

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. Screenshot_20231011_212029 debug-Wed_Oct_11_18_30_17_2023.log

cagnulein commented 1 year 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

motty-bot commented 1 year ago

Sorry I'm new to adb. Do I use a usb cable or is there something I need to do to give the ip?

cagnulein commented 1 year ago

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

motty-bot commented 1 year ago

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?

cagnulein commented 1 year ago

@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

motty-bot commented 1 year ago

Is adb setting different to usb debugging?

cagnulein commented 1 year ago

yes usb debugging is only for usb if i remember correctly. maybe @victorypoint could help here. thanks

motty-bot commented 1 year ago

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

cagnulein commented 1 year ago

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

motty-bot commented 1 year ago

It's working with the c1750 profile. I don't get all the data, it's missing watts, cadence and fan setting

cagnulein commented 1 year ago

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: @.***>

motty-bot commented 1 year ago

debug-Thu_Oct_12_19_18_03_2023.log I believe that's the working one with C1750 profile on the companion app

cagnulein commented 1 year ago

@motty-bot hi could you please upload it again? The file is a 0byte log Thanks

motty-bot commented 1 year ago

debug-Thu_Oct_12_19_17_17_2023.log It was too big. Hopefully this works

cagnulein commented 1 year ago

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

motty-bot commented 1 year ago

I don't have a .wolflogs directory in sdcard.

20231014_092023 20231014_092001

victorypoint commented 1 year ago

@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.

motty-bot commented 1 year ago

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

cagnulein commented 1 year ago

@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

motty-bot commented 1 year ago

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.

cagnulein commented 1 year ago

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

cagnulein commented 1 year ago

@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!

motty-bot commented 1 year ago

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.

motty-bot commented 1 year ago

debug-Sat_Oct_14_08_10_34_2023.log

cagnulein commented 1 year ago

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: @.***>

cagnulein commented 1 year ago

also can you post a

lsusb

output from an adb shell?

motty-bot commented 1 year ago

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?

motty-bot commented 1 year ago

I'm pretty sure the usb port is locked down I can't adb via usb either.

cagnulein commented 1 year ago

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

motty-bot commented 1 year ago

I could use ls usb via command line but j got a dump via an app blueftp1846661320.txt blueftp-672573982.txt blueftp-1410459118.txt

motty-bot commented 1 year ago

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

motty-bot commented 1 year ago

Keyboard works via usb port which is handy

cagnulein commented 1 year ago

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: @.***>

motty-bot commented 1 year ago

Same result with ifit uninstalled and eru processes force stopped

cagnulein commented 1 year ago

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: @.***>

motty-bot commented 1 year ago

Thanks Roberto. I don't have the companion app installed anymore. That's not required is it?

cagnulein commented 1 year ago

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: @.***>

cagnulein commented 1 year ago

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: @.***>

motty-bot commented 1 year ago

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.

cagnulein commented 1 year ago

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?

motty-bot commented 1 year ago

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

cagnulein commented 1 year ago

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

?

motty-bot commented 1 year ago

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

motty-bot commented 1 year ago

dmesg1.txt

cagnulein commented 1 year ago

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

motty-bot commented 1 year ago

Rebooted machine, opened qz and crashed, ran commands logcatout1.txt dmesgout.txt

cagnulein commented 1 year ago

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!

motty-bot commented 1 year ago

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

cagnulein commented 1 year ago

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?

motty-bot commented 1 year ago

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? 20231019_111440