MetriX

The desktop app for
Maxwell’s BMS

MetriX connects to the BMS over CAN with a PCAN-USB adapter. It shows live pack data, reads and writes the configuration, flashes firmware, runs UDS diagnostics and includes CAN bus tools.

PCAN-USBUDS · ISO-TPJ1939DBC.trc / .logMaxwell Cloud
Runs on Maxwell’s CAN, ISO-TP and UDS libraries
018FF01D [8] 17 A8 0E D3 0E BD 00 10018FF02D [8] 61 A3 00 00 03 20 00 00018FF03D [8] 47 45 48 46 00 00 00 00018FF04D [8] 00 00 00 00 00 00 00 00018FF05D [8] 91 C0 C8 00 00 00 00 04018FF07D [8] 00 02 00 08 00 00 00 00018FF0DD [8] 01 25 00 00 18 0B 02 00018FF0FD [8] 00 16 02 5E 00 00 00 00018FF10D [8] 00 00 00 00 00 00 00 00018FF12D [8] 00 00 00 00 00 00 00 00018FF13D [8] 00 00 00 00 00 00 00 00018FF2DD [8] 4D 58 57 2D 43 54 4C 2D018FF30D [8] 00 0C 0E C8 0E CF 0E C8018FF31D [8] 45 45 45 46 47 47 00 00018FF32D [8] 25 80 01 2C 00 00 00 00018FF33D [8] 02 F8 0C 8D 00 00 00 00018FF3CD [8] 64 64 00 00 00 50 00 00018FF01D [8] 17 A8 0E D3 0E BD 00 10018FF02D [8] 61 A3 00 00 03 20 00 00018FF03D [8] 47 45 48 46 00 00 00 00018FF04D [8] 00 00 00 00 00 00 00 00018FF05D [8] 91 C0 C8 00 00 00 00 04018FF07D [8] 00 02 00 08 00 00 00 00018FF0DD [8] 01 25 00 00 18 0B 02 00018FF0FD [8] 00 16 02 5E 00 00 00 00018FF10D [8] 00 00 00 00 00 00 00 00018FF12D [8] 00 00 00 00 00 00 00 00018FF13D [8] 00 00 00 00 00 00 00 00018FF2DD [8] 4D 58 57 2D 43 54 4C 2D018FF30D [8] 00 0C 0E C8 0E CF 0E C8018FF31D [8] 45 45 45 46 47 47 00 00018FF32D [8] 25 80 01 2C 00 00 00 00018FF33D [8] 02 F8 0C 8D 00 00 00 00018FF3CD [8] 64 64 00 00 00 50 00 00
Battery

Live pack data

The Overview page shows state of charge, health and overload, pack voltage, current and power, each cell voltage, each temperature sensor, the relay states, and the BMS’s active errors and events.

72%State of charge
Idle
PrechargeDischargeChargeIgnition (ISO 0)
Pack voltage60.56V3785 mV per cell
Current-0.1ALimits -150 / +80 A
Power0.00kW3.21 kWh available
Cell spread22mV3.773 – 3.795 V
96%Health
100%Overload
Last 2 min · current and voltage

Cell voltages16 cells

highest lowest
Highest
3.795 V
Lowest
3.773 V
Average
3.785 V
Spread
22 mV
12345678910111213141516

Temperatures6 sensors

Max
30.7 °C
Min
29.1 °C
Mean
29.8 °C
T129.1°
T229.1°
T329.4°
T430.1°
T530.7°
T630.5°
Board31.5 °C
PDU29.8 °C
Humidity40.9 %
Cell voltages
Bars on a zoomed scale, so a few millivolts of imbalance are visible. The highest and lowest cells are marked.
Live graph
Plots up to eight signals over time, one chart per unit. Zoom, pause, export to CSV.
J1939
Decodes batteries that use the SAE J1939 HVESS profile, with their DM1 fault codes.
Maxwell Cloud
Uploads BMS data and the data log to Maxwell Cloud.
Service

Configuration, firmware and diagnostics

Service operations use the same CAN connection as the live data. Each one runs as a job that shows its progress and can be cancelled.

Configuration

Reads the BMS parameters (conf.xml) from the BMS, a file or Maxwell Cloud. Edited values are marked until they are written to the BMS.

Over-voltage cut-off
#29
Maximum safe cell voltage. Above it, charging stops.
V
Was 4.2
Charge over-temperature
#91
Charging stops when the battery is too hot.
55°C
Firmware

Flashes application images (.bin) over UDS and Intel-HEX images (.hex) through the bootloader. A byte-sum check verifies the image before the BMS restarts.

ProgressFlashing

Programming session
Diagnostic session 0x02 and security unlock
2
Erase
Routine 0x1234 erases the application area
3
Download
256-byte blocks to 0x18000
4
Verify
Byte-sum check on DID 0x6005
5
Restart
Soft reset into the new firmware
Diagnostics

Reads and clears stored fault codes, reads data identifiers, and sends raw UDS requests from a console.

UDS console0x627 → 0x647

19:02:53→ 22 60 04← 62 60 04 01
19:02:54→ 2E 60 05 00 50← 7F 2E 33(Security access denied)
0x627 →
BMS files
Uploads and downloads the tables on the BMS’s memory card: CAN configuration, cell resistance, OCV and state of power.
Data log
Downloads bms.txt, the history the BMS records on its SD card, and uploads it to Maxwell Cloud.
CAN tools

CAN bus tools

MetriX sees all the traffic on the bus it is connected to, not only the BMS’s frames. It can record, decode and send frames.

Messages17 ids

69 fr/s
IDDirLenDataCountPeriod
018FF01DRX817A80ED30EBD001040102.0 ms
018FF02DRX861A300000320000047102.0 ms
018FF03DRX8474548460000000054503.0 ms
018FF04DRX80000000000000000611001.0 ms
018FF05DRX891C0C8000000000468102.0 ms
018FF07DRX8000200080000000075503.0 ms
018FF0DDRX801250000180B0200821001.0 ms
018FF0FDRX80016025E00000000891001.0 ms
018FF10DRX8000000000000000096503.0 ms
018FF12DRX800000000000000001031001.0 ms
018FF13DRX800000000000000001101001.0 ms
018FF2DDRX84D58572D43544C2D1175000.0 ms
Bus monitor
Lists every frame on the bus, by ID or as a stream, and highlights bytes that change. Records traces and exports them for PCAN-View and CANView.
DBC viewer
Decodes live traffic with a DBC file: one row per message, each signal with its value and unit.
Trace reader
Opens PEAK .trc and candump .log traces, decodes them with a DBC file and plots their signals.
Transmit
Sends frames by hand or on a timer.
Tour

Inside the app

Seven of the app’s thirteen pages, in the same layout as the desktop app.

Configuration
Maxwell BMSMXW-CTL-24-0815Active
PCAN-USB 1500 kbit/s

Configuration386 parameters

The BMS’s parameters (conf.xml): read them from the BMS, a file or Maxwell Cloud, adjust, then write them back.

BMS MXW-CTL-24-08151 changed
Over-voltage cut-off
#29
Maximum safe cell voltage. Above it, charging stops.
V
Was 4.2
Under-voltage cut-off
#30
Minimum safe cell voltage. Below it, discharging stops.
V
Charge over-current
#296
Charging stops above this current.
A
Discharge over-current
#42
Discharging stops above this current.
A
Charge short-circuit
#40
Charging stops instantly on a short circuit.
A
Discharge short-circuit
#41
Discharging stops instantly on a short circuit.
A
Charge over-temperature
#91
Charging stops when the battery is too hot.
°C
Discharge over-temperature
#35
Discharging stops when the battery is too hot.
°C
Charge under-temperature
#92
Charging stops when the battery is too cold.
°C
activePCAN-USB 1500 kbit/sRX 184TX 369 fr/sload2%Log
Architecture

How MetriX is built

MetriX is an Electron app on top of two Maxwell libraries: one for the BMS protocol, one for CAN, ISO-TP and UDS. On Windows, UDS jobs can also go through PEAK’s PCAN-UDS.

Maxwell Cloud credentials are stored in the operating system’s keychain.
MetriX
metrix

The desktop app: Electron and Next.js, with shadcn components. BMS operations run as cancellable jobs.

ElectronNext.jsshadcn
BMS toolkit
@maxwell/bms-toolkit

The Maxwell BMS protocol, the BMS files, and bms.txt, the BMS’s data log.

/protocol/log
CAN
@maxwell/can

CAN buses, ISO-TP, UDS, PEAK PCAN-UDS, DBC files and traces.

/uds/dbcISO-TPtraces
PCAN-USB → Maxwell BMS
Platforms

Windows, macOS and Linux

The first MetriX ran on Windows only. MetriX 2 runs on all three, with a PCAN-USB adapter.

2.0.0-alpha.1
Windows
Installer (.exe)

Uses PEAK’s PCAN-USB drivers, like the first MetriX. UDS jobs go through PEAK’s PCAN-UDS by default, or Maxwell’s UDS stack.

Get MetriX for Windows
2.0.0-alpha.1
macOS
Disk image (.dmg)

Beta. Uses Maxwell’s USB driver for the PCAN-USB, over libusb. Supports the classic PCAN-USB, not the PCAN-USB FD.

Get MetriX for macOS
2.0.0-alpha.1
Linux
Debian package (.deb) and AppImage

Uses SocketCAN, the kernel’s CAN driver. PEAK’s libpcanbasic also works if it is installed.

Get MetriX for Linux

MetriX 2 is in alpha. The installers are on Maxwell Cloud, on the Companion Apps page, after you sign in. Installed copies check for updates and offer to install them.