qdomyos-zwift icon indicating copy to clipboard operation
qdomyos-zwift copied to clipboard

Kickr Snap

Open cagnulein opened this issue 2 years ago • 88 comments

image

cagnulein avatar Jan 15 '22 21:01 cagnulein

image

cagnulein avatar Jan 15 '22 21:01 cagnulein

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.

stale[bot] avatar Feb 04 '22 15:02 stale[bot]

Hi, I am trying to implement support for the wahoo custom cycling power service (BLE) in my project, but I don't have access to a trainer that has the custom characteristic (Wahoo Kickrs before 2018 and the Snap). I got most of it working with the great help of remote testers, but some functions still remain a mystery. In particular I am trying to find the meaning of all of the response codes and the proper format of the unlock/init operation.

Best case I am looking for any kind of log of a successful interaction between one of those trainers and a supporting client app, that has the messages flowing in both directions (like in nRF Connect).

That's the corresponding issue in my repo and that's my code.

Thanks!

dvmarinoff avatar Feb 08 '22 13:02 dvmarinoff

wow great @dvmarinoff great opensource collaboration here! Actually i don't have Kickr snap users right now, but i will add the code if someone needs it! Thanks!

cagnulein avatar Feb 08 '22 13:02 cagnulein

I need it. I am using the Wahoo KickR Snap. The app recognized the snap, but just doesn't connect. What would you need from me to make that happen?

Shont1975 avatar Feb 24 '22 16:02 Shont1975

Just so you know... I am hoping to use this app to add dynamic resistance to VZFIT. VZFIT is a popular up and coming VR exercise/cycling app. I think you have worked with them before. I would love to be able to recommend this app to others that may be looking to add dynamic resistance to their VZFIT experience. :)

Shont1975 avatar Feb 24 '22 16:02 Shont1975

@Shont1975 yes i know what vzfit is, check #680 :) i just need a little of time, my wife is to the hospital at the moment, but i will definitely do Thanks

cagnulein avatar Feb 24 '22 17:02 cagnulein

Thanks. I wish you and your wife the best! Family comes first!!!

Shont1975 avatar Feb 24 '22 18:02 Shont1975

ok i'm looking into this @Shont1975 this code could be helpful to me https://github.com/codeinversion/sensors-swift-trainers/blob/93db8dd000e47233435a41ba061c23541ee18bb4/Sources/SwiftySensorsTrainers/WahooTrainerSerializer.swift#L25 along with the @dvmarinoff one :)

cagnulein avatar Feb 25 '22 10:02 cagnulein

good news @Shont1975 i implemented this! The first implementation it's just to check that everything is working, so i would like to see if you can connect with QZ to your bike and if you can change the resistance from the resistance tile on QZ. The version will be the 2.10.35 Send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS. Thanks

cagnulein avatar Feb 25 '22 13:02 cagnulein

Thanks. Just sent the email per your request. :)

Shont1975 avatar Feb 25 '22 21:02 Shont1975

The App store is showing 2.9.47 as the latest update. No updates available yet for version 2.10.35. Forgive me if I am mistaken, I don't know much about programing, etc. But I am happy to provide as much support as I can. :)

Shont1975 avatar Feb 25 '22 22:02 Shont1975

@Shont1975 sent it now, i was sleeping, i'm based in italy;)

cagnulein avatar Feb 26 '22 05:02 cagnulein

@Shont1975 did you test it?

cagnulein avatar Feb 28 '22 10:02 cagnulein

Hi. Yes! I tested it on Saturday for about 2.5 hours.

With the beta update, the app immediately connected with the Wahoo Kickr Snap trainer... no issues there.

The trainer did provide "dynamic resistance" while I was riding. I am very happy that it worked, and that you were able to help resolve the issue so quickly!

I know you said that connecting with the trainer was just the first step. There were a few minor issues that I experienced:

  • The automatic resistance seemed to be all or nothing. When I first start the application, and start riding... I need to decrease resistance because on level ground it is already set too high.
  • While riding there was no gradual resistance... "zero to sixty" is how I would describe it... I was either in my normal gear, or suddenly downshifting to my lowest gear in order to compensate for the change.
  • My RPMs seemed over reported by a factor of two. Normally I am riding at around 100-120rpms at roughly 20mph. Using the same gear ratio.. this time it showed I was riding at 200-220 RPMs. The VZFIT app I use caps speed at around 20mph... So I only assume that if there wasn't a cap, I would have been riding at twice the speed or 40mph.

Is there a way to dial-in some of these issues? Smooth out the resistance? address the RPMs?

Shont1975 avatar Feb 28 '22 16:02 Shont1975

Hi. Yes! I tested it on Saturday for about 2.5 hours.

With the beta update, the app immediately connected with the Wahoo Kickr Snap trainer... no issues there.

yeah!

The trainer did provide "dynamic resistance" while I was riding. I am very happy that it worked, and that you were able to help resolve the issue so quickly!

wow! i'm impressed of myself :D

I know you said that connecting with the trainer was just the first step. There were a few minor issues that I experienced:

  • The automatic resistance seemed to be all or nothing. When I first start the application, and start riding... I need to decrease resistance because on level ground it is already set too high.

Did you play with the zwift resistance offset and gain the bike settings of QZ? I also need a debug log from QZ to understand this. Could you please provide me it?

  • While riding there was no gradual resistance... "zero to sixty" is how I would describe it... I was either in my normal gear, or suddenly downshifting to my lowest gear in order to compensate for the change.

Same as above

  • My RPMs seemed over reported by a factor of two. Normally I am riding at around 100-120rpms at roughly 20mph. Using the same gear ratio.. this time it showed I was riding at 200-220 RPMs. The VZFIT app I use caps speed at around 20mph... So I only assume that if there wasn't a cap, I would have been riding at twice the speed or 40mph.

This is easy to fix if you're sure about the 2x effect. Please just confim me this.

Is there a way to dial-in some of these issues? Smooth out the resistance? address the RPMs?

Yes sure! I'm here to fix everything :)

cagnulein avatar Feb 28 '22 16:02 cagnulein

@emalafeew other VzFit users here :) BTW my Oculus finally arrived today. I will download your app tomorrow :)

cagnulein avatar Feb 28 '22 16:02 cagnulein

Did you play with the zwift resistance offset and gain the bike settings of QZ? I also need a debug log from QZ to understand this. Could you please provide me it? I didn't. How can I get that Log to you? is there easy step-by-step instructions?

This is easy to fix if you're sure about the 2x effect. Please just confim me this. Yes. I have a high confidence this is accurate.

Shont1975 avatar Feb 28 '22 17:02 Shont1975

@Shont1975 debug log instructions https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

cagnulein avatar Feb 28 '22 17:02 cagnulein

Okay, Debug log was not enabled on last session. I have enabled the log for my next session. I should be able to share it later tonight or tomorrow.

Shont1975 avatar Feb 28 '22 19:02 Shont1975

@Shont1975 cadence fixed. It will be in the 2.10.38 or above

cagnulein avatar Mar 01 '22 08:03 cagnulein

I attempted to attach the debug file. Too big to send via email... Github is not allowing me to attach it here.

Shont1975 avatar Mar 01 '22 17:03 Shont1975

Zip it,you should be able to attach here

cagnulein avatar Mar 01 '22 19:03 cagnulein

Hopefully that worked. :) Thanks for being patient with me.

Shont1975 avatar Mar 01 '22 22:03 Shont1975

@Shont1975 how many resistance level has your bike? instead of playing with the target resistance minus and plus button did you try to use the gears tile?

cagnulein avatar Mar 02 '22 07:03 cagnulein

I didn't. I don't really know how to use the Gears tile or the Zwift resistance offset. What settings should I use? Resistance seems to come up suddenly, and does not always correspond with noticeable incline. Sometimes I will be going down a steep hill, and the bike will suddenly act as if I am climbing a steep hill instead. I just don't know how to smooth it out, and make the resistance more gradual and natural. I realize that the map data provided by Google through VZFIT might be contributing to this experience as well. I would appreciate any advice you might offer.

Shont1975 avatar Mar 02 '22 18:03 Shont1975

How many resistance level has your bikes?in your log I saw high spike when you pressed plus and minus buttons on the target resistance tile, that's why I talked about the gear tile. Did you try to don't touch anything on the UI of qz? Did you see the spikes anyway? We need to create a simple scenario to understand your issue. So the simplest one is zwift and qz without touching the UI. Let me know your thoughts

cagnulein avatar Mar 02 '22 20:03 cagnulein

Yes... with QZ starts I immediately see a spike. I can't even peddle at the start of my ride on level ground. The resistance is too high. Yesterday, I tried not to touch anything at first. I just downshifted the gears on my bike, hoping the issue would go away. The result was that the behavior was even more unpredictable. I was riding downhill when I would suddenly hit high resistance, I was riding on flat ground when I would suddenly hit high resistance... I was riding up a very steep hill for a very long time... no resistance at all.

I didn't look for the "Gear tile" with my headset on, I am riding blind, so I will look for it when I am riding today.

I don't understand the Zwift setting. How can I use Zwift to see if it solves my problem? When I look at it, it gives a "Zwift offset" and asked for a number. What numbers do I enter? Am I even looking at the right setting?

I understand keeping things simple for a test. I would be happy to just use the Zwift setting if possible, and not touch anything else... I am just not sure how to do that and still be able to ride.

Shont1975 avatar Mar 02 '22 22:03 Shont1975

@Shont1975 we have a lot of options for your bike. actually i'm controlling resistance due to the inclination sent by zwift and adding zwift offset and gain. but i can also add the builtin feature of your bike to send directly the grade. i would like to double check it again your previous log in order to understand these spikes, because i'm not sending spikes. i will let you know

cagnulein avatar Mar 03 '22 05:03 cagnulein