State machine
The BMS has a state machine that defines the behavior of the BMS.
The state is available as a variable:
/driver/state
- string variable, the state name is printed/driver/statemachine/state
- integer variable, the state code is printed
Value | Mode | Description | DSC | CHG |
---|---|---|---|---|
0 | ERR | Permanent ERROR | OFF | OFF |
10 | FAIL | Fail (temporary) state | OFF | OFF |
20 | INIT | BMS is not set, minimum parametrization required | OFF | OFF |
30 | PROTECT | Transient state, verifying that the error(s) has disappeared | OFF | OFF |
40 | UNDERVOLTAGE | Undervoltage of some battery cell detected | OFF | OFF |
60 | STORAGE | Battery is being discharged to storage voltage | OFF | OFF |
70 | STANDBY | BMS switched OFF, no errors | OFF | OFF |
80 | PRECHARGING | Starting by precharging | PRE | OFF |
90 | OVERVOLTAGE | Overvoltage of some battery cell detected | ON | OFF |
100 | IDLE | Idle state - DSC port ON but no discharging or charging current | ON | OFF |
110 | DISCHARGING | Discharging battery | ON | OFF |
120 | REGEN | Charging battery by DSC from motor | ON | OFF |
125 | CHG_IDLE | Charger connected but no charging | ON | OFF |
130 | CHARGING | Charging battery by CHG from charger | ON | ON |