-
Notifications
You must be signed in to change notification settings - Fork 59
08 Control State and Troubleshooting
Xnyle edited this page Oct 21, 2018
·
18 revisions
When connecting via BluOSEC or enabling diagnostics the controller reports its state via ui16_control_state. In the BluOSEC App you can watch the state field after swiping vertically over the "Trip monitor" pane which will switch through 3 views, "Trip monitor","Phase/Hall infos" and "Details"
Control state is to be considered bitwise. If you don't understand what that means, take a look here: https://www.wikihow.com/Read-Binary
- 1 you are in torquesimulation and pedaling slower than ramp end
- 2 you are in torquesimulation and pedaling faster than ramp end
- 4 you are in torquesensor mode
- 8 throttle / torquesensor factor is influenced by speed (ui8_speedlimit_kph)
- 16 throttle / torquesensor currecntly overrides torque simulatiom / cadence
- 32 overspeed ramp down
- 64 max battery current limiting
- 128 phase current limiting
- 256 ui32_dutycycle is set to zero via ui16_aca_experimental_flags (experimental, dangerous, only for finding the correct motor angle while tudning the wheel by hand)
- 512 experimental PWM power of is enabled
Example: 34 is 32+2 meaning you are:
- in torquesimulation and pedaling faster than ramp end
- overspeed and power output is being ramped down
- -1 digital regeneration is activated
- -2 analog regeneration (via x4 throttle) is activated
- -4 speed influences regen is active and regen is ramped down below speed threshold
- -8 regen is being optimized @ low speed (only tested with BionX IGH)
- 255 alone means PWM got turned off due to undervoltage.
- 0 alone means the erps limit (depending on motor something >60-100kph) was reached