Skip to main content
Firmware Stable

Diagnostic

info
  • Only BMS1 have RTC clock. Use sync_time.cmd command to synchronize the time between PC and BMS. (Avaliable in cmd folder in the SWTools)
  • You can set the time also for BMS3, but the internal oscilator is not as precise as the RTC clock and the time will drift.

To print debug information, you can use the wtf command in the term. The command will print the debug information in the terminal, this is example output:

BMS#>wtf

== BMS info ==
Error: 0
State: STBY

== Baterry info ==
Voltage: 50.26 [V]
Current: -0.02 [A]

Cell min voltage: 3614 [mV]
Cell max voltage: 3625 [mV]
Cell diff voltage: 11 [mV]

Temperature batt: 22.5 [C]
Temperature BMS: 28.5 [C]

= Best state =
SOC: 31 [%]

= Balancer state =
NONE

= Switch state =
Ports: 0

= Limiter state =
Cell voltage MIN

= Wake source log =
1 - CAN
1 - CAN
4096 - BTN

= Protect/uv/ov source log =
2 - Shortcut
2 - Shortcut
2 - Shortcut

= Fail/error source log =
0 - NONE
0 - NONE
0 - NONE

= MCU reset reason =
SWrst

tip

If you call wtf 6, you will print the debug information for 6 logs in the past. There are 20 logs stored in the BMS.

BMS Log Messages

This is description of the log messages. The messages are printed in the terminal when they happen. You can also see the log messages by

|2022-02-16 12:03:47 IDLE Shortcut| [err| drv: 0, bal: 0] [44% 51.8600V 0.0A, min: 3723mV 21C, max: 3742mV 21C]