cagnulein / qdomyos-zwift

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

[BUG] C1750 Nordic Track Treadmill - Connection Failure #1193

Closed paulhas closed 1 year ago

paulhas commented 1 year ago

I installed QZ Companion on above treadmill following instructions for method 2, downloading apk to treadmill as the ADB connection was refused by the treadmill.

I then installed QZ on my Samsung Galaxy Tab S6 Lite Android tablet following instructions.

When starting QZ the tablet has the tiles & a message under the paus/stop buttons saying connecting. When I start the treadmill the tiles all still have zeroes.

I had a read at some problems on-line & noticed someone had a similar problem that was due to location not being enabled but I have location enabled on the tablet & the treadmill.

debug-Sat_Jan_21_09_45_05_2023.log

cagnulein commented 1 year ago

hi @paulhas the problem here is the companion that it doesn't send any data. is it open on the treadmill? does it have all the permissions?

let me know

paulhas commented 1 year ago

Hi Roberto,Thanks for the reply.I checked the treadmill & opened the apps option on the menu. I've attached the photos but QZ Companion seems to be running according to what it says.Regards,PaulSent from my Galaxy -------- Original message --------From: Roberto Viola @.> Date: 21/01/2023 11:00 (GMT+00:00) To: cagnulein/qdomyos-zwift @.> Cc: paulhas @.>, Mention @.> Subject: Re: [cagnulein/qdomyos-zwift] [BUG] C1750 Nordic Track Treadmill - Connection Failure (Issue #1193) hi @paulhas the problem here is the companion that it doesn't send any data. is it open on the treadmill? does it have all the permissions? let me know

β€”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

hi @paulhas i don't see the photo because you have to attach them from github interface:)

anyway using the adb logcat button on the companion are you able to send me the logcat file generated located in the /sdcard/ path?

paulhas commented 1 year ago

Oops sorry, I just saw the email & replied. Here's the photos. I trimmed them down as it rejected the originals

20230121_112657(1) 20230121_112628_resized(1) 20230121_112706_resized(1)

paulhas commented 1 year ago

This is the only screen I seem to be able to access in Companion on the treadmill display. I've tried it with both Nordictrack 2950 & Other selected. I havd to use the square or circle by swiping up on the treadmill display to exit this screen as it doesn't give me any option to proceed further 20230121_124353_resized

paulhas commented 1 year ago

It's like it's not picking up the Bluetooth from the treadmill. When I go into Advanced Sertings & select the manual device dropdown, it doesn't list the treadmill anywhere, the only option other than other devices around my home is wifi.

I've paired my phone (Samsung S21) & tablet with the treadmill Bluetooth & it appears as AOSP on Drone in the Bluetooth listing on my phone or tablet but I'm not seeing that in the dropdown in QZ

cagnulein commented 1 year ago

This is the only screen I seem to be able to access in Companion on the treadmill display. I've tried it with both Nordictrack 2950 & Other selected. I havd to use the square or circle by swiping up on the treadmill display to exit this screen as it doesn't give me any option to proceed further

20230121_124353_resized

If you scroll down here there is the button to do an adb logcat

Anyway you can produce an adb logcat directly from adb

cagnulein commented 1 year ago

It's like it's not picking up the Bluetooth from the treadmill. When I go into Advanced Sertings & select the manual device dropdown, it doesn't list the treadmill anywhere, the only option other than other devices around my home is wifi.

I've paired my phone (Samsung S21) & tablet with the treadmill Bluetooth & it appears as AOSP on Drone in the Bluetooth listing on my phone or tablet but I'm not seeing that in the dropdown in QZ

Qz companion is not over Bluetooth, but Wi-Fi :) so it's ok that you don't see anything over Bluetooth

paulhas commented 1 year ago

Ah right, I was hoping you'd say that πŸ‘

paulhas commented 1 year ago

I can't get that screen to scroll at all on the treadmill display. Also, I tried to connect to the treadmill with my laptop yesterday & the log stated "cannot connect to 192.168.1.91:5555: No connection could be made because the target machine actively refused it".

cagnulein commented 1 year ago

Argh so I have to put the ability to scroll it. Is the adb setting still enabled on the tablet?

paulhas commented 1 year ago

I still have USB debug enabled if that's what you mean

cagnulein commented 1 year ago

Mmm maybe in the tablet you have something to put the pc in white list in the developer settings? Maybe something to reset the adb connection

paulhas commented 1 year ago

Not sure but I read somewhere thaf it needs to be Andriid 11 or above for ADB connection. I think the tablet is only Android 5.5 after resetting to factory defaults. Not sure if its possible to upgrade that via the browser on the treadmill tablet. That was for a WiFi connection though

cagnulein commented 1 year ago

adb is possible on android 5 because we're using it with https://github.com/cagnulein/qdomyos-zwift/issues/1153 I guess it has the same android version, maybe you want to join that discussion in order to understand how the OP gain adb?

paulhas commented 1 year ago

I think any discussion on ADB would help me Roberto, I've absolutely no idea about it at the moment.

It would be great to get your software working with Zwift but I can't seem to get Companion past the point of the screen above. Is there a button to move to the next screen lower on that page that I can't see because I can't scroll down to it?

cagnulein commented 1 year ago

i can add a scroll view tomorrow and then you should be able to upload the logcat from the github web interface from the tablet browser

i will let you know when i'm ready to test

paulhas commented 1 year ago

OK, many thanks Roberto.

I took a look at the other thread but I'm no wiser as to how to get ADB working via my laptop. I just have no knowledge in this area so it's a big learning curve for me

cagnulein commented 1 year ago

@paulhas just did, it's building :) wait 2 minutes

cagnulein commented 1 year ago

@paulhas done https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/tag/3.2.5 you should be able to reach the adb logcat button now let me know

paulhas commented 1 year ago

I can browse to the page but it's not opening the assets on the treadmill. They open fine when I go to them on my phone

cagnulein commented 1 year ago

@paulhas because you need to login to github first on the treadmill

paulhas commented 1 year ago

Seems to be doing the same thing (I wrote this message on the treadmill)

cagnulein commented 1 year ago

what does the treadmill says for this link? i mean which is the exact error?

cagnulein commented 1 year ago

also this link should be pointing on this last apk https://tinyurl.com/qz-companion (hopefully!)

paulhas commented 1 year ago

20230121_202831_resized

paulhas commented 1 year ago

When I click on assets the circle is like a quarter loaded then stops

cagnulein commented 1 year ago

Go directly here so https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.2.5/QZCompanionNordictrackTreadmill.apk

paulhas commented 1 year ago

That seems to download OK but when I try & install it I get a message that says X App not installed

cagnulein commented 1 year ago

How did you install the first time? Did you also try to uninstall the current version first?

paulhas commented 1 year ago

Yes I uninstaled the original file & deleted it from the downloads folder. After downloading the new file, I went into the downloads folder & clicked on the new file. I just thought though, I maybe need to restart the treadmill. I'll try that

cagnulein commented 1 year ago

Ok I'm going to bed soon, maybe @victorypoint can help you while I'm sleeping:)

paulhas commented 1 year ago

That's OK it's getting late here too. I'll leave it for now, but thanks very much for helping

paulhas commented 1 year ago

Just to leave this for tonight. I tried it after reboot but same result unfortunately. This was the screen before I click install & get the error message -398887396_20230121_205159_2509909_resized

cagnulein commented 1 year ago

So strange, I just changed the layout. Are you able to install the old version?

paulhas commented 1 year ago

I'm doing a factory reset as it Still seems to be loading the old version even though I uninstalled it

cagnulein commented 1 year ago

I guess with a sleep will be everything better :)

paulhas commented 1 year ago

Hope so πŸ˜‚πŸ‘

victorypoint commented 1 year ago

Hi guys. Just reading through this now. @paulhas , when you attempt the ADB install method with QZ-Companion.bat, can you post the log file? It's named QZ-Companion-log.txt in the same install folder.

paulhas commented 1 year ago

It worked resetting the treadmill back to factory settings & reinstalling the new Companion file. I can now scroll & click on the Dump Log button but I'm not sure how to get the file off the treadmill. Do I need to install a file explorer type app so I can find & copy the file presumably onto a USB pendrive? I've also attached the QZ-Companion-log.txt logfile. QZ-Companion-log.txt

cagnulein commented 1 year ago

great! if you can open this page from the tablet you can upload the file directly from this page. the log is located on the /sdcard/ root folder

paulhas commented 1 year ago

I only have an internet browser on the treadmill tablet & I can't seem to install a file explorer app

paulhas commented 1 year ago

The QZ-Companion-restart.bat file seems to work from my laptop. It stops Companion & iFit & then restarts them both.

Is there any way I can access the files on the treadmill using a CMD window on my laptop?

cagnulein commented 1 year ago

I only have an internet browser on the treadmill tablet & I can't seem to install a file explorer app

if here in the comment window, you click on the upload button you will see the file explorer :)

cagnulein commented 1 year ago

The QZ-Companion-restart.bat file seems to work from my laptop. It stops Companion & iFit & then restarts them both.

Is there any way I can access the files on the treadmill using a CMD window on my laptop?

yes just type adb pull /sdcard/logcat.txt logcat.txt

victorypoint commented 1 year ago

@paulhas , good to hear ADB is working from your laptop. There is a batch file in the install package - adb-debug.bat. Please run it on your laptop and upload the resulting files.

paulhas commented 1 year ago

I still can't get the ADB connected properly. Here's the screenshot from running QZ-Companion-restart.bat. I'm still getting the cannot connect message in there, even though it appears to continue and stop/restart the apps.

I'm not able to type anything into the window because as soon as I click on it, it shuts down.

Screenshot1

paulhas commented 1 year ago

I get the same "cannot connect ......." message when trying to run adb-debug.bat

cagnulein commented 1 year ago

I only have an internet browser on the treadmill tablet & I can't seem to install a file explorer app

if here in the comment window, you click on the upload button you will see the file explorer :)

@paulhas did you try this?

paulhas commented 1 year ago

I can't see an upload button