cagnulein / qdomyos-zwift

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

[BUG] 2.13.95 Does not display stats with Echelon EX3. #1555

Closed Puzzle50 closed 1 year ago

Puzzle50 commented 1 year ago

Describe the bug Hi, I am having issues (initially) with connecting ANT+. Seeing previous posts, I switch to Beta and upgraded to 2.13.95, running Android 13 on a Galaxy Tab A8. Garmin Ant+ dongle connected to tablet with ANT USB Service, ANT+ Plugin Manager Launcher, and ANT Radio Service installed. After upgrade, now the app will not connect to my Echelon EX3 (at all). The bike keeps beeping at me, but the QZ app shows that it has connected to the bike, but is not displaying any metrics anymore. Do you have any advice? I wanted to upgrade to connect my Garmin Venu 2 Plus HRM to QZ to display in Zwift. To summarize: 2.13.95 no longer displays any metrics on QZ. I cannot get HRM stats to display on QZ via ANT+. (This might be user error.) Thank you for your help!

To Reproduce Steps to reproduce the behavior:

  1. Start QZ on tablet.
  2. Start pedaling on bike.
  3. Bike connects to tablet.
  4. No stats appear.

Expected behavior Expect stats to appear like on previous non Beta version.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Append a debug log debug-Sun_Jul_9_14_38_43_2023.log

cagnulein commented 1 year ago

Hi @Puzzle50 the debug log seems corrupted, could you please submit it again?

Puzzle50 commented 1 year ago

debug-Sun_Jul_9_14_38_43_2023.log Please see attached.

cagnulein commented 1 year ago

@Puzzle50 did you already try to power cycle the bike? it seems in the log that it just refuses the connection from qz

Puzzle50 commented 1 year ago

I did. I have power cycled the bike, power cycled tablet, then factory reset tablet (installing beta), then factory reset tablet (installing public release 2.13.1). All with the same results. The only difference being that the bike does not beep at me, however the blue light still blinks like there is not a bluetooth connection. QZ finds the bike's bluetooth, but stats remain 0.

For the power cycle of the bike, I am unplugging it from the bike and the cord from the power brick for 30 seconds, then plugging back in. I have attached another log running 2.13.1.

debug-Sun_Jul_9_22_49_28_2023.log

cagnulein commented 1 year ago

so it's not about the beta. is the echelon app still working?

Il giorno lun 10 lug 2023 alle 05:56 Puzzle50 @.***> ha scritto:

I did. I have power cycled the bike, power cycled tablet, then factory reset tablet (installing beta), then factory reset tablet (installing public release 2.13.1). All with the same results. The only difference being that the bike does not beep at me, however the blue light still blinks like there is not a bluetooth connection. QZ finds the bike's bluetooth, but stats remain 0.

For the power cycle of the bike, I am unplugging it from the bike and the cord from the power brick for 30 seconds, then plugging back in. I have attached another log running 2.13.1.

debug-Sun_Jul_9_22_49_28_2023.log https://github.com/cagnulein/qdomyos-zwift/files/11997592/debug-Sun_Jul_9_22_49_28_2023.log

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

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

Puzzle50 commented 1 year ago

I am not able to connect via the tablet I was referring to. However, I can connect via my phone, both using the Echelon app. If I was to guess, QZ would work on my phone. It's like the bike has some information about my tablet's connection and is refusing connection? I tried to update the bike's FW, but it was not successful. Will try again later today. Any ideas on how to clear the connection history on the bike? Or any other thoughts?

cagnulein commented 1 year ago

DON'T UPGRADE THE BIKE FW! NEVER! This could break the compatibility with QZ! If the Echelon app works, I suggest to install also the QZ app on the phone just to double check that QZ works fine on the phone too. If it's so, let's focus on the tablet. First step: install the echelon app on the tablet Let me know

Puzzle50 commented 1 year ago

That is good to know. It looks like the upgrade did not take place, so FW has not been updated.

Using 2.13.1 on the phone works as expected. I did not try Beta and would like to not try Beta as I think when I switched, that is the event that caused the connection issue with the tablet for some reason. (I understand it might not be related to the Beta though.)

I have the Echelon app on the tablet and it also sees the Bike connection, but cannot connect when I attempt to connect the bike (similar to QZ behavior).

cagnulein commented 1 year ago

so it's something with the tablet bluetooth. unfortunately it could also be hardware. does it work with other bluetooth 4 peripherals?

Puzzle50 commented 1 year ago

Yes, it connects to my Pixel Buds Pro (Bluetooth 4.0+) with no problem. I don't think it is my tablet HW since the buds work. The bike to tablet connection was working fine until I tried the Beta version. It almost seems like it corrupted the Bluetooth connection info in the bike related to the tablet when the switch happened. This is a new tablet that I got to use with this bike, so I would prefer to use it for this purpose.

Puzzle50 commented 1 year ago

@cagnulein So I think I got it back, but here are some notes in case to help others in the future.

1) I factory reset, and accepted all Samsung permissions when initially configuring the device. It is possible that there were location sharing permissions that might affect bluetooth connections with Samsung devices. I don't feel like this was the issue though given that I declined all these permissions before, and my connection was working before. 2) Since Android 12, you cannot wipe the bluetooth data cache via app settings. (Doesn't seem to be a work around for this.) However, when you go to Apps and show system apps, you can access the Bluetooth Agent and Bluetooth MIDI service app. I wiped both cache and data for those apps. I feel like this what corrected the behavior I was seeing. It is really odd though because I would think the factory data reset would wipe those settings, but I think it might remain persistent even after factory data reset. Some other documentation I have come across seems to indicate so. (That flashing a new FW image can correct behavior when factory data reset would not.)

After doing this, I can connect via Echelon App, and can connect via QZ (2.13.1) Seems like others on the internet have issues pairing the Echelon App via Samsung tablet to the bike. I have not come across other useful solutions.

I am going to factory reset and decline permissions (because I don't want Samsung permissions) and see if it still works. I will also update to Beta and try. After going through this, I want to get back to my original request, which was to get HRM working from my watch to QZ!

cagnulein commented 1 year ago

what a mess! :D ok let me know!

Il giorno mar 11 lug 2023 alle 03:49 Puzzle50 @.***> ha scritto:

@cagnulein https://github.com/cagnulein So I think I got it back, but here are some notes in case to help others in the future.

  1. I factory reset, and accepted all Samsung permissions when initially configuring the device. It is possible that there were location sharing permissions that might affect bluetooth connections with Samsung devices. I don't feel like this was the issue though given that I declined all these permissions before, and my connection was working before.
  2. Since Android 12, you cannot wipe the bluetooth data cache via app settings. (Doesn't seem to be a work around for this.) However, when you go to Apps and show system apps, you can access the Bluetooth Agent and Bluetooth MIDI service app. I wiped both cache and data for those apps. I feel like this what corrected the behavior I was seeing. It is really odd though because I would think the factory data reset would wipe those settings, but I think it might remain persistent even after factory data reset. Some other documentation I have come across seems to indicate so. (That flashing a new FW image can correct behavior when factory data reset would not.)

After doing this, I can connect via Echelon App, and can connect via QZ (2.13.1) Seems like others on the internet have issues pairing the Echelon App via Samsung tablet to the bike. I have not come across other useful solutions.

I am going to factory reset and decline permissions (because I don't want Samsung permissions) and see if it still works. I will also update to Beta and try. After going through this, I want to get back to my original request, which was to get HRM working from my watch to QZ!

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

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

Puzzle50 commented 1 year ago

I am back to a clean state where QZ works normally, and I am running Beta successfully. The only issue is the my HRM is not working. I have a Garmin Venu 2 Plus that I set to broadcast wrist heart rate. I have a Garmin ANT+ dongle connected to my tablet, and I can receive the heart rate successfully in ANT+ Plugin Sampler. When I go to look for the watch in QZ under Heart Rate Options, I cannot find the watch (I have occasionally seen it in the past, but I do not know what causes it to appear, or not appear). Even when it appears, my Heart Rate does no display in QZ.

Can you advise on what settings I should have to get the HRM working? Thanks.

cagnulein commented 1 year ago

Heart rate belt name setting must be set to disabled and you have to enable the ant heart setting instead Let me know

Puzzle50 commented 1 year ago

I hadn't done that before, but still not reporting. Here are what I think are the relevant settings:

Heart Rate Options Outside FTMS Enabled Disable HRM from machine Enabled Heart Belt Name Disabled Ant+ Options Ant+ Heart Enabled

cagnulein commented 1 year ago

can you send me a debug log showing the issue? thanks

also a bug report from android on this scenario could help

Puzzle50 commented 1 year ago

Please see attached.

debug-Wed_Jul_12_09_12_43_2023.log

How can I grab an Android log?

cagnulein commented 1 year ago

From point 9 here https://github.com/cagnulein/qdomyos-zwift/blob/master/docs/20_supported_devices_and_applications.md#android-device

Il giorno mer 12 lug 2023 alle 16:21 Puzzle50 @.***> ha scritto:

Please see attached.

debug-Wed_Jul_12_09_12_43_2023.log https://github.com/cagnulein/qdomyos-zwift/files/12028896/debug-Wed_Jul_12_09_12_43_2023.log

How can I grab an Android log?

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

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

cagnulein commented 1 year ago

Also, anyway if you want just get the hr on your phone you can just use the qz garmin companion app

Il giorno mer 12 lug 2023 alle 16:21 Puzzle50 @.***> ha scritto:

Please see attached.

debug-Wed_Jul_12_09_12_43_2023.log https://github.com/cagnulein/qdomyos-zwift/files/12028896/debug-Wed_Jul_12_09_12_43_2023.log

How can I grab an Android log?

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

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

stale[bot] commented 1 year 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.