Closed hpcolus closed 3 months ago
Bowflex devices don't have speed or control from any external app if it's what you mean.
Let me know if you have any other questions
Is this somethong tha can be done with soldering a bluetooth module? On Sunday, March 10, 2024 at 03:40:59 AM EDT, Roberto Viola @.***> wrote:
Bowflex devices don't have speed or control from any external app if it's what you mean.
Let me know if you have any other questions
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
yes a modbus bluetooth module. i already did the code on qz for this! let me know if you are interested https://amzn.eu/d/781H2va
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno dom 10 mar 2024 alle 15:37 hpcolus @.***> ha scritto:
Is this somethong tha can be done with soldering a bluetooth module? On Sunday, March 10, 2024 at 03:40:59 AM EDT, Roberto Viola @.***> wrote:
Bowflex devices don't have speed or control from any external app if it's what you mean.
Let me know if you have any other questions
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-1987254547, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGPVBZSOV47UXRB36TYXRVZ3AVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGI2TINJUG4 . You are receiving this because you were assigned.Message ID: @.***>
I am interested!!!
ok buy it and we will setup it!
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno dom 10 mar 2024 alle 15:46 hpcolus @.***> ha scritto:
I am interested!!!
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-1987257232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEXBF6DT7BNX5KPHRTYXR55PAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGI2TOMRTGI . You are receiving this because you were assigned.Message ID: @.***>
The link provide is not available in Amazon USA. Does this work? DC 7-30V 8 Channel Modbus RTU Relay Module RS485 TTL UART Communicate Board 8 Way Output Input for Arduino Power Control
|
DC 7-30V 8 Channel Modbus RTU Relay Module RS485 TTL UART Communicate Bo...
DC 7 -30V 8 Canali Modulo Relè Modbus RTU RS485 TTL UART Comunicare Bordo 8 Vie di Uscita di Ingresso per Arduin... |
|
|
On Sunday, March 10, 2024 at 11:11:48 AM EDT, Roberto Viola ***@***.***> wrote:
ok buy it and we will setup it!
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno dom 10 mar 2024 alle 15:46 hpcolus @.***> ha scritto:
I am interested!!!
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-1987257232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEXBF6DT7BNX5KPHRTYXR55PAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGI2TOMRTGI . You are receiving this because you were assigned.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
yes remember that you also need a usb RS485 serial port
Hi, I got the board and the usb serial port. What is next?
Did you already di the wires to the buttons?
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno mer 20 mar 2024 alle 22:42 hpcolus @.***> ha scritto:
Hi, I got the board and the usb serial port. What is next?
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-2010690968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWCCK76XUJW2KEWQJD3YZH7EHAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJQGY4TAOJWHA . You are receiving this because you were assigned.Message ID: @.***>
No. I do not have any steps or diagram that shows me from where to where to connect nor how many wires. If I understood correctly you want me to connect some wires to each button on the treadmill, up and down for the incline and speed, and where in the board they go? Then what? Do you have somewhere the steps or a video?
no @hpcolus unfortunately i don't have any because I didn't myself. The electrical concept is simple: you have to connect each relay to 1 button of the treadmill. so 1 relay to speed up, 1 relay to speed down, 1 relay to inclination up, 1 relay to inclination down.
the purpose of this is that qz, via the modbus board, can increase and decrease speed and inclination. If you want you can write here https://github.com/cagnulein/qdomyos-zwift/issues/525 there are other guys that did this with qz (they used the gpio from the raspberry but the concept is the same)
I have all the connections ready (speed up, down) inclination (up, down) serial, etc. I can manually send the signal for speed and inclination, up or down with a splitter connector I attached to the treadmill's wires. The serial connector is attached to my windows laptop. For the modbus board, is there any particular order to connect to the relays? There are 8 relays in the board, which is the order of connections (speed up, speed down, inclination up, inclination down)? Does it matter?
Yes this is the order
const uint8_t OUTPUT_SPEED_UP = 0; const uint8_t OUTPUT_SPEED_DOWN = 1; const uint8_t OUTPUT_INCLINE_UP = 2; const uint8_t OUTPUT_INCLINE_DOWN = 3; const uint8_t OUTPUT_START = 4; const uint8_t OUTPUT_STOP = 5;
Do you have a windows pc? Connect it to Com4 and we are good to go!
Windows PC now connected to COM4 (USBC to RS485) Driver working OK Nothing works, no inclination no speed control. I do not see the blinking inclination in the QZ tile or blinking the speed icon in the QZ tile when Swift runs. In QZ the speed matches the treadmill speed. The inclination matches the treadmill inclination if I increase or decrease manually the inclination with the button on the treadmill. Am I missing any step on Zwift or any setting in QZ?
did you download the right branch exe file? a debug log is needed to understand your setup :)
today is family day, i will check your case tomorrow
What do you mean by "branch exe file"? When I provided my set up above, you said everything was OK and good to go. I am attaching the log from the QZ android app debug-Sat_Apr_13_00_27_27_2024.log
the gpio implementation is an separate branch. you have to use this zip https://github.com/cagnulein/qdomyos-zwift/actions/runs/8099706528/artifacts/1286743578
then set the com as a com4 and provide me a debug log and i will help you.
Does this means, I do not have to run the android QZ app? Only the windows exe file, plus zwift?I run the qdomyos-zwift. The exe file shows the tiles and detects the bowflex but then enter in non-responsive state. Where in windows I get the log file?
exactly, you can run qz and zwift on the same pc also
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno sab 13 apr 2024 alle 07:31 hpcolus @.***> ha scritto:
Does this means, I do not have to run the android QZ app? Only the windows exe file, plus zwift?
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-2053506619, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWHS7DDA3DZNFWUSRDDY5C7JTAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTGUYDMNRRHE . You are receiving this because you were assigned.Message ID: @.***>
Where do I get the log file. The windows app becomes unresponsive after detecting the bowflex.
are you able to pair the treadmill with the windows bluetooth settings? if so i can fix this
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno sab 13 apr 2024 alle 07:56 hpcolus @.***> ha scritto:
Where do I get the log file. The windows app becomes unresponsive after detecting the bowflex.
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-2053516417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWHHCO6R27WJC6YSPP3Y5DCJLAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTGUYTMNBRG4 . You are receiving this because you were assigned.Message ID: @.***>
no i mean the bluetooth windows settings, where you can pair the mouse or headphones for example
No. Windows does not list the treadmill when I scan it as "add device" Keep in mind that zwift was able to see it and connect to it. The QZ windows app is able to light up the bluetooth connection on the treadmill but windows does not. Even if I scan the bluetooth devices without running QZ windows app..SOLVED CONNECTIVITY through advanced bluetooth settings, See next
Is listed now under devices,
Now the QZ windows app runs and shows the speed an inclination on the tiles. But after a few minutes I got a message to 'join the patreon sponsorship' Does this mean the full inclination (when it works) is only available with a subscription?
log file
debug-Sat_Apr_13_03_35_10_2024.log
Screenshot of COM4
yes full inclination is available with a patreon membership. there is a high workload under this.
i'm with my family now, i will be available on monday!
have a nice weekend!
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno sab 13 apr 2024 alle 09:22 hpcolus @.***> ha scritto:
Now the QZ windows app runs and shows the speed an inclination on the tiles. But after a few minutes I got a message to 'join the patreon sponsorship' Does this mean the full inclination (when it works) is only available with a subscription?
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-2053555407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGLKAE4Z2JRQ66WBGDY5DMMFAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTGU2TKNBQG4 . You are receiving this because you were assigned.Message ID: @.***>
@hpcolus I unlock the version for you. Be sure to set the patreon email all lower case to the qz email setting and press OK.
I also created a new version for you this morning https://github.com/cagnulein/qdomyos-zwift/actions/runs/8678624419/artifacts/1411972582 that will directly connect to the com4
share me a log so i can check if the modbus communication is working properly. one question: did you buy exactly the modbus peripheral that i show in the link above? if so we should be ready to have it running with this build!
let me know
The relays work, albeit manually. Using the qz windows app, I am able to increase/decrease speed and inclination pressing + or - in the corresponding tile for speed or inclination. However there are THREE issues
- The speed and inclination values that is on the treadmill does not synchronize with the value on the QZ app or Zwift. With the android app I have no problem, since the speed and inclination on the treadmill always match with the android app.
yes because in this way QZ is getting the metrics from the modbus directly. in order to do so you have to tell me:
2. In Zwift, I see the WAHOO TREAD 00033 that I connected to. Again, the speed that it shows is the wrong speed from the QZ windows app, not from the real speed in the treadmill.
same as 1.
2. Changes in the inclination in Zwift are not sent do the QZ windows app or the treadmill
you have to set the zwift username and password in the qz app in order to have this
3. The COM4 was not stable. When I press consecutively the speed + many times I lost responsiveness with the treadmill
disable the bluetooth on the pc since we don't need anymore for this. in the log the serial port is ok, are you referring to another session?
Let me know!
No changes at all. Here is what happened.
I cannot disable the BLUETOOTH as you suggested because qz app crashed upon start. I turned on the BT, then after starting the QZ app in windows I turned the Bluetooth off.
Somehow the windows app is not reading the actual speed and the actual inclination on the treadmill. In addition, Zwift is not controlling the treadmill at all. debug-Tue_Apr_16_22_27_44_2024.log
Hi @hpcolus let's focus first on the root issues: control and see the right metrics manually from the treadmill.
new build: https://github.com/cagnulein/qdomyos-zwift/actions/runs/8717774247/artifacts/1421036893
In this build I'm discarding the bluetooth connection to the treadmill and I'm just connecting to the modbus device. I set the new speed default value and also the new speed step to 0.1 mi/h.
So give it a test and share me a debug log where I can see the problem about losing the responsiveness.
Remember that's a very hard work for me because I can't test myself the modification, so please let's try to do small steps here and we will get it!
About the zwift auto inclination, i saw that there is an error about the authentication
Tue Apr 16 22:27:49 2024 1713320869156 Debug: D:\a\qdomyos-zwift\qdomyos-zwift\src\zwift-api/zwift_client_auth.h void __cdecl AuthToken::handleTokenResponse(class QNetworkReply *) Error fetching token: "Error transferring https://secure.zwift.com/auth/realms/zwift/tokens/access/codes - server replied: NOT FOUND"
but let's keep this problem after solving the root ones
Let me know!
Hi Roberto
The android app shows the right speed and inclination only when I connect in Zwift using the phone name 'PhP'. If I select on Zwift WAHOO TREAD 0003, which I think is the wifi name coming from the QZ android app, it does not always work.
I do not know what setting I changed later that now QZ appp does not wants to start. How can I reset the settings?
Hi Roberto
- The file to download is huge. More than 1GB!
yeah because I sent you the full package with also the OCR system that it's for auto inclination and auto speed on zwift. i will send you back the smallest one the next time
- It took 20 min to decompress as it is doble zipped.
- The Bluetooth issue was NOT solved when the BT is deactivated. If BT is off, QZ does not start
yes you can leave it enabled now. i removed the BT part directly in the code.
- Speed is defaulted to 1mi/hr After I paused it with the QZ tiles, it was defaulted to 0.5mi/hr
got it. fixed in the next one
- However, the speed value and inclination on the QZ tiles do not match with the speed value and inclination on the treadmill when I press the plus button of the speed or inclination
which is the grade of changing of the inclination every time you press the inclination button on the treadmill? 1% or 0.5%? now qz is thinking is 0.5%
for the speed I guess I found the issue and I'm sending you another one later. Send me a video showing treadmill and qz if the error persists.
The android app shows the right speed and inclination only when I connect in Zwift using the phone name 'PhP'. If I select on Zwift WAHOO TREAD 0003, which I think is the wifi name coming from the QZ android app, it does not always work.
wahoo tread uses wifi, maybe the router is filtering out the frames. anyway if it's working with PhP, use this one, no problem using this.
I do not know what setting I changed later that now QZ appp does not wants to start. How can I reset the settings?
you can clear the data on the android app from the android settings.
you can clear the data on the android app from the android settings.
It is the qz windows app that does not go beyond the main screen. Android app works fine. How do I reset the settings for the QZ windows app?
which is the grade of changing of the inclination every time you press the inclination button on the treadmill? 1% or 0.5%? now qz is thinking is 0.5%
It should be 1%
debug-Thu_Apr_18_10_21_15_2024.log
the log error it's this
Thu Apr 18 10:21:25 2024 1713450085891 Debug: .\gpiotreadmill.cpp __cdecl gpiotreadmill::gpiotreadmill(unsigned int,bool,bool,double,double) modbus Connetion Error. Retrying...
i guess the serial port is not working. check it
It should be 1%
ok i'm changing it!
After the new build. Let's concentrate on making sure the speed and inclination matches between the treadmill and the windows QZ app (running on the same laptop) Let's defer the COM4 auto control for later Still the inclination and speed does not match between the treadmill and the windows QZ Zwift. As I mentioned to you, with the android app, both speed and inclination are synchronized. In the video link I show the lack of synchronization between the treadmill and QZ Windows app.
At 2:14 I showed that QZ via COM4 sends inclination signal manually to the treadmill via the modbus. (Let's troubleshoot that later until we solve the main issue)
do you have also the debug log of this run?
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno ven 19 apr 2024 alle 20:19 hpcolus @.***> ha scritto:
After the new build. Let's concentrate on making sure the speed and inclination matches between the treadmill and the windows QZ app (running on the same laptop) Let's defer the COM4 auto control for later Still the inclination and speed does not match between the treadmill and the windows QZ Zwift. As I mentioned to you, with the android app, both speed and inclination are synchronized. In the video link I show the lack of synchronization between the treadmill and QZ Windows app.
https://youtu.be/j6bbTTijH8E http://url
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-2067075993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWESRXSDSZ25HIPOTWDY6FN2BAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGA3TKOJZGM . You are receiving this because you were assigned.Message ID: @.***>
i got the issue from the video: qz now is not reading the metrics from the treadmill, you should use ONLY the buttons on qz, that's why it's desyncing .
confirm me this: use only qz and let me know if it's ok
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno ven 19 apr 2024 alle 20:34 cagnulein @.***> ha scritto:
do you have also the debug log of this run?
Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud
Il giorno ven 19 apr 2024 alle 20:19 hpcolus @.***> ha scritto:
After the new build. Let's concentrate on making sure the speed and inclination matches between the treadmill and the windows QZ app (running on the same laptop) Let's defer the COM4 auto control for later Still the inclination and speed does not match between the treadmill and the windows QZ Zwift. As I mentioned to you, with the android app, both speed and inclination are synchronized. In the video link I show the lack of synchronization between the treadmill and QZ Windows app.
https://youtu.be/j6bbTTijH8E http://url
— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/2202#issuecomment-2067075993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWESRXSDSZ25HIPOTWDY6FN2BAVCNFSM6AAAAABEOTELLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGA3TKOJZGM . You are receiving this because you were assigned.Message ID: @.***>
I respectfully disagree. It should have the same functionality as the QZ android. With the android app, once I press the plus or minus button in the treadmill the android app updates the value of inclination or speed. It would be difficult with a laptop trying to press the tiny plus or minus buttons on the screen while walking. I am attaching you again another log. Let me know if you can have the same basic functionality in windows as the one in android. With QZ android, the value of speed and inclination is always synchronized with the treadmill. And yes, the Windows QZ sends the signal to the treadmill via serial port and the modbus, and the treadmill responds appropriately (speed up or down, or inclination up or down) debug-Sun_Apr_21_21_51_26_2024.log
i mean it's the current stage of development, adding the bluetooth connection along with the modbus communication it's something that i have to develop.
i will do in the next days.
consider that's will be a huge task (qz is only an hobby for me, i have a regular job) so im trying to do my best here
ok i did a first frankestain here (modbus + bluetooth) https://github.com/cagnulein/qdomyos-zwift/actions/runs/8780612156 (at the bottom of the page you will find the download link)
of course I didn't try anything, so put me a debug log if it doesn't work as expected
What I'm expecting to see is:
Let me know!
I did not see the link you mentioned I got this screen
hi @hpcolus in this log the issue is that you have the fake treadmill setting in the experimental settings turned on. disable it and restart qz and show me a new debug log if it doesn't work, let me know
We are finally going in the right direction. -The treadmill synchronizes with the windows qz app for speed and inclination. I presssed the plus or minus button of the speed and inclination of the treadmill and QZ synchronized the values
ok i guess i fixed the plus and minus inclination issue (i'm attaching the new build in some minutes). About the crashes: what do you see? is windows reporting any issue? maybe you can show me a screenshot of the error?
**Desktop
**Smartphone
Append a debug log
I would like to use this feature in Zwift to send back to the TM the inclincaion of the walk. Could this be a limitation of BXT216?