Skip to main content
Firmware Stable

Shell commands

Reference of all shell commands available in the BMS driver firmware.

Device control

CommandUsageDescription
swsw <0|1>Switch BMS ports: 0 = OFF, 1 = ON
swctlswctl <port> <value>Low-level switch control (debug)
awakeawakeKeep the BMS awake (prevent sleep)
clr_errclr_errClear the ERROR state and reset the fail_counter and shortcut_counter permanents
reinitreinitRe-initialize the balancer IC (e.g. after changing Scount)

Balancing

CommandUsageDescription
balancebalance [on|off|bitmask]Override standard balancing: on forces balancing on, off forces it off, a cell bitmask balances specific cells. Without arguments, the override is cancelled and standard balancing resumes. The override is indicated by balCmd bit 2 and balState bit 128.

Storage

CommandUsageDescription
storagestorageEnter storage mode
info

The storage command is only available if the storage feature is enabled in the firmware build.

Diagnostics

CommandUsageDescription
wtfwtf [history_steps]Print diagnostic info. Optionally show N history entries.
print_infoprint_info [N]Alias for wtf
driver_logdriver_logCreate a manual log entry
driver_pmerasedriver_pmeraseErase all permanent limit data

Calibration

CommandUsageDescription
calibcalibFactory calibration (requires highest permissions)
usrcalibusrcalibUser calibration for custom device information
warning

The calib command is restricted to factory use and requires the highest access rights.