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

Power data from bike not transmitted anymore to Garmin Watch (iConsole005+ & Forerunner745 & Samsung Galaxy A40) #552

Closed FerdinLi closed 11 months ago

FerdinLi commented 2 years ago

Describe the bug From version 2.8.142 my bike is not recognised as a power sensor in my garmin Forerunner 745. In the previous version PWR sensor and SPD sensor were available in my garmin watch.

I tried to play around with the setting, however no succes.

Current settings:

Ant+ options -> Ant+Cadans = on Toorx/Iconsol options -> Toorx/iConsole Bike = on Experimental features -> Simulate battery service, virtual device and bike power sensor is on. Tried several on/off configurations here but without success. In one occasion garmin showed PWR Galaxy A40 but couldn't connect.

I can change resistance with QZ app on my Samsun Galaxy A40 and see all the metrics from the iConsole005+ bike, however no sensor detection anymore with my Garmin Watch.

To Reproduce See above

Expected behavior See above

Screenshots Not applicable

Desktop (please complete the following information): Not applicable

Smartphone (please complete the following information):

Append a debug log OK

Additional context See above

cagnulein commented 2 years ago

@FerdinLi i don't see the debug log. Please attach one, as described in the link that i provided. Thanks

FerdinLi commented 2 years ago

debug-Tue_Jan_4_11_04_28_2022.log

FerdinLi commented 2 years ago

Hi, attached the log file.

cagnulein commented 2 years ago

With the actual settings, @FerdinLi , you're sending FTMS information to your watch by bluetooth, and power information by ANT+. I guess you want to enable the "Bike Power Sensor" in the experimental settings and restart QZ in order to send Power Sensor over bluetooth, too?

I didn't modifiy anything in the ant implementation or the bluetooth one. Let me know if you will fix it with this modification. Are you using QZ standalone with your watch? Without Zwift isn't it?

cagnulein commented 2 years ago

another thing @FerdinLi in the log you paused the workout instead of start it, so the wattage will be 0 to the watch, maybe this is your issue?

FerdinLi commented 2 years ago

The watch doesn't see PWR sensor anymore in the watch menu sensors and acc. If watt would be zero, then this would have shown on watch. Watch Garmin doesn't recognise, can pick up power signal from app, Will upload new log file. Thanks for your swift support!

FerdinLi commented 2 years ago

In the add sensor menu also only ANT sensors are listed, meaning that watch doesn't receive BT signal from QZ app or phone.

cagnulein commented 2 years ago

did you try to download one app on the play store that simulate power sensor from your phone just to check that ant+ is working on your phone?

FerdinLi commented 2 years ago

New log file. Searched sensors several times with my watch during this bike session, no PWR sensor was found. (Except for my HR belt BT and Ant+)

debug-Tue_Jan_4_11_43_54_2022.log

FerdinLi commented 2 years ago

See screenshot attached. I think this is the one you ar referring to.

Screenshot_20220104-115946_ANT Tester

FerdinLi commented 2 years ago

ANT Mogelijk = ANT possible / App = ANT tester

cagnulein commented 2 years ago

no @FerdinLi i mean there are several free app on the store that can simulate a fake ant sensor in order to check that ant is working with your watch (you have to see fake values on the watch too). This will test the full chain

FerdinLi commented 2 years ago

Hi ANT is working on my watch because I can connect a ANT HR sensor to it and receive values.

FerdinLi commented 2 years ago

Can I roll back to previous version of the QZ app? This worked just fine.

cagnulein commented 2 years ago

yes but you didn't test the phone to watch chain. Please test it, we have to be sure about the full chain. I didn't touch anything in the software, so FIRST we have to be sure about HW. Thanks

cagnulein commented 2 years ago

Can I roll back to previous version of the QZ app? This worked just fine.

if you want i can send you it via private beta, let me check just to double check it

FerdinLi commented 2 years ago

Thanks

cagnulein commented 2 years ago

click here to become a private beta https://play.google.com/apps/testing/org.cagnulen.qdomyoszwift You will see the version 2.6 in the store (i never tried to downgrade, so i don't know if it will work). Otherwise we have to understand which is the issue in the current one

FerdinLi commented 2 years ago

Hi, I used the link but it installed version 2.9.27. With this version the same problem; no PWR and SPD sensor recognised by my Garmin Watch. Something must have changed in comparison to version 2.6 where everything worked just fine. I am not a developer, nor do I have technical skills. Could you do a test at your side with a Garmin watch to see if you receive PWR sensor on your watch? Very frustrating that it isn't working anymore. The only thing that has changed is update from 2.6 to new version. All other software and hardware remained the same. Hoping for a solution. Kind regards.

cagnulein commented 2 years ago

@FerdinLi it's strange because i added in a private group with version 2.6, let me check again

cagnulein commented 2 years ago

any chance that you had already joined the beta before clicking on the above link? the list on google is right. I also checked the APK and the ANT thing is there. I don't have any ANT device anymore. Maybe you need to forgot the previous power sensor from the watch? Also a question: why you're using this solution? You can't just upload the fit file in the garmin connect in order to have stats on garmin?

FerdinLi commented 2 years ago

I don't know I have joined the beta first. I just clicked the link and went to PlayStore. Did I do something wrong? Which list on google you are referring to?

cagnulein commented 2 years ago

@FerdinLi the private list of the beta that i manage on the play store...check also my previous comment about the fit file

FerdinLi commented 2 years ago

The reason why I link my watch because Garmin Watch uses power to calculate some FirstBeat metrics and these are only calculated on the watch and with power input. That's the reason.

FerdinLi commented 2 years ago

Firstbeat metrics that are being calculated on watch with PWR input are VO2max bike and workout label.

cagnulein commented 2 years ago

let's do this, do another test with the current version and at the end collect a bug report from the settings of the phone. In this way we should have more debug log information about ANT+ and your issue

FerdinLi commented 2 years ago

Which list you are referring to on Google. I do not see the list with previous versions. How can I acces this?

cagnulein commented 2 years ago

Which list you are referring to on Google. I do not see the list with previous versions. How can I acces this?

a list of tester. I added to the 2.6 but google is forcing you the new one...but let's try to understand in the current on

BrettPrintz commented 2 years ago

Hi there, any resolution @FerdinLi ? I am having same issue. Tried to attach debug log here.

BrettPrintz commented 2 years ago

bugreport-taimen-RP1A.201005.004.A1-2022-01-13-12-32-31.zip

FerdinLi commented 2 years ago

Hi Brett, no solution yet. Thanks for sharing the debug log. Hope this will be solved soon. Cheers, FerdinLi

cagnulein commented 2 years ago

@BrettPrintz checking your log this seems the issue

01-13 12:31:45.240 10199 11306 11306 E ActivityThread: Service org.cagnulen.qdomyoszwift.ChannelService has leaked ServiceConnection org.cagnulen.qdomyoszwift.ChannelService$1@7a580d6 that was originally bound here
01-13 12:31:45.240 10199 11306 11306 E ActivityThread: android.app.ServiceConnectionLeaked: Service org.cagnulen.qdomyoszwift.ChannelService has leaked ServiceConnection org.cagnulen.qdomyoszwift.ChannelService$1@7a580d6 that was originally bound here
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:1811)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.LoadedApk.getServiceDispatcherCommon(LoadedApk.java:1683)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1662)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1819)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.ContextImpl.bindService(ContextImpl.java:1749)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.content.ContextWrapper.bindService(ContextWrapper.java:756)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at com.dsi.ant.AntService.bindService(AntService.java:289)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at org.cagnulen.qdomyoszwift.ChannelService.doBindAntRadioService(ChannelService.java:242)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at org.cagnulen.qdomyoszwift.ChannelService.onCreate(ChannelService.java:273)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.ActivityThread.handleCreateService(ActivityThread.java:4192)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.ActivityThread.access$1500(ActivityThread.java:237)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.os.Handler.dispatchMessage(Handler.java:106)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.os.Looper.loop(Looper.java:223)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at android.app.ActivityThread.main(ActivityThread.java:7656)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at java.lang.reflect.Method.invoke(Native Method)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-13 12:31:45.240 10199 11306 11306 E ActivityThread:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

I'm trying to understand what it means

cagnulein commented 2 years ago

@BrettPrintz also are you sure that during this log you have ant heart or ant cadence on in the QZ settings? i can't see the entry point to the java library..it seems that i'm not starting the ANT engine

FerdinLi commented 2 years ago

Hi, in my settings the ant+ cadance is enabled, not the heart ant+. However in version 2.6 this setting worked just fine.

FerdinLi commented 2 years ago

@BrettPrintz , thanks again for the vavluable log file. Really appreciate it. Kr, FerdinLi

cagnulein commented 2 years ago

@FerdinLi yeah i know but i need to be sure about the @BrettPrintz log because i have to study his case since i have the bug report from him :)

FerdinLi commented 2 years ago

👍

BrettPrintz commented 2 years ago

Hi All,

We must be opposite time zones (Canada here). Yes ANT+ is on for both heart and cadence.... as well never had a problem before on the earlier version either.

Thanks

On Fri, 14 Jan 2022 at 02:25, Roberto Viola @.***> wrote:

@BrettPrintz https://github.com/BrettPrintz also are you sure that during this log you have ant heart or ant cadence on in the QZ settings? i can't see the entry point to the java library..it seems that i'm not starting the ANT engine

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/552#issuecomment-1012948720, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXJMTQAXM2CPO7MEKDZH7WTUV7TZZANCNFSM5LHC6O5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

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

-- Brett Printz

BrettPrintz commented 2 years ago

@BrettPrintz also are you sure that during this log you have ant heart or ant cadence on in the QZ settings? i can't see the entry point to the java library..it seems that i'm not starting the ANT engine

Hi

Yes, sorry I responded by email... ANT+ is enabled for cadence and Heart. I didnt have issues in earlier version either.

Thank you!

BrettPrintz commented 2 years ago

Hi, any update?

I just updated my Garmin to new software of 20.30 and was hopeful maybe it was a Garmin bug, but to no luck.

cagnulein commented 2 years ago

@BrettPrintz i will let you know. I'm overwhelmed by requests (as you can see here on github). You're on my list. I just need time :)

BrettPrintz commented 2 years ago

Thank you! sorry :)

On Mon, 17 Jan 2022 at 11:33, Roberto Viola @.***> wrote:

@BrettPrintz https://github.com/BrettPrintz i will let you know. I'm overwhelmed by requests (as you can see here on github). You're on my list. I just need time :)

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/552#issuecomment-1014803899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXJMTQABK5DTJMQB7HP36ILUWROHFANCNFSM5LHC6O5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

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

-- Brett Printz

cagnulein commented 2 years ago

@BrettPrintz i tried today with my Xiaomi Mi3 and the ANT+ works as expected. So i don't really know what could be the issue. But i would like to do another experiment on your end if it's possible.

Are you able to connect your smartphone by USB to your pc and collect USB log with this https://www.hexnode.com/mobile-device-management/help/obtain-android-device-logs-using-windows-and-mac/

Let me know

BrettPrintz commented 2 years ago

@cagnulein You connected via ANT+ to your Garmin? or other smartwatch?

ill follow the link and see if I can do it.

cagnulein commented 2 years ago

@BrettPrintz As I told you before I don't have ant device To test the communication between my phone Unfortunately. So I just saw in the log that the library outputs the data correctly over ant As it did in the past

So my only hope is that probably on your device something differ from mine

BrettPrintz commented 2 years ago

Ok strange, im not sure what changed.

My samsung s8 has on board ANT+, and I have an ANT + dongle for my pixel and ipad and both worked previously up until december, hmm

BrettPrintz commented 2 years ago

Hi @cagnulein @FerdinLi I have found some success. I went into QZ, and disabled both ANT+ cadence and ANT+ HR. I then restarted the app. I then went into setting and enabled just ANT+ cadence. I then went to my GARMIN (fenix 6 pro) and searched for sensor and it found Power - QZ and Speed QZ right away. Power works great but speed is still transmitted oddly to Garmin.

I then tried this same procedure on my Pixel 2XL (via ANT+dongle) and it did NOT work. However, I will take the Samsung s8 for my rides, so im still happy!

Not sure the issue, if just needed a reset or what.

cagnulein commented 2 years ago

Speed is always reports bad metrics on ant. It's here from day one as an issue.

Glad that you see something! Let's see if it's robust now :)

Il giorno mer 19 gen 2022 alle 20:00 BrettPrintz @.***> ha scritto:

Hi @cagnulein https://github.com/cagnulein @FerdinLi https://github.com/FerdinLi I have found some success. I went into QZ, and disabled both ANT+ cadence and ANT+ HR. I then restarted the app. I then went into setting and enabled just ANT+ cadence. I then went to my GARMIN (fenix 6 pro) and searched for sensor and it found Power - QZ and Speed QZ right away. Power works great but speed is still transmitted oddly to Garmin.

I then tried this same procedure on my Pixel 2XL (via ANT+dongle) and it did NOT work. However, I will take the Samsung s8 for my rides, so im still happy!

Not sure the issue, if just needed a reset or what.

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

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

FerdinLi commented 2 years ago

Hi, no luck for me ;-( Followed the steps as described by Brett, but still no sensor is found. I restart the app just by closing it via the Android app overview. Then tap the app to open it again. What am I doing wrong?

BrettPrintz commented 2 years ago

hi @FerdinLi I am not sure. I did the same thing.

What device are you using QZ on?