# 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](https://batviewer.com/) instead of decoding it by hand.

## Which commands are safe

Command | What it does | Verdict | 

pwr | One line for each pack in the bank | Read-only | 

pwr 1 | Detail sheet of pack 1 | Read-only | 

bat 1 | One line for each cell of pack 1 | Read-only | 

info 1 | Model, firmware, cell count, current limits, port speeds | Read-only | 

soh 1 | State of health counter per cell | Read-only | 

stat | Event counters since manufacture | Read-only | 

ver | Firmware details | Read-only | 

help | List of commands for this firmware | Read-only | 

shut | Shuts the battery down | Do not type | 

trst | Soft reset, listed as a test command | Do not type | 

updata | Starts a firmware update | Do not type | 

login | Enters an admin mode that changes what commands can do | Do not type | 

time | With arguments, sets the battery clock | Changes 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   -        -        -        -        -

Column | Meaning | In the first line | 

Power | Pack address in the bank | 1, the master | 

Volt | Pack voltage in millivolts | 49.905 V | 

Curr | Current in milliamps: positive charges, negative discharges | +11.867 A | 

Tempr | Pack temperature in thousandths of a degree | 27.9 °C | 

Tlow, Thigh | Coldest and warmest cell sensors | 26.6 and 26.8 °C | 

Vlow, Vhigh | Lowest and highest cell in millivolts. The gap is your [cell spread](https://batviewer.com/cell-spread) | 3327 and 3327 mV | 

Base.St | Charge, Dischg, Idle or Absent | Charging | 

Volt.St, Curr.St, Temp.St | Normal, or an alarm or protection state for that quantity | All normal | 

Coulomb | Charge level from the coulomb counter | 39% | 

Time | Battery clock, which is often wrong and harmless |  | 

B.V.St, B.T.St | Cell voltage state and cell temperature state |  | 

MosTempr, M.T.St | Power 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.

Abbreviation | Reads as | 

COC, DOC | Charge and discharge over-current | 

SC | Short circuit | 

Bat OV, HV, LV, UV | Cell over-voltage, high voltage, low voltage, under-voltage | 

Pwr OV, HV, LV, UV | The same four for the whole pack | 

COT, CUT, DOT, DUT | Over 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](https://batviewer.com/guides/pylontech-usb-console) covers the adapter and speed settings. Then open the [viewer](https://batviewer.com/), choose USB cable, and it sends these read commands for you.

**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.

Source: https://batviewer.com/console (BatViewer)
