Pylontech and Pytes console commands

Pylontech and Pytes batteries answer plain text commands on their CONSOLE port. pwr shows each pack, bat N shows each cell of pack N, and that is enough for most diagnoses. Keep away from shut, trst, updata and login.

The examples below are real logs from a Pylontech US5000 and two Pytes batteries. Columns differ a little between firmware versions, so read the header line of your own output. You can paste that output into the viewer instead of decoding it by hand.

Which commands are safe

CommandWhat it doesVerdict
pwrOne line for each pack in the bankRead-only
pwr 1Detail sheet of pack 1Read-only
bat 1One line for each cell of pack 1Read-only
info 1Model, firmware, cell count, current limits, port speedsRead-only
soh 1State of health counter per cellRead-only
statEvent counters since manufactureRead-only
verFirmware detailsRead-only
helpList of commands for this firmwareRead-only
shutShuts the battery downDo not type
trstSoft reset, listed as a test commandDo not type
updataStarts a firmware updateDo not type
loginEnters an admin mode that changes what commands can doDo not type
timeWith arguments, sets the battery clockChanges the battery

BatViewer can send only pwr, bat, info, soh, stat and ver. Anything else is refused in the code before it reaches the cable.

pwr: one line per pack

Power Volt   Curr   Tempr  Tlow   Thigh  Vlow   Vhigh  Base.St  Volt.St  Curr.St  Temp.St  Coulomb  Time
1     49905  11867  27900  26600  26800  3327   3327   Charge   Normal   Normal   Normal   39%      2023-09-16 11:50:32
2     49882  5182   31900  29700  30100  3325   3326   Charge   Normal   Normal   Normal   38%      2023-09-16 11:50:29
5     -      -      -      -      -      -      -      Absent   -        -        -        -        -
ColumnMeaningIn the first line
PowerPack address in the bank1, the master
VoltPack voltage in millivolts49.905 V
CurrCurrent in milliamps: positive charges, negative discharges+11.867 A
TemprPack temperature in thousandths of a degree27.9 °C
Tlow, ThighColdest and warmest cell sensors26.6 and 26.8 °C
Vlow, VhighLowest and highest cell in millivolts. The gap is your cell spread3327 and 3327 mV
Base.StCharge, Dischg, Idle or AbsentCharging
Volt.St, Curr.St, Temp.StNormal, or an alarm or protection state for that quantityAll normal
CoulombCharge level from the coulomb counter39%
TimeBattery clock, which is often wrong and harmless
B.V.St, B.T.StCell voltage state and cell temperature state
MosTempr, M.T.StPower switch temperature and its state, on newer units

Look at the current column first. In the example, pack 1 takes 11.9 A while packs 2 and 3 take about 5 A. A difference like this during charge is a reason to check the terminals and the link cables, and it is the kind of thing a single total on an inverter screen never shows.

bat N: one line per cell

Battery  Volt     Curr     Tempr    Base State   Volt. State  Curr. State  Temp. State  SOC   Coulomb      BAL
0        3331     16020    27500    Charge       Normal       Normal       Normal       45%   44231 mAH    N
1        3331     16020    27500    Charge       Normal       Normal       Normal       45%   44231 mAH    N

Cells are numbered from zero here, and the viewer shows them from one. A US5000 has 15 cells and an E-Box 48100 has 16. BAL tells you whether that cell is being balanced right now. Pytes firmware may leave out Curr and join charge level and capacity under Coulomb; the viewer handles both.

pwr N and info N: the identity sheets

info 1 gives the model, firmware versions, cell count, current limits and port speeds. On the US5000 in our sample, the console runs at 115200 baud, with limits of ±100 A. Serial numbers appear here too, so remove them before posting a log in public.

pwr 1 adds the full capacity in milliamp-hours, Charge Times, and event registers that read 0x0 when nothing is pending. Treat Charge Times as a counter of charge events and not as full cycles: the sample reads 11344, far more than any warranty cycle count on a unit of that age.

stat: the battery's memory

stat counts events over the life of the battery. It is the best way to see whether a pack has been abused.

AbbreviationReads as
COC, DOCCharge and discharge over-current
SCShort circuit
Bat OV, HV, LV, UVCell over-voltage, high voltage, low voltage, under-voltage
Pwr OV, HV, LV, UVThe same four for the whole pack
COT, CUT, DOT, DUTOver and under temperature, while charging and while discharging

Pylontech does not publish a full definition of every counter, so these readings come from the abbreviations and from how the values behave in logs. A handful of voltage events over several years is common. Hundreds of them, or any short circuit count, deserve a call to your supplier.

Connect and read

Our guide to the USB console covers the adapter and speed settings. Then open the viewer, choose USB cable, and it sends these read commands for you.

Questions

What does pwr show on a Pylontech battery?
One line per pack: voltage, current, temperatures, lowest and highest cell, state, charge level and time.
How do I see cell voltages on a Pylontech battery?
Type bat followed by the pack number, for example bat 1. Each line is one cell, in millivolts.

A reminder to check your battery

One short e-mail a month with a check to do, and a message when Pylontech publishes a new compatibility list.

Free. You confirm by e-mail and can stop at any time. Privacy.