cagnulein / qdomyos-zwift

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

Nordictrack S22i: Zwift not communicating Incline to QZ #1227

Closed Bluetac1 closed 1 year ago

Bluetac1 commented 1 year ago

# debug-Mon_Jan_30_19_24_49_2023.log Describe the bug Receiving all data from Nordictrack S22i (Power, Cadence, etc) and transmitting to Zwift, but not receiving incline data in return.

To Reproduce Steps to reproduce the behavior: Refer bug report. I am running:

Last night everything was working fine (apart from lack of autoincline), today experiencing connectivity issues.

Expected behavior Resolve connectivity issues and educate me on how auto-incline works with above setup.

Screenshots Refer attached for all screenshots from QZ Companion settings.

Desktop (please complete the following information):

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.

Bluetac1 commented 1 year ago

9A2A08AC-54F5-4BAD-9A0C-8523025BA9C8 FFCF9D5C-0A0A-4C02-8F3D-1A93A44A4250 49DB0F63-F393-4130-9856-5EB60BC477AF FA575A90-414D-4AE4-B3D8-99C8576ABCD4 8164573F-CC1C-4DD4-B922-1A0652DF52F8 6059B430-A447-4973-8E22-E14F9E3D1150 5A633A39-E420-491F-805E-1D1A47C8587F 1C985F06-B4DA-4A3F-97AA-D533CE751BED 4C885369-FEDB-473C-ADF0-C990A42B5655 71C67D7A-EAB0-4A8C-BDBC-C5FDE50F051A 239A989E-5B81-43BE-9AC1-E7B35ABE9732

cagnulein commented 1 year ago

@Bluetac1 there is an error in the settings. Please remove the ip from the TDF4 IP setting and press ok and restart qz and let me know!

Bluetac1 commented 1 year ago

Thank you - I’ve removed the IP from that setting but kept the IP address in the ‘TDF Companion IP’ field (i.e. one below that one). Unfortunately, QZ is still not showing on my bluetooth list on NordicTrack. Last night it was there!On 30 Jan 2023, at 7:58 pm, Roberto Viola @.***> wrote: @Bluetac1 there is an error in the settings. Please remove the ip from the TDF4 IP setting and press ok and restart qz and 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

please send a fresh debug log with the right settings @Bluetac1

Bluetac1 commented 1 year ago

debug-Mon_Jan_30_23_19_49_2023.log

cagnulein commented 1 year ago

hi @Bluetac1 , the problem is that i don't see any packets coming from 198.168.68.61 Are you sure is still the right ip from your bike? maybe your dhcp server is changing the ip of your bike after each reboot Are you able to ping this ip from your phone? let me know!

JH-Morris commented 1 year ago

debug-Sun_Jan_29_17_33_37_2023.log

I also have this problem. I am using iPad for zwift and iPhone for the companion app. Here is the debug from the ride yesterday. # working on getting the log from zwift.

cagnulein commented 1 year ago

@JH-Morris are you able to provide also an adb logcat from the bike directly?

JH-Morris commented 1 year ago

Not sure exactly how to do that. Looking into it right now.

cagnulein commented 1 year ago

ok i'm going to bed, i will answer tomorrow

Il giorno lun 30 gen 2023 alle 22:45 JH-Morris @.***> ha scritto:

Not sure exactly how to do that. Looking into it right now.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1227#issuecomment-1409393693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEB7JPMYBZKY5YWBITWVAY6LANCNFSM6AAAAAAUK3TUYA . You are receiving this because you were assigned.Message ID: @.***>

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

JH-Morris commented 1 year ago

Log.txt debug-Mon_Jan_30_16_59_03_2023.log @cagnulein So I did a quick ride today just to get more up-to-date logs. Here is what I have so far. The “log” is the zwift log from the iPad Andy the other is from the companion app.

Tied to use the "dump log" feature on the bike. I'm not sure if that is how you can get the debug on the bike. It just seemed to freeze the bike anyway.

cagnulein commented 1 year ago

@JH-Morris yeah sorry about the adb logcat function in qz companion. I just fixed it. I need that kind of log because it's the only way to understand what's going on. I just pushed a new QZ companion version that fixed this issue. Please install and try again, you can just press the inclination and/or resistance plus button qz to simulate the behaviour. Then send me a adb logcat from the bike directly (when you push the button a logcat.txt file will be created in the /sdcard/ directory)

let me know

JH-Morris commented 1 year ago

@JH-Morris yeah sorry about the adb logcat function in qz companion. I just fixed it.

I need that kind of log because it's the only way to understand what's going on.

I just pushed a new QZ companion version that fixed this issue.

Please install and try again, you can just press the inclination and/or resistance plus button qz to simulate the behaviour.

Then send me a adb logcat from the bike directly (when you push the button a logcat.txt file will be created in the /sdcard/ directory)

let me know

I'll get that done later today and get you the file. Might be a little late for you. I think you're 6 hours ahead of me.

cagnulein commented 1 year ago

no problem :) 10:30am here :)

Bluetac1 commented 1 year ago

Sorry for the late reply - work got in the way. After playing around with the settings on each device (long story) I finally got Zwift (iPad), QZ app (iPhone) and NordicTrack S22i to talk again! Please see debug log. The only issue I’m now experiencing is that the incline on Zwift does not pull through to NordicTrack. Can you assist please? Many thanks for your help to date! debug-Tue_Jan_31_23_09_55_2023.log

cagnulein commented 1 year ago

hi @Bluetac1 the issue on this debug log is the fact that the zwift force resistance in the experimental settings is disabled. Eanbled and QZ will send the inclination to your bike Let me know

Bluetac1 commented 1 year ago

Sorry I tried it and it doesn’t appear to work either :(On 31 Jan 2023, at 11:59 pm, Roberto Viola @.***> wrote: hi @Bluetac1 the issue on this debug log is the fact that the zwift force resistance in the experimental settings is disabled. Eanbled and QZ will send the inclination to your bike 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

ok but send me a debug log with that one. If it's so it means that i need also an adb logcat from the bike directly

Bluetac1 commented 1 year ago

Not sure whether it is relevant, but when I push the ‘+’ and ‘-‘ buttons on the incline within the app, nothing happens either? Might be same issue as identified above?

Bluetac1 commented 1 year ago

debug-Tue_Jan_31_23_09_55_2023.log

cagnulein commented 1 year ago

yes it's the same issue

cagnulein commented 1 year ago

debug-Tue_Jan_31_23_09_55_2023.log

this is the same log :)

Bluetac1 commented 1 year ago

If that debug log isn’t showing connectivity, I just jumped off and can send another

Bluetac1 commented 1 year ago

Whoops debug-Wed_Feb_1_00_12_13_2023.log

cagnulein commented 1 year ago

confirmed, qz now is doing the right thing. I need the adb logcat now

Bluetac1 commented 1 year ago

Thanks, need to investigate how to retrieve that - have to go to sleep and will report back in the morning once I’ve figured it out

JH-Morris commented 1 year ago

Log.txt debug-Tue_Jan_31_16_11_25_2023.log logcat.log I think I have it this time. Let me know if you need anything else.

Bluetac1 commented 1 year ago

Sorry for the basic question in advance! I’ve navigated on the bike to obtain the bug report (refer screenshots) but there is no prompt when/where it is available and it is not obvious to me how I can download and transmit it to you. Humble apologies - can you advise? 8BAE7E0E-11D2-48E6-8FB5-570DF04DBC44 10189293-B677-43FB-9C62-F91DA9AF421B

cagnulein commented 1 year ago

Log.txt debug-Tue_Jan_31_16_11_25_2023.log logcat.log I think I have it this time. Let me know if you need anything else.

thanks @JH-Morris the main issue about your log is that you have zwift erg workout setting enabled. In this way qz is not sending the resistance to the bike for a free ride on zwift. You need to disable this one. Could you please try again and send me the log in case it doesn't work? Thanks!

cagnulein commented 1 year ago

@Bluetac1 you can just press the adb logcat button on the qz companion app, and then it will write automatically a logcat.txt in the /sdcard/ folder. Let me know!

Bluetac1 commented 1 year ago

I’m really sorry - I must be very dense. I’m not usually an Android user. I’ve tried navigating all through the device, but can’t access the ‘Files’ app, nor that specific directory.

Any ideas how to quickly access the pathway:

FILE /sdcard/.wolflogs/2023-02-01_logs.txt

Bluetac1 commented 1 year ago

57B69C6D-76C5-444E-89E0-A5837C4725AA F40F9D24-8B59-4F7D-BD5F-9D7F2FC6092B DFFC325B-D9F2-4FEC-ACF3-0F6D3F524B07 26F9CBC8-598B-4FB8-B9DB-2FDA81FFEFA3 938F8300-2790-4EE2-8757-0BEA8A9042C1 4203ABE3-F11E-45EE-8CBA-7C1BC28FA648 ACBDB5EA-F223-46DF-A5AF-EE7DB73F94AE 9A21866C-8C13-4E45-A300-2221FCFD9BE4

Bluetac1 commented 1 year ago

That’s a full list of all apps I see, even when opening up the ‘System’ ones……

cagnulein commented 1 year ago

@victorypoint which app do you use to navigate in the files? also @Bluetac1 you can get files via adb with

adb pull pathofthefileontablet pathofwhereyouwantthefileonyourpc

Let me know

victorypoint commented 1 year ago

@victorypoint which app do you use to navigate in the files? also @Bluetac1 you can get files via adb with

adb pull pathofthefileontablet pathofwhereyouwantthefileonyourpc

Let me know

I open the browser and install Solid Explorer from APKPure.com. Also if ADB is working then this:

ADB pull /sdcard/.wolflogs/

JH-Morris commented 1 year ago

That’s a full list of all apps I see, even when opening up the ‘System’ ones……

@Bluetac1 I go into settings>storage>files and the logcat is in there. I was also able to download an apk of Dropbox and just load them into there.

JH-Morris commented 1 year ago

Log.txt debug-Wed_Feb_1_16_44_09_2023.log logcat.log This is one with zwift erg on across qz and zwift. Would force the bike to incline but never decline.

JH-Morris commented 1 year ago

logcat.log Log.txt debug-Wed_Feb_1_16_56_59_2023.log Alright. This one is with erg off on Zwift and qz. I was getting some decline but it wasn’t really correlating well. For example, a negative grade on zwift never correlated to a negative grade on the bike.

Bluetac1 commented 1 year ago

2023-01-31_logs.txt

Bluetac1 commented 1 year ago

Thanks for everyone’s help - I hope this is it!! :)

Bluetac1 commented 1 year ago

2023-02-01_logs.txt

Bluetac1 commented 1 year ago

The last one is more up to date.

cagnulein commented 1 year ago

Log.txt debug-Wed_Feb_1_16_44_09_2023.log logcat.log This is one with zwift erg on across qz and zwift. Would force the bike to incline but never decline.

@JH-Morris the problem on this log is that you have zwift force resistance setting disabled on your experimental setting. Please enable it. Maybe there are also other issue, but this is the main issue here

cagnulein commented 1 year ago

logcat.log Log.txt debug-Wed_Feb_1_16_56_59_2023.log Alright. This one is with erg off on Zwift and qz. I was getting some decline but it wasn’t really correlating well. For example, a negative grade on zwift never correlated to a negative grade on the bike.

same here zwift force resistance setting disabled on your experimental setting

cagnulein commented 1 year ago

2023-02-01_logs.txt

@Bluetac1 this file is empty

2023-01-31_logs.txt

in this file i saw something but there is no metrics at all. Did you do a workout on this day? as @victorypoint said one time, you have to collect these files before ending the workout on ifit, otherwise it will overwrite them.

Also i need the logcat.txt from the companion.

Thanks

Bluetac1 commented 1 year ago

2023-02-02_logs.txt debug-Thu_Feb_2_21_12_30_2023.log

Bluetac1 commented 1 year ago

Sorry (again) - I hope the above is what you need!!

cagnulein commented 1 year ago

@Bluetac1 no problem :) so in the https://github.com/cagnulein/qdomyos-zwift/files/10568438/2023-02-02_logs.txt i saw the metrics, but in the https://github.com/cagnulein/qdomyos-zwift/files/10568442/debug-Thu_Feb_2_21_12_30_2023.log I don't. So, i still need the logcat.txt file from the QZ Companion to understand why the companion is not sending them. Are you able to get it?

JH-Morris commented 1 year ago

@cagnulein There might be an issue with that setting because I had it on the entire time. It was forcing some form on incline and/or decline in certain instances. I know this because I turned it off right after I sent you the files so that I could get a workout in without it changing incline/decline. Could that be the issue?

So thinking about this more. What I'll do when I get up tomorrow is I will take a screenshot of the settings before I start each ride. I'll reproduce all of the files and we can troubleshoot from there. I don't work Fridays so I'll be way more responsive than I have been. Maybe we can find a solution.

cagnulein commented 1 year ago

@JH-Morris maybe you were sending me the wrong debug file? also remember to restart qz after each changes in the settings. let me know