cagnulein / qdomyos-zwift

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

[REQ] Horizon Paragon X #637

Closed OswaldKolle1977 closed 5 months ago

OswaldKolle1977 commented 2 years ago

Could you please add support for the Horizon Paragon X treadmill?

cagnulein commented 2 years ago

@OswaldKolle1977 Please attach all the info that you send me by email. Thanks!

OswaldKolle1977 commented 2 years ago

The bluetooth debug log-file: btsnoop_hci.log

And the informations / steps... Steps I did with the fitdisplay App (which is awful!): 1.) Started the app and connected to "Paragon X". 2.) Started an activity (5 km targed, starting speed 5.3 km/h, inclination: 1.50%) 3.) Start the activity 4.) Increased the speed in the app - up to 12.2 km/h (several steps between - because the app is awful!) 5.) Increased inclination in the app - up to 12.0% (several steps between - because the app is awful!) 6.) Increased the inclination at the treadmill to 15.0% (in 0.5% steps) 7.) Decreased the inclination at the treadmill to 0.0% (in 0.5% steps) 8.) Decreased the speed at the treadmill to 3.0 (in 0.1 km/h steps) 9.) Stopped the activity within the app and closed the app 10.) Because the app is still keeping the connection I killed / forced stop the app

cagnulein commented 2 years ago

ok thanks! just as a reminder for me, you have also a raspberry pi, so we can try as soon as i will commit

OswaldKolle1977 commented 2 years ago

... you have also a raspberry pi ...

Yes, I do.

cagnulein commented 2 years ago

done @OswaldKolle1977 please build it and try! share a debug log if something doesn't work

OswaldKolle1977 commented 2 years ago

Okay - I build it - and it starts showing the connection - but it looses this connection quite soon! And - additionally - it doesn't show the zwift connection...

I attach the app output: qdomyos-zwift.log

cagnulein commented 2 years ago

@OswaldKolle1977 it seems an issue with the bluetooth of the rasppi. send me an email to roberto.viola83 at gmail.com indicating this ticket and if you're on ios or android and i will add you the beta. I would like to understand if you will see the same thing on a mobile too.

OswaldKolle1977 commented 2 years ago

I tried the android version - (Because I would have to pay also for the iPhone version, I will only try this version) It seems like it is connecting immediately - but not receiving any incline/speed informations from the treadmill. I also cannot start the treadmill with the "pause/start" button. + / - for Speed and Inclination do not work.

cagnulein commented 2 years ago

@OswaldKolle1977 attach here a debug log from this android https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F thanks

OswaldKolle1977 commented 2 years ago

Here is the log-file I started the app, it connects to the treadmill and then nothing more happens. I manually clicket on pause->start, nothing happens I started the treadmill (on the treadmill) and increased inclination to 1.0% and then back to 0.0% (speed staded at 0.8km/h) debug-Thu_Feb_3_11_59_20_2022.log

cagnulein commented 2 years ago

ok, got it @OswaldKolle1977 first of all, with the android version, it's a little better because we reached a stable connection. Unfortunately this treadmill has a slightly different protocol so i have to implement it (i will add a new setting for this in the horizon section in QZ). I will update you when i will be ready to test

OswaldKolle1977 commented 2 years ago

Thanks a lot!

cagnulein commented 2 years ago

@OswaldKolle1977 i just committed the frist wave of modifications. If you want to try on the raspberry you need to run with the -qml flag in order to enable the new "paragon x" setting in the treadmill section. With this first wave i would like to check if we can finally talk with the TM: you will still see nothing in the UI but i can check in the debug log if we have a touch. Otherwise, if you can't try on the raspppi with -qml, i will build a new android version later today

OswaldKolle1977 commented 2 years ago

Fresh install of 64bit Raspberry Pi (Release date: January 28th 2022) Fresh pull of git Compiled and started with "./qdomyos-zwift -qml 2> debug.log" The logfile contains: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

So I think there is something missing - where should this path guide to?

OswaldKolle1977 commented 2 years ago

I added this to the .bashrc: export XDG_RUNTIME_DIR=/usr/local/src/qdomyos-zwift/src export RUNLEVEL=3

But it is still not working - then the logfile is empty, but the program is not starting. It starts without the "-qml" flag

[EDIT]: Changed it to "/root/qdmomyos" with chmod 0700 Now it starts... [EDIT2]: No it is not starting....

cagnulein commented 2 years ago

@OswaldKolle1977 Check this https://github.com/cagnulein/qdomyos-zwift/issues/193

OswaldKolle1977 commented 2 years ago

Okay - now it started.... Here is the log: debug.log

cagnulein commented 2 years ago

@OswaldKolle1977 you need to enable the horizon paragon X setting in the treadmill settings section. Please enable it, restart QZ and send me the log. THanks

OswaldKolle1977 commented 2 years ago

Oops... Sorry! My fault! It is so extremely slow on the raspi - so I only activated the debug....

So - it keeps disconnecting... Here is the new log: debug.log

cagnulein commented 2 years ago

Ok @OswaldKolle1977 I will build an android beta tomorrow

OswaldKolle1977 commented 2 years ago

So - today I installed the newest beta on two different android systems (tablet and phone). It connects to the treadmill (stable connection) and the treadmill starts after 5 seconds to 5.3km/h and 1.5% inclination, but is not showing these informations inside qdomyos - and it is not controllable within the app. After closing the app, the tradmill is not stopping, but when i restart the app, the treadmill stopps and starts again after 5 seconds with the values mentioned above.

Here is the log: debug-Sat_Feb_5_12_35_07_2022.log

cagnulein commented 2 years ago

Ok thanks @OswaldKolle1977 i will check this in the next days

cagnulein commented 2 years ago

@OswaldKolle1977 did you enable the horizon paragon setting? i can't see it in the log Let me know

OswaldKolle1977 commented 2 years ago

@cagnulein Yey, I enabled the paragon settings... Did another run today - with the updated app. Again it starts after ~5 seconds with 5.3km/h and 1.5% inclination - and additionally it shows heartrate - beginning with ~90 and increased within a minute up to more than 110bpm Here is the current log file: debug-Sun_Feb_6_10_20_58_2022.log

cagnulein commented 2 years ago

@OswaldKolle1977 ok, in this log i see it. i will check in the next hours

OswaldKolle1977 commented 2 years ago

@cagnulein I just tried the today-update of the android app. Still the same problem - nothing is shown within qdomyos - and no control possible. In the logfile should be the try to pause and stop the current run.... debug-Sun_Feb_6_15_37_54_2022.log

cagnulein commented 2 years ago

yes, I didn't change nothing for you yet I have too many ticket open at right now I will tell you when I will be ready to test again

Il giorno dom 6 feb 2022 alle 15:44 Mario @.***> ha scritto:

@cagnulein https://github.com/cagnulein I just tried the today-update of the android app. Still the same problem - nothing is shown within qdomyos - and no controll possible. In the logfile should be the try to pause and stop the current run.... debug-Sun_Feb_6_15_37_54_2022.log https://github.com/cagnulein/qdomyos-zwift/files/8010388/debug-Sun_Feb_6_15_37_54_2022.log

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

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

cagnulein commented 2 years ago

good news @OswaldKolle1977 i already identified the packet to change speed and inclination! now i'm parsing the metrics data! we're in the right way!

cagnulein commented 2 years ago

done @OswaldKolle1977 ! i will build a new one today it will be in the 2.10.21 Let me know

OswaldKolle1977 commented 2 years ago

Hi Roberto, now the treadmill doesn't start automatically (although pause on start is not enabled) - and still no values (neither incline, nor speed) are shown within qdomyos :-( Again the logfile: debug-Mon_Feb_7_21_17_22_2022.log

cagnulein commented 2 years ago

did you try to start it manually from the treadmill? i removed the automatic start on purpose. let me know

Il giorno lun 7 feb 2022 alle 21:25 Mario @.***> ha scritto:

Hi Roberto, now the treadmill doesn't start automatically (although pause on start is not enabled) - and still no values (neither incline, nor speed) are shown within qdomyos :-( Again the logfile: debug-Mon_Feb_7_21_17_22_2022.log https://github.com/cagnulein/qdomyos-zwift/files/8018451/debug-Mon_Feb_7_21_17_22_2022.log

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

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

OswaldKolle1977 commented 2 years ago

Sure - I started with the button on the treadmill. After that I increased the inclination to 1% (two steps - 0.5 and 1.0) and then the speed from 0.8 to 0.9 and 1.0 km/h

In the end I stopped the belt with the treadmill-button and then "resetted" the treadmill with a "long press" of the start button to put it into standby with another button....

cagnulein commented 2 years ago

Hah ok, did you try, once the treadmill is on, to change the speed and the incline with the qz tiles?

OswaldKolle1977 commented 2 years ago

Yes, I did.... But - probably - not within this debug-file.... Do you need another debug-log?

cagnulein commented 2 years ago

If you can, even tomorrow, it will add a lot of informations to me

Il giorno lun 7 feb 2022 alle 21:43 Mario @.***> ha scritto:

Yes, I did.... But - probably - not within this debug-file.... Do you need another debug-log?

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

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

OswaldKolle1977 commented 2 years ago

Here it is... ;-) Again the steps above + inclination back to 0.5 and 0.0% and - this in the app: 10x + speed, 10x + inclination, ~5x - speed and ~5x - incination... (all in app clicks without any reaction)! debug-Mon_Feb_7_21_47_13_2022.log

[EDIT] Still the app stopps the belt, when it was running before the app was started.

cagnulein commented 2 years ago

Thanks I will check this tomorrow

Il giorno lun 7 feb 2022 alle 21:52 Mario @.***> ha scritto:

Here it is... ;-) Again the steps above + inclination back to 0.5 and 0.0% and - this in the app: 10x + speed, 10x + inclination, ~5x - speed and ~5x - incination... debug-Mon_Feb_7_21_47_13_2022.log https://github.com/cagnulein/qdomyos-zwift/files/8018663/debug-Mon_Feb_7_21_47_13_2022.log

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

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

cagnulein commented 2 years ago

@OswaldKolle1977 ok, i guess we're near. I did some modifications. I will send you another one later today. Let me know how it will go

OswaldKolle1977 commented 2 years ago

Will there be a new android version? Or do you want me to try the raspberry again?

cagnulein commented 2 years ago

@OswaldKolle1977 i will build an android version. it will be online in some hours

OswaldKolle1977 commented 2 years ago

Perfekt, thank you!

OswaldKolle1977 commented 2 years ago

@cagnulein Okay - now the inclination and the speed values are correct shown in the app! Changing values within qzdomyos is still not possible (I clicked several times incline +/- and speed +/- in the app) debug-Tue_Feb_8_21_52_10_2022.log

cagnulein commented 2 years ago

@OswaldKolle1977 fixed! (at least i hope). i will send you another one today! let me know (we're near!)

OswaldKolle1977 commented 2 years ago

@cagnulein Very good try! The inclination is now working from within the app - but the speed is still not working! It seems like it is trying to change something, but not with the correct difference.... Clicking very fast leeds sometimes to +0.1 - but from higher speed, it seems like it is decreasing although I clicked on increase... Here is the new log: debug-Wed_Feb_9_17_58_57_2022.log

cagnulein commented 2 years ago

@OswaldKolle1977 great! i guess the most is done. i will fix the speed tomorrow i hope

cagnulein commented 2 years ago

@OswaldKolle1977 i did a small change in the speed management in the 2.10.25 Let me know if it's better

OswaldKolle1977 commented 2 years ago

@cagnulein : Have I missed the update? I still have the 2.10.24...

cagnulein commented 2 years ago

no, i didn't have time yesterday. i will try today. sorry

Il giorno ven 11 feb 2022 alle 13:42 Mario @.***> ha scritto:

@cagnulein https://github.com/cagnulein : Have I missed the update? I still have the 2.10.24...

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

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

OswaldKolle1977 commented 2 years ago

@cagnulein You surely NEVER have to excuse anything!

cagnulein commented 2 years ago

uploaded now @OswaldKolle1977 now it's up to google to put this online ;)