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

iFit Virtual Device Implementation

Open jonathancolledge opened this issue 3 years ago • 141 comments

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 avatar Sep 14 '21 04:09 jonathancolledge

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

jonathancolledge avatar Sep 14 '21 04:09 jonathancolledge

I added ifit only for bikes now :)

Il giorno mar 14 set 2021 alle 06:21 jonathancolledge < @.***> ha scritto:

debug-Tue_Sep_14_04_17_17_2021.log https://github.com/cagnulein/qdomyos-zwift/files/7158841/debug-Tue_Sep_14_04_17_17_2021.log

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/441#issuecomment-918788253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWHL7FV6BBQLJIGM2CTUB3EWDANCNFSM5D7HCGGA .

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

cagnulein avatar Sep 14 '21 04:09 cagnulein

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.

jonathancolledge avatar Sep 14 '21 04:09 jonathancolledge

Hah ok, I will check it. Thanks

Il giorno mar 14 set 2021 alle 06:30 jonathancolledge < @.***> ha scritto:

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.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/441#issuecomment-918791731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWH3YLZEM5NSIHCMKRTUB3FVJANCNFSM5D7HCGGA .

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

cagnulein avatar Sep 14 '21 04:09 cagnulein

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

cagnulein avatar Sep 14 '21 06:09 cagnulein

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

cagnulein avatar Sep 14 '21 06:09 cagnulein

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

jonathancolledge avatar Sep 14 '21 06:09 jonathancolledge

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 avatar Sep 14 '21 09:09 jonathancolledge

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

jonathancolledge avatar Sep 14 '21 09:09 jonathancolledge

@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!

cagnulein avatar Sep 14 '21 09:09 cagnulein

Thanks, I will check them after lunch

Il giorno mar 14 set 2021 alle 12:41 jonathancolledge < @.***> ha scritto:

debug-Tue_Sep_14_10_36_27_2021.log https://github.com/cagnulein/qdomyos-zwift/files/7161146/debug-Tue_Sep_14_10_36_27_2021.log debug-Tue_Sep_14_10_34_30_2021.log https://github.com/cagnulein/qdomyos-zwift/files/7161147/debug-Tue_Sep_14_10_34_30_2021.log

Same problem. Do these help?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/441#issuecomment-919032183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFIJ7NCYFKHRLCPSPDUB4RGJANCNFSM5D7HCGGA .

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

cagnulein avatar Sep 14 '21 11:09 cagnulein

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

cagnulein avatar Sep 14 '21 12:09 cagnulein

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

jonathancolledge avatar Sep 15 '21 03:09 jonathancolledge

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

cagnulein avatar Sep 15 '21 06:09 cagnulein

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

jonathancolledge avatar Sep 15 '21 06:09 jonathancolledge

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

cagnulein avatar Sep 15 '21 06:09 cagnulein

i will come back on this after my honey moon, thanks for the feedbacks!

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

Il giorno mer 15 set 2021 alle ore 08:37 jonathancolledge < @.***> ha scritto:

I didn't get the 65003 error or whatever it was, just this[image: Screenshot_20210915_044813_com.ifit.wolf.jpg] https://user-images.githubusercontent.com/4342400/133382884-9035d825-76c6-4e2a-bbb6-2ed512db781a.jpg

Then I kept pressing close this popped up [image: Screenshot_20210915_044838_com.ifit.wolf.jpg] https://user-images.githubusercontent.com/4342400/133382933-b11cc2e8-beb1-4773-af28-04eb32d42cb1.jpg

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/441#issuecomment-919741425, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWETLQPVZNWFAQPODFDUCA5JLANCNFSM5D7HCGGA .

cagnulein avatar Sep 16 '21 06:09 cagnulein

Enjoy your honeymoon!

jonathancolledge avatar Sep 16 '21 06:09 jonathancolledge

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 avatar Dec 12 '21 18:12 cagnulein

hi @jonathancolledge how are you? I don't know if you are still interested on this. Anyway i will not test it again probably until tonight. If you want to make a test with the commit https://github.com/cagnulein/qdomyos-zwift/commit/07825071a0edc8ead9f0e2584c23c4e264b3255c (be sure to use the ifit-virtualdevice branch, not the master)

also if you see in the log the text "YOU HAVE TO MANAGE ME!" means that i forgot something, so please send me the log and i will handle it.

cagnulein avatar Dec 13 '21 07:12 cagnulein

ifit.log no errors, but the workout doesn't load

cagnulein avatar Dec 14 '21 20:12 cagnulein

Hi, sorry for the late reply. I can help test today if you need?

jonathancolledge avatar Dec 16 '21 08:12 jonathancolledge

@jonathancolledge thanks but i guess i can do all by myself. i fixed the error that you see some months ago, i but when i press on the "start workout button", the iFit app thinks for a while and then goes back without saying anythin :( i have to try to understand it

cagnulein avatar Dec 16 '21 08:12 cagnulein

@cagnulein Let me know if there is anything I can do to help test/share debug files. I have an Ex-5 Bike and the NordicTrack T6.5S treadmill. I have iOS and Android devices available and an active iFit subscription.

hoveeman avatar Jan 25 '22 20:01 hoveeman

I just need time, actually I'm overwhelmed by requests :(

Il giorno mar 25 gen 2022 alle 21:55 hoveeman @.***> ha scritto:

@cagnulein https://github.com/cagnulein Let me know if there is anything I can do to help test/share debug files. I have an Ex-5 Bike and the NordicTrack T6.5S treadmill. I have iOS and Android devices available and an active iFit subscription.

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

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

cagnulein avatar Jan 26 '22 05:01 cagnulein

No problem at all! No rush on this. Just wanted to throw out any help if needed. Thanks for everything!

hoveeman avatar Jan 26 '22 12:01 hoveeman

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 10 '22 13:02 stale[bot]

@jonathancolledge i did some steps forward to this. I now see a connection but it doesn't keep it for more then 5 seconds. I guess they need to see something moving. It's really hard. I will check this again in the next days. If you wanna try it to double confirm what I'm seeing you're welcome!

cagnulein avatar Mar 16 '22 10:03 cagnulein

I tried, but it wouldn't connect at all. Was using the beta on the phone. Should I have built on the Pi and try that?

jonathancolledge avatar Mar 19 '22 14:03 jonathancolledge