cagnulein / qdomyos-zwift

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

[BUG] Renpho smart bike r-q002 n #2401

Open a-librarian opened 3 weeks ago

a-librarian commented 3 weeks ago

Describe the bug I bought the app on the play store and it sees the bike and connects automatically, but displays no information. Tried goofing around with settings to no avail.

I've attached 3 debug logs from the sessions in which I was trying to connect.

Screenshots If applicable, add screenshots to help explain your problem. Screenshot_20240622-114727

Desktop (please complete the following information):

Smartphone (please complete the following information): Android 14, June 5 Update Pixel 6 Pro

Append a debug log debug-Sat_Jun_22_11_51_06_2024.log debug-Sat_Jun_22_12_09_53_2024.log debug-Sat_Jun_22_12_04_18_2024.log Follow this guide https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

Additional context Add any other context about the problem here.

cagnulein commented 3 weeks ago

Hi @a-librarian that's very strange. Can you try to enalbe the Hammer Racer Bike setting under the Hammer Racer Bike Options on the bike settings in QZ and restart QZ? Send me another debug log in this scenario if it doesn't work let me know!

a-librarian commented 3 weeks ago

Thanks. I turned on Hammer, no change. Two new logs for your viewing pleasure.

debug-Sat_Jun_22_13_31_41_2024.log debug-Sat_Jun_22_13_29_57_2024.log

cagnulein commented 3 weeks ago

The problem is that the bike is not sending ftms data at all. Is the firmware on the bike updated?

a-librarian commented 3 weeks ago

I pressed the update firmware button in the AI Gym app. Nothing happens. I can confirm that the bike successfully pairs with and sends data to Zwift and Kinomap. It is not detected by the Peloton app.

cagnulein commented 3 weeks ago

Yes it sends only as a power meter. Let me try to do a modification about this

I will send you a new version in a hour

a-librarian commented 3 weeks ago

I took screenshots of the output of the bike in both apps, in case of use. Zwift PXL_20240622_180603744 MP Kinomap Screenshot_20240622-135042

cagnulein commented 3 weeks ago

Hah wait, I saw now that you set it under ftms bike setting. Remove it from there and restart qz Let me know

cagnulein commented 3 weeks ago

Hah wait, I saw now that you set it under ftms bike setting. Remove it from there and restart qz Let me know

a-librarian commented 3 weeks ago

debug-Sat_Jun_22_14_31_05_2024.log Like this? Screenshot_20240622-143136 No change to the output.

cagnulein commented 3 weeks ago

last test

set your bike under accesories, power sensor and also enable power sensor as a bike

image

let me know

a-librarian commented 3 weeks ago

Some progress! With Power Sensor set to R-Q002N, we get the following: Screenshot_20240622-145113 debug-Sat_Jun_22_14_50_29_2024.log

cagnulein commented 3 weeks ago

ok wait i'm doing a modification

cagnulein commented 3 weeks ago

ok keep these settings and use this

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

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

I'm going to bed in an hour, I will answer you back tomorrow in case! Let me know

a-librarian commented 3 weeks ago

Hello, installed the trial app. Displays the same metrics. The million dollar question for me is a) can I get peloton to automatically adjust my bikes resistance and maybe b) can I send cadence data to Peloton?

cagnulein commented 3 weeks ago

So the fix of yesterday worked?

in the actual setup qz can't change the resistance but i can do a mod for you.

i need a debug log from an app that can change directly the resistance following this https://github.com/cagnulein/qdomyos-zwift/blob/master/docs/20_supported_devices_and_applications.md#android-device

Are you able to do so? For example kinomap or zwift can change the resistance on your bike?

a-librarian commented 3 weeks ago

Hi again. Ah, yes, I didn't have Power Sensor as a Bike enabled. It seems to work! Screenshot_20240623-125319

I connected to Kinomap and generated a BT log. btsnoop_hci.log

I hope this is the right one. Let me know - it wasn't in exactly the same folder from your instructions.

Thanks.

cagnulein commented 3 weeks ago

ok that's great! so from kinomap did you change the resistance directly from the kinomap app?

a-librarian commented 3 weeks ago

Yes, Kinomap automatically adjusts the bike's resistance depending on the course - I could feel it adjusting. I noted that the display on the bike does not reflect the resistance value when connected to Kinomap, but I could tell it was working.

cagnulein commented 3 weeks ago

got it, you did right the log! I will check it tomorrow, it seems that kinomap is using ftms, so I probably need to understand what I did different from kinomap. So in the next version you will have to use to reset the power sensor to defaults (removing it from the power sensor) and set it back to the ftms bike. I will update you!

a-librarian commented 3 weeks ago

Amazing. I really appreciate your work on this. Thank you!

cagnulein commented 2 weeks ago

hi @a-librarian i was comparing the hcisnoof with what QZ does in the standard configuration (no FTMS bike set and now power sensor set) and it looks the same. The only different thing is the fact that QZ also broadcast itself as a FTMS bike and I'm wondering if maybe this is the problem that inhibit the bike to send the metrics. So:

let's see if you can get the metrics in this way. if not post again a debug log. Let me know!

a-librarian commented 2 weeks ago

Did all those things, no display, I'm afraid. debug-Mon_Jun_24_08_40_56_2024.log debug-Mon_Jun_24_08_42_46_2024.log

cagnulein commented 2 weeks ago

this is crazy, i can't see any real difference between what kinomap does and what I did. Could you ask you one last favor? Could you please do the hcisnoof thing this time with qz? I would like to compare the one that you did for kinomap with the one from QZ so i will compare apple with apple. Thanks!

a-librarian commented 2 weeks ago

Here you go: btsnoop_hci.log

cagnulein commented 2 weeks ago

thanks i will check it tomorrow!

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

Il giorno lun 24 giu 2024 alle 23:00 a-librarian @.***> ha scritto:

Here you go: btsnoop_hci.log https://github.com/user-attachments/files/15961206/btsnoop_hci.log

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

cagnulein commented 2 weeks ago

ok @a-librarian I tried to do the same thing that kinomap does (even if it doesn't have sense, but maybe it's a workaround for this bike) https://github.com/cagnulein/qdomyos-zwift/actions/runs/9657925370

Let me know, send me a debug log from qz in case it doesn't work Thanks!

a-librarian commented 2 weeks ago

No display with default settings, alas. debug-Tue_Jun_25_08_48_34_2024.log

cagnulein commented 2 weeks ago

it's truly unbelieavable. Do you have by chance a PC, or a Mac with Silicon processor or a iOS device? I would like to try QZ as well there (i can send you a free copy of course). Let me know

a-librarian commented 2 weeks ago

I have a Windows 11 PC and an iPad air that I can use.


From: Roberto Viola @.> Sent: Tuesday, June 25, 2024 9:40:52 AM To: cagnulein/qdomyos-zwift @.> Cc: a-librarian @.>; Mention @.> Subject: Re: [cagnulein/qdomyos-zwift] [BUG] Renpho smart bike r-q002 n (Issue #2401)

it's truly unbelieavable. Do you have by chance a PC, or a Mac with Silicon processor or a iOS device? I would like to try QZ as well there (i can send you a free copy of course). Let me know

— Reply to this email directly, view it on GitHubhttps://github.com/cagnulein/qdomyos-zwift/issues/2401#issuecomment-2188997441, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUG5V2R5UGTEBOJNC6A2J2TZJFXOJAVCNFSM6AAAAABJXSUV2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYHE4TONBUGE. You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 weeks ago

ok let's try first with the ipad. i just sent you a version by email

a-librarian commented 2 weeks ago

debug-Tue_Jun_25_10_38_50_2024.log From iOS this time. Same as ever. It works when set as power sensor, but not otherwise.

cagnulein commented 2 weeks ago

ok thanks, it could be a good news since it's seems the same issue. I have to think about Thanks, i will keep you posted in the next days

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

Il giorno mar 25 giu 2024 alle ore 16:42 a-librarian < @.***> ha scritto:

debug-Tue_Jun_25_10_38_50_2024.log https://github.com/user-attachments/files/15973147/debug-Tue_Jun_25_10_38_50_2024.log From iOS this time. Same as ever. It works when set as power sensor, but not otherwise.

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

cagnulein commented 2 weeks ago

ok let's try one more thing https://github.com/cagnulein/qdomyos-zwift/actions/runs/9677397119

a-librarian commented 2 weeks ago

Still nothing (on android). debug-Wed_Jun_26_21_49_13_2024.log

cagnulein commented 2 weeks ago

unbelievable. I have to think about this, never had such an issue. All the communication is right now

cagnulein commented 2 weeks ago

@a-librarian could I ask you a test?

https://github.com/cagnulein/qdomyos-zwift/assets/48216/032f21b8-d09d-49c4-a157-7f04a6eab7fc

If you are doing the same for your renpho bike do you see the metrics as I can see on mine?

a-librarian commented 2 weeks ago

Hi there. How do I access that page? In Android settings? Thanks.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Roberto Viola @.> Sent: Thursday, June 27, 2024 8:05:36 AM To: cagnulein/qdomyos-zwift @.> Cc: a-librarian @.>; Mention @.> Subject: Re: [cagnulein/qdomyos-zwift] [BUG] Renpho smart bike r-q002 n (Issue #2401)

@a-librarianhttps://github.com/a-librarian could I ask you a test?

https://github.com/cagnulein/qdomyos-zwift/assets/48216/032f21b8-d09d-49c4-a157-7f04a6eab7fc

If you are doing the same for your renpho bike do you see the metrics as I can see on mine?

— Reply to this email directly, view it on GitHubhttps://github.com/cagnulein/qdomyos-zwift/issues/2401#issuecomment-2194512189, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUG5V2U4RL5SDEPNZ7OTTVTZJP5ZBAVCNFSM6AAAAABJXSUV2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUGUYTEMJYHE. You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 weeks ago

hah sorry with the nrfconnect, free app from the store Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 27 giu 2024 alle ore 14:22 a-librarian < @.***> ha scritto:

Hi there. How do I access that page? In Android settings? Thanks.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Roberto Viola @.> Sent: Thursday, June 27, 2024 8:05:36 AM To: cagnulein/qdomyos-zwift @.> Cc: a-librarian @.>; Mention @.> Subject: Re: [cagnulein/qdomyos-zwift] [BUG] Renpho smart bike r-q002 n (Issue #2401)

@a-librarianhttps://github.com/a-librarian could I ask you a test?

https://github.com/cagnulein/qdomyos-zwift/assets/48216/032f21b8-d09d-49c4-a157-7f04a6eab7fc

If you are doing the same for your renpho bike do you see the metrics as I can see on mine?

— Reply to this email directly, view it on GitHub< https://github.com/cagnulein/qdomyos-zwift/issues/2401#issuecomment-2194512189>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AUG5V2U4RL5SDEPNZ7OTTVTZJP5ZBAVCNFSM6AAAAABJXSUV2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUGUYTEMJYHE>.

You are receiving this because you were mentioned.Message ID: @.***>

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

a-librarian commented 2 weeks ago

When I connect qz and debug I see this: Screenshot_20240627-083020

cagnulein commented 2 weeks ago

don't use qz for this, just use nrfconnect to connect to your bike. then click on fitness machine and you will see indoor bike data. and then click on the 3 arrow on the right next to indoor bike data

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

Il giorno gio 27 giu 2024 alle ore 14:32 a-librarian < @.***> ha scritto:

When I connect qz and debug I see this: Screenshot_20240627-083020.png (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/84794090/edc28d9b-e645-4db0-8295-f6ed2e1cfc63

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

a-librarian commented 2 weeks ago

Screenshot_20240627-083830 Screenshot_20240627-083846 Screenshot_20240627-083825

cagnulein commented 2 weeks ago

ddi you click here ? i would like to see that the notification are enabled

343773008-5cc3ae7a-c34b-4fa1-9711-ec9a030e863c

a-librarian commented 2 weeks ago

Screenshot_20240627-084914

cagnulein commented 2 weeks ago

ok so same issue here. Ok that's a clue. Even if you click again the same icon and again? you never receive any metrics?

a-librarian commented 2 weeks ago

Screenshot_20240627-085507

a-librarian commented 2 weeks ago

Sorry, didn't think to be riding while doing this! I have to head to work but can gather more data later if needed.

cagnulein commented 2 weeks ago

hah ok, of course you were riding when you were testing qz...that's really a mistery!

a-librarian commented 2 weeks ago

😊 yes, always riding when testing qz. Didn't think this Bluetooth app could display metrics. Happy to do any other tests you can think of.

cagnulein commented 2 weeks ago

ok another approach https://github.com/cagnulein/qdomyos-zwift/actions/runs/9697597100

a-librarian commented 2 weeks ago

Hi. Tried this build. Still nothing. I did get a very large bug report. Must have been connected for a long time. I'll be away for the week, fyi.

(Had to change the .log to .txt to upload via Android) debug-Thu_Jun_27_18_16_11_2024.txt