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

[BUG] Domyos EL 520 auto resistance #1252

Closed
josetta opened this issue Feb 7, 2023 · 54 comments · Fixed by #1444
Closed

[BUG] Domyos EL 520 auto resistance #1252

josetta opened this issue Feb 7, 2023 · 54 comments · Fixed by #1444
Assignees
Labels
bug Something isn't working domyos elliptical kinomap
Milestone

Comments

@josetta
Copy link

josetta commented Feb 7, 2023

Describe the bug
I tried latest beta of application QD-Z to check issue #1191, actually fixed in #1046. Watt calculation is working ok, but autoresistance is not working on my elliptical Domyos EL 520. I tried it on Zwift (both bike and run, with training program and as free ride too) and kinomap too. On Kinomap, there may be problem that I could connect QD-Z app with kinomap only as threadmill initial run, in elliptical devices, it just couldn't find it, maybe it is the problem? :)

THX

To Reproduce
Steps to reproduce the behavior:
A.

  1. In QD-Z app, set in elliptical settings inclination support to off
  2. Go to Zwift app
  3. Connect QD-Z with Zwift as bike or as run
  4. Select free ride/run or training program
  5. Start ride or run
  6. ERG is not changing resistance
    B.
  7. In QD-Z app, set in elliptical settings inclination support to off
  8. Go to Kinomap app
  9. Connect QD-Z with Kinomap as threadmill (I couldn't connect it as elliptical)
  10. Select video, tap train now, select QD-Z device and challenge mode
  11. Tap start and start workout
  12. In mobile app, inclination is showing ok but on big screen through browser on windows, inclination is showing 0,0% and resistance is not changing

Expected behavior
A. After starting workout on Zwift, during free ride, it should rise or lower resistance by inclination of road, during training program, it should rise or lower resistance to get correct watts or correct speed or correct rpm (not sure, how this is actually working :))
B. After starting workout on Kinomap, it should raise or lower resistance by changing inclination

Screenshots
I will add

Desktop (please complete the following information):

  • OS: Windows
  • Version: 10

Smartphone (please complete the following information):

  • Device: HTC 650; Samsung Galaxy S10
  • OS: Android
  • Version 6.0.1; 12

Append a debug log

debug-Tue_Feb_7_17_27_23_2023-kinomap.log
debug-Tue_Feb_7_17_35_54_2023-zwift free ride.log
debug-Tue_Feb_7_17_43_25_2023-zwift train mode.log

Additional context
Add any other context about the problem here.

@josetta josetta added the bug Something isn't working label Feb 7, 2023
@cagnulein
Copy link
Owner

hi @josetta please attach a debug log of the issue. Thanks

@josetta
Copy link
Author

josetta commented Feb 8, 2023

Hi, I added 3 logs, first is kinomap, second is zwift free ride and third is workout mode (well I actually don't remember if those zwift weren't reversly, but those two are from zwift :) )

@cagnulein cagnulein changed the title [BUG] [BUG] Domyos EL 520 auto resistance Feb 8, 2023
@cagnulein
Copy link
Owner

ok i will check them ASAP

@cagnulein
Copy link
Owner

@josetta I got the issue, with the elliptical inclination setting to OFF, i'm still trying to change the inclination when I'm receiving the information from zwift.

cagnulein added a commit that referenced this issue Feb 8, 2023
@cagnulein
Copy link
Owner

@josetta i tried to do a patch and also I added some new debug print. I don't know if you are on the closed beta on google, in case send me an email to roberto.viola83 at gmail.com and I will add you
The version with this fix is the 2.12.61

@josetta
Copy link
Author

josetta commented Feb 8, 2023

thx, I am on beta, I will check at home and let you know :)

@cagnulein
Copy link
Owner

are you sure you are on the closed beta? checking the version number of your log, you're on the open beta. I suggest to send me an email with your google play account and I can check it

@josetta
Copy link
Author

josetta commented Feb 8, 2023

ah there is an open and closed beta? :D I connected through link you sent me, but on other email, because I have bought application on my wifes google account... I'll sent you an email with correct email :)

@cagnulein
Copy link
Owner

yes and also an internal beta :) QZ is a whole world :D and i'm going crazy :D

@josetta
Copy link
Author

josetta commented Feb 13, 2023

Hi, so I tried it today (2.12.63 version) and still not working not on zwift (tried both running and cycling) nor kinomap :) adding log, it will be a little bigger, I can do shorter logs tomorrow :)
debug-Mon_Feb_13_17_20_52_2023.log

@cagnulein
Copy link
Owner

cagnulein commented Feb 13, 2023 via email

@cagnulein
Copy link
Owner

find the issue!
send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS. Thanks

cagnulein added a commit that referenced this issue Feb 14, 2023
@cagnulein
Copy link
Owner

@josetta did you try this?

@josetta
Copy link
Author

josetta commented Feb 21, 2023

hi, yes, tried actually yesterday (I hurt my ankle saturday on flat place, so I had to rest a little before I could try it :) ) still not working... 😭 I have logs and one screenshot, but phone is out of energy so I am going to upload when it will charge a little... THX :) I tried only Kinomap

@cagnulein
Copy link
Owner

(I hurt my ankle saturday on flat place, so I had to rest a little before I could try it :)

nooo so sorry to hear this!

still not working... 😭 I have logs and one screenshot, but phone is out of energy so I am going to upload when it will charge a little.

ok thanks, should be something stupid on my side

@josetta
Copy link
Author

josetta commented Feb 21, 2023

I am adding log from yesterday, there is connected as threadmill and as bike too, it not worked on any of this :)
debug-Mon_Feb_20_08_45_03_2023.log
I uploaded picture from Kinomap, as you can see, on map there is raising terrain, but on kinomap inclination (under 200 watts), inclination is 0,0. It shows 0.0 whole time. I noticed this only when I connect it as threadmill, as bike, it changes (but still not adds resistance)
1676980424010

@cagnulein
Copy link
Owner

I am adding log from yesterday, there is connected as threadmill and as bike too, it not worked on any of this :)

do you have also a debug log with "Treadmill as a Bike" setting on?

Because I found the reason why it's not working in the standard way, but on treadmill as a bike it should works. Let me know

cagnulein added a commit that referenced this issue Feb 21, 2023
@josetta
Copy link
Author

josetta commented Feb 21, 2023

Hi, I did log today, I tried two things... First I connected as threadmill, but with threadmill as a bike, it shows no data on kinomap, so speed cadence where 0... Second I connected as bike and it start working corectly (at least for short time, I measured it)... If I will have to had set it as a bike, I will have to set speed and watts correctly (400w at speed 22kps is nonsense :) ) but I think, it is possible in your app :) but if it will work as a threadmill, it would be great :) everything tried on kinomap, I would try how is it working on zwift tomorrow too :)
debug-Tue_Feb_21_18_22_56_2023.log

@cagnulein
Copy link
Owner

cagnulein commented Feb 21, 2023 via email

@cagnulein
Copy link
Owner

@josetta actually the fix it's already available in the 2.12.70!
Let me know it's already online

@josetta
Copy link
Author

josetta commented Feb 25, 2023

Hi, so I tried it, it is working on kinomap when I add equipment as a bike (with threadmill as a bike option off), when I add equipment as a threadmill it is not working :) Is it possible to make it work as a threadmill or elliptical too, so I can do it as run workout ? Or it would be too problematic? I will try sometime zwift too, but actually I have onl 15km left on last I bought it and I need to find some route, that starts climbing immediately :D

@cagnulein
Copy link
Owner

cagnulein commented Feb 25, 2023 via email

@josetta
Copy link
Author

josetta commented Feb 25, 2023

yes, new version .70 :D ok I ll go to do a debug when kid wakes up :D

@stale stale bot added the wontfix This will not be worked on label Mar 30, 2023
@josetta
Copy link
Author

josetta commented Apr 6, 2023

Hi, I tried the bike version on Kinomap few days ago, but during workout, it disconnected me for few second and after that it seemed it connected back, it seemed like it is working, but it worked like "autopilot", app stopped changing resistance and it has some default speeding (when I stopped moving, in Kinomap I was still moving at same speed rate :D) adding log :)
debug-Mon_Apr_3_19_36_44_2023.zip

@stale stale bot removed the wontfix This will not be worked on label Apr 6, 2023
@cagnulein
Copy link
Owner

it seemed like it is working, but it worked like "autopilot", app stopped changing resistance

what do you mean? in the log I saw that kinomap sends the inclination and I'm forcing the resistance accordingly to it. Don't you see it?

has some default speeding (when I stopped moving, in Kinomap I was still moving at same speed rate :D) adding log :)

in your log I saw that when you stop moving, cadence, power and speed sent to kinomap is 0, so it must be a bug on the kinomap side. On the FB group of QZ there is a Kinomap developer, if you want we can ask to him to check the log on his side

Let me know

@josetta
Copy link
Author

josetta commented Apr 6, 2023

OK, I will try it today again (I'll go run :)) if it will happens again, I will check exact time when it disconnected :) Maybe it was only one time prob :) It seems to me, that Kinomap thought it was reconnected again, but data in QZ and Kinomap was totally different after this disconnecting :)

@cagnulein
Copy link
Owner

cagnulein commented Apr 6, 2023 via email

@josetta
Copy link
Author

josetta commented Apr 6, 2023

yes, it stopped working after disconnection :) sry, how I am older, my english is worse :)

@cagnulein
Copy link
Owner

yes @josetta confirmed, after the disconnection kinomap doesn't send info anymore. Which is your setup? Android device for qz and another android device for kinomap? QZ is always on foreground? the name of the qz device is something like "bike" or "run"?

@josetta
Copy link
Author

josetta commented Apr 6, 2023

I tried it again, now as run, first disconnecting has been abou 12m 30s to 13m, only short and connected correctly... next disconnectionhas been about 25m, but after that, kinomap didn't connect again, so I had to turn kinomap off and again on and resume workout. Last disconnection, that I had to turn off and on kinomap again has been near end, about last minute, when big 12% inclination started. I didn't have to turn off and on QZ app, just always add new equipment in kinomap... Maybe change of MAC address on the fly? I didn't noticed that so I can't confirm it, but if you see it in logs, you can check, if MAC address was still same. I am adding log... QZ name is "run" and is always foreground (I turned off all battery saving settings on QZ app and I turned on display to maximum, which is one hour on that device)

My setup is QZ on Android 6 and kinomap on android 12

debug-Thu_Apr_6_11_46_30_2023.zip

@cagnulein
Copy link
Owner

I can't check if the mac address is still the same unfortunately, but if you need to pair it again it means that it's changing (this is from android 4.4.2 so it's the default behaviour). We need to understand why it's disconnecting. Are you experiencing the same on zwift?

@josetta
Copy link
Author

josetta commented Apr 6, 2023

on zwift I didn't noticed it... to me it seems that maybe some error on changing inclination, on neg. inclination, it still stays on resistance 5, and last time it disconnected, it changed from 6% inc to 12%, but I don't have proof :)

@cagnulein
Copy link
Owner

no i don't think so, check this

under -3 grade the resistance is 1 accordingly to your settings and there is no disconnection

po apr 3 19:48:02 2023 1680544082744 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "calculated erg grade -3.525"
po apr 3 19:48:02 2023 1680544082819 Debug: ../src/bluetooth.cpp void bluetooth::debug(const QString &) "writing resistance 1"
po apr 3 19:48:33 2023 1680544113297 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "new requested resistance zwift erg grade -585 enabled \u0001"
po apr 3 19:48:33 2023 1680544113298 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "calculated erg grade -8.775"
po apr 3 19:48:44 2023 1680544124439 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "new requested resistance zwift erg grade -385 enabled \u0001"
po apr 3 19:48:44 2023 1680544124444 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "calculated erg grade -5.775"
po apr 3 19:48:45 2023 1680544125484 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "new requested resistance zwift erg grade -300 enabled \u0001"
po apr 3 19:48:45 2023 1680544125491 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "calculated erg grade -4.5"
po apr 3 19:48:57 2023 1680544137690 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "new requested resistance zwift erg grade -100 enabled \u0001"
po apr 3 19:48:57 2023 1680544137691 Debug: ../src/characteristicwriteprocessor.cpp virtual void CharacteristicWriteProcessor::changeSlope(int16_t, uint8_t, uint8_t) "calculated erg grade -1.5"
po apr 3 19:48:57 2023 1680544137757 Debug: ../src/bluetooth.cpp void bluetooth::debug(const QString &) "writing resistance 3"

@josetta
Copy link
Author

josetta commented Apr 6, 2023

hmm I didn't set anything... on inclination 0 I have resistance 5 and on negative inclination it is still 5, but it is default, I didn't see settings where I can set how ERG should behave in QZ :) I just set speed and wattage in advanced settings to copy my running data... but on todays workout, my resistance didn't go under 5

@cagnulein
Copy link
Owner

cagnulein commented Apr 6, 2023 via email

@stale
Copy link

stale bot commented Apr 21, 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 Apr 21, 2023
@stale stale bot closed this as completed Apr 28, 2023
@josetta
Copy link
Author

josetta commented Apr 29, 2023

Hi, I am reopening it again, disconnecting on android is still an issue on kinomap, but now I am trying to make it work on RPI 4, I get connected my EL520 with RPI, but Kinomap didn't see device. I added some packages for better managing BT devices, but now I am stuck on connecting (other times I can see other devices like my soundbar) :) I am sending log, I can try to remove those BT packages (I added packages from this cmd line: sudo apt install bluetooth pi-bluetooth bluez blueman)
debug-so_apr_29_21_50_30_2023.zip

@cagnulein cagnulein reopened this Apr 30, 2023
@stale stale bot removed the wontfix This will not be worked on label Apr 30, 2023
@cagnulein
Copy link
Owner

@josetta i will check it asap ;)

@josetta
Copy link
Author

josetta commented Apr 30, 2023

Hi, I removed additional BT packages, reset BT to default and sending log :) kinomap still cant see it :)
debug-ne_apr_30_12_09_08_2023.zip

@cagnulein
Copy link
Owner

cagnulein commented Apr 30, 2023 via email

@cagnulein
Copy link
Owner

@josetta i created this PR for you #1444
Pull it and build it. I guess I found your issue
Let me know

@josetta
Copy link
Author

josetta commented May 3, 2023

Hi, I tested it, worked like a charm on RPI :) No disconnection, who knows, why is it disconnecting on android :)but for now it is working on RPI , so you can merge it :) THX for GR8 job and have a nice day :) We will see in next bug sometime :)

@cagnulein
Copy link
Owner

glad to hear this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working domyos elliptical kinomap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants