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

Erratic ERG in Trainer Day #547

Open
aopenshaw opened this issue Apr 22, 2024 · 20 comments
Open

Erratic ERG in Trainer Day #547

aopenshaw opened this issue Apr 22, 2024 · 20 comments

Comments

@aopenshaw
Copy link

-->

Description

Begin workout in TrainerDay in ERG mode. After a short time ERG becomes disabled in TD screen and slope mode is the only option. During the remainder of the workout I use the shifter to control the resistance. Sometimes during this interval, the shifter will let me shift up but not down so I have to use the manual knob to lower the resistance. I am also experiencing dropouts during the workout. I cannot return to ERG mode unless I disconnect and reconnect the bike. Sometimes I have to exit the app also.

Steps to reproduce

Sometimes

  1. Begin workout in TrainerDay
  2. Use ERG mode until it becomes disabled.
  3. [Continue with Slope mode for the duration

Expected behavior

Should be able to use ERG or slope mode during workout and switch back and forth

Actual behavior

ERG controls resistance for a while then becomes disabled

Additional Information

I have contacted TrainerDay and they are willing to work with you to correct the problem. They are looking into it but are unfamiliar with SS2K. They wanted me to submit a ticket to you as well. They have not seen this behaviour on other trainers. Logs and image attached.

Schwinn IC4
Tempo Power Meter on Left Crank connected through SS2K
Samsung Galaxy 7 FE Tablet
sweet spot A.txt
sweetspot a-trainer day

@eMadman
Copy link
Collaborator

eMadman commented Apr 22, 2024

Looking at the logs, your erg targets are coming below 50 watts - which is the default minimum allowed by the SmartSpin2k. This is a safety feature intended to prevent the knob from crashing to its physical limit. You can lower this setting in the SS2K companion app or web config of the smartspin2k.

Take the SmartSpin2k off your bike and lower your resistance to something approx 1-2 full turns from the physical lower limit of the knob. Pedal at 90rpm and record the watts reported by your power meter. Set this as your min brake watts. That should get you going.

@aopenshaw
Copy link
Author

aopenshaw commented Apr 22, 2024 via email

@aopenshaw
Copy link
Author

I just did another couple of short test rides at higher target wattage and the ERG still quits working sometime early in the ride. Minimum wattage is set at 55. Is there a particular test I could do to help diagnose? Thanks!

@doudar
Copy link
Owner

doudar commented Apr 22, 2024

What I saw in the log, it looked like it might be kicking off while the ERG target was around 50w on the previous log. What I'd try is to set your min brake power around 20-30w and see if that helps at all. My theory right now is that it is getting blocked by the software stepper limits and so trainer day eventually gives up on ERG, since SS2k isn't able to maintain it within those low limits. The problem with low power on the spin bike is that the brake becomes very ineffective under about 60w (mechanical friction and air resistance are starting to provide a very significant portion of the total resistance at that point rather than the flywheel brake.)

If you can send another log with higher limits, that would help. Otherwise, I'll check into this myself when I get time tonight or tomorrow.

Thanks!

@aopenshaw
Copy link
Author

Did another short test with short target intervals going from 65w to 90w. I set the minimum wattage to 35 before I did this. Had one dropout at first but it reconnected and ERG stayed on for the full ride although it was a short one. Logs are attached. Thank you!
04222024 logs 65w-90w.txt

@aopenshaw
Copy link
Author

Did another with the same intervals. I selected ERG and the indicator on the app said I was in ERG but it never took control. Logs attached.
65w-90w-no control.txt

@aopenshaw
Copy link
Author

Have you had a chance to test this? I am having really erratic behavior with Trainer Day. It seems to have problems controlling the device. I have never had any problems like it with any other app.

@doudar
Copy link
Owner

doudar commented Apr 28, 2024

Sorry - busy week. I just went through the code and am about to test it. I think I found a bug that might have been causing this:

if (abs(this->setPoint - newWatts.getTarget() > 20)) {

Changed to:

if (abs(this->setPoint - newWatts.getTarget()) > 20) {

Attached is a firmware.bin if you would like to test it. Unzip first, then upload (preferably via wifi). User and pass are admin. firmware must be named exactly firmware.bin

firmware.zip

@doudar
Copy link
Owner

doudar commented Apr 28, 2024

I just test rode it and it's good on my end. I'm going to merge this change into develop

Fixed by #546

@aopenshaw
Copy link
Author

Thanks! I will give it a try tomorrow.

@aopenshaw
Copy link
Author

Tried a couple of tests and it seems to be tracking now. The only weird thing I noticed is that when I started a couple of workouts the resistance shot up to 50 at the beginning even though the target was 55 w. After pedaling through it it tracked back down though. Thank you and I will let you know after a few rides how its going but I hope this has fixed the problem in TD.

@eMadman
Copy link
Collaborator

eMadman commented Apr 28, 2024

Tried a couple of tests and it seems to be tracking now. The only weird thing I noticed is that when I started a couple of workouts the resistance shot up to 50 at the beginning even though the target was 55 w. After pedaling through it it tracked back down though. Thank you and I will let you know after a few rides how its going but I hope this has fixed the problem in TD.

What was your cadence that triggered the high resistance? Generally speaking, this is behavior you'll encounter at a too low cadence because the smartspin2k is trying to bring you up to the target wattage.

@aopenshaw
Copy link
Author

I usually start the workout and then start pedaling so zero at first and quickly ramped up to 85 but by that time it shot up. So are saying there is no delay at the beginning of a workout? Should I have the cadence up before I begin the workout?

@aopenshaw
Copy link
Author

aopenshaw commented Apr 29, 2024

Had lots of problems in TrainerDay this morning. Unfortunately I did not get all of the logs but I did pause a couple of times to start some logs. It never would track in ERG mode. I started the workout and the first interval I came to it remained at the previous resistance. I paused the workout and started the logging again.

In the first log it just kept chasing from resistance 7 to 60 up and down and never settled down. I disconnected and reconnected again and set it in ERG mode and on the second log it never tracked at all...just acted like it was in incline mode.

Custom UDP Receiver (Port 10000)0429-2.txt
Custom UDP Receiver (Port 10000)0429-1.txt

@aopenshaw
Copy link
Author

aopenshaw commented Apr 30, 2024 via email

@eMadman
Copy link
Collaborator

eMadman commented Apr 30, 2024

Hey unfortunately I'm still having major problems. When you have a chance can you take a look at my logs and see what's going on? Thanks! ⁣Andy Openshaw Sent from BlueMail ​

On Apr 28, 2024, 11:01 AM, at 11:01 AM, Emad Ghazipura @.***> wrote: > Tried a couple of tests and it seems to be tracking now. The only weird thing I noticed is that when I started a couple of workouts the resistance shot up to 50 at the beginning even though the target was 55 w. After pedaling through it it tracked back down though. Thank you and I will let you know after a few rides how its going but I hope this has fixed the problem in TD. What was your cadence that triggered the high resistance? Generally speaking, this is behavior you'll encounter at a too low cadence because the smartspin2k is trying to bring you up to the target wattage. -- Reply to this email directly or view it on GitHub: [#547 (comment)](#547 (comment)

My test ride last night failed in spectacular fashion. I'm running into issues with the Trainer Day app not sending data to my SmartSpin2k. My early theory is that the Trainer Day app loses connection to the device if the app loses focus but it's hard to say right now. In-app, the smartspin2k looks connected but nothing's being sent.

This will need more time to test and reproduce. It may not be an overnight fix.

In the meantime, can you export the trainer day workouts to be used in another app? Qdomyos-Zwift is a good option for riding the exported .zwo workouts. Flux is an interesting option as well but it's very dependent on your web browser.

@aopenshaw
Copy link
Author

Will do. Yes it is strange. I had two perfect workouts and the next time I never could get it to track ERG, even with reboots, etc. Thanks for looking into this.

@doudar
Copy link
Owner

doudar commented May 1, 2024

Just checking in - I have a very busy couple of weeks here. I’m paying attention, but it will be a bit before I can look at this more.

@aopenshaw
Copy link
Author

Thank you! I saw this pop-up on the TD forum just today. Do you think this might be related?
https://forums.trainerday.com/t/last-interval-power-target-didnt-change-kept-prior-interval-power/37381

@doudar
Copy link
Owner

doudar commented May 1, 2024

Yah, browsing the forums, I see a lot of little issues there and I think they’re all seen here in one way or another.

On my testing that worked, I force closed the app, started a workout, kept the app in the foreground the entire time. This was on iOS.

Then I had some other testing to do and so I closed the app, opened Zwift … and TrainerDay never released control, so I needed to force quit TrainerDay again.

So, from my testing, I think it works, but I think their app has a lot of issues when it loses focus. Which, on iOS, I understand because iOS multitasking isn’t great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants