cagnulein / qdomyos-zwift

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

[BUG]After Update to 2.16.51 Heart Rate data from Garmin watch (Forerunner 965) no longer read //Questions on how to configure Garmin QZ app #2281

Closed jra650 closed 1 month ago

jra650 commented 1 month ago

debug-Sun_Apr_7_13_21_19_2024.log

Describe the bug I have several profiles that read heart rate from my Garmin Forerunner 965 (the watch broadcasts HR data over BLE). After a recent QZ update the HR data is no longer registered in the App. The QZ homescreen shows 'Forerunner 965' found but no data appears. This same profile when reconfigured to use a Wahoo Tickr BLE heart rate belt works fine.

Note this same Profile continues to work well (with data from the Garmin watch) on the older QZ 2.16.24 (running on an older phone with Android 13). Because I can get watch data on the older phone, this is a LOW priority bug for me but wanted to bring it to your attention.

Also, when I activate the new QZ app on the Garmin watch, (and turn that feature on in the QZ activity profile), I see my Heart Rate in the QZ activity on the watch but QZ on my phone doesnt find the watch without having the watch broadcast HR from another area of the watch menu. Not sure I understand what the QZ app on the watch is intended to do??

To Reproduce Steps to reproduce the behavior: Try to connect a Garmin watch that broadcasts HR, create profile that uses HR data from watch.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information): Samsung Note 20 Android 13

Debug log attached (NOTE This log was created before turning on the 'Enable Companion App' was turned on in QZ settings.)

cagnulein commented 1 month ago

Thanks I will check it ASAP

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

Il giorno dom 7 apr 2024 alle 20:18 jra650 @.***> ha scritto:

Assigned #2281 https://github.com/cagnulein/qdomyos-zwift/issues/2281 to @cagnulein https://github.com/cagnulein.

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

cagnulein commented 1 month ago

Hi @jra650 in this log i see that you set the watch for cadence and heart rate both. is it correct? that's the issue why you don't see the HR. Let me know

jra650 commented 1 month ago

Thats the way it was set up on the profile on ver 2.16.24 with no issues. Disabling the Forerunner in cadence did not make a difference with HR in 2.16.51. In fact with that disabled I no longer get to the data screen... just the home screen where it says Forerunner 965 Found. (The Profile was set to calculate power from HR).

Also when I created a new simple profile with the Forerunner as just a Heart Belt and a Zwift Cadence sensor for Cadence, I could not get the Forerunner HR to show up in the data.

cagnulein commented 1 month ago

Thats the way it was set up on the profile on ver 2.16.24 with no issues.

but which device are you using to populate the metrics? the watch isn't providing any metric in the log. which fitness device do you have?

Disabling the Forerunner in cadence did not make a difference with HR in 2.16.51. In fact with that disabled I no longer get to the data screen...

yes because you haven't any fitness devices around you, so that's why my Question 1.

jra650 commented 1 month ago

Heres a log from the 2.16.24 profile. The Forerunner provides all the data using HR as power.

debug-Mon_Apr_8_10_52_17_2024.log

Heres another log maybe the 1st one was not the correct log:

debug-Mon_Apr_8_10_52_37_2024.log

cagnulein commented 1 month ago

got the issue, it was a setup error also on the 2.16.24. Qz was using a bike power profile device for your watch. So in order to clean the situation, trust me, follow this:

Let me know

jra650 commented 1 month ago

I get Forerunner Found but no HR or Power on the data screen... just 0s

debug-Mon_Apr_8_11_12_18_2024.log

cagnulein commented 1 month ago

are you sure this is the right log? in this one i see

"cadence_sensor_as_bike" QVariant(QString, "true") "cadence_sensor_name" QVariant(QString, "TICKR 6AD8")

jra650 commented 1 month ago

Not sure heres another one from 2.1.24

debug-Mon_Apr_8_11_28_03_2024.log

In this version, Forerunner as cadence, and cadence as bike seems to be required?? I do not get HR or Power without it.

cagnulein commented 1 month ago

please, as i said, do this

jra650 commented 1 month ago

Those settings get me HR but no power. (Debug from from 2.1.24 again. )

debug-Mon_Apr_8_11_35_18_2024.log

And with these settings on 2.16.51 I get no HR no power.

cagnulein commented 1 month ago

i'm still cadence sensor and cadence sensor as a bike in this log. i guess you are not getting the right logs?

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

Il giorno lun 8 apr 2024 alle 17:46 jra650 @.***> ha scritto:

Those settings get me HR but no power. (Debug from from 2.1.24 again. )

debug-Mon_Apr_8_11_35_18_2024.log https://github.com/cagnulein/qdomyos-zwift/files/14907875/debug-Mon_Apr_8_11_35_18_2024.log

And with these settings on 2.16.51 I get no HR no power.

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

jra650 commented 1 month ago

OK Lets try something else. I'm attaching two Debugs from the Note 20 running 2.16.51 from the Wahoo Tickr HR profile. We know that the Tickr doesnt have an issue connecting to 2.16.51.

The 1st Debug (the earlier one) includes the Tickr as Cadence and Cadence as Bike... I see HR and Power. The 2nd Debug file removes these two settings and has Tickr as Power, and Power as Treadmill... I see HR but no Power on the data screen. (Note I am trying to use this as a Bike profile - so thats why the 2.16.24 profile was set that way)

1st debug-Mon_Apr_8_15_57_38_2024.log

2nd debug-Mon_Apr_8_16_00_15_2024.log

To me, the issue isnt the settings of the profile - the settings used in the Tickr profile (as shown in the 1st Debug file attached) does what I want. Its just that I can do this with the Tickr but not the Garmin (Forerunner). On 2.16.24 the Garmin worked with these settings. I cant get the Garmin to work at all with 2.16.51

cagnulein commented 1 month ago

the tickr doesn't have the power profile, that's why it's not working

please do what i asked. forerunner only as a power sensor and power sensor as a treadmill and show me a correct log

the previous version worked for a "mistake" actually, so it was working randomly, that's not the right way.

please follow me

now i'm going to bed, i will be back tomorrow

jra650 commented 1 month ago

OK I have created a new very simple profile with just the Forerunner as power. The good news is that the Forerunner connects as HR, but I dont see power. I'm probably missing some settings since this is a very simple profile but it has what you requested.

debug-Mon_Apr_8_16_34_01_2024.log

cagnulein commented 1 month ago

you enabled power sensor as a bike, instead you have to enable the power sensor as a treadmill. that's the issue.

jra650 commented 1 month ago

I see that in the Debug but it's not what the app screen shows (see attached). I had changed the settings and closed and restarted QZ before generating the log. Just opening the app now to take the screenshot still does not show power.

On Tue, Apr 9, 2024, 2:24 AM Roberto Viola @.***> wrote:

you enabled power sensor as a bike, instead you have to enable the power sensor as a treadmill. that's the issue.

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

cagnulein commented 1 month ago

i don't see any image: you have to upload to github directly.

are you sure that the debug log is referring to the right session? the timestamp of the filename is when the session started so it's easy to identify it

jra650 commented 1 month ago

Here are the screenshots Screenshot_20240409_095726 Screenshot_20240409_093918

cagnulein commented 1 month ago

are you able to recreate a debug log in this scenario? i need to see the issue in this context to understand it thanks

jra650 commented 1 month ago

OK Here it is: debug-Tue_Apr_9_09_57_13_2024.log

cagnulein commented 1 month ago

thanks i will compare to see the differences tomorrow

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

Il giorno mar 9 apr 2024 alle 19:31 jra650 @.***> ha scritto:

OK Here it is: debug-Tue_Apr_9_09_57_13_2024.log https://github.com/cagnulein/qdomyos-zwift/files/14922052/debug-Tue_Apr_9_09_57_13_2024.log

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

cagnulein commented 1 month ago

@jra650 i finally got your issue: you were not using power from the watch, infact the watch it doesn't send it at all. forcing to use the watch as a bike cadence sensor, you were faking a bike and qz was calculating the wattage from your hr. So the wattage it was completely no sense I guess :)

your watch, even in this log https://github.com/cagnulein/qdomyos-zwift/issues/2281#issuecomment-2042981566 is sending only HR.

Ok so tell me which is your purpose of this: are you trying to use your watch as a treadmill? so providing cadence and HR while you are running indoor? which treadmill do you have?

jra650 commented 1 month ago

No the purpose was to get power from HR (as a bike) which is what the profile on the older QZ version does well. Getting cadence from HR would also be helpful... But it's mainly power that's needed. I know it's possible because it worked before. Not sure what changed in 2.16.51. Maybe it's just a setting I need to change? Thanks

On Wed, Apr 10, 2024, 3:14 AM Roberto Viola @.***> wrote:

@jra650 https://github.com/jra650 i finally got your issue: you were not using power from the watch, infact the watch it doesn't send it at all. forcing to use the watch as a bike cadence sensor, you were faking a bike and qz was calculating the wattage from your hr. So the wattage it was completely no sense I guess :)

your watch, even in this log #2281 (comment) https://github.com/cagnulein/qdomyos-zwift/issues/2281#issuecomment-2042981566 is sending only HR.

Ok so tell me which is your purpose of this: are you trying to use your watch as a treadmill? so providing cadence and HR while you are running indoor? which treadmill do you have?

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

cagnulein commented 1 month ago

ok so now i got it. disable the power sensor setting and also power sensor as a treadmill. put it back the forerunner as a cadence sensor and also enable the cadence sensor as a bike. this should work but since the forerunner is not providing any cadence qz will leave the power to 0 . you need a real cadence sensor for this.

your computrainer doesn't work anymore?

jra650 commented 1 month ago

Yes I still use the computrainer. The HR profile is actually for treadmill running but because Rouvy took away their running activity the HR profile allows me to see video scenery as I run.

The initial try of the new settings you suggested didn't work but will have to wait a few hours to send a Debug because of work meetings. Will get back to you.

jra650 commented 1 month ago

Dont I need to also set the Foreunner as a HR belt (and then use the related power from HR settings?) The issue still seems to be with the Garmin. The Ticker profile works (see Ticker debug attached). But taking that profile and substituting the Garmin does not work. And a simple 'Power from Forerunner' profile (Debug also attached) does not show HR or power. Forerunner debug-Wed_Apr_10_12_29_53_2024.log TICKER debug-Wed_Apr_10_12_15_33_2024.log

What would have changed in 2.16.51 that would change how the Garmin works??

cagnulein commented 1 month ago

thanks i will compare the code. there would be an easy explanation :)

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

Il giorno mer 10 apr 2024 alle 18:35 jra650 @.***> ha scritto:

Dont I need to also set the Foreunner as a HR belt (and then use the related power from HR settings?) The issue still seems to be with the Garmin. The Ticker profile works (see Ticker debug attached). But taking that profile and substituting the Garmin does not work. And a simple 'Power from Forerunner' profile (Debug also attached) does not show HR or power. Forerunner debug-Wed_Apr_10_12_29_53_2024.log https://github.com/cagnulein/qdomyos-zwift/files/14934992/Forerunner.debug-Wed_Apr_10_12_29_53_2024.log TICKER debug-Wed_Apr_10_12_15_33_2024.log https://github.com/cagnulein/qdomyos-zwift/files/14934994/TICKER.debug-Wed_Apr_10_12_15_33_2024.log

What would have changed in 2.16.51 that would change how the Garmin works??

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

cagnulein commented 1 month ago

in the forerunner profile ad, also the watch as heart rate device. qz is not seeing the heart rate, that's the issue

jra650 commented 1 month ago

2.16.52 does see the garmin in some cases and 2.16.24 does in all cases. This is a debug from 2.16.52 that does see the Forerunner. What parameters should I add to get Power from HR?? debug-Wed_Apr_10_13_13_34_2024.log

jra650 commented 1 month ago

One thing that's weird is that when on the bike the 'Power from Forerunner' profile does light up with HR, power, cadence, and speed. This is mainly because broadcast from the watch is on by default even though in this case I'm primarily recording the ride on the watch. So the watch is reading speed, cadence, and power from the bike. But the only configuration in the profile is hr and cadence from the Forerunner and cadence as a bike. And the power shown in QZ is super high and not from the bike data going through the watch... So not sure where that is coming from.

And when I am off the bike and connected another bike cadence sensor to the watch I see Hr and candence in the QZ profile but no power... So remain confused. Is a speed sensor the answer??

cagnulein commented 1 month ago

@jra650 there are 2 more simple solutions for this:

I will also check why it's not working in your previous way, but as I said, you were using QZ in a way that it wasn't designed for :)

jra650 commented 1 month ago

I am trying to get a fake bike with power from just heart rate (my treadmill does not have Bluetooth). I made some setting changes to the Power from Forerunner profile and it's weird I see power for a moment and then it goes to 0 and stays at 0??

debug-Thu_Apr_11_10_59_00_2024.log

cagnulein commented 1 month ago

with the fake bike profile you You don't need to pair the watch as a power sensor just set your desire power into the target power tile. Easier and simpler

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

Il giorno gio 11 apr 2024 alle 17:09 jra650 @.***> ha scritto:

I am trying to get a fake bike with power from just heart rate (my treadmill does not have Bluetooth). I made some setting changes to the Power from Forerunner profile and it's weird I see power for a moment and then it goes to 0 and stays at 0??

debug-Thu_Apr_11_10_59_00_2024.log https://github.com/cagnulein/qdomyos-zwift/files/14947980/debug-Thu_Apr_11_10_59_00_2024.log

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

jra650 commented 1 month ago

The problem with that at least with Rouvy is that Rouvy flags rides with unfluctating power or HR as invalid. The original profile that worked on 2.16.24 had power that fluctuated with HR. I can just keep using the old version... But I don't see why that profile (given that it work in the current QZ with a Tickr) won't work with the Garmin?

cagnulein commented 1 month ago

hah ok, makes sense. i will check the reason so. i will let you know tomorrow

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

Il giorno gio 11 apr 2024 alle 19:02 jra650 @.***> ha scritto:

The problem with that at least with Rouvy is that Rouvy flags rides with unfluctating power or HR as invalid. The original profile that worked on 2.16.24 had power that fluctuated with HR. I can just keep using the old version... But I don't see why that profile (given that it work in the current QZ with a Tickr) won't work with the Garmin?

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

jra650 commented 1 month ago

Also the target cadence tile on my phone has no + or - button

cagnulein commented 1 month ago

Target power, target cadence hasn't it

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

Il giorno gio 11 apr 2024 alle 20:47 jra650 @.***> ha scritto:

Also the target cadence tile on my phone has no + or - button

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

cagnulein commented 1 month ago

2.16.52 does see the garmin in some cases and 2.16.24 does in all cases. This is a debug from 2.16.52 that does see the Forerunner. What parameters should I add to get Power from HR?? debug-Wed_Apr_10_13_13_34_2024.log

i checked this log and I still see an error in the settings: here you have the forerunner as a cadence sensor and the tickr as a power sensor

as i said:

Let me know

jra650 commented 1 month ago

I believe I uploaded a debug with the correct configuration before but here is another: debug-Fri_Apr_12_10_41_37_2024.log

What's weird is that I see Ave Power but no active power # Fri Apr 12 10_42_12 2024

cagnulein commented 1 month ago

in this case you are not seeing the wattage on the tile because you are in pause mode. Press the start button on the top

jra650 commented 1 month ago

I believe that was because I used the QZ generated image vs my screen shot. There is no difference when start is pressed and the activity is running. Also when running the Elapsed time remains at 0 because there is no wattage or speed generated.

cagnulein commented 1 month ago

ok i will check it.

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

Il giorno ven 12 apr 2024 alle ore 17:31 jra650 @.***> ha scritto:

I believe that was because I used the QZ generated image vs my screen shot. There is no difference when start is pressed and the activity is running. Also when running the Elapsed time remains at 0 because there is no wattage or speed generated.

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

cagnulein commented 1 month ago

i was trying to understand your issue, and i guess in the current scenario you have to set the speed based on power setting in the bike setting. change this and the watt value will appear. i just tested too on my side! Let me know!

jra650 commented 1 month ago

Speed from power was Off in the Forerunner profile (see screenshot). Am I in the correct part of the setting? Screenshot_20240415_105455

cagnulein commented 1 month ago

Heres a log from the 2.16.24 profile. The Forerunner provides all the data using HR as power.

debug-Mon_Apr_8_10_52_17_2024.log

Heres another log maybe the 1st one was not the correct log:

debug-Mon_Apr_8_10_52_37_2024.log

it was enabled here. that's why I'm saying so

jra650 commented 1 month ago

A number of settings have been changed over the past week but the last log I sent debug-Wed_Apr_10_13_13_34_2024.log is the current settings

This debug shows "bike_power_sensor" QVariant(QString, "false")

cagnulein commented 1 month ago

i'm talking about "speed_power_based"

jra650 commented 1 month ago

I see "speed_power_based" QVariant(QString, "false") in the debug, but cant find that in the app settings menu to confirm its off. What Settings Menu heading is that under? Is it the setting under Bike Options??

cagnulein commented 1 month ago

you have to enable this

image