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] Unable to connect to Garmin Epix Pro via ANT+ #2424

Closed itsredan97 closed 2 months ago

itsredan97 commented 3 months ago

Describe the bug Currently using QZ app with a Zipro indoor bike, I have correct readings from the app (except the fact that the resistance sets to 5 everytime i start a training and I need to set it manually to 1), but i'm not able to connect it to my Garmin via ANT+, using an usb dongle.

I enabled ANT+ Cadence option in QZ App.

I think don't have issues on dongle's side since i don't get errors from ANT Tester app. My phone is a S22 Ultra, but I tried also with an old Xiaomi Mi9 without success.

To Reproduce

  1. Start the training on the bike
  2. Open the app, flawless connection to the phone
  3. On my watch, I start the device scan before starting indoor cycling activity
  4. No devices found

Smartphone (please complete the following information):

Append a debug log debug-Wed_Jul_3_15_11_29_2024.log

cagnulein commented 3 months ago

this is the issue

07-03 15:41:00.753  1000  1621  2245 W ActivityManager: Permission Denial: Accessing service com.dsi.ant.server/.AntService from pid=7236, uid=10037 requires com.dsi.ant.permission.ANTRADIO
07-03 15:41:00.754 10037  7236  7500 E AdapterProvider: Initialising com.dsi.ant.chip.hal.AntAidlInterface@306a07d failed.
07-03 15:41:00.754 10037  7236  7500 E AdapterProvider: java.lang.SecurityException: Not allowed to bind to service Intent { act=com.dsi.ant.server.IAntHal cmp=com.dsi.ant.server/.AntService }
07-03 15:41:00.754 10037  7236  7500 E AdapterProvider:     at com.dsi.ant.chip.hal.AntAidlInterface.initService(SourceFile:62)
07-03 15:41:00.754 10037  7236  7500 E AdapterProvider:     at com.dsi.ant.chip.hal.AntAidlInterface.init(Unknown Source:6)
07-03 15:41:00.754 10037  7236  7500 E AdapterProvider:     at com.dsi.ant.adapter.AdapterStateMachine$2.initHardware(Unknown Source:9)
07-03 15:41:00.754 10037  7236  7500 E AdapterProvider:     at com.dsi.ant.adapter.AdapterStateMachine$2.run(SourceFile:184)

Did you see a popup the first time you run qz with the dongle about using it in QZ? I guess you said by mistake no there Let me know

itsredan97 commented 3 months ago

Did you see a popup the first time you run qz with the dongle about using it in QZ? I guess you said by mistake no there Let me know

Erased data on the app and gave all the permissions needed with the dongle plugged in before opening the app, but I'm still experiencing the same issue. DIdn't get a specific request of permission for ANT+ connection by the way, just the one for nearby devices scan.

stale[bot] commented 2 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 2 months ago

@itsredan97 any news?