cagnulein / qdomyos-zwift

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

Unable to connect qz companion installed on NordicTrack Commercial S10i Studio Cycle #1743

Closed glotano closed 8 months ago

glotano commented 10 months ago

Describe the bug Unable to connect qz companion installed on NordicTrack Commercial S10i Studio Cycle. I tried setting qz companion on s22i, studio bike pro 22, other, configuring the app on the phone accordingly. I also tried simulating treadmill 2950 and 1750 but the service installed on the bike does not communicate with the app on the phone. As additional information, I add that I installed qz companion on the bike by installing the apk since the pc could not communicate with the bike OS via adb. It was finding port 5555 closed. I attach the "qz fitness" logs extracted from the phone and a print screen showing that the service on the bike starts regularly.

P.S.: sorry for this question, which might be obnoxious, as I know I just have to wait :-) I noticed in the log I attached, a lot of error like this one

"Warning: qrc:/Home.qml qrc:/Home.qml:331: ReferenceError: rootItem is not defined". I realized that the android installed on the bike console has a setting, under the developer section that I have never seen on other android, the entry is called "root grant" and it expects text input (I attach photo)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): Version of Android installed on the Bike

Smartphone (please complete the following information):

Append a debug log

debug-Mon_Oct_30_11_57_53_2023.log 20231030_113329_resized

Additional context Both during the tests I did yesterday and after resetting the bike again and reinstalling qz companion, I noticed that Ifit crashes from time to time (the application is unresponsive). Screenshot_20231030-134829_resized Screenshot_20231030-135217_resized 20231030_142609_resized

20231030_124351_HDR_resized

20231030_141050_resized

20231030_141057_HDR_resized

cagnulein commented 10 months ago

Hi @glotano quickly checked the log: there is a major issue on it. You don't have to put the ip in the TDF4 ip, but in the TDF companion ip instead. So blank the tdf4 one and press ok and set it to the companion and press ok and restart qz. Send me a fresh log then Thanks!

glotano commented 10 months ago

HI @cagnulein, I followed your suggestion, changing the settings. I attach a photo of them and the updated log. Unfortunately the app is still not able to connect the bike. Thank you! Screenshot_20231030-144940_resized debug-Mon_Oct_30_14_44_23_2023.log

cagnulein commented 10 months ago

ok perfect @glotano now I see that the companion is sending messages but they are empty because it can't read any log from the ifit tablet. It could be possible because of 3 resons:

glotano commented 10 months ago

Hi @cagnulein, the Ifit app only crash from time to time, so only to confirm that I was able to do the test during the manual workouts. About the rest, once at home I will try to set it on 1750. On this point I have question, I have to leave all on qz app unchanged (studio bike)? I will also follow the third point. I will let you know as soon I will get the chance. Thank you Regards Giovanni

cagnulein commented 10 months ago

I have to leave all on qz app unchanged (studio bike)?

yes on QZ, the only setting that matter is the tdf companion ip setting in that menu.

I will also follow the third point. I will let you know as soon I will get the chance.

thanks!

glotano commented 10 months ago

Thanks to you @cagnulein! Your support is great.

glotano commented 10 months ago

Hi @cagnulein, I tried to run the command-line to get the permission, but the adb connection fails everytime, as when I tried to install the companion via adb, so I tried to install a tool on the bike's console to work locally but it fails anyway. It seems to me that the o.s. isn't able to start the service for debugging. I attached a video to show you what happens. Thank you! Regards Giovanni

https://github.com/cagnulein/qdomyos-zwift/assets/149379537/ff9149f5-6891-45e5-b35e-1a8be9eb92ae

cagnulein commented 10 months ago

@glotano as far as I know Ifit closes adb on the latest update so try to reset the bike console and don't update ifit and enable adb. be careful: adb is resetting at every reboot but we just need to enable one time to set that permission

Let me know

Another similar case here https://github.com/cagnulein/qdomyos-zwift/issues/1706#issuecomment-1784188720

glotano commented 10 months ago

Hi @cagnulein, Your support is absolutely fantastic! You are an outstanding person! Please, let me explain, I realized that the video was not uploaded and I was decreasing the resolution of it, I didn't have the time you already answered me (actually I had no doubt!). I really congratulate you for the great passion and commitment you apply. I will reset the machine and I will let you know. P.S.: Please understand me if I can't do everything right away. I do it at times when I have less work. I updated the video in this moment but I don't think you need it anymore :-)

glotano commented 10 months ago

Hi @cagnulein , I tried to reset the bike's console more than one time today. I installed a terminal and I realized that once enable the debugging mode and the usb debugging the bike's console doesn't start any daemon, so I started it manually using the command adb server-start. I don't understand why the adb debugging bind the service on localhost on port 5038, so on the wrong ip and on the wrong port. For that reason the pc isn't able to establish a connection with it. I tried also to switch the binding on the port 5555 setting ANDROID_ADB_SERVER_PORT=5555, killing the daemon and restarting it, but I still found it binding on localhost port 5038. I thought I could work locally at that point, to assign the permission, but I received an error. Please take a look at the pics attached and let me know if you have some suggestion. Thanks Regards Giovanni 20231031_180602_HDR_resized 20231031_181415_HDR_resized 20231031_183206_HDR_resized 20231031_181415_HDR~2_resized

cagnulein commented 10 months ago

thanks i will check it asap

Il giorno mar 31 ott 2023 alle 20:59 glotano @.***> ha scritto:

Hi @cagnulein https://github.com/cagnulein , I tried to reset the bike's console more than one time today. I installed a terminal and I realized that once enable the debugging mode and the usb debugging the bike's console doesn't start any daemon, so I started it manually using the command adb server-start. I don't understand why the adb debugging bind the service on localhost on port 5038, so on the wrong ip and on the wrong port. For that reason the pc isn't able to establish a connection with it. I tried also to switch the binding on the port 5555 setting ANDROID_ADB_SERVER_PORT=5555, killing the daemon and restarting it, but I still found it binding on localhost port 5038. I thought I could work locally at that point, to assign the permission, but I received an error. Please take a look at the pics attached and let me know if you have some suggestion. Thanks Regards Giovanni [image: 20231031_180602_HDR_resized] https://user-images.githubusercontent.com/149379537/279500031-87ed2958-ea5d-4d01-bc07-b72074d6c756.jpg [image: 20231031_181415_HDR_resized] https://user-images.githubusercontent.com/149379537/279500038-79ff92eb-89c1-44c7-ada3-b820bec50a52.jpg [image: 20231031_183206_HDR_resized] https://user-images.githubusercontent.com/149379537/279500048-995fa33c-4331-4277-8389-3a37b742d259.jpg [image: 20231031_181415_HDR~2_resized] https://user-images.githubusercontent.com/149379537/279500110-a7da2ee9-935d-409a-a8d1-d3d2ae3973f2.jpg

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

glotano commented 10 months ago

@cagnulein, please enjoy the evening and don't worry, it's not urgent. ;)

cagnulein commented 10 months ago

that error is because the app that you are using as terminal doesn't have root permissions.

adb from pc instead would have

since you have terminal access, if you start a manual workout and you go to the terminal app and try

logcat -f | grep Changed

what output do you have?

Il giorno mar 31 ott 2023 alle 21:02 glotano @.***> ha scritto:

@cagnulein https://github.com/cagnulein, please Enjoy the evening and don't worry, it's not urgent. ;)

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

glotano commented 10 months ago

Hi @cagnulein, I tried to run logcat -f | grep Changed but I get the following error back: "couldn't open output file: Read-Only file system". I tried to run only "logcat" during the manual workout and I took a picture, since the output is very short (but I don't know if that's what you need) 20231101_193701_resized

cagnulein commented 10 months ago

mmm interesting: are you able to pull the .wolflogs folder from the tablet? or at least send me some pictures of the most recent file?

glotano commented 10 months ago

Hi @cagnulein, not knowing whether it was a directory or a file (or a directory with similarly named files), I searched for anything with a name similar to wolflogs in the system. Unfortunately, there is no such thing. The picture is a little blurry, but anyway I used the command find / -type f,d,l -iname "wolflogs" P.S.: I realized in this moment you already write that's a folder :-) anyway I searched for all. That's not the only command I used but it should be enough to realize that the folder, unfortunately, doesn't exist. 20231101_205729_resized

cagnulein commented 10 months ago

the picture shows that find command is not available on your system.

you have to use "ls"

.wolflogs (with the "." at the beginning), it's usually on the root folder

show me your root folder

Il giorno mer 1 nov 2023 alle 21:05 glotano @.***> ha scritto:

Hi @cagnulein https://github.com/cagnulein, not knowing whether it was a directory or a file (or a directory with similarly named files), I searched for anything with a name similar to wolflogs in the system. Unfortunately, there is no such thing. The picture is a little blurry, but anyway I used the command find / -type f,d,l -iname "wolflogs" P.S.: I realized in this moment you already write that's a folder :-) anyway I searched for all. That's not the only command I used but it should be enough to realize that the folder, unfortunately, doesn't exist. [image: 20231101_205729_resized] https://user-images.githubusercontent.com/149379537/279788820-7a42ee34-3ec6-4132-a431-b54e3aad5833.jpg

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

glotano commented 10 months ago

@cagnulein, sorry, I didn't realize! Thank you. Anyway, I searched in the root folder and unfortunately it doesn't exist. 20231101_211608_resized

cagnulein commented 10 months ago

it's an hidden folder, you can't see it with ls without arguments.

did you try to do

ls /. and then press tab multiple times?

Il giorno mer 1 nov 2023 alle 21:23 glotano @.***> ha scritto:

@cagnulein https://github.com/cagnulein, sorry, I didn't realize! Thank you. Anyway, I searched in the root folder and unfortunately it doesn't exist. [image: 20231101_211608_resized] https://user-images.githubusercontent.com/149379537/279792228-7df756e6-c183-4b2a-9e8f-0852679a91e4.jpg

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

glotano commented 10 months ago

Unfortunately the terminal I installed doesn't have the tab but I tried to write the right name. From the root I typed "ls .wolflogs", the same if type "ls *wolflgogs"

20231101_213134_resized 20231101_214105_HDR_resized

cagnulein commented 10 months ago

Can you try to search any log that you can find?

glotano commented 10 months ago

Of course @cagnulein, I just tried to find the system logs in /var/log/messages without luck. Tomorrow I try to understand find more. Thank you!

glotano commented 10 months ago

Hi @cagnulein, Reading the companion dump logs, I understood that it writes the logs to the /mnt/sdcard directory. I did a manual workout to generate new logs. The most recent files, in the .wolflogs folder, should be the ones I attached but please let me know if you need the whole folder. Thanks Regards Giovanni P..S.: Please note that since I didn't find a file named like crashed Crash-2023-11-02, I attached all the file, named like crash*, I found,

FitPro_02Nov2023.txt

Error_02Nov2023.txt Workout_02Nov2023.txt Startup_02Nov2023.txt Wifi_02Nov2023.txt Updating_02Nov2023.txt Navigation_02Nov2023.txt MvxTrace_02Nov2023.txt HeartRate_02Nov2023.txt FitPro_02Nov2023.txt Fatal_02Nov2023.txt Error_02Nov2023.txt Dashboard_02Nov2023.txt Crash-2023-11-01 18.16.21.txt Crash-2023-11-01 18.14.47.txt Crash-2023-11-01 18.14.47 (1).txt Connection_02Nov2023.txt Combined_02Nov2023.txt Ble_02Nov2023.txt

Benchmark_02Nov2023.txt

cagnulein commented 10 months ago

FitPro_02Nov2023.txt

great! this works!

so you have in a path that I didn't managed, can you confirm that this file was in /mnt/sdcard ?

glotano commented 10 months ago

Hi @cagnulein, I confirm. I also attach two pics to confirm it. Screenshot 2023-11-02 153747 Screenshot 2023-11-02 153628

cagnulein commented 10 months ago

@glotano i don't remember if you test the c1750 setting in the companion, in the picture I see that you're using other. Could you please take a picture at the same log but with the c1750 device selected? (restart the bike after changing the device type in the companion)

Thanks!

glotano commented 10 months ago

Hi @cagnulein , we already tried with c1750, but the result is the same. I tried also using s22i, Gran tour pro bike, Proform Studio Bike Pro22, and also using the setting for 2950 treadmill. I tried again to user c1750, but the result is the same (picture attached). If you look to one of the first pics I sent you, (I was using Proform Studio Bike Pro 22 at that time) it always wrote the files in the sdcard folder. Anyway, only to let you know that the operating system started having problems since I installed the software. Before it would crash the Ifit app from time to time, now it starts giving problems to the OS itself (as per the attached picture). The problems disappear every time I reset the machine to factory settings Thanks Regards Giovanni 20231102_162629_HDR_resized 20231102_180313_resized

cagnulein commented 10 months ago

hi yes i remember but i don't have a picture of the test. in this picture i see device: null, are you sure you rebooted the device after selecting c1750?

looking at the log, the c1750 should be the right one for your device

let me know

Il giorno gio 2 nov 2023 alle 17:50 glotano @.***> ha scritto:

Hi @cagnulein https://github.com/cagnulein , we already tried with c1750, but the result is the same. I tried also using s22i, Gran tour pro bike, Proform Studio Bike Pro22, and also using the setting for 2950 treadmill. I tried again to user c1750, but the result is the same (picture attached). If you look to one of the first pics I sent you, (I was using Proform Studio Bike Pro 22 at that time) it always wrote the files in the sdcard folder. Anyway, only to let you know that the operating system started having problems since I installed the software. Before it would crash the Ifit app from time to time, now it starts giving problems to the OS itself (as per the attached picture). The problems disappear every time I reset the machine to factory settings Thanks Regards Giovanni [image: 20231102_162629_HDR_resized] https://user-images.githubusercontent.com/149379537/280066188-417acb38-c6ac-46ff-ac3a-ff92ea9b3b83.jpg [image: 20231102_173302_resized] https://user-images.githubusercontent.com/149379537/280066244-e92f85ff-ccea-4ba5-bdbd-fdbb21b06757.jpg

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

glotano commented 10 months ago

Hi @cagnulein , sorry, I took a picture before rebooting and another after rebooting and at first I had uploaded the one made before the reboot. Now I have uploaded the correct one. Unfortunately, it persists in writing the files to the "sdcard" directory. If I understand correctly is that the problem?

cagnulein commented 10 months ago

ok so now the companion is reading the metrics correctly, tomorrow i will have to check because it still reading again and again the same line.

please keep the c1750 from now on

thanks have a nice evening, we are near!

glotano commented 10 months ago

Hi @cagnulein, I will keep it set on c1750. Please take your time, and let me know in case you need me to do anything. I wish you a good evening Thanks to you! Giovanni

cagnulein commented 10 months ago

@glotano checked again the log and i don't undestand why it's not working...the only reason that could explain is that the metrics on the ifit log FitPro_02Nov2023.txt are written only when the workout is done.

Could you please try to make a video while you're riding, clicking the dump log several time showing the text box of the companion? the timestamp of the metrics should change

Let me know

glotano commented 10 months ago

Hi @cagnulein,

https://github.com/cagnulein/qdomyos-zwift/assets/149379537/fdd84333-406c-432a-9cdd-67b70823faf2

I know there was no need but I reset the bike to factory settings once again, enabled usb debug mode and installed companion using the apk (via adb no way). I started a manual workout. Clicking "Dump Log" several times, it goes back to the beginning of the file, so I had to scroll with my finger moving the video a lot. I reduced the resolution and deleted the audio so the file is much smaller. To me it seems to write during the session. I hope you can see despite me moving a lot. Thanks again

Giovanni

cagnulein commented 10 months ago

it seems that only gears and resistance are moving in realtime, do you get the same reading the log? i mean i'm checking the timestamp of every changed lines in the dump log text box

glotano commented 10 months ago

@cagnulein The updates values are: KPH Grade CurrentGear Resistance I attach a couple of pics from which you could see better 20231103_154747 20231103_154524

glotano commented 10 months ago

@cagnulein, Sorry, I misspoke. The values are there but KPH was never updated. Now I tried again and scrolled through the whole log. It records all except KPH

cagnulein commented 10 months ago

but in the log that you sent me attached here I saw the value changing.

So I guess Ifit writes it Only at the end of the workout.

So if I'm right, edit the log file of iFit while you are riding I guess there are no valid speed for example

Il giorno ven 3 nov 2023 alle 16:15 glotano @.***> ha scritto:

@cagnulein https://github.com/cagnulein, Sorry, I misspoke. The values are there but they are never updated. Now I tried again and scrolled through the whole log. You are right, only gear and resistance are updated!

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

glotano commented 10 months ago

@cagnulein, I did another session, it records all the values. In my opinion the problem is only that Qz app is not able to read the file generated by companion, over UDP 20231103_162855 20231103_162848_HDR 20231103_162936_HDR 20231103_162900

20231103_163948 20231103_163941

cagnulein commented 10 months ago

that's perfect, do you have the qz debug log from this session?

Il giorno ven 3 nov 2023 alle 16:36 glotano @.***> ha scritto:

@cagnulein https://github.com/cagnulein, I did another session, it record all the values. In my opinion rhe problem is only that Qz app is not able to read the file generated by companion, over UDP [image: 20231103_162855] https://user-images.githubusercontent.com/149379537/280333053-0a52dc3d-c523-440d-896f-44c4e34392ad.jpg [image: 20231103_162848_HDR] https://user-images.githubusercontent.com/149379537/280333082-62983622-0ad4-4b17-8ef0-933c1ce49c6c.jpg [image: 20231103_162936_HDR] https://user-images.githubusercontent.com/149379537/280332996-70e05344-f2c1-4c66-b062-8cdb542d50f0.jpg [image: 20231103_162900] https://user-images.githubusercontent.com/149379537/280333019-be45da00-4d13-441d-9601-46f7f3d1ca39.jpg

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

glotano commented 10 months ago

I don't know because it's really hard to stay at the end of the file scrolling with the finger. The values in the pics could be from the session before. I also did another try. In the recorded session I don't see any trace of KPH. Me too start to thing that the problem is that. In case the problem is that it writes all the values only when I stop the iFit manual workout, in what way we could fix? P.S.: adding that sometime when I open companion in the tests I found it not responding 20231103_174249

cagnulein commented 10 months ago

ok the workaround should be using logcat directly

while you are riding try to run logcat and check if you get real time value there

cagnulein commented 10 months ago

@glotano check this https://github.com/cagnulein/QZCompanionNordictrackTreadmill/issues/65#issuecomment-1795078043

glotano commented 10 months ago

Hi @cagnulein, I don't know how to thank you! I followed that thread so I was able to bind the adb service on port 5555 running: setprop service.adb.tcp.port 5555; I uninstalled companion (most probably not needed) so I was able to connect the console's bike from my pc to run adb shell pm grant org.cagnulein.qzcompanionnordictracktreadmill android.permission.READ_LOGS (strange but true, I didn't receive any read-only error following this way). 20231107_123605_resized

Companion started to got the UDP broadcast messages from my phone. Screenshot 2023-11-07 131028

There is only one problem left. On qz fitness I don't get the value of watts if I set it to "bike", Screenshot_20231107-123653_resized

Screenshot 2023-11-07 131850

while I get the value of watts if I set the app to "treadmill" but of course the value is out of wacky, since it reports to me the power in watts generated by a person who is running on a treadmill while I would like the power expressed in watts of a person who is cycling. Screenshot_20231107-124113_resized

Screenshot_20231107-124121_resized

Screenshot_20231107-124047_resized

I will give you an example, a person running at 12 kph on a treadmill using a 5 percent incline will generate really high power, while a person who cycles at the same speed using the same inclination, will generate less than half of watt. What happens on Zwift, if I set the qz fitness app to bike, it won't let me cycle since it doesn't detect the watts value. If I set the app on treadmill, it does, but, because Zwift is based on the concept of FTP (Functional Threshold Power) which is the maximum power that a runner is able to express on average and consistently for an hour, as you can guess I always result first in races with a speed that is not the real one and Zwift put me from the first hour of training in the group of people who have the best ftp value. I tried everything to be able to get the real watts value for a bike, but I just couldn't do it. If we could solve this last problem, I could enjoy Zwift. Thank you again! Regards Giovanni

cagnulein commented 10 months ago

that's great! i will check your past log tomorrow, maybe it's a stupid issue now

Il giorno mar 7 nov 2023 alle 13:25 glotano @.***> ha scritto:

Hi @cagnulein https://github.com/cagnulein, I don't know how to thank you! I followed that thread so I was able to bind the adb service on port 5555 running: setprop service.adb.tcp.port 5555; I uninstalled companion (most probably not needed) so I was able to connect the console's bike from my pc to run adb shell pm grant org.cagnulein.qzcompanionnordictracktreadmill android.permission.READ_LOGS (strange but true, I didn't receive any read-only error following this way). [image: 20231107_123605_resized] https://user-images.githubusercontent.com/149379537/281033458-5f091b18-7829-4ae2-806a-41474db951c1.jpg

Companion started to got the UDP broadcast messages from my phone. [image: Screenshot 2023-11-07 131028] https://user-images.githubusercontent.com/149379537/281033499-8e9b785f-4624-423b-aa26-3913f4333fd3.jpg

There is only one problem left. On qz fitness I don't get the value of watts if I set it to "bike", [image: Screenshot_20231107-123653_resized] https://user-images.githubusercontent.com/149379537/281034662-74a23da0-f2bf-40ed-8e5a-18eff64cd85e.png

[image: Screenshot 2023-11-07 131850] https://user-images.githubusercontent.com/149379537/281035548-7978c78c-d4d6-4515-b8d8-709e453c8325.jpg

while I get the value of watts if I set the app to "treadmill" but of course the value is out of wacky, since it reports to me the power in watts generated by a person who is running on a treadmill while I would like the power expressed in watts of a person who is cycling. [image: Screenshot_20231107-124113_resized] https://user-images.githubusercontent.com/149379537/281035742-4109e0f2-bcb3-4c54-a8a3-5f37f35ebede.png

[image: Screenshot_20231107-124121_resized] https://user-images.githubusercontent.com/149379537/281035766-678d8833-d29d-47e0-a6c8-4f83c2017d48.png

[image: Screenshot_20231107-124047_resized] https://user-images.githubusercontent.com/149379537/281035870-0ae69232-c02d-4d21-9577-1734bc856a38.png

I will give you an example, a person running at 12 kph on a treadmill using a 5 percent incline will generate really high power, while a person who cycles at the same speed using the same inclination, will generate less than half of watt. What happens on Zwift, if I set the qz fitness app to bike, it won't let me cycle since it doesn't detect the watts value. If I set the app on treadmill, it does, but, because Zwift is based on the concept of FTP (Functional Threshold Power) which is the maximum power that a runner is able to express on average and consistently for an hour, as you can guess I always result first in races with a speed that is not the real one and Zwift put me from the first hour of training in the group of people who have the best ftp value. I tried everything to be able to get the real watts value for a bike, but I just couldn't do it. If we could solve this last problem, I could enjoy Zwift. Thank you again! Regards Giovanni

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

cagnulein commented 10 months ago

from the https://github.com/cagnulein/qdomyos-zwift/files/13239719/FitPro_02Nov2023.txt I can't see the wattage wrote in the log. SO i guess we have to derive it from the speed. WHat do you think? It's strange because the others bike do this

glotano commented 10 months ago

Hi @cagnulein, I think the same because as you said companion doesn't write any value about the wattage so I think (please correct me if I'm wrong) that's a calculation that the qz fitness app does using the 4 values (or only some of them) provided by companion. I think there is a formula. This thought comes from the fact that on companion I always have the c1750 set, changing the treadmill/ bike settings on the app I get/do not get the watts value. That's why I think companion has nothing to do with it. It would be great to be able to get it, I just miss this one thing and finally I can enjoy my bike with Zwift :-)

cagnulein commented 10 months ago

the wattage that you see for the treadmill is a calculation. it would be great if you can send me a table with cadence resistances and wattage so i can add it to qz in order to calculate the power for your bike

what do you think?

Il giorno mar 7 nov 2023 alle 14:52 glotano @.***> ha scritto:

Hi @cagnulein https://github.com/cagnulein, I think the same because as you said companion doesn't write any value about the wattage so I think (please correct me if I'm wrong) that's a calculation that the qz fitness app does using the 4 values provided by companion. I think there is a formula. This thought comes from the fact that on companion I always have the c1750 set, changing the treadmill/ bike settings on the app I get/do not get the watts value. That's why I think companion has nothing to do with it. It would be great to be able to get it, I just miss this one thing and finally I can enjoy my bike with Zwift :-)

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

glotano commented 10 months ago

@cagnulein, thanks for confirming. What you are suggesting makes me really happy. To get the values and provide them to you, should I do a session with iFit and find them somewhere in the app installation files on the Android system? Please just tell me what I need to do and I will do it. That would make me really happy. Thank you!

glotano commented 10 months ago

@cagnulein I forgot to tell you that the studio s10i (as the 15i, 22i and 27i) has also the inclination feature so I think the you should take in consideration also that to calculate the wattage. Please just let me know what I can do to provide you the values needed. Thank you! P.S.: I think you already did as you already know these bikes

glotano commented 10 months ago

@cagnulein, I was thinking the following. Since, as you said, for the other versions of my bike qz app already calculates the wattage, couldn't you apply the same formula for mine? They differ only in monitor size, otherwise they are almost identical (at least for the features we are interested in), they differ in some details that we don't care about, type of pedals and whatnot. It's important to have taken the inclination (other than the cadence and resistance) into account when calculating the watts delivered, as I think it is the one bike that has it (maybe Peloton as well but not others). Please let me know.