cagnulein / qdomyos-zwift

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

[BUG] Garmin HR over ANT+ not collected in QZ #2740

Open svukom4n opened 2 hours ago

svukom4n commented 2 hours ago

Describe the bug Using a CooSpoo ANT+ dongle on my Android tablet or smartphone. When I broadcast HR data from my Garmin watch, I can see the data in the ANT+ Plugin Sampler app and also in Rouvy. But on the same tablet, I can't see the HR data in QZ.

My QZ settings are:

To Reproduce Steps to reproduce the behavior:

  1. Start HR broadcast on a Garmin watch
  2. Open ANT+ Plugin Sampler or Rouvy - HR over ANT+ is collected
  3. Start QZ
  4. No HR data (0 displayed in the HR tile)

Expected behavior HR data should be displayed in the tile

Smartphone (please complete the following information):

Append a debug log debug-Tue_Nov_5_14_39_15_2024.log

cagnulein commented 2 hours ago

That's interesting, are you able to collect a bug report from android while you have this issue?

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

Il giorno mar 5 nov 2024 alle 15:03 svukom4n @.***> ha scritto:

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

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

svukom4n commented 1 hour ago

Attaching a new QZ log together with the Android debug from the same time. android_log.log debug-Tue_Nov_5_14_39_15_2024.log

cagnulein commented 53 minutes ago

thanks @svukom4n

11-05 16:09:11.621 23447 29835 D HeartChannelController: Rx: 0x40:[01][42][00]
11-05 16:09:11.621 23447 29835 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:09:11.625 23447 29835 D HeartChannelController: Rx: 0x40:[01][75][00]
11-05 16:09:11.625 23447 29835 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:09:11.627 23447 29835 D HeartChannelController: Rx: 0x40:[01][51][00]
11-05 16:09:11.627 23447 29835 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:09:11.629 23447 29835 D HeartChannelController: Rx: 0x40:[01][43][00]
11-05 16:09:11.629 23447 29835 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:09:11.631 23447 29835 D HeartChannelController: Rx: 0x40:[01][45][00]
11-05 16:09:11.631 23447 29835 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:09:11.633 23447 23447 D HeartChannelController: Opened channel with device number
11-05 16:09:11.633 23447 29835 D HeartChannelController: Rx: 0x40:[01][4B][00]
11-05 16:09:11.633 23447 29835 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:09:26.403 23447 29835 D HeartChannelController: Rx: 0x40:[01][01][01]
11-05 16:09:26.403 23447 29835 D HeartChannelController: Message Type: CHANNEL_EVENT
11-05 16:09:26.404 23447 29835 D HeartChannelController: Event Code: RX_SEARCH_TIMEOUT
11-05 16:09:26.404 23447 29835 E HeartChannelController: No Device Found
11-05 16:09:26.404 23447 29835 D HeartChannelController: Rx: 0x40:[01][01][07]
11-05 16:09:26.404 23447 29835 D HeartChannelController: Message Type: CHANNEL_EVENT
11-05 16:09:26.404 23447 29835 D HeartChannelController: Event Code: CHANNEL_CLOSED
11-05 16:12:51.116 23452 30944 D HeartChannelController: Rx: 0x40:[00][42][00]
11-05 16:12:51.116 23452 30944 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:12:51.128 23452 30944 D HeartChannelController: Rx: 0x40:[00][75][00]
11-05 16:12:51.128 23452 30944 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:12:51.131 23452 30944 D HeartChannelController: Rx: 0x40:[00][51][00]
11-05 16:12:51.132 23452 30944 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:12:51.134 23452 30944 D HeartChannelController: Rx: 0x40:[00][43][00]
11-05 16:12:51.134 23452 30944 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:12:51.136 23452 30944 D HeartChannelController: Rx: 0x40:[00][45][00]
11-05 16:12:51.136 23452 30944 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:12:51.140 23452 23452 D HeartChannelController: Opened channel with device number
11-05 16:12:51.140 23452 30944 D HeartChannelController: Rx: 0x40:[00][4B][00]
11-05 16:12:51.140 23452 30944 D HeartChannelController: Message Type: CHANNEL_RESPONSE
11-05 16:13:05.900 23452 30944 D HeartChannelController: Rx: 0x40:[00][01][01]
11-05 16:13:05.901 23452 30944 D HeartChannelController: Message Type: CHANNEL_EVENT
11-05 16:13:05.902 23452 30944 D HeartChannelController: Event Code: RX_SEARCH_TIMEOUT
11-05 16:13:05.902 23452 30944 E HeartChannelController: No Device Found
11-05 16:13:05.902 23452 30944 D HeartChannelController: Rx: 0x40:[00][01][07]
11-05 16:13:05.902 23452 30944 D HeartChannelController: Message Type: CHANNEL_EVENT
11-05 16:13:05.902 23452 30944 D HeartChannelController: Event Code: CHANNEL_CLOSED

is there a particular reason why you don't want to use the qz companion app on the watch? In the meantime I'm checking what these messages meaning

svukom4n commented 42 minutes ago

The reason for not using the companion app is that on my wife's watch it's unreliable. She wants to use QZ on the tablet and not on the phone that the watch is paired to. Also she wants to start the Bike Indoor activity on the watch, which can't be done with the companion app running.

cagnulein commented 40 minutes ago

The reason for not using the companion app is that on my wife's watch it's unreliable.

what do you mean? what's the issue?

She wants to use QZ on the tablet and not on the phone that the watch is paired to.

hah ok

Also she wants to start the Bike Indoor activity on the watch, which can't be done with the companion app running.

got it.

about the ant issue, can you show me ANT+ Plugin Sampler getting the HR from it, i would like to check if it does something different.

svukom4n commented 25 minutes ago

I'm attaching the screenshot. I also ran the ANT+ Plugin Sampler during the Android debug, before starting QZ, so maybe you can see something there.

image

cagnulein commented 19 minutes ago

it seems that it's not broadcasting it (qz aspects that a device is broadcasting rather than connecting to it), that's probably the reason. Did you start a workout on the watch when you tried this? I can also try with my forerunner 255 this evening.

svukom4n commented 1 minute ago

When I'm testing I'm manually running "Broadcast Heart Rate" on my watch under Settings > Watch Sensors > Wrist Heart Rate. When I enable this I see the HR show up in the Plugin Sampler and Rouvy. I also tried running the Bike Indoor activity where I have broadcast HR enabled, same thing. If it's important, I have the QZ Beta and GarminOS 11.16.