cagnulein / qdomyos-zwift

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

[BUG] No metrics showing on Apex Rides bike #2459

Closed Stevefsg closed 6 days ago

Stevefsg commented 1 month ago

Describe the bug QZ app connects to Apex Rides bike but does not show any metrics other than resistance jumping from min to max units

Expected behavior Expect to see all metrics shown such as calories burned, resistance, odometer etc.

Screenshots IMG_0199

Desktop (please complete the following information): Not using Desktop, using on phone only

Smartphone (please complete the following information):

Append a debug log debug-Wed_Jul_17_20_55_22_2024.log

cagnulein commented 1 month ago

hi, thanks. i will check tomorrow. 11pm here Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno mer 17 lug 2024 alle ore 22:47 Stevefsg @.***> ha scritto:

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

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

cagnulein commented 1 month ago

Hi @Stevefsg when you collected this log were you riding? I can see the connection to the bike, but the bike is sending all 0, except for the resistance that it's changing as you saw. If you were riding, do you have an app that already works with the bike? just to understand if it's a bike issue or something else. Thanks

Stevefsg commented 1 month ago

Hi I opened the app, cycled for a few minutes, pressed stop, closed the app then collected the log. I don’t currently have an app to use with the bike, I have just bought the bike second hand and Apex charge £30 a month to use their app that’s why I bought yours hoping it would work. There is an LED that comes on on the front of the bike when the app connects

On Thursday, July 18, 2024, Roberto Viola @.***> wrote:

Hi @Stevefsg https://github.com/Stevefsg when you collected this log were you riding? I can see the connection to the bike, but the bike is sending all 0, except for the resistance that it's changing as you saw. If you were riding, do you have an app that already works with the bike? just to understand if it's a bike issue or something else. Thanks

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

cagnulein commented 1 month ago

the apex app works with the bike?

Stevefsg commented 1 month ago

Yes that’s correct, the Apex app works with the bike but I am no longer paying the subscription for it

On Thursday, July 18, 2024, Roberto Viola @.***> wrote:

the apex app works with the bike?

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

cagnulein commented 1 month ago

ok so it seems that your bike has a different firmware from the one that I implemented in the past. In order to add the compatibility with this exactly firmware version, we need to use an android device, just to collect some logs with the apex app. Are you able to do so?

Stevefsg commented 1 month ago

Yes I have an android tablet I can use, although I’m in work till late today. If you can tell me how to get the logs with the apex app, I can send them to you later on today

On Thursday, July 18, 2024, Roberto Viola @.***> wrote:

ok so it seems that your bike has a different firmware from the one that I implemented in the past. In order to add the compatibility with this exactly firmware version, we need to use an android device, just to collect some logs with the apex app. Are you able to do so?

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

cagnulein commented 1 month ago

sure, follow this https://github.com/cagnulein/qdomyos-zwift/blob/master/docs/20_supported_devices_and_applications.md#android-device

Stevefsg commented 1 month ago

Hi

sorry for getting back to you late I think I’ve managed to get the file you need and have attached it btsnoop_hci.log

cagnulein commented 1 month ago

hi @Stevefsg it gives me a 404 error. can you please upload it again?

Stevefsg commented 1 month ago

No problem, i have tried uploading it through my PC this time rather than my phone btsnoop_hci.log

cagnulein commented 1 month ago

did you use the apex app with this? i mean the bug report and the apex app are on the same device right? if so do you see the metrics on the apex app? i'm seeing the same behaviour of the qz app, talking with the bike over and over with 0 metrics. Let me know

cagnulein commented 1 month ago

hah no wait i can see something

cagnulein commented 1 month ago

i tried a thing

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

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

Stevefsg commented 1 month ago

Hi Roberto, that has seemed to fix it! All metrics are showing now, however they seem to be continuously jumping from minimum value to actual value, I have tried to attach a video showing what I mean and a debug log from my android tablet

https://github.com/user-attachments/assets/e41391ce-be4a-4d9b-b22f-8a4f0ee5b960

debug-Fri_Jul_26_20_13_06_2024.txt

cagnulein commented 1 month ago

hi @Stevefsg sort of a good news! can you upload again the debug log? it's corrupted. thanks

Stevefsg commented 1 month ago

debug-Fri_Jul_26_20_13_06_2024.txt

cagnulein commented 1 month ago

@Stevefsg fixed https://github.com/cagnulein/qdomyos-zwift/actions/runs/10215453679

Stevefsg commented 1 month ago

Thank! I really appreciate you fixing these issues for me. Will these fixes be available on the IOS version in the future?

On Friday, August 2, 2024, Roberto Viola @.***> wrote:

@Stevefsg https://github.com/Stevefsg fixed https://github.com/cagnulein/qdomyos-zwift/actions/runs/10215453679

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

cagnulein commented 1 month ago

yes sure, if you want I can build it for ios already Let me know

Stevefsg commented 1 month ago

Hi Roberto, I uninstalled the previous trial app and installed tested the new one you made for me last night but unfortunately I am getting the same issue now that I originally had, no metrics are showing at all (apart from Resistance)

debug-Fri_Aug_2_18_55_34_2024.log

cagnulein commented 1 month ago

ops sorry, i did it wrong. i will fix it tomorrow. i'm outside now

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

Il giorno sab 3 ago 2024 alle 11:55 Stevefsg @.***> ha scritto:

Hi Roberto, I uninstalled the previous trial app and installed tested the new one you made for me last night but unfortunately I am getting the same issue now that I originally had, no metrics are showing at all (apart from Resistance)

debug-Fri_Aug_2_18_55_34_2024.log https://github.com/user-attachments/files/16479000/debug-Fri_Aug_2_18_55_34_2024.log

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

cagnulein commented 1 month ago

ok i see now the reason: the bike seems with this new firmware doesn't send the cadence anymore. it sends only the distance so i have to derive it. i will try a new version later today

cagnulein commented 1 month ago

ok i did a new approach https://github.com/cagnulein/qdomyos-zwift/actions/runs/10244696576

cagnulein commented 1 month ago

new build https://github.com/cagnulein/qdomyos-zwift/actions/runs/10245989277

cagnulein commented 1 month ago

new build https://github.com/cagnulein/qdomyos-zwift/actions/runs/10253051728

stale[bot] commented 2 weeks 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 5 days ago

@Stevefsg are we OK?