cagnulein / QZCompanionNordictrackTreadmill

Companion App of QZ for Nordictrack Treadmills and Bikes
https://www.qzfitness.com/
GNU Affero General Public License v3.0
50 stars 14 forks source link

Cannot connect via ADB on my nordictrack s15i #98

Closed parzidev28 closed 7 months ago

parzidev28 commented 7 months ago

Hello, I have a problem connecting via ADB to install QZ, I put the log attached with the message. I use QDomyos zwift on IOS 17.3.1

Thanks in advance QZ-Companion-log.txt

cagnulein commented 7 months ago

hi did you open adb on the tablet side?

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

Il giorno lun 8 apr 2024 alle 22:13 parzidev28 @.***> ha scritto:

Hello, I have a problem connecting via ADB to install QZ, I put the log attached with the message. Thanks in advance QZ-Companion-log.txt https://github.com/cagnulein/QZCompanionNordictrackTreadmill/files/14910417/QZ-Companion-log.txt

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/98, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWBAFYLHA6FD5MTUNUDY4L26BAVCNFSM6AAAAABF5KR26KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTEMBQGEYDKMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

parzidev28 commented 7 months ago

yes it's open

cagnulein commented 7 months ago

it seems not unfortunately. did you already try to reboot the treadmill? also try a factory reset without updating the ifit app. usually helps

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

Il giorno lun 8 apr 2024 alle 22:17 parzidev28 @.***> ha scritto:

yes it's open

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

parzidev28 commented 7 months ago

ok I had a problem, the usb debug was disabled, the connection worked fine but now I'm stuck on "Launching IFit" and nothing happened on the tablet, it didn't even restart

parzidev28 commented 7 months ago

QZ-Companion-log.txt

cagnulein commented 7 months ago

try a reboot and in case a factory reset. qz don't have the ability to change ifit, so it could be another issue

parzidev28 commented 7 months ago

everything is ok now, I have activated the functions as noted in QZ, I entered the IP address of the machine, but when I restart QZ I am stuck on "Connecting..." QZ-Companion-log.txt

cagnulein commented 7 months ago

going to bed now, italy here. share a debug log and i will check it tomorrow

https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

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

Il giorno lun 8 apr 2024 alle 22:32 parzidev28 @.***> ha scritto:

everything is ok now, I have activated the functions as noted in QZ, I entered the IP address of the machine, but when I restart QZ I am stuck on "Connecting..." QZ-Companion-log.txt https://github.com/cagnulein/QZCompanionNordictrackTreadmill/files/14910646/QZ-Companion-log.txt

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

parzidev28 commented 7 months ago

Okay thank you, good night !

Here is the log: debug-lunavr8_22_38_35_2024.log

cagnulein commented 7 months ago

ok a couple of things:

Let me know!

parzidev28 commented 7 months ago

here I did what you told me, but the result is the same.

debug-maravr9_09_27_58_2024.log IMG_41A43A1D5FE9-1

cagnulein commented 7 months ago

nope, that one is under the treadmill section, remove it from there too. you have to go under settings, bike, proform nordictrack bike settings, tdf companion ip

anyway that's not the only issue, i need an adb logcat as I said above to understand the lack of the metrics

let me know!

parzidev28 commented 7 months ago

ok, how do I do an adb logcat? I specify that on the bike in the QZ app I am set to "other" given that the s15i does not appear

cagnulein commented 7 months ago

i mean this one

https://github.com/cagnulein/QZCompanionNordictrackTreadmill/assets/48216/af20010a-7a39-4023-91fd-bad35d4ac06b

for adb logcat use adb-debug.bat in the install package folder from the companion

parzidev28 commented 7 months ago

Last login: Mon Apr 8 23:01:46 on ttys000 /Users/private28/Downloads/QZCompanionNordictrackTreadmill-master/InstallPackage/adb-debug-mac ; exit; private28@MacBook-Pro-de-private28 ~ % /Users/private28/Downloads/QZCompanionNordictrackTreadmill-master/InstallPackage/adb-debug-mac ; exit; Enter treadmill IP address: 192.168.1.41 PING 192.168.1.41 (192.168.1.41): 56 data bytes 64 bytes from 192.168.1.41: icmp_seq=0 ttl=64 time=183.446 ms 64 bytes from 192.168.1.41: icmp_seq=1 ttl=64 time=11.533 ms 64 bytes from 192.168.1.41: icmp_seq=2 ttl=64 time=12.367 ms 64 bytes from 192.168.1.41: icmp_seq=3 ttl=64 time=7.898 ms

--- 192.168.1.41 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 7.898/53.811/183.446/74.864 ms disconnected everything

cagnulein commented 7 months ago

usb debugging seems disabled again

parzidev28 commented 7 months ago

I just checked in the developer settings and it is activated

cagnulein commented 7 months ago

ok but it's not reachable, so try to reboot the bike. ifit is trying in all the way to block QZ so these first steps could be frustrating

parzidev28 commented 7 months ago

I'm going to try to reset the bike and start all over again because I don't understand but now my button to lower the resistance no longer works while all the others work.

cagnulein commented 7 months ago

ok as i said preventing ifit to update after a reset could be a perfect solution for everything

parzidev28 commented 7 months ago

Log with ip in the “nordictrack2950ip” box logcat.txt

parzidev28 commented 7 months ago

Log with ip only in the box: TDF companion ip tell me if you want other log

logcat.txt

cagnulein commented 7 months ago

now my 2 resistance buttons no longer work, I do not understand why

i guess it's completely unrelated to the companion, did you try a factory reset?

Log with ip only in the box: TDF companion ip

logcat.txt

ok good news is that I can see the log. Can you share also the content of the folder .wolflogs that the script downloaded while you were in the workout? Thanks

parzidev28 commented 7 months ago

so for me it was a cable that was a bit unplugged... where I can find this .wolflogs file because I can't find it in the installpackage folder

parzidev28 commented 7 months ago

debug-maravr9_10_36_01_2024.log logcat.txt

cagnulein commented 7 months ago

on mac the folder with a . in the front are hidden, so Press Command+Shift+Dot.

cagnulein commented 7 months ago

set the companion to the device "proform_carbon_t14" restart the bike and let me know!

parzidev28 commented 7 months ago

2024-04-09_logs.txt

parzidev28 commented 7 months ago

ok I did it it's still the same

cagnulein commented 7 months ago

got the reason: do this

let me know!

parzidev28 commented 7 months ago

ok, sorry but how do I execute this command on mac?

parzidev28 commented 7 months ago

ok I found it, but here is the message : Last login: Tue Apr 9 11:08:37 on ttys000 private28@MacBook-Pro-de-private28 InstallPackage % ./adb shell pm grant org.cagnulein.qzcompanionnordictracktreadmill android.permission.READ_LOGS adb: device offline

parzidev28 commented 7 months ago

Last login: Tue Apr 9 11:28:12 on ttys000 private28@MacBook-Pro-de-private28 InstallPackage % ./adb shell pm grant org.cagnulein.qzcompanionnordictracktreadmill android.permission.READ_LOGS adb: no devices/emulators found private28@MacBook-Pro-de-private28 InstallPackage % ./adb shell pm grant org.cagnulein.qzcompanionnordictracktreadmill android.permission.READ_LOGS adb: no devices/emulators found private28@MacBook-Pro-de-private28 InstallPackage %

parzidev28 commented 7 months ago

ok I succeeded, it seems to work! I'm going to try with zwift and I'll let you know if everything is ok! Thanks a lot !!

cagnulein commented 7 months ago

that's great! let me know!

parzidev28 commented 7 months ago

the data is transmitted well on zwift but the intensity and inclination does not change depending on zwift it remains at 0 on the bike, and the values ​​on QZ continue to rise even when I'm not on the bike

cagnulein commented 7 months ago

ok yes that's because we need to handle the coordinate of the ifit app for your bike's tablet. run the adb-screenshot-mac.sh and post here the screenshot and I will add your bike! (qz will change the inclination) By the way, when you are pressing on the plus on the inclination tile on qz, do you see a virtual touch event on the bike's tablet? even if on a random place? Let me know

parzidev28 commented 7 months ago

when I run adb screenshot it opens in vscode is this normal? no I don't see any virtual button when I press the "+" button of the inclination in QZ and besides it doesn't change anything in QZ either

cagnulein commented 7 months ago

that's strange, maybe it doesn't have the exec permission

from the terminal you can do

chmod a+x adb-screenshot-mac.sh and then ./adb-screenshot-mac.sh

mmm for the touch event, try to run this

adb shell input swipe 100 200 300 400 200

do you see an event when you run this?

parzidev28 commented 7 months ago

Last login: Tue Apr 9 12:21:55 on ttys000 private28@MacBook-Pro-de-private28 InstallPackage % chmod a+x adb-screenshot-mac.sh private28@MacBook-Pro-de-private28 InstallPackage % ./adb-screenshot-mac.sh Enter treadmill IP address: 192.168.1.41 PING 192.168.1.41 (192.168.1.41): 56 data bytes 64 bytes from 192.168.1.41: icmp_seq=0 ttl=64 time=7.303 ms 64 bytes from 192.168.1.41: icmp_seq=1 ttl=64 time=6.513 ms 64 bytes from 192.168.1.41: icmp_seq=2 ttl=64 time=11.303 ms 64 bytes from 192.168.1.41: icmp_seq=3 ttl=64 time=7.032 ms

--- 192.168.1.41 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 6.513/8.038/11.303/1.906 ms disconnected everything

adb: device offline adb: error: failed to get feature set: device offline adb: device offline private28@MacBook-Pro-de-private28 InstallPackage %

parzidev28 commented 7 months ago

I don't understand why it just disconnects... it works for something like 10 min and then it disconnects

cagnulein commented 7 months ago

what did you do before to make it work?

cagnulein commented 7 months ago

it could be that adb stays open only for 10 minutes and it goes in timeout if no new connection are made

parzidev28 commented 7 months ago

yet it communicates well with QZ but I cannot place the command with terminal

parzidev28 commented 7 months ago

I restarted the bike but nothing happened, it's ok with QZ but I just can't send a command with adb

parzidev28 commented 7 months ago

Last login: Tue Apr 9 13:11:26 on ttys000 private28@MacBook-Pro-de-private28 InstallPackage % chmod a+x adb-screenshot-mac.sh private28@MacBook-Pro-de-private28 InstallPackage % ./adb-screenshot-mac.sh Enter treadmill IP address: 192.168.1.41 PING 192.168.1.41 (192.168.1.41): 56 data bytes 64 bytes from 192.168.1.41: icmp_seq=0 ttl=64 time=6.006 ms 64 bytes from 192.168.1.41: icmp_seq=1 ttl=64 time=46.538 ms 64 bytes from 192.168.1.41: icmp_seq=2 ttl=64 time=93.724 ms 64 bytes from 192.168.1.41: icmp_seq=3 ttl=64 time=5.966 ms

--- 192.168.1.41 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 5.966/38.059/93.724/36.152 ms disconnected everything

/sdcard/2024-04-09@13-12-19.png: 1 fil...pped. 1.9 MB/s (57959 bytes in 0.029s) private28@MacBook-Pro-de-private28 InstallPackage %

parzidev28 commented 7 months ago

where can i get the png image?

cagnulein commented 7 months ago

it's in the same install package folder. the name is the date of today

parzidev28 commented 7 months ago

2024-04-09@13-12-19

cagnulein commented 7 months ago

ok but i need a screenshot of your ifit screen

also did you run also the adb input swipe command?