cagnulein / qdomyos-zwift

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

Bike ride stops recording data after about 25 minutes as per FB post.[BUG] #2036

Open SOLLY9 opened 10 months ago

SOLLY9 commented 10 months ago

Describe the bug A clear and concise description of what the bug is. Hi everyone. I managed to do a ride today on my Nordictrack s20i.

I noticed on my last 2 rides that about 25 minutes in the speed, cadence, watts and elevation stick at whatever they are for the rest of the ride. The time still counts on correctly but elevation adds based on whatever it gets stuck on and the same with distance.

Has anyone come across this issue previously? . files.zip

cagnulein commented 10 months ago

ok the problem is not about qz but it's about the qz companion that can't read the metrics anymore. in order to address this, i would need a qz companion log when this happens using this https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/InstallPackage/adb-debug.bat

does it work good in the past? does it happening only recently? maybe after an ifit update?

SOLLY9 commented 9 months ago

Unfortunately I have not done many rides to be able to tell if it's a recent problem or has always been an issue.

The link you provided does not give me anything to use?

⁣Get BlueMail for Android ​

On 23 Jan 2024, 13:21, at 13:21, Roberto Viola @.***> wrote:

ok the problem is not about qz but it's about the qz companion that can't read the metrics anymore. in order to address this, i would need a qz companion log when this happens using this https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/InstallPackage/adb-debug.bat

does it work good in the past? does it happening only recently? maybe after an ifit update?

-- Reply to this email directly or view it on GitHub: https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1906047954 You are receiving this because you authored the thread.

Message ID: @.***>

cagnulein commented 9 months ago

the link it's the script to use on your pc to collect debug log from the companion. did you setup adb on your pc already?

SOLLY9 commented 9 months ago

I think this is the file you are after. I did this ride today with the same problem after approximately 20 minutes.

2024-02-01_logs.zip

Hope this helps👍

cagnulein commented 9 months ago

Ok I will check this in the next days

cagnulein commented 9 months ago

more or less do you know the timestamp of when the error happened? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 1 feb 2024 alle ore 19:30 SOLLY9 @.***> ha scritto:

I think this is the file you are after. I did this rifr today with the same problem after approximately 20 minutes.

2024-02-01_logs.zip https://github.com/cagnulein/qdomyos-zwift/files/14129395/2024-02-01_logs.zip

Hope this helps👍

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

SOLLY9 commented 9 months ago

I think around 20 minutes into the ride. Time will be around 17.50PM

⁣Get BlueMail for Android ​

On 1 Feb 2024, 20:29, at 20:29, Roberto Viola @.***> wrote:

more or less do you know the timestamp of when the error happened? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 1 feb 2024 alle ore 19:30 SOLLY9 @.***> ha scritto:

I think this is the file you are after. I did this rifr today with the same problem after approximately 20 minutes.

2024-02-01_logs.zip

https://github.com/cagnulein/qdomyos-zwift/files/14129395/2024-02-01_logs.zip

Hope this helps👍

— Reply to this email directly, view it on GitHub

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1921961566, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AAALYWA5HVASKFUH7242Y5LYRPNNDAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRHE3DCNJWGY . You are receiving this because you were assigned.Message ID: @.***>

-- Reply to this email directly or view it on GitHub: https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922183512 You are receiving this because you authored the thread.

Message ID: @.***>

cagnulein commented 9 months ago

Mmm the fact is that I don't see qz companion at all in the log. Did you collect with the adb logcat batch file?

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

Il giorno gio 1 feb 2024 alle 21:34 SOLLY9 @.***> ha scritto:

I think around 20 minutes into the ride. Time will be around 17.50PM

⁣Get BlueMail for Android ​

On 1 Feb 2024, 20:29, at 20:29, Roberto Viola @.***> wrote:

more or less do you know the timestamp of when the error happened? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 1 feb 2024 alle ore 19:30 SOLLY9 @.***> ha scritto:

I think this is the file you are after. I did this rifr today with the same problem after approximately 20 minutes.

2024-02-01_logs.zip

< https://github.com/cagnulein/qdomyos-zwift/files/14129395/2024-02-01_logs.zip>

Hope this helps👍

— Reply to this email directly, view it on GitHub

< https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1921961566>,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AAALYWA5HVASKFUH7242Y5LYRPNNDAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRHE3DCNJWGY>

. You are receiving this because you were assigned.Message ID: @.***>

-- Reply to this email directly or view it on GitHub:

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922183512 You are receiving this because you authored the thread.

Message ID: @.***>

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

SOLLY9 commented 9 months ago

I connected my phone to the bike and downloaded the log from the wolf logs folder

⁣Get BlueMail for Android ​

On 1 Feb 2024, 20:37, at 20:37, Roberto Viola @.***> wrote:

Mmm the fact is that I don't see qz companion at all in the log. Did you collect with the adb logcat batch file?

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

Il giorno gio 1 feb 2024 alle 21:34 SOLLY9 @.***> ha scritto:

I think around 20 minutes into the ride. Time will be around 17.50PM

⁣Get BlueMail for Android ​

On 1 Feb 2024, 20:29, at 20:29, Roberto Viola @.***> wrote:

more or less do you know the timestamp of when the error happened? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 1 feb 2024 alle ore 19:30 SOLLY9 @.***> ha scritto:

I think this is the file you are after. I did this rifr today with the same problem after approximately 20 minutes.

2024-02-01_logs.zip

<

https://github.com/cagnulein/qdomyos-zwift/files/14129395/2024-02-01_logs.zip>

Hope this helps👍

— Reply to this email directly, view it on GitHub

<

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1921961566>,

or unsubscribe

<

https://github.com/notifications/unsubscribe-auth/AAALYWA5HVASKFUH7242Y5LYRPNNDAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRHE3DCNJWGY>

. You are receiving this because you were assigned.Message ID: @.***>

-- Reply to this email directly or view it on GitHub:

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922183512

You are receiving this because you authored the thread.

Message ID: @.***>

— Reply to this email directly, view it on GitHub

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922197839, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AAALYWEQ3HN37LFVQIZISRTYRP34RAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRSGE4TOOBTHE . You are receiving this because you were assigned.Message ID: @.***>

-- Reply to this email directly or view it on GitHub: https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922203459 You are receiving this because you authored the thread.

Message ID: @.***>

cagnulein commented 9 months ago

Hah Ok that's explain why I can't see the companion crashing

I need the log from adb from a pc when this happens

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

Il giorno gio 1 feb 2024 alle 21:39 SOLLY9 @.***> ha scritto:

I connected my phone to the bike and downloaded the log from the wolf logs folder

⁣Get BlueMail for Android ​

On 1 Feb 2024, 20:37, at 20:37, Roberto Viola @.***> wrote:

Mmm the fact is that I don't see qz companion at all in the log. Did you collect with the adb logcat batch file?

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

Il giorno gio 1 feb 2024 alle 21:34 SOLLY9 @.***> ha scritto:

I think around 20 minutes into the ride. Time will be around 17.50PM

⁣Get BlueMail for Android ​

On 1 Feb 2024, 20:29, at 20:29, Roberto Viola @.***> wrote:

more or less do you know the timestamp of when the error happened? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 1 feb 2024 alle ore 19:30 SOLLY9 @.***> ha scritto:

I think this is the file you are after. I did this rifr today with the same problem after approximately 20 minutes.

2024-02-01_logs.zip

<

https://github.com/cagnulein/qdomyos-zwift/files/14129395/2024-02-01_logs.zip>

Hope this helps👍

— Reply to this email directly, view it on GitHub

<

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1921961566>,

or unsubscribe

<

https://github.com/notifications/unsubscribe-auth/AAALYWA5HVASKFUH7242Y5LYRPNNDAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRHE3DCNJWGY>

. You are receiving this because you were assigned.Message ID: @.***>

-- Reply to this email directly or view it on GitHub:

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922183512

You are receiving this because you authored the thread.

Message ID: @.***>

— Reply to this email directly, view it on GitHub

< https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922197839>,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AAALYWEQ3HN37LFVQIZISRTYRP34RAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRSGE4TOOBTHE>

. You are receiving this because you were assigned.Message ID: @.***>

-- Reply to this email directly or view it on GitHub:

https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1922203459 You are receiving this because you authored the thread.

Message ID: @.***>

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

SOLLY9 commented 9 months ago

I have no idea how to get a log as you describe. I guess I will give up as it doesn't work. My ride today went faulty after about 8 minutes if this is of any help to you.

cagnulein commented 9 months ago

@SOLLY9 i described here how to collect the log https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1906047954

what's not clear?

i'm sorry but without the right log i can't help you

i truly want to fix your issue, but only you can help me

SOLLY9 commented 9 months ago

Ok. Nothing is clear. I tried the link then and now and have no idea what to do when the link you provided is opened. It's a foreign language to me Screenshot_20240207-095750_Samsung Internet

cagnulein commented 9 months ago

ok, i'm trying to guide you, so first of all, are you able to connect via adb to your bike from your pc?

SOLLY9 commented 9 months ago

I don't know how to do that. I had to manually put companion on the bike when I first set it up

cagnulein commented 9 months ago

ok so let's start from the very basic :) do you have a pc? if so download this one https://github.com/cagnulein/QZCompanionNordictrackTreadmill/archive/refs/tags/3.3.37.zip

then unzip it from the desktop

navigate into the installfolder inside the extracted folder and run the adb-debug file

are you able to do so?

SOLLY9 commented 9 months ago

I ran adb and it asked me to select a program to use the file?

I ran adb.exe and it came up with a window briefly and no idea what it did. I ran adb-debug.bat and it pinged ok but could not connect to the bike. It said it actively refused it (10061)

cagnulein commented 9 months ago

ok actively refused meand the usb debug setting in the developer settings in the bike it's probably turned off. so if you enalbe it and try again it should collect the debug log. If it works, you have to do this after the workout when you have the issue Let me know

SOLLY9 commented 9 months ago

USB debug is set to on in the bike already

cagnulein commented 9 months ago

try to toggle it. and restart the bike. sometimes the ifit app blocks it

SOLLY9 commented 9 months ago

_I toggled it a few times but it does not work.

It does say under USB debugging toggle Debug mode when usb is connected

I dont have a physical connectionto my pc from the bike_

cagnulein commented 9 months ago

it could be that ifit is blocking it. in order to fix this we need probably to do a factory reset and to inhibt the ifit update removing the gateway setting from the wifi setting of the bike tablet.

are you able to do so?

SOLLY9 commented 9 months ago

I can reset the bike by pin hole reset. It usually then starts up and wants to update the software. I dont know what to do after the bike is reset.

cagnulein commented 9 months ago

you don;t have to update the software (disabling the wifi or anyway set the ip manually without adding the gateway). are you able to do so? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mer 7 feb 2024 alle ore 12:20 SOLLY9 @.***> ha scritto:

I can reset the bike by pin hole reset. It usually then starts up and wants to update the software. I dont know what to do after the bike is reset.

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

SOLLY9 commented 9 months ago

I have no idea how to do that.

cagnulein commented 9 months ago

which part? show me the screen of the tablet when you are pairing the wifi and i will help you

SOLLY9 commented 9 months ago

I have tried using it again and it worked for 30+ minutes until I ended the ride. The only difference is that I did not use a tablet to stream you tube to watch whilst on the ride. I'm not sure why but the tablet must have been interfering with the bike/phone/Wifi/blutooth connection. Not sure which. I got the tablet to have something to watch whilst riding. Is there's way to use it without disrupting the QZ?

cagnulein commented 9 months ago

where are you using youtube? on the bike tablet or qz? or on another device? if it's on the bike tablet or where qz runs, yes it can interfere for sure!

SOLLY9 commented 9 months ago

I'm using a tablet separate to qz which is on my phone and the bike.

cagnulein commented 9 months ago

maybe so it's the wifi the issue? using the tablet could disturb the wifi? I don't know actually. Let's do some tests in this scenario to understand it better

SOLLY9 commented 9 months ago

The bike only works on 2.4 ghz. Maybe if I set the tablet to 5ghz that would help?

cagnulein commented 9 months ago

i don't know where the problem is so everything could be useful to try

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

cagnulein commented 8 months ago

@SOLLY9 any news?

SOLLY9 commented 8 months ago

I still get the problem when the tablet I use has bluetooth and wifi turned off. Yesterday it happened after about 3 minutes. Sometimes it just works though.

cagnulein commented 8 months ago

when does the issue what did you to fix it? just restart the bike?

SOLLY9 commented 8 months ago

The problem is random. I turn my bike off after every ride. My bike is next to my router so signal should not be an issue. If I use my tablet with my treadmill I don't get a problem.

cagnulein commented 8 months ago

tablet with qz?

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

Il giorno sab 2 mar 2024 alle 11:01 SOLLY9 @.***> ha scritto:

The problem is random. I turn my bike off after every ride. My bike is next to my router so signal should not be an issue. If I use my tablet with my treadmill I don't get a problem.

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

SOLLY9 commented 8 months ago

Qz is on my phone. I use the tablet for entertainment whilst exercising.

cagnulein commented 8 months ago

i mean i don't understand this phrase

If I use my tablet with my treadmill I don't get a problem.

what do you mean? i mean in this case the treadmill is not communication with anything, right?

SOLLY9 commented 8 months ago

It means I can use the tablet for entertainment whilst running on my treadmill and QZ on my phone and treadmill work okay. Maybe it is not my tablet causing an issue when riding my bike? I have no idea what the issue is. The bike used to work okay now it sometimes works with QZ and sometimes stops recording data during the ride

cagnulein commented 8 months ago

when this happens, the metrics on the bike are still ok?

SOLLY9 commented 8 months ago

If the fault occurs then the rest of the ride sticks at the metric when the fault occurs. I attach copies of metrics for my last ride which shows the metrics stuck after about 3 minutes Screenshot_20240304-094104_Strava Screenshot_20240304-094108_Strava Screenshot_20240304-094123_Strava

cagnulein commented 8 months ago

no i mean on the bike tablet. are they still showing the right data?

SOLLY9 commented 8 months ago

Yes. The bike tablet shows whatever I am doing okay. It's just become disconnected to QZ for some reason I guess

cagnulein commented 8 months ago

did you try to just rerun the companion when this happen? without restarting anything else?

SOLLY9 commented 8 months ago

No. I dont tend to notice it has happened straight away. Once I see it has happened I abandon the ride.

Should I keep the ride going and force stop companion and then restart it again to see what happens?

cagnulein commented 8 months ago

yes exactly Let me know!

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

Il giorno lun 4 mar 2024 alle ore 12:12 SOLLY9 @.***> ha scritto:

No. I dont tend to notice it has happened straight away. Once I see it has happened I abandon the ride.

Should I keep the ride going and force stop companion and then restart it again to see what happens?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2036#issuecomment-1976341096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGCCISLVRFDS37WCPTYWRJIPAVCNFSM6AAAAABCG6VYRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGM2DCMBZGY . You are receiving this because you modified the open/close state.Message ID: @.***>

SOLLY9 commented 8 months ago

I did a ride today. QZ stopped recording metrics after a few minutes I kept the ride going. I closed QZ companion and reopened it and the metrics started recording again.

It stopped 5 times over a hour of riding and I repeated the process and each time the metrics started recording again. I don't know why QZ companion is dropping out but it is doing it frequently.

cagnulein commented 8 months ago

ok that's a step further: so it's the companion that it's crashing! So in order to understand this I need an adb logcat after this event. are you able to collect it from your pc with adb?