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

Not working with TrainerDay #515

Closed
docholiday1234 opened this issue Jan 19, 2024 · 5 comments
Closed

Not working with TrainerDay #515

docholiday1234 opened this issue Jan 19, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@docholiday1234
Copy link

SS2K is not working with Trainer Day app iOS 17.0.3

Steps to reproduce

  1. Open App
  2. Connect SS2K
  3. Start workout
  4. App take control of SS2K and raises or lowers resistance until it bottoms out. I

Expected behavior
It should raise or lower resistance consistent with ERG mode wattage setting

Actual behavior
resistance seems to acting sporadically

Additional Information

Custom UDP Receiver (Port 10000).txt

@doudar
Copy link
Owner

doudar commented Jan 20, 2024

Thank you for the logs!!

The issue appears to be that TrainerDay sends ERG targets at least once per second. Currently the SmartSpin2k ERG algorithm uses the lookup table for the first two seconds after it receives a ERG target and then after the two seconds elapses, it uses a normal positive feedback control loop. With these rapid fire ERG targets, the current scheme never gets a chance to go into a positive control mode and the rapid ERG targets keep it spiraling out of control.

It also appears that this fast ERG target sending is breaking the protections in place to keep the resistance in bounds on the Peloton (further complicating the issue as it starts to build a bad table due to skipped motor steps).

I have some possible fixes in mind.

@doudar
Copy link
Owner

doudar commented Jan 20, 2024

New branch #516

@doudar doudar self-assigned this Jan 20, 2024
@doudar doudar added the bug Something isn't working label Jan 20, 2024
@doudar
Copy link
Owner

doudar commented Jan 20, 2024

firmware.zip
@docholiday1234 , give this firmware a try.

Instructions:
https://github.com/doudar/SmartSpin2k/wiki/Loading-Software
Use the "Updating your existing software" section, except use the binary from the zip file attached to this message.

@docholiday1234
Copy link
Author

Hi, It shifted back and forth, immediately and constantly increasing and decreasing the resistance. Then I turned up the watts and it seems to increase resistance but then when I turned back down the watts it still increased resistance although it never 'bottomed out' and now that I'm not even pedaling it is still changing resistance.

Trainer Day Log 2.txt

@doudar
Copy link
Owner

doudar commented Jan 20, 2024

firmware.zip
This is the latest build. It should work for you.

@doudar doudar mentioned this issue Jan 20, 2024
@doudar doudar closed this as completed Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants