Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iFit Virtual Device Implementation #441

Open
jonathancolledge opened this issue Sep 14, 2021 · 162 comments
Open

iFit Virtual Device Implementation #441

jonathancolledge opened this issue Sep 14, 2021 · 162 comments
Assignees
Milestone

Comments

@jonathancolledge
Copy link

jonathancolledge commented Sep 14, 2021

iFit can't connect to QZ. it sees a machine called I_EB, but can't connect to it. EDIT: i_EB may not be QZ my rower saw that when QZ was off - it looks like ifit can't see any device. I have Virtual iFit turned on

Of note I'm using a Concept2 Rowing Erg with PM5 (my elliptical is in storage as we have moved to a smaller house). QZ connects to the PM5' but says connecting all the time...

debug-Tue_Sep_14_03_56_12_2021.log

@jonathancolledge jonathancolledge added the bug Something isn't working label Sep 14, 2021
@jonathancolledge
Copy link
Author

jonathancolledge commented Sep 14, 2021

I also tried with my Wahoo Kickr. QZ shows some data, but still says connecting, rather than device connected. I hope this is the right log...

I have put deviceConnected(); after line 284 in homeform.cpp for my elliptical, does that affect this?

debug-Tue_Sep_14_04_17_17_2021.log

Is the fact that iFit can't see anything due to the QZ connection with my equipment?

Screenshot_20210914_051912_com.ifit.wolf.jpg

@cagnulein
Copy link
Owner

cagnulein commented Sep 14, 2021 via email

@jonathancolledge
Copy link
Author

Ah, OK, then see second post (sorry edited it as you replied) - I tried my Kickr (bike trainer) and couldn't get it to work.

As an aside, the Kickr has worked to a degree on the Android app, but incline is not correct. Wahoo uses a proprietary version of FTMS that isn't quite the same. I'll open another issue for that with a log.

@cagnulein
Copy link
Owner

cagnulein commented Sep 14, 2021 via email

@cagnulein cagnulein added ifit and removed bug Something isn't working labels Sep 14, 2021
@cagnulein cagnulein changed the title [BUG] iFit Virtual Device Implementation Sep 14, 2021
@cagnulein cagnulein added this to the 2.8 milestone Sep 14, 2021
@cagnulein
Copy link
Owner

@jonathancolledge in your log i saw a connection from iFit with your KICKR. When you press connect on iFit what happens precisely?

@cagnulein
Copy link
Owner

@jonathancolledge try to pull and build again. i managed another frame. thanks, it will take a while handling all the frames from iFit

@jonathancolledge
Copy link
Author

Great, I've left it building ready for after school run!

@jonathancolledge
Copy link
Author

debug-Tue_Sep_14_09_19_16_2021.log
debug-Tue_Sep_14_09_17_37_2021.log

Here are the two logs that correspond to video I'm just about to post.

@jonathancolledge
Copy link
Author

Here's the video to go with the logs in the post above. It got further than last time. https://youtu.be/aLUlTUSbvOs

cagnulein pushed a commit that referenced this issue Sep 14, 2021
@cagnulein
Copy link
Owner

@jonathancolledge great! we're making progress! i added other 3 frame's types so pull it and build it again when you have the time :) thanks!

@jonathancolledge
Copy link
Author

debug-Tue_Sep_14_10_36_27_2021.log
debug-Tue_Sep_14_10_34_30_2021.log

Same problem. Do these help?

@cagnulein
Copy link
Owner

cagnulein commented Sep 14, 2021 via email

@cagnulein
Copy link
Owner

@jonathancolledge fixed also this. we're going on! i guess we're almost there. pull it and build it :D

@cagnulein cagnulein reopened this Sep 14, 2021
@jonathancolledge
Copy link
Author

Same problem, I've posted on #442 Maybe that has something to do with it

@cagnulein
Copy link
Owner

Ok, we made some steps, now the connection is alive but for some reason iFit doesn't like it. iFit shows always the same error that you show me in the video? @jonathancolledge

@jonathancolledge
Copy link
Author

I didn't get the 65003 error or whatever it was, just thisScreenshot_20210915_044813_com.ifit.wolf.jpg

Then I kept pressing close this popped up
Screenshot_20210915_044838_com.ifit.wolf.jpg

@cagnulein
Copy link
Owner

mmm interesting! i will investigate about the threshold thing! Thanks

@cagnulein
Copy link
Owner

cagnulein commented Sep 16, 2021 via email

@jonathancolledge
Copy link
Author

Enjoy your honeymoon!

@cagnulein
Copy link
Owner

a lot of steps forward today using this snoof log
btsnoop_hci (8).log

have to manage this for tomorrow "ff0d0204020907"
i also create a branch for this in order to simulate it quickly

@cagnulein
Copy link
Owner

problem fixed @pushing3am i hope the new one will be the good one ;)

@pushing3am
Copy link

Here is the latest, thanks!
debug-Thu_May_19_12_09_55_2022.log

@cagnulein
Copy link
Owner

@pushing3am ok the workaround that I did worked but it cause a newer issue, so it doesn't seem to be the right way. I need to revert it. Do you have also an iOS device to use for QZ? I would like to see if it's better. I never tried qz android to ifit android so maybe this is causing this. I would like to check the qz ios to ifit android scenario. Let me know

cagnulein added a commit that referenced this issue Jun 19, 2022
iFit Virtual Device Implementation #441
@cagnulein
Copy link
Owner

debug-Sun_Aug_21_08_31_18_2022.log
new packet to handle

@kadaan
Copy link

kadaan commented Mar 20, 2023

QZ iOS to iFit android seems to work quite well. The main issue I have is when the workout is over iFit gets to the finish page. Once closing the finish page iFit hangs for a while with the text "Loading workout". Then it changes to saying "Canceling workout". I've waited a while and this never seems to end. I have to force close iFit and then reopen it to be able to move on.

@cagnulein
Copy link
Owner

yes it's a known issue. probably i have to handle the end frame but i need a debug log from a real ifit device to do so. is this blocking?

@kadaan
Copy link

kadaan commented Mar 20, 2023

Nope, just annoying. Hopefully someone with a real iFit machine can provide an example end frame. Do you know if there are any QZ users with real iFit devices?

@cagnulein
Copy link
Owner

yes sure, there are a lot. and also there are a lot here on github too. we can check on previous ifit logs that i used to implement ifit devices on qz but it will take a while

@bkeown64
Copy link

bkeown64 commented Sep 9, 2024

debug-Mon_Sep_9_05_44_11_2024.log

Similar issue with my Echelon Rower trying to connect to iFit. It sees my rower (I renamed phone I_EL) on my QZ app running on my Galaxy S24, but when connecting, my QZ app crashes.

@cagnulein
Copy link
Owner

debug-Mon_Sep_9_05_44_11_2024.log

Similar issue with my Echelon Rower trying to connect to iFit. It sees my rower (I renamed phone I_EL) on my QZ app running on my Galaxy S24, but when connecting, my QZ app crashes.

hi! virtual rower it's not supported on ifit app from qz yet.

@bkeown64
Copy link

bkeown64 commented Sep 9, 2024

Thanks for the quick reply. I did finally get my bike to connect to iFit this AM (I unchecked all my peloton settings and it now seems to work) and am very excited. Looking forward to the day that you get the rower on iFit working. Do you recommend any other 3rd party apps to work with QZ and the Echelon rower?

@cagnulein
Copy link
Owner

@bkeown64 did you check kinomap or holofit or vzfit ?

@bkeown64
Copy link

bkeown64 commented Sep 9, 2024 via email

@bkeown64
Copy link

Hi Roberto, I too am having iFit connect issues. I am unable to see QZ running devices (with Virtual iFit checked in Experimental settings) on tablets running iFit. The first debug file (debug-iPhone15QZ to Android running iFit) will show that I have successfully connected my Schwinn IC4 to QZ but on the Android tablet, no devices show up when attempting to pair iFit to the iPhone. The second debug file (Samsung S24 QZ to iPad running iFit) is the opposite scenario where I have successfully connected my Schwinn IC4 to the QZ on my Samsung S24 but iFit does not see the Samsung/QZ when attempting to pair it iFit to Samsung. [debug-iPhone15 QZ to Android tablet running iFit.log]

(https://github.com/user-attachments/files/18083958/debug-iPhone15.QZ.to.Android.tablet.running.iFit.log)
GalaxyS24 QZ to iPad running iFit.log

@cagnulein
Copy link
Owner

@bkeown64 I thought you have disconnection issues after 2 minutes. Wasn't it?

@bkeown64
Copy link

bkeown64 commented Dec 10, 2024 via email

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@bkeown64
Copy link

bkeown64 commented Dec 10, 2024 via email

@cagnulein
Copy link
Owner

@bkeown64 Could you please make screenshots?

For sure qz on iPhone seems not configured with ifit setting enabled in the experimental settings. Are you sure about this?

@bkeown64
Copy link

bkeown64 commented Dec 10, 2024 via email

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@bkeown64
Copy link

bkeown64 commented Dec 10, 2024 via email

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@bkeown64
Copy link

bkeown64 commented Dec 10, 2024 via email

@bkeown64
Copy link

bkeown64 commented Dec 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants