Batrium WatchMon CAN Bus 0x356 / 0x355 Frame Decoder (Intel LE)

Decode Batrium WatchMon Victron/SMA/Pylontech CAN telemetry (0x356 voltage, signed current, temp & 0x355 SOC) with live bit map, C99 & Python 3 export.

Jump to results

Inputs

Captured payload
Classic CAN 8 bytes or CAN FD 16 bytes. Spaces are optional.
DBC signals
Signal 1
Signal 2
Signal 3
Signal 4

Results

Estimates
Decoded signals4
Battery Voltage
53.2 V
Battery Current
42.5 A
Battery Temperature
24.5 °C
SOC Mirror
88 %
Bit map · 64 bits
B0 · C8B1 · 14B2 · A9B3 · 01B4 · F5B5 · 00B6 · 58B7 · 0076543210 Bit 7 = 1 · Battery Voltage 1 Bit 6 = 1 · Battery Voltage 1 Bit 5 = 0 · Battery Voltage 0 Bit 4 = 0 · Battery Voltage 0 Bit 3 = 1 · Battery Voltage 1 Bit 2 = 0 · Battery Voltage 0 Bit 1 = 0 · Battery Voltage 0 Bit 0 = 0 · Battery Voltage 0 Bit 15 = 0 · Battery Voltage 0 Bit 14 = 0 · Battery Voltage 0 Bit 13 = 0 · Battery Voltage 0 Bit 12 = 1 · Battery Voltage 1 Bit 11 = 0 · Battery Voltage 0 Bit 10 = 1 · Battery Voltage 1 Bit 9 = 0 · Battery Voltage 0 Bit 8 = 0 · Battery Voltage 0 Bit 23 = 1 · Battery Current 1 Bit 22 = 0 · Battery Current 0 Bit 21 = 1 · Battery Current 1 Bit 20 = 0 · Battery Current 0 Bit 19 = 1 · Battery Current 1 Bit 18 = 0 · Battery Current 0 Bit 17 = 0 · Battery Current 0 Bit 16 = 1 · Battery Current 1 Bit 31 = 0 · Battery Current 0 Bit 30 = 0 · Battery Current 0 Bit 29 = 0 · Battery Current 0 Bit 28 = 0 · Battery Current 0 Bit 27 = 0 · Battery Current 0 Bit 26 = 0 · Battery Current 0 Bit 25 = 0 · Battery Current 0 Bit 24 = 1 · Battery Current 1 Bit 39 = 1 · Battery Temperature 1 Bit 38 = 1 · Battery Temperature 1 Bit 37 = 1 · Battery Temperature 1 Bit 36 = 1 · Battery Temperature 1 Bit 35 = 0 · Battery Temperature 0 Bit 34 = 1 · Battery Temperature 1 Bit 33 = 0 · Battery Temperature 0 Bit 32 = 1 · Battery Temperature 1 Bit 47 = 0 · Battery Temperature 0 Bit 46 = 0 · Battery Temperature 0 Bit 45 = 0 · Battery Temperature 0 Bit 44 = 0 · Battery Temperature 0 Bit 43 = 0 · Battery Temperature 0 Bit 42 = 0 · Battery Temperature 0 Bit 41 = 0 · Battery Temperature 0 Bit 40 = 0 · Battery Temperature 0 Bit 55 = 0 · SOC Mirror 0 Bit 54 = 1 · SOC Mirror 1 Bit 53 = 0 · SOC Mirror 0 Bit 52 = 1 · SOC Mirror 1 Bit 51 = 1 · SOC Mirror 1 Bit 50 = 0 · SOC Mirror 0 Bit 49 = 0 · SOC Mirror 0 Bit 48 = 0 · SOC Mirror 0 Bit 63 = 0 · SOC Mirror 0 Bit 62 = 0 · SOC Mirror 0 Bit 61 = 0 · SOC Mirror 0 Bit 60 = 0 · SOC Mirror 0 Bit 59 = 0 · SOC Mirror 0 Bit 58 = 0 · SOC Mirror 0 Bit 57 = 0 · SOC Mirror 0 Bit 56 = 0 · SOC Mirror 0

Select a bit to see its position and matching signals.

  • Battery Voltage
  • Battery Current
  • Battery Temperature
  • SOC Mirror

An asterisk marks an overlapping bit.

Decoded signal values
SignalEncodingRaw integerRaw hexPhysical
Battery VoltageIntel53200x14C853.2 V
Battery CurrentIntel4250x1A942.5 A
Battery TemperatureIntel2450xF524.5 °C
SOC MirrorIntel880x5888 %
Generated C99 masks and functions
#include <stdint.h>

/* Pass a validated payload of at least 8 bytes. */
#define DBC_BIT(data, b) ((uint64_t)(((data)[(b) / 8] >> ((b) % 8)) & 1u))

#define DBC_1_BATTERY_VOLTAGE_MASK UINT64_C(0xFFFF)
#define DBC_1_BATTERY_VOLTAGE_RAW(data) (( \
    (DBC_BIT((data), 0) << 0) | \
    (DBC_BIT((data), 1) << 1) | \
    (DBC_BIT((data), 2) << 2) | \
    (DBC_BIT((data), 3) << 3) | \
    (DBC_BIT((data), 4) << 4) | \
    (DBC_BIT((data), 5) << 5) | \
    (DBC_BIT((data), 6) << 6) | \
    (DBC_BIT((data), 7) << 7) | \
    (DBC_BIT((data), 8) << 8) | \
    (DBC_BIT((data), 9) << 9) | \
    (DBC_BIT((data), 10) << 10) | \
    (DBC_BIT((data), 11) << 11) | \
    (DBC_BIT((data), 12) << 12) | \
    (DBC_BIT((data), 13) << 13) | \
    (DBC_BIT((data), 14) << 14) | \
    (DBC_BIT((data), 15) << 15) \
) & DBC_1_BATTERY_VOLTAGE_MASK)
static inline double dbc_1_battery_voltage_physical(const uint8_t data[static 8]) {
    const uint64_t raw = DBC_1_BATTERY_VOLTAGE_RAW(data);
    const uint64_t value = raw;
    return (double)value * (0.01) + (0.0);
}

#define DBC_2_BATTERY_CURRENT_MASK UINT64_C(0xFFFF)
#define DBC_2_BATTERY_CURRENT_RAW(data) (( \
    (DBC_BIT((data), 16) << 0) | \
    (DBC_BIT((data), 17) << 1) | \
    (DBC_BIT((data), 18) << 2) | \
    (DBC_BIT((data), 19) << 3) | \
    (DBC_BIT((data), 20) << 4) | \
    (DBC_BIT((data), 21) << 5) | \
    (DBC_BIT((data), 22) << 6) | \
    (DBC_BIT((data), 23) << 7) | \
    (DBC_BIT((data), 24) << 8) | \
    (DBC_BIT((data), 25) << 9) | \
    (DBC_BIT((data), 26) << 10) | \
    (DBC_BIT((data), 27) << 11) | \
    (DBC_BIT((data), 28) << 12) | \
    (DBC_BIT((data), 29) << 13) | \
    (DBC_BIT((data), 30) << 14) | \
    (DBC_BIT((data), 31) << 15) \
) & DBC_2_BATTERY_CURRENT_MASK)
static inline double dbc_2_battery_current_physical(const uint8_t data[static 8]) {
    const uint64_t raw = DBC_2_BATTERY_CURRENT_RAW(data);
    const int64_t value = raw & (UINT64_C(1) << 15)
        ? -INT64_C(1) - (int64_t)(DBC_2_BATTERY_CURRENT_MASK ^ raw) : (int64_t)raw;
    return (double)value * (0.1) + (0.0);
}

#define DBC_3_BATTERY_TEMPERATURE_MASK UINT64_C(0xFFFF)
#define DBC_3_BATTERY_TEMPERATURE_RAW(data) (( \
    (DBC_BIT((data), 32) << 0) | \
    (DBC_BIT((data), 33) << 1) | \
    (DBC_BIT((data), 34) << 2) | \
    (DBC_BIT((data), 35) << 3) | \
    (DBC_BIT((data), 36) << 4) | \
    (DBC_BIT((data), 37) << 5) | \
    (DBC_BIT((data), 38) << 6) | \
    (DBC_BIT((data), 39) << 7) | \
    (DBC_BIT((data), 40) << 8) | \
    (DBC_BIT((data), 41) << 9) | \
    (DBC_BIT((data), 42) << 10) | \
    (DBC_BIT((data), 43) << 11) | \
    (DBC_BIT((data), 44) << 12) | \
    (DBC_BIT((data), 45) << 13) | \
    (DBC_BIT((data), 46) << 14) | \
    (DBC_BIT((data), 47) << 15) \
) & DBC_3_BATTERY_TEMPERATURE_MASK)
static inline double dbc_3_battery_temperature_physical(const uint8_t data[static 8]) {
    const uint64_t raw = DBC_3_BATTERY_TEMPERATURE_RAW(data);
    const int64_t value = raw & (UINT64_C(1) << 15)
        ? -INT64_C(1) - (int64_t)(DBC_3_BATTERY_TEMPERATURE_MASK ^ raw) : (int64_t)raw;
    return (double)value * (0.1) + (0.0);
}

#define DBC_4_SOC_MIRROR_MASK UINT64_C(0xFFFF)
#define DBC_4_SOC_MIRROR_RAW(data) (( \
    (DBC_BIT((data), 48) << 0) | \
    (DBC_BIT((data), 49) << 1) | \
    (DBC_BIT((data), 50) << 2) | \
    (DBC_BIT((data), 51) << 3) | \
    (DBC_BIT((data), 52) << 4) | \
    (DBC_BIT((data), 53) << 5) | \
    (DBC_BIT((data), 54) << 6) | \
    (DBC_BIT((data), 55) << 7) | \
    (DBC_BIT((data), 56) << 8) | \
    (DBC_BIT((data), 57) << 9) | \
    (DBC_BIT((data), 58) << 10) | \
    (DBC_BIT((data), 59) << 11) | \
    (DBC_BIT((data), 60) << 12) | \
    (DBC_BIT((data), 61) << 13) | \
    (DBC_BIT((data), 62) << 14) | \
    (DBC_BIT((data), 63) << 15) \
) & DBC_4_SOC_MIRROR_MASK)
static inline double dbc_4_soc_mirror_physical(const uint8_t data[static 8]) {
    const uint64_t raw = DBC_4_SOC_MIRROR_RAW(data);
    const uint64_t value = raw;
    return (double)value * (1.0) + (0.0);
}
Generated Python 3 decoder
# Pure Python 3 CAN decoder for a 8-byte payload.
FRAME_LEN = 8

def dbc_1_battery_voltage_physical(data: bytes) -> float:
    if len(data) < 8:
        raise ValueError("Expected at least 8 payload bytes")
    raw = (int.from_bytes(data[:8], "little") >> 0) & 0xFFFF
    return raw * (0.01) + (0.0)

def dbc_2_battery_current_physical(data: bytes) -> float:
    if len(data) < 8:
        raise ValueError("Expected at least 8 payload bytes")
    raw = (int.from_bytes(data[:8], "little") >> 16) & 0xFFFF
    if raw & (1 << 15):
        raw -= 1 << 16
    return raw * (0.1) + (0.0)

def dbc_3_battery_temperature_physical(data: bytes) -> float:
    if len(data) < 8:
        raise ValueError("Expected at least 8 payload bytes")
    raw = (int.from_bytes(data[:8], "little") >> 32) & 0xFFFF
    if raw & (1 << 15):
        raw -= 1 << 16
    return raw * (0.1) + (0.0)

def dbc_4_soc_mirror_physical(data: bytes) -> float:
    if len(data) < 8:
        raise ValueError("Expected at least 8 payload bytes")
    raw = (int.from_bytes(data[:8], "little") >> 48) & 0xFFFF
    return raw * (1.0) + (0.0)

def decode_frame(data: bytes) -> dict[str, float]:
    return {
        "dbc_1_battery_voltage": dbc_1_battery_voltage_physical(data),
        "dbc_2_battery_current": dbc_2_battery_current_physical(data),
        "dbc_3_battery_temperature": dbc_3_battery_temperature_physical(data),
        "dbc_4_soc_mirror": dbc_4_soc_mirror_physical(data),
    }

Inspect Batrium WatchMon closed-loop inverter CAN telemetry bytes

Batrium WatchMon Core integrates with Victron Venus OS, SMA Sunny Island, Deye and Sol-Ark inverters using 500 kbps Intel little-endian CAN frames modeled on the SMA/Victron 0x351–0x356 protocol.

In payload C8 14 A9 01 F5 00 58 00, Intel LE bytes C8 14 decode to 0x14C8 (5,320 → 53.20 V), A9 01 decodes to +425 (+42.5 A charge; two’s-complement 57 FE = −42.5 A discharge), F5 00 decodes to 245 (24.5 °C), and 58 00 reports 88% SOC.

Formulas

  • Battery Voltage = 0x14C8 × 0.01 = 5,320 × 0.01 = 53.20 V
  • Signed Current = 0x01A9 (+42.5 A) vs. 0xFE57 (−42.5 A)
  • Temperature = 0x00F5 × 0.1 = 24.5 °C

Worked example

Payload C8 14 A9 01 F5 00 58 00 decodes to 53.2 V, +42.5 A, 24.5 °C and 88% SOC; flipping bytes 2–3 to 57 FE reverses current cleanly to −42.5 A while generating both C99 and Python 3 parsers.

Frequently asked questions

What CAN bus baud rate does Batrium WatchMon use with Victron Cerbo GX?

Use 500 kbps on the Cerbo GX BMS-Can port (250 kbps only on legacy VE.Can setups) with 120 Ω termination at both ends of the twisted pair.

Why does Batrium report temperature in 0.1 °C signed 16-bit integers on 0x356?

Signed 0.1 °C resolution preserves sub-zero winter cell measurements (e.g., −5.0 °C = 0xFFCE) so hybrid inverters can trigger low-temperature charge lockouts accurately.

Can I generate a Python script to log Batrium CAN frames on a Raspberry Pi?

Yes—open the Generated Python 3 decoder panel under Results to copy pure-Python 3 int.from_bytes unpackers ready for python-can or SocketCAN scripts.