cagnulein / qdomyos-zwift

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

[REQ] BH i-Nexor Bike support? #2441

Open LunarstarPony opened 1 month ago

LunarstarPony commented 1 month ago

Saw that the BH AirMag is supported so I wonder if the BH I-Nexor is supported as well?

If it's not would it be possible to support it? I would able to provide logs.

For now the bike doesn't even shows up in the Manual Devices section in the app, so couldn't really force it to connect. Interesting enough tho the phone seems to recognize the Bike as a Bluetooth Headset? Screenshot_20240711-001825

cagnulein commented 1 month ago

hi @LunarstarPony so the device is a bluetooth 2.0 right?

cagnulein commented 1 month ago

are you sure the device reported here is the tresdmill? it founds like an headset

LunarstarPony commented 1 month ago

It's the BH Fitness i-Nexor using the M2 Control, accordign to this photo I found it's Bluetooth 3.0?

LunarstarPony commented 1 month ago

image

LunarstarPony commented 1 month ago

It's a exercise Bike, and yes I can confirm that is indeed bike

cagnulein commented 1 month ago

ok in order to add it could you please follow this with an app that already works on android

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

Let me know if you have any questions

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

Il giorno mer 10 lug 2024 alle 20:42 LunarstarPony @.***> ha scritto:

image.png (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/36251959/e4b77f85-e857-4631-96ec-d1d497e522e0

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

LunarstarPony commented 1 month ago

I'll give it a try later and currently the only app that I found supports it is Kinomap

cagnulein commented 1 month ago

that's perfect

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

Il giorno mer 10 lug 2024 alle 20:46 LunarstarPony @.***> ha scritto:

I'll give it a try later and currently the only app that I found supports it is Kinomap

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

LunarstarPony commented 1 month ago

Before I can capture the thing in a bit here's some additional info about the Original i-Nexor, there's a New i-Nexor Dual tho I'm not sure if their the same?

https://www.youtube.com/watch?v=27xcaxGZ4WE

cagnulein commented 1 month ago

it doesn't matter, with the hci log I will implement the protocol for your bike directly

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

Il giorno mer 10 lug 2024 alle 20:51 LunarstarPony @.***> ha scritto:

Before I can capture the thing in a bit here's some additional info about the Original i-Nexor, there's a New i-Nexor Dual tho I'm not sure if their the same?

https://www.youtube.com/watch?v=27xcaxGZ4WE

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

LunarstarPony commented 1 month ago

btsnoop_hci.log Here's one I do a long time ago when trying to fgure it out I'll get a new one later

cagnulein commented 1 month ago

Awesome, thanks! I will check it tomorrow, I've past 9 PM here in Italy

Il giorno mer 10 lug 2024 alle 21:29 LunarstarPony @.***> ha scritto:

btsnoop_hci.log https://github.com/user-attachments/files/16168024/btsnoop_hci.log Here's one I do a long time ago when trying to fgure it out I'll get a new one later

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

LunarstarPony commented 1 month ago

Can take a look t thi one mean while waiting, pretty sure I pair it and change theresistant a few time

LunarstarPony commented 1 month ago

Alright!

cagnulein commented 1 month ago

ok, I did a first implementation @LunarstarPony

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

enable both "BH SPADA Compatibility" and "BH SPADA Wattage" setting and restart QZ.

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

LunarstarPony commented 1 month ago

Alright! I'll give it a test in an hour!

LunarstarPony commented 1 month ago

So the app seems to able to find it now but it doeswn't do anything

cagnulein commented 1 month ago

create a debug log so i can check it https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

LunarstarPony commented 1 month ago

The Tiles show up but they all do nothing, usually when the Zinomap is connected the Display will Show BT but the Bike doesn't seems to aware anything is connected

LunarstarPony commented 1 month ago

debug-Thu_Jul_11_18_27_59_2024.log

This should be it?

LunarstarPony commented 1 month ago

While I'm here quick question, would it be possible to export the live exercise data out to things like Home Assistant or something?

Want to make something that would allow me to show and control the bike directly from VRChat using OSC since that's where I usually do my workout but Kinomap doesn't seems to have any API Available for it to export live data.

cagnulein commented 1 month ago

Yes you can do it! I’m having lunch now. I will check it later.

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

Il giorno gio 11 lug 2024 alle 12:33 LunarstarPony @.***> ha scritto:

While I'm here quick question, would it be possible to export the live exercise data out to things like Home Assistant or something?

Want to make something that would allow me to show and control the bike directly from VRChat but Kinomap doesn't seems to have any API Available for it.

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

LunarstarPony commented 1 month ago

No worries Not in a hurry! Also Good to know that's possible x3

cagnulein commented 1 month ago

hi @LunarstarPony i was checking your log, the services discovery process was on progress. please leave qz open for at least 2 minutes and send me a fresh log. This process is required only the first time. Let me know

LunarstarPony commented 1 month ago

debug-Thu_Jul_11_19_07_09_2024.log

This should be the correct log? The BT Does shows up a lilttle bit this time, but seems to disconnect soon after

LunarstarPony commented 1 month ago

And it also doesn't show any value either on the tiles

cagnulein commented 1 month ago

@LunarstarPony the problem is that you have a R1 PRO Kingsmith treadmill around you and qz is connected there. Set the BH device in the settings, advacend settings, manual device and press ok and restart QZ.

LunarstarPony commented 1 month ago

debug-Thu_Jul_11_21_58_32_2024.log

Have set the Manual Devices and also having the Treadmill Disabled seems to have the exact same issue with Bike recognize it's being connected and disconnected right after, also would like to get the KingSmith connected as well, it's a KingSmith R1S

LunarstarPony commented 1 month ago

Will deal with the bike first tho

cagnulein commented 1 month ago

for the treadmill was already working, just create a new profile in QZ with the manual device set to your treadmill, that's it :) I'm checking the log for the bike

cagnulein commented 1 month ago

ok let's try in this way https://github.com/cagnulein/qdomyos-zwift/actions/runs/9893129966

LunarstarPony commented 1 month ago

debug-Thu_Jul_11_22_55_12_2024.log The bike doesn't seems to recognize it's being connected at all with the new version

cagnulein commented 1 month ago

ok changed approach https://github.com/cagnulein/qdomyos-zwift/actions/runs/9893806621

LunarstarPony commented 1 month ago

debug-Thu_Jul_11_23_37_29_2024.log Bike still doesn't seems to be aware of the connection

cagnulein commented 1 month ago

restart the bike, because it replies only with the battery service instead of the serial port as it usually does. Let me know with a new debug log

LunarstarPony commented 1 month ago

So Do I restart bike and then restart app? or ?

cagnulein commented 1 month ago

yes exactly

LunarstarPony commented 1 month ago

debug-Thu_Jul_11_23_50_53_2024.log This should be it?

cagnulein commented 1 month ago

got it, i have to add some new frames

cagnulein commented 1 month ago

new one https://github.com/cagnulein/qdomyos-zwift/actions/runs/9894771082

LunarstarPony commented 1 month ago

So it seems like the bike is aware of something is connected again, and it doesn't seems like it's disconnecting after a while anymore. But the value is still all 0 debug-Thu_Jul_11_23_50_53_2024.log

cagnulein commented 1 month ago

Ok I will check it later, I'm riding now

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

Il giorno gio 11 lug 2024 alle 18:38 LunarstarPony @.***> ha scritto:

So it seems like the bike is aware of something is connected again, and it doesn't seems like it's disconnecting after a while anymore. But the value is still all 0 debug-Thu_Jul_11_23_50_53_2024.log https://github.com/user-attachments/files/16180863/debug-Thu_Jul_11_23_50_53_2024.log

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

LunarstarPony commented 1 month ago

No Prob c:

cagnulein commented 1 month ago

@LunarstarPony log checked, i guess the bike was still in loop after the last try. please try again rebooting it like the last time. Thanks

LunarstarPony commented 1 month ago

I'll test it rn!

LunarstarPony commented 1 month ago

Oops forget to turn off the tredmill

LunarstarPony commented 1 month ago

debug-Fri_Jul_12_05_34_47_2024.log This one should be good?

cagnulein commented 1 month ago

@LunarstarPony I checked the log: QZ was still trying to connect when you close it. Could you please retry? let it run for at least 5 minutes just to be sure. here https://github.com/cagnulein/qdomyos-zwift/issues/2441#issuecomment-2223026233 it was connected so we have at least to go back in this scenario ( i guess then we have to understand why somehow it takes more time)

LunarstarPony commented 1 month ago

Tru It's usually extremely fast with Kinomap, like almost instant

cagnulein commented 1 month ago

ok but let's first check if we can get the connection, then we will check the connection speed :)