Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ]Runmaxx 9.1 treadmill on Win 10 #1581

Closed
Jawaui opened this issue Jul 25, 2023 · 117 comments · Fixed by #1588
Closed

[REQ]Runmaxx 9.1 treadmill on Win 10 #1581

Jawaui opened this issue Jul 25, 2023 · 117 comments · Fixed by #1588
Assignees
Labels
bug Something isn't working toorx treadmill windows wontfix This will not be worked on

Comments

@Jawaui
Copy link

Jawaui commented Jul 25, 2023

Hi Roberto, downloaded the windows version and extracted it to programs. Started and found my runmaxx 9.1 on my Win10 but didn’t connect. Speed was always 0. Debug log couldn't be crated there so moved the files to downloads . Still the same.

Append a debug log
debug-Di__Jul_25_16_49_53_2023.log

Thanks for your help.

@Jawaui Jawaui added the bug Something isn't working label Jul 25, 2023
@cagnulein
Copy link
Owner

Hi @Jawaui !
The problem is

Di. Jul 25 16:50:33 2023 1690296633180 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "BTLE stateChanged DiscoveryRequired"

You should easily fix it following these:

  1. close qz
  2. pair the treadmill by the bluetooth setting of windows
  3. open qz again and it should works.

Let me know

@Jawaui
Copy link
Author

Jawaui commented Jul 25, 2023

Hi Roberto, didn't work. See screenshot treadmill is connected.

debug-Di__Jul_25_17_09_08_2023.log
Screenshot (1)

@cagnulein
Copy link
Owner

it could be releated to windows 11. Which bluetooth dongle are you using?

@Jawaui
Copy link
Author

Jawaui commented Jul 25, 2023

Belkin Bluetooth 4.0 Is there a better one? I could buy another.

@cagnulein
Copy link
Owner

cagnulein commented Jul 25, 2023 via email

@Jawaui
Copy link
Author

Jawaui commented Jul 25, 2023

I will buy one but which one? Your link doesn't show one there are so many. Can you tell me the name of the adapter? Thanks a lot for your help!

@Jawaui
Copy link
Author

Jawaui commented Jul 25, 2023

Bought TP-Link UB400 and UB500. Will get it on Thursday or Friday. You hear from me after I got it. Thanks a lot!

@cagnulein
Copy link
Owner

cagnulein commented Jul 25, 2023 via email

@cagnulein
Copy link
Owner

cagnulein commented Jul 25, 2023 via email

@Jawaui
Copy link
Author

Jawaui commented Jul 27, 2023

Hi Roberto,
still the same with UB400. Got it today and this is the debug file:
debug-Do__Jul_27_14_37_40_2023.log
Bluetooth

@cagnulein
Copy link
Owner

cagnulein commented Jul 27, 2023 via email

@Jawaui
Copy link
Author

Jawaui commented Jul 27, 2023

Hi Roberto,
tried to install an a laptop and here is that debug log.
debug-Do__Jul_27_15_52_26_2023.log
If its a big problem then its ok when it doesn't work.

@cagnulein
Copy link
Owner

cagnulein commented Jul 27, 2023 via email

@cagnulein
Copy link
Owner

theoretically this could solve your issue. Let me try this #1467

@cagnulein
Copy link
Owner

cagnulein commented Jul 31, 2023 via email

@Jawaui
Copy link
Author

Jawaui commented Jul 31, 2023

I would like it! Thanks a lot!

@cagnulein
Copy link
Owner

@Jawaui good news! I just terminated the work for this. Give it a try https://github.com/cagnulein/qdomyos-zwift/suites/14719165972/artifacts/836144826

let me know if it makes any difference and send me a debug log in case!

@Jawaui
Copy link
Author

Jawaui commented Aug 1, 2023

Hi cagnulein, tested it with TB Bluetooth 4 and 5. Speed works automatic incline not. Here are the 2 debug files:
debug-Di__Aug_1_13_35_38_2023 TB 5.log
debug-Di__Aug_1_13_41_43_2023 TB 4.log
Thanks a lot for your work!

@cagnulein
Copy link
Owner

amazing! so my patch worked! That's insane!
Ok let me check the incline thing

@cagnulein
Copy link
Owner

@Jawaui can you collect me a debug log where you are setting the inclination from 0 to the max, one grade at each time separated by 5 seconds each? So I can identify the inclination bytes.
Thanks!

@victorypoint
Copy link
Contributor

victorypoint commented Aug 9, 2023

Thanks @Jawaui. Looking at both logs, it looks like we have good success with the incline OCR:

debug-Mi__Aug_9_08_17_10_2023.log:

	Line 3898: Mi. Aug 9 08:19:19 2023 1691561959665 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -1"
	Line 4377: Mi. Aug 9 08:19:39 2023 1691561979391 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -1"
	Line 4693: Mi. Aug 9 08:19:51 2023 1691561991853 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 5045: Mi. Aug 9 08:20:03 2023 1691562003665 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 5315: Mi. Aug 9 08:20:12 2023 1691562012873 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 5647: Mi. Aug 9 08:20:24 2023 1691562024037 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 5977: Mi. Aug 9 08:20:35 2023 1691562035030 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -1"
	Line 6285: Mi. Aug 9 08:20:46 2023 1691562046152 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 6648: Mi. Aug 9 08:20:58 2023 1691562058074 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 6970: Mi. Aug 9 08:21:09 2023 1691562069076 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 7343: Mi. Aug 9 08:21:21 2023 1691562081149 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 7676: Mi. Aug 9 08:21:32 2023 1691562092611 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 2"
	Line 8055: Mi. Aug 9 08:21:45 2023 1691562105268 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 8285: Mi. Aug 9 08:21:55 2023 1691562115071 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 8411: Mi. Aug 9 08:22:04 2023 1691562124157 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"

debug-Mi__Aug_9_08_26_14_2023.log:

	Line  3771: Mi. Aug 9 08:28:14 2023 1691562494685 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  4221: Mi. Aug 9 08:28:26 2023 1691562506828 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  4606: Mi. Aug 9 08:28:39 2023 1691562519109 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  4889: Mi. Aug 9 08:28:48 2023 1691562528331 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  5132: Mi. Aug 9 08:28:56 2023 1691562536588 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  5391: Mi. Aug 9 08:29:04 2023 1691562544772 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  5651: Mi. Aug 9 08:29:13 2023 1691562553497 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  5920: Mi. Aug 9 08:29:22 2023 1691562562488 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -1"
	Line  6175: Mi. Aug 9 08:29:31 2023 1691562571070 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  6451: Mi. Aug 9 08:29:39 2023 1691562579866 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  6713: Mi. Aug 9 08:29:48 2023 1691562588911 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  6983: Mi. Aug 9 08:29:57 2023 1691562597214 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  7246: Mi. Aug 9 08:30:05 2023 1691562605997 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  7540: Mi. Aug 9 08:30:14 2023 1691562614639 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  7780: Mi. Aug 9 08:30:22 2023 1691562622910 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  8111: Mi. Aug 9 08:30:31 2023 1691562631888 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  8395: Mi. Aug 9 08:30:40 2023 1691562640978 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  8663: Mi. Aug 9 08:30:49 2023 1691562649698 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line  8940: Mi. Aug 9 08:30:57 2023 1691562657956 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -2"
	Line 11944: Mi. Aug 9 08:32:35 2023 1691562755371 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 5"
	Line 12184: Mi. Aug 9 08:32:43 2023 1691562763558 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 3"
	Line 12443: Mi. Aug 9 08:32:52 2023 1691562772272 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline -5"
	Line 13527: Mi. Aug 9 08:33:27 2023 1691562807326 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 54"
	Line 13696: Mi. Aug 9 08:33:35 2023 1691562815276 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 0"
	Line 13835: Mi. Aug 9 08:33:43 2023 1691562823603 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 0"
	Line 13965: Mi. Aug 9 08:33:52 2023 1691562832296 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 1"
	Line 14082: Mi. Aug 9 08:34:00 2023 1691562840362 Debug: bluetooth.cpp void bluetooth::debug(const QString&) "writing incline 1"

A few questions:

  • Have you tried the Zwift Ultra (1440p) display mode? It may work better with your 1440p monitor and give you better graphic performance. I'm also curious if the incline OCR works in that mode too.
  • In your videos, I don't see the negative inclines on your treadmill console (I see 0 and positive values). Is your treadmill receiving the negative inclines?
  • Keep in mind that QZ is constantly looking in the upper-right incline box area regardless of whether your "in game" or on another screen like the main, run stats, etc. Do you recall which screen was displayed when you went to 15%?

@Jawaui
Copy link
Author

Jawaui commented Aug 10, 2023

Hi here are my delayed answers:

  • Tried Zwift Ultra :
    debug-Do__Aug_10_08_13_15_2023.log
    There are two little things: at running time 2:13 it goes uo to +2% and at 5:47 it should go to 1% but there's a delay of12 seconds.

Video

  • I don't know, but my treadmill can't go negative
  • I belive it was the bridge which is comming after 1 km.

@victorypoint
Copy link
Contributor

@Jawaui, please test the new zwift-incline.py file attached. I think we're getting closer.

zwift-incline.zip

@Jawaui
Copy link
Author

Jawaui commented Aug 11, 2023

Did the test - not satisfied-2 time incline went up to +2% runningtime 1:14 to 1:32 and 1:57 to 2:06

Here is the debug File:
debug-Fr__Aug_11_14_09_30_2023.log

Video

@victorypoint
Copy link
Contributor

@Jawaui, okay thank-you. Let's collect another series of PNG files if you don't mind. Use the attached zwift-incline.py and upload the generated PNG files as before using the same Watopia 5K course and speed. No need for video but the debug log is extremely useful.

zwift-incline.zip

@Jawaui
Copy link
Author

Jawaui commented Aug 11, 2023

Tested it twice - two times a loss of bluetooth
debug-Fr__Aug_11_16_21_36_2023.log
debug-Fr__Aug_11_16_31_45_2023.log
ZIP 01
ZIP 02

@victorypoint
Copy link
Contributor

Thanks @Jawaui. I can't download the iCloud files this time - restricted permissions.

@Jawaui
Copy link
Author

Jawaui commented Aug 11, 2023

ZIP
Zip

@cagnulein
Copy link
Owner

Hi guys, let me know if you need me

@victorypoint
Copy link
Contributor

Hi guys. I did quite a bit of OCR testing this weekend. Super challenging to get it to work consistently between different PC setups and graphic cards. @Jawaui, please try the new zwift-incline.py and see if it's any better. It will create debug PNG files in the QZ folder to upload if you encounter more incline problems.

zwift-incline.zip

@Jawaui
Copy link
Author

Jawaui commented Aug 14, 2023

Sorry @victorypoint but after 0:38 set incline to +2% and meantime changed to 7% and 15% and finished at 3:00.
debug-Mo__Aug_14_15_47_50_2023.log
Png

@victorypoint
Copy link
Contributor

@Jawaui, sorry I made a coding mistake. Please try the new version attached.

zwift-incline.zip

@Jawaui
Copy link
Author

Jawaui commented Aug 14, 2023

Excellent! Great Job!!! I love this. Its only a little delay when it goes to 5%, but no more +2% the hole run!
debug-Mo__Aug_14_18_10_41_2023.log
Png
Thank you very much!!!!

@victorypoint
Copy link
Contributor

@Jawaui wonderful news! We're trying hard to improve the speed of the OCR. Let us know if you encounter any further issues. @cagnulein, here is the revised zwift-incline.py (debug image code removed) which can be added to the QZ build. Image processing has changed and retested in Tesseract but still get horrible results. PaddleOCR remains our winner so far.

zwift-incline.zip

@cagnulein
Copy link
Owner

cagnulein commented Aug 14, 2023 via email

@cagnulein
Copy link
Owner

done! it's building! @victorypoint I'm wondering if the same changes are required for the other 2 scripts

@victorypoint
Copy link
Contributor

@cagnulein, I'm on it. Will do testing to see.

@cagnulein
Copy link
Owner

cagnulein commented Aug 15, 2023 via email

@victorypoint
Copy link
Contributor

@cagnulein, I finished testing and updating the other 2 python scripts. All good now. Attached are the 3 scripts

qz-python.zip

@cagnulein
Copy link
Owner

cagnulein commented Aug 16, 2023 via email

@Jawaui
Copy link
Author

Jawaui commented Aug 16, 2023

That‘s perfect. I will test on an other running section tomorrow.

@cagnulein
Copy link
Owner

python script updated! Thanks!

@stale
Copy link

stale bot commented Sep 3, 2023

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 stale bot added the wontfix This will not be worked on label Sep 3, 2023
@stale stale bot closed this as completed Sep 10, 2023
@cagnulein cagnulein changed the title [REQ]Runmaxx 9.1 Threadmill on Win 10 [REQ]Runmaxx 9.1 treadmill on Win 10 Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working toorx treadmill windows wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants