Current and voltage readings
This is a list of all variables that are related to battery pack current and voltage readings.
info
- All mentioned variables are located in folder
/driver/. - Positive current is flowing from the battery to the load. (ie. making the battery discharge)
- Negative current is flowing from the load to the battery. (ie. making the battery charge, regenerative braking)
Pack-level readings
| Variable | Unit | Description |
|---|---|---|
current | A | RAW unfiltered current of battery pack |
currentf | A | Filtered current of battery pack |
voltage | V | Battery pack voltage |
power | W | Power of battery pack |
The filtered current currentf is used by the pack current limiter and by the current direction detection which drives the DISCHARGING / REGEN / CHARGING / IDLE states (see idle configuration).
Port-level readings
| Variable | Unit | Description |
|---|---|---|
/dsc/idscf | A | Filtered current through DSC port |
/dsc/udscf | V | Filtered voltage at DSC port |
/chg/ichgf | A | Filtered current through CHG port |
/chg/uchgf | V | Filtered voltage at CHG port |
Hardware status
| Variable | Description |
|---|---|
hw_error | Hardware error code (negative: init error, positive: runtime error) |
state | Current state name (string), see state machine |
heatsink_isol | [V] Heatsink isolation voltage. 1.65 V means the heatsink is isolated. |
A non-zero hw_error puts the BMS into the ERROR state ("Hardware error", value 10 in errorLog).
hw_error value | Meaning |
|---|---|
| -1 | Balancer initialization failed - the balancer IC could not be started (communication problem) |
| -3 | Configuration error - the cell count parameter /driver/balancing/Scount is 0 (the BMS enters the INIT state) |
| -4 | Temperature sensor configuration error - at least one TS input must be configured as NTC (conf=3). See temperature inputs. |