Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Zwifit Frontend and Zwifit-incline-tracker incline control not working #40

Open
FuturityUK opened this issue Apr 9, 2021 · 2 comments

Comments

@FuturityUK
Copy link

Describe the bug
Zwifit is unable to control treadmill incline until a random time (20+ minutes) after the treadmill is started. I'm trying to work out how to switch my (Proform Pro 1000) into mode 2 (control mode) where the treadmill can be controlled by Zwifit.

When I say mode 2, I've seen it enter this mode via Zwifit debug code I've added when I was lucky enough to enter this mode. This allows the treadmill to be controlled, so I'm calling it control mode (a bad name for it I know).

This functionality is required so that the Zwifit Frontend and Zwifit-incliner can control the incline. The treadmill eventually switches to this mode, making a series of tones. Does Zwifit instruct the treadmill to enter mode 2 (control mode), or does the treadmill tell Zwifit that it can now be controlled?

To Reproduce
Mode 0: Initial state when searching for the treadmill
Mode 1: Treadmill power turned off
Mode 8: Treadmill power turned on. Key not plugged it. Display off. ifit light on.
Mode 1: Treadmill key inserted after being in state 8
Mode 10: Treadmill started
Mode 2: Expect control mode to be entered here.
Mode 3: Treadmill stopped
Mode 8: Key removed

Mode 2 (control mode) when the treadmill can be controlled by Zwifit, seems to occur randomly after 20 minutes or so. So randomly that I'm having problems going into this mode as I type this up. Until this mode is in operation, changes in speed, Incline, etc made on the treadmill are seen by Zwifit.

Expected behavior
When Zwifit makes a connection with the treadmill, entering mode 10, it should then switch to allow control of the treadmill so that both monitoring and control are possible.

Screenshots
N/A

Desktop (please complete the following information):
Raspbian, Zwifit, Treadmill

Additional context

None

@FuturityUK
Copy link
Author

To clarify, during testing, the Raspberry Pi 3 is sat on the Proform Pro 1000 dashboard, directly under the treadmill display.
With Zwifit already running, as soon as the Treadmill is powered up, it connects that instant.

Also, I have entered this control mode at least 5 times and have been able to control the incline etc.

@FuturityUK
Copy link
Author

I've run two test and have some promising results.

Mode 2 has the ability to control the treadmill.

Entering mode 2 doesn't appears to be random as first thought. It takes precisely 5 minutes after pressing the start button (resulting in the belt moving). So 5 minutes after the belt starts moving.

Is this something hardcoded into Zwifit, or is this the treadmill getting the user to do a 5 minute warmup?

Test 1: 

  • 20:30:2 - Mode:  8 - Treadmill turned on - ifit light on
  • 20:30:18 - Mode:  1 - Treadmill key inserted after being in state 8
  • 21:6:15 - Mode:  10 - Treadmill started - Belt moving
  • 5 minutes exactly
  • 21:11:15 - Mode:  2 - Control mode - Belt moving
  • 21:11:51 - Mode:  3 - Treadmill stopped - Belt stopped - Results shown
  • 21:12:3 - Mode:  4 - Stop button pressed again - done shown on display
  • 2 minutes exactly
  • 21:14:3 - Mode:  1 - switched back to this automatically.

Test

  • 2:21:20:48 - Mode:  8
  • 21:21:23 - Mode:  1
  • 21:34:27 - Mode:  10
  • 5 minutes exactly
  • 21:39:28 - Mode:  2

I hope this helps.

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

No branches or pull requests

1 participant