cagnulein / qdomyos-zwift

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

[REQ] Wahoo Kickr Headwind #1281

Closed Bugeater624 closed 1 year ago

Bugeater624 commented 1 year ago

Is your feature request related to a problem? Please describe. I would love to have compatibility to connect the Wahoo Kickr Headwind fan to the speed sensor of QZ, and use that to modulate the fan to simulate wind speed on Zwift.

Describe the solution you'd like Instructions or ability to use the Kickr Headwind with Zwift.

Describe alternatives you've considered Of course I could get a different fan, but that wouldn’t be near as fun! :)

Additional context Appreciate all of your help!

cagnulein commented 1 year ago

Hi @Bugeater624 do you have already it? If so can you please share a nrfconnect screenshot about it? nrfconnect is a free app on the store. Let me know

Bugeater624 commented 1 year ago

I do not, I’m sorry. I was trying to figure out if it had compatibility with QZ and my Echelon bike before I purchased.Brock SandersOn Feb 16, 2023, at 8:24 AM, Roberto Viola @.***> wrote: Hi @Bugeater624 do you have already it? If so can you please share a nrfconnect screenshot about it? nrfconnect is a free app on the store. Let me know

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 1 year ago

hah ok :) you can try also to contact @marcelomanzo he has a bluetooth fan that it's already compatible with QZ https://www.youtube.com/watch?v=tdvNtNWnxNY

Bugeater624 commented 1 year ago

I looked into that, and I think I need something a little more powerful. And the fan changing speeds based on how fast you’re going sounds cool and very immersive.Can the Wahoo fan be connected with the current app or would you need to do some additional work to make it compatible?Brock SandersOn Feb 16, 2023, at 9:03 AM, Roberto Viola @.***> wrote: hah ok :) you can try also to contact @marcelomanzo it has a bluetooth fan that it's already compatible with QZ https://www.youtube.com/watch?v=tdvNtNWnxNY

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 1 year ago

for sure i need to do a patch in order to make it work , but it's impossible to know without having it

maybe @jonathancolledge can help us with this

davebattles commented 1 year ago

I have the headwind and can be helpful. I would love if it was supported.

@Bugeater624 As for current support, I can pair qz to the wahoo app with heartrate as one of the sensors so the app correctly displays my heartrate. Then I add the headwind to wahoo as well but the heartrate readings will not change the headwind speed. I basically have to control the headwind manually though the app :[ which is sort of ok I guess.

If you tell me what I need to screenshot I will gladly do it.

------Log Dump 14:49:26,Scanner,normal,Scanner On. 14:49:26,Scanner,normal,Device Scanned. 14:49:30,Connected Device,normal,Connected. 14:49:31,Connected Device,normal,Discovered Device Information, A026EE01-0A7D-4AB3-97FA-F1500F9FEB8B, and A026EE0C-0A7D-4AB3-97FA-F1500F9FEB8B Services. 14:49:31,Connected Device,normal,Discovered Characteristics Manufacturer Name String, Serial Number String, Hardware Revision String, and Firmware Revision String for Service Device Information. 14:49:31,Connected Device,normal,Discovered Characteristics A026E002-0A7D-4AB3-97FA-F1500F9FEB8B and A026E004-0A7D-4AB3-97FA-F1500F9FEB8B for Service A026EE01-0A7D-4AB3-97FA-F1500F9FEB8B. 14:49:31,Connected Device,normal,Discovered Characteristics A026E038-0A7D-4AB3-97FA-F1500F9FEB8B for Service A026EE0C-0A7D-4AB3-97FA-F1500F9FEB8B. 14:49:31,Connected Device,normal,Characteristic Manufacturer Name String has no Descriptors. 14:49:31,Connected Device,normal,Characteristic Serial Number String has no Descriptors. 14:49:31,Connected Device,normal,Characteristic Hardware Revision String has no Descriptors. 14:49:31,Connected Device,normal,Characteristic Firmware Revision String has no Descriptors. 14:49:31,Connected Device,normal,Discovered Client Characteristic Configuration for Characteristic A026E002-0A7D-4AB3-97FA-F1500F9FEB8B 14:49:31,Connected Device,normal,Discovered Client Characteristic Configuration for Characteristic A026E004-0A7D-4AB3-97FA-F1500F9FEB8B 14:49:31,Connected Device,normal,Discovered Client Characteristic Configuration for Characteristic A026E038-0A7D-4AB3-97FA-F1500F9FEB8B

cagnulein commented 1 year ago

@davebattles great! are you on android? or do you have at least an android device?

davebattles commented 1 year ago

I'm about to go to bed, but I can put one or two old android ones to charge while I sleep, sure.

cagnulein commented 1 year ago

ok, perfect. i just need that you follow this https://github.com/cagnulein/qdomyos-zwift/blob/master/docs/20_supported_devices_and_applications.md#android-device with the wahoo app and change manually the fan level from the 0 to the max step by step and reverse

Let me know

Il giorno dom 5 mar 2023 alle 06:48 David Flores @.***> ha scritto:

I'm about to go to bed, but I can put one of two old ones to charge, sure.

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

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

davebattles commented 1 year ago

here you go. I opened the wahoo app and switched from HR (heart rate) to SPD (speed) to manual (starts @25% speed). I took it up to 100% back down to 1% a few times I'll do it again if I did it poorly.

https://www.mediafire.com/file/qksqt3ufpx5wpir/wahooheadwind.zip/file

cagnulein commented 1 year ago

thanks! i will check this tomorrow!

Il giorno dom 5 mar 2023 alle 19:41 David Flores @.***> ha scritto:

here you go. I opened the wahoo app and switched from HR (heart rate) to SPD (speed) to manual (starts @25 https://github.com/25% speed). I'll do it again if I did it poorly.

https://www.mediafire.com/file/qksqt3ufpx5wpir/wahooheadwind.zip/file

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

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

cagnulein commented 1 year ago

btsnoop_hci.zip

cagnulein commented 1 year ago

perfect @davebattles it looks very simple to implement! I'm doing right now @Bugeater624 are you still interested?

cagnulein commented 1 year ago

done, let me know if you want the new beta to test this

davebattles commented 1 year ago

Wow that was quick. Yeah I'd love to test it.

cagnulein commented 1 year ago

@davebattles send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS. Thanks

davebattles commented 1 year ago

I'm not sure if you saw my testflight beta comment, but I have hanging, disconnecting from echelon in the new beta. iPhone client would minimize the app and the bluetooth connection would drop. iPad didnt minimize the app but would still drop the connection. I can test the android app to see if something similar happens.

im going to try the pc version and see if it persists.

cagnulein commented 1 year ago

no @davebattles I'm not receiving testflight notification (it doesn't have it at all). so the app is crashing? do you have have a debug log? if you disable the headwind new settings everything works as usual?

cagnulein commented 1 year ago

@davebattles I read now the comment in the testflight. QZ is not supposed to run on background on iOS. The only way to keep it in "background" is to use the split view on iPadOS. On android, instead, you can enabling the notification icon settings in the experimental settings and restart QZ. I will build an android one later today.

But if you use QZ on foreground, the fan is working? We should start from this :)

davebattles commented 1 year ago

Yeah if I have the headwind option off it doesnt disconnect from the echelon bike. I did a 40 min ride like this with the beta with no issues. When I turn it on (headwind) it finds the echelon bike but after 30 seconds or so it disconnects. It doesnt seem like I can get the fan to respond with qz during this time and a few tries using the manual setting 0-100 and tapping on the fan control widget. heartrate control also didnt seem to kick in with 120-170 settings and even 1-90 settings.

p.s. I wasnt running QZ in the background, something in qz with headwind enabled would minimize the app and stop it. It does it by itself.

cagnulein commented 1 year ago

ok @davebattles send me a debug log with the headwind setting enabled so i can debug it. i wrote the code but of course i didn't be able to test anything since i don't have the fan :)

stale[bot] commented 1 year 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 1 year ago

@davebattles any news about this? @Bugeater624 are you still interested on this?

jonathancolledge commented 1 year ago

for sure i need to do a patch in order to make it work , but it's impossible to know without having it

maybe @jonathancolledge can help us with this

I'm searching through my mentions to see what I missed. Sadly I don't have a head wind!

cagnulein commented 1 year ago

@jonathancolledge nevermind, I thought you own it :) Baby don't let you sleep, ah? :D

jonathancolledge commented 1 year ago

@jonathancolledge nevermind, I thought you own it :) Baby don't let you sleep, ah? :D Haha, was just up!

davebattles commented 1 year ago

@davebattles any news about this? @Bugeater624 are you still interested on this?

I got covid at one point and couldn't be on the bike. Im all good now. Do you have a guide for taking logs of the bike app crashing & not connecting with an iOS or android device?

cagnulein commented 1 year ago

oh sorry to hear this @davebattles i hope you are better now! yes for the debug log check this https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

davebattles commented 1 year ago

Wahooheadwinddebuglogs.zip

when it crashed it made a few log files in a short time period, so i had to attach them all =/

Explanation of issue: Wahoo fan disabled = qz runs fine, no crashing. Enabled wahoo fan on manual = no crashing so far but fan doesnt respond Enabled wahoo heartrate = qz app disconnects from bike and the app unfocuses (doesn't fully close, but now I see the iphone gui)

cagnulein commented 1 year ago

@davebattles got the issue! I'm fixing it! send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS in order to get the new beta! Thanks

stale[bot] commented 1 year 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.

davebattles commented 1 year ago

The crashing is completely gone and the disconnects no longer happen. However I can't get headwind fan control to work. I've tried everything at least 20 times to make sure. I'm unsure why it won't engage the fan. I'm wondering if I should start learning C++ so I can test stuff.

cagnulein commented 1 year ago

@davebattles great! Share a debug log and I can check it.

stale[bot] commented 1 year 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.

davebattles commented 1 year ago

Manual speed.zip

I'm not sure this will help. I've been messing around trying to get it to respond with no success on pc as well.

cagnulein commented 1 year ago

@davebattles thanks. Checked the log: the main issue about this one is that the bike is not connected to QZ. Could you please try to redo this, and before trying to change the fan speed, try to check that the cadence or the wattage is going to the QZ tile. Let me know!

stale[bot] commented 1 year 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 1 year ago

@davebattles any news? @Bugeater624 are you still interested?

davebattles commented 1 year ago

I am, I just genuinely left town for a couple of weeks. I get back in tonight so expect some logs soon as I get back to my bike. I will be extra careful to connect everything and document it.

cagnulein commented 1 year ago

ok no problem :)

Il giorno gio 15 giu 2023 alle 16:56 David Flores @.***> ha scritto:

I am, I just genuinely left town for a couple of weeks. I get back in tonight so expect some logs soon. I will be extra careful to connect everything and document it.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1281#issuecomment-1593230992, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWAJ7TJCQ7535ZPD5IDXLMPCBANCNFSM6AAAAAAU6FLUGY . You are receiving this because you modified the open/close state.Message ID: @.***>

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

davebattles commented 1 year ago

June20debugwahoo.zip

the qz tile for the fan was being updated during my ride and was going from 80-90-80-100 correctly when using the power setting, however the fan was never engaged, didnt turn on at the start of the ride or afterwards.

I want to make sure you know, you probably do.. It should be noted that the fan cannot be paired to my phone. I am relying on the qz app to make that connection for me.

life has calmed down so i'm going to be doing rides every single day now.

cagnulein commented 1 year ago

thanks @davebattles !

life has calmed down so i'm going to be doing rides every single day now.

that's an awesome news!

I want to make sure you know, you probably do.. It should be noted that the fan cannot be paired to my phone. I am relying on the qz app to make that connection for me.

yes I'm aware of this, this is the right behaviour.

the qz tile for the fan was being updated during my ride and was going from 80-90-80-100 correctly when using the power setting, however the fan was never engaged, didnt turn on at the start of the ride or afterwards.

I guess I fixed it now, I will send you another one later today!

davebattles commented 1 year ago

Well it's definitely working now! Didn't wait to finish my ride to tell you. I'll be trying the different modes more to see if there are things that need to be changed but heart and power mode run like I would expect.

cagnulein commented 1 year ago

great news @davebattles ! let me know if I can improve it somehow!

stale[bot] commented 1 year 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 1 year ago

I noticed that my headwind works only if i put in manually first. I guess I understood why debug-lun_ott_30_05_34_50_2023.zip