cagnulein / qdomyos-zwift

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

Proform carbon t14 No data shown [BUG] #2272

Closed sanduler closed 1 month ago

sanduler commented 1 month ago

Describe the bug No data shown on the iOS app

To Reproduce Steps to reproduce the behavior: iFit companion app set to 'other' and relaunched IP of treadmill set in the Proform IP setting (and is correct) iFit manual workout started Launch on the iOS app but no connection is shown

Expected behavior Expect to see the data

Smartphone (please complete the following information): iPhone 12 Pro Max log.txt

sanduler commented 1 month ago

Also tried "other" for device. Still couldnt get the data to show up. Here is the log file debug.txt

cagnulein commented 1 month ago

hi @sanduler are you able to get also a debug log from qz? https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

sanduler commented 1 month ago

Yes I can. debug-Tue_Apr_2_22_37_58_2024.log

cagnulein commented 1 month ago

Ok the communication with the companion is OK. But it the companion seems thst can't read the metrics from the wolf logs directory. Can you pull here the whole. wolflog directory from the treadmill?

Also, while you are doing a workout, can you try to run a adb logcat from your pc : I would like to see if we can get the metrics from it

Thanks

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

Il giorno mer 3 apr 2024 alle 05:43 Ruben Sanduleac < @.***> ha scritto:

Yes I can. debug-Tue_Apr_2_22_37_58_2024.log https://github.com/cagnulein/qdomyos-zwift/files/14846381/debug-Tue_Apr_2_22_37_58_2024.log

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

sanduler commented 1 month ago

Here are the wolflogs 2024-04-02_logs.0.txt 2024-04-03_logs.txt

cagnulein commented 1 month ago

Thanks 6am here in Italy, I will check it later today

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

Il giorno mer 3 apr 2024 alle 06:03 Ruben Sanduleac < @.***> ha scritto:

Here are the wolflogs 2024-04-02_logs.0.txt https://github.com/cagnulein/qdomyos-zwift/files/14846483/2024-04-02_logs.0.txt 2024-04-03_logs.txt https://github.com/cagnulein/qdomyos-zwift/files/14846484/2024-04-03_logs.txt

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

sanduler commented 1 month ago

Here is the adb logcat log while the treadmill was working Terminal Saved Output.txt

sanduler commented 1 month ago

Thanks 6am here in Italy, I will check it later today Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud Il giorno mer 3 apr 2024 alle 06:03 Ruben Sanduleac < @.> ha scritto: Here are the wolflogs 2024-04-02_logs.0.txt https://github.com/cagnulein/qdomyos-zwift/files/14846483/2024-04-02_logs.0.txt 2024-04-03_logs.txt https://github.com/cagnulein/qdomyos-zwift/files/14846484/2024-04-03_logs.txt — Reply to this email directly, view it on GitHub <#2272 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWAFCJK3VK3EHSKVFWLY3N5RBAVCNFSM6AAAAABFUONDPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTGQ4DOMZYGY . You are receiving this because you were assigned.Message ID: @.>

No worries! I appreciate the help. Thank you!

cagnulein commented 1 month ago

ok i guess i got the issue. Your treadmill writes the wolflogs only at the end of the workout I guess, can you please confirm me this?

You can check this, doing a tail -f of the current wolflog and checking that it's changing when you change the speed for example on the treadmill.

If you see it changes I guess I'm missing something, if, otherwise, it doesn't change, we have to figure out where we can get the metrics.

Anyway there is a lot of possibility, so let's find the right solution for you!

Let me know!

sanduler commented 1 month ago

From what I understand, the wolflogs are written at the end of the workout. I attached the tail -f of the current wolflog as well. It seems to be changing. I appreciate you helping me out on this. adb_tail_log.txt

cagnulein commented 1 month ago

From what I understand, the wolflogs are written at the end of the workout.

On the other treadmills/bikes this is written during the workout, in append.

so in the log that you posted i see all the metrics that we need with an incremental timestamp: but you're saying that until the workout is running, you don't see anything in the file for the current workout?

sanduler commented 1 month ago

I might be wrong. I am not exactly sure. I ran tail -f while the workout was not running. Then I started the workout, and then finished it. This is what I got. adb_tail_log.txt

cagnulein commented 1 month ago

the problem of showing me the log is that i see the file complete, but we are looking if ifit append it during the workout, so only you can see this :)

so just do this test

if so, we are good to go, otherwise we have to find another way let me know!

sanduler commented 1 month ago

Yes I see it in the tail -f window. Its working all the time.

screenshot
cagnulein commented 1 month ago

just to confirm: you are seeing them in realtime, right? because if it's so also the companion can already get them and it should already work. Instead in the debug log from qz i can see only one repeating "changed" line over and over.

cagnulein commented 1 month ago

wait! got the issue!

cagnulein commented 1 month ago

it's "kph changed"

let me add this case too!

sanduler commented 1 month ago

Yes I can see them in real time.

cagnulein commented 1 month ago

@sanduler done! https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.43/QZCompanionNordictrackTreadmill.apk

I added your treadmill to the list of the devices in the companion. Select it and reboot the treadmill.

let me know if it's better

sanduler commented 1 month ago

QZ is still not receiving any data. Here are the steps I took.

  1. Uninstalled the old companion app.
  2. Installed the new one above
  3. Selected my device
  4. Rebooted
  5. Reinstalled the QZ Fitness app on my iPhone
  6. Added the ip address in the Proform IP.
  7. Clicked ok and restarted the app.
  8. Opened the iFit App
  9. started a manual workout.
  10. No data is coming through to the QZ app.
  11. Rebooted and tried the steps again, no luck. I added the log from the QZ app and the .wolf files

2024-04-03_logs.txt debug-Wed_Apr_3_10_22_33_2024.log

cagnulein commented 1 month ago

there is a setting error now. you set the ip in the proform treadmill ip setting but you have to set to the nordictrack 2950 one. so remove it completely from the actual one and press ok, and then set it back to the 2950 one let me know

sanduler commented 1 month ago

@cagnulein Good news!! I am receiving the data. The only thing is the +/- buttons are not working or are opening the notification menu.

cagnulein commented 1 month ago

that's great! yes about control I need a adb screenshot of your manual ifit window. there is a batch file for this in the install package folder

sanduler commented 1 month ago

Is this the one? screen

cagnulein commented 1 month ago

yes! i will try to implement this tomorrow!

sanduler commented 1 month ago

Thank you again! I really appreciate your help!

cagnulein commented 1 month ago

I did it @sanduler let me know if it's right https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.44/QZCompanionNordictrackTreadmill.apk

In case we just need to calibrate better the coordinates

sanduler commented 1 month ago

@cagnulein Updated. Thank you. It's working good. I really appreciate all the support on this issue.