cagnulein / qdomyos-zwift

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

[BUG] QZ app crashes when pairing with Technogym Run treadmill #2380

Open jlettFlintfox opened 1 week ago

jlettFlintfox commented 1 week ago

To Reproduce Steps to reproduce the behavior:

  1. On Technogym Run treadmill, press bluetooth button and activate bluetooth
  2. Open QZ app, treadmill is detected and 2 seconds later app crashes.
  3. This is a "Technogym Run" treadmill, not MyRun, but tried the experimental feature "Enable MyRun" however the app still crashes

Smartphone (please complete the following information):

debug-Mon_Jun_10_12_07_03_2024.log

cagnulein commented 1 week ago

thanks i will check it asap

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

Il giorno lun 10 giu 2024 alle 02:38 jlettFlintfox @.***> ha scritto:

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

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

cagnulein commented 1 week ago

@jlettFlintfox fixed!

https://github.com/cagnulein/qdomyos-zwift/actions/runs/9443843617

Google is very slow in these days, reviewing the app on the store, even the beta ones. For this reason, in order to check right now if the patch that I did is right, you can use the android build in the link (check at the bottom of the page in about 1 hour). In order to test it you need first to remove the current QZ version on your phone, install the one that you downloaded. This version is a 15 minutes trial (you can restart it as many times as you want) and I can unlock it if you want, send me an email to roberto.viola83@gmail.com mentioning this ticket and that you are on android. Let me know if you have any questions

jlettFlintfox commented 1 week ago

Thanks for looking in to this so quickly. Unfortunately that new version didn't help. Attached is a new debug log.

debug-Tue_Jun_11_17_22_57_2024.log

cagnulein commented 1 week ago

i guess i got it. could you please try this one https://github.com/cagnulein/qdomyos-zwift/actions/runs/9460856927 ?

jlettFlintfox commented 1 week ago

Looking better. App doesn't crash any longer, but unfortunately none of the treadmill/cadence data shows in the tiles, and pressing the incline buttons doesn't control the treadmill. Debug log attached.

debug-Tue_Jun_11_20_11_38_2024.log

I also tried with Technogym experimental MyRun option but that caused a crash on startup, although understandable as this is a "Run" not "MyRun" version.

cagnulein commented 1 week ago

mmm that's strange the treadmill sends the only some metrics but not everything... Is it working with any other apps? if so which ones?

jlettFlintfox commented 4 days ago

Yes. I've used the treadmill with Zwift, and works OK but I was hoping to use QZ to get the automatic inline feature, which Zwift does not support with treadmills.

cagnulein commented 4 days ago

I tried another thing https://github.com/cagnulein/qdomyos-zwift/actions/runs/9511986725

jlettFlintfox commented 4 days ago

Unfortunately no change with the new version. The steps I followed are:

  1. Turn on treadmill, and switch on bluetooth option
  2. Turn on QZ, treadmill detected
  3. Start treadmill using treadmill buttons and adjust speed
  4. No data shown on the QZ app
  5. Pressed the flashing red start button in QZ
  6. No data shown on the QZ app
  7. Press the QZ stop button

debug-Fri_Jun_14_20_42_47_2024.log

Screenshot_20240614_203822

I did also try switching on the Technogym MyRun setting, but as soon as the treadmill starts to move (step 3 above), the app shuts down.

cagnulein commented 4 days ago

last thing: could you try to disable the virtual bluetooth device on the experimental settings and restart QZ? if it still doesn't work I need this https://github.com/cagnulein/qdomyos-zwift/blob/master/docs/20_supported_devices_and_applications.md#android-device using your treadmill directly on zwift

Let me know!