Skip to content

System Monitoring

CORE batteries have both a charge controller and a BMS to protect the battery against overcharge, overdischarge, short circuit and charging outside of acceptable temperature ranges. The charge controller provides the primary, software-based protection, while the BMS is a hardware-controlled system acting as a backup.

Solar panelMPPT CHARGE CONTROLLERPOTTEDBMSCellsLoadAB

The battery has both a protection value and a recovery value. These values are intentionally different in order to prevent the charging or the load from cycling on and off.

Protection SettingDescriptionActionCharge Controller ValueBMS Value
LVPLow Voltage ProtectionTurn Load Off12.4 V2.3 ± 0.1 V per parallel string
LVRLow Voltage RecoveryTurn Load On13.1 V2.7 ± 0.1 V per parallel string
OVPOver Voltage ProtectionStop Charging14.0 V3.65 ± 0.05 V per parallel string
OVROver Voltage RecoveryResume Charging13.3 V3.55 ± 0.05 V per parallel string

Here is how these charge controller protections operate during an example charge cycle.

CORE battery protection: LVP / LVR / OVP / OVR

  • Charging from panel
  • Load on
  • Load off (LVP)
  • Daylight
12.012.513.013.514.0Battery voltage (V)OVP 14.0 Vcharge target, charging stopsOVR 13.3 Vcharging re-enabledLVR 13.1 Vload reconnectsLVP 12.4 Vload disconnectsReaches OVP (charge target), holds, then charging stopsLoad drains it down to OVR: charging re-enabledLVP trip: load output offSun charges battery past LVR: load output back onPanel chargingLoad outputLoad off (LVP)Day 1Day 2Day 3Day 4Day 5Day 6
View chart thresholds as a table
ThresholdBattery voltageChart label
OVP14.0 Vcharge target, charging stops
OVR13.3 Vcharging re-enabled
LVR13.1 Vload reconnects
LVP12.4 Vload disconnects

Low Temperature and Over Temperature Protection

Section titled “Low Temperature and Over Temperature Protection”

The temperature protections are as follows.

Protection SettingDescriptionActionCharge Controller ValueBMS Value
LTPLow Temperature ProtectionStop Charging0 °CNA
LTRLow Temperature RecoveryResume Charging~2 °CNA
OTPOver Temperature ProtectionStop Charging60 °C75 ± 5 °C
OTROver Temperature RecoveryResume Charging~55 °C53 ± 14 °C

This is the most basic monitoring option. The output from the battery is unregulated, so you can get some data points on battery charge level by reading the battery output voltage.

It is hard to accurately assess charge using this method, as the charge curve for LFP cells is relatively flat and the voltage increases when charging from the solar panel.

Voltaic makes an optional IoT module that connects to the RS-485 output on the battery. It reads information from the charge controller and sends data over cellular to a dashboard.

Data includes:

  • Battery voltage
  • Output current to device
  • Solar panel voltage
  • Input current from solar panel
  • Battery temperature

From this data, we are able to estimate battery state of charge (SoC).

The dashboard can be used to evaluate the health of a single battery or a fleet of batteries and is valuable in troubleshooting solar systems. See Troubleshooting for more details.

If you have your own connectivity, you can read the charge controller over RS-485 and report to your own dashboard. This section covers the hardware, the Modbus parameters, the registers and example code.

The charge controllers in CORE systems come in two versions: a 10A version for the 18Ah battery (V102 (opens in a new tab)) and a 15A version for the 60Ah and 100Ah batteries (V107 (opens in a new tab), V112 (opens in a new tab)). Both have a 4-pin output for RS-485 Modbus RTU half-duplex communication.

The RS-485 Modbus feed comes out of a 4-pin female M8 connector on the front of the battery. The feed has two serial pins (A and B), so it is half-duplex: it can’t transmit and receive at the same time.

The wiring of the M8 extension cables changed to improve consistency across battery and device connections. In the legacy wiring the A and B signals were the other way round: pin 3 was B and pin 4 was A. Now pin 3 is A and pin 4 is B. If you connect a new cable to an older system, check the pin assignments on the RS-485 lines, because swapped A and B lines stop the devices communicating.

Current configuration

PinNameDescription
1V+, redUnregulated 12V battery voltage
2GND, blackGround
3A, yellowHalf-duplex RS-485 serial pin
4B, whiteHalf-duplex RS-485 serial pin

M8 connector, current configuration: pin 1 V+ red, pin 2 GND black, pin 3 A yellow, pin 4 B white

Legacy configuration

PinNameDescription
1V+, redUnregulated 12V battery voltage
2GND, blackGround
3B, yellowHalf-duplex RS-485 serial pin
4A, whiteHalf-duplex RS-485 serial pin

M8 connector, legacy configuration: pin 1 V+ red, pin 2 GND black, pin 3 B yellow, pin 4 A white

If the device reading the RS-485 data has its own power source, you don’t need to connect the V+ pin.

The RS-485 signal depends on relative voltages, so connect the GND pin to the reading device’s ground.

RS-485 is a serial hardware format. If you route the feed to a microcontroller or another UART device, it needs an adapter IC. Some adapter ICs need a HIGH/LOW pin to switch between transmitting and receiving.

The charge controller uses standard Modbus RTU. Set these parameters in whichever Modbus library you use:

  • 9600 baud
  • 8 data bits
  • 1 stop bit
  • No parity bit
  • No flow control

The charge controller uses a call-and-response protocol between primary and secondary devices, in hexadecimal. A register is two pairs of hex values (AB CD).

Call. This call reads the register that holds the battery voltage:

01 04 30 A0 00 01 XX XX
BytesMeaning
01The charge controller device ID. The default is 01 and can be changed on the device.
04The Modbus function code. 04 reads an input register.
30 A0The register to read or write. The registers are listed below.
00 01The number of registers to read, usually 1.
XX XXCyclic redundancy check (CRC). Most Modbus libraries generate it.

Response. The charge controller’s reply to that call looks like this:

01 04 00 02 05 46 XX XX
BytesMeaning
01The charge controller device ID.
04The Modbus function code, echoed.
00 02The number of data bytes returned: twice the number of registers.
05 46The register value. Many values are stored at 100 times their true value, so 05 46, which is 1350 in decimal, means 13.5V. A negative value is sent as the maximum register value (0xFFFF, 65535) minus the magnitude: a battery current of −2A (current leaving the battery) is reported as 65335, which is 65535 − 200.
XX XXCRC reply. Most Modbus libraries check it.

Modbus function codes

CodeFunction
0x02Read discrete inputs
0x03Read holding registers
0x04Read input registers
0x05Write single coil
0x06Write single holding register
0x10Write multiple holding registers

Read-only registers hold the charge controller’s real-time measurements. They can’t be written over RS-485. Every value carries a ×100 multiplier: the true value is the read value divided by 100.

RegisterFunction codeRegister codeDecimal codeMultiplier
Battery voltage (V)0x040x30A012448100
Battery current (A), signed0x040x304712359100
System input voltage (V)0x040x304E12366100
System input current (A)0x040x304F12367100
Load voltage (V)0x040x304A12362100
Load current (A)0x040x304B12363100
Environment temperature (°C)0x040x30A212450100
Controller temperature (°C)0x040x303712343100
Battery status0x040x303312339

Battery current is a signed value: decimal 0 to 32767 is positive, and 32768 to 65535 is negative, where 65535 is −1, 65534 is −2, and so on.

Reading battery status. Register 0x3033 holds the temperature and voltage status. Convert the read value to hex and split it: the first two hex digits are the temperature protection state and the last two are the voltage protection state.

DigitsValueMeaning
First two0Normal
First two1High temperature protection
Last two0Normal
Last two1Over voltage protection
Last two2Low voltage
Last two3Low voltage protection

For example, a reading of 00 03 means normal temperature and low voltage protection.

Read/write registers can be read to check the charge controller’s settings, or written to change its behaviour.

RegisterFunction codeHex valueDecimal valueData
Battery output switch0x05001 turns the output on, 0 turns it off
Device ID0x03 to read, 0x06 to write0x902036896Default 1, range 1 to 247

The easiest way to send and receive data over RS-485 is a Modbus library.

Python on a desktop computer. minimalmodbus (opens in a new tab) is a straightforward library for RS-485. You need an RS-485 USB adapter to talk to the controller. This example reads from and writes to the charge controller:

import minimalmodbus
import serial
instrument = minimalmodbus.Instrument('COM12', 1) # COM port depends on the computer and port used
instrument.serial.baudrate = 9600
instrument.serial.bytesize = 8
instrument.serial.parity = serial.PARITY_NONE
instrument.serial.stopbits = 1
instrument.serial.timeout = 1
instrument.mode = minimalmodbus.MODE_RTU
reg = instrument.read_register(36898, 0, 3) # Reads the low voltage register
# Arguments: decimal register, number of decimals in the data, function code
print("Low Voltage Protection: ", reg / 100)
reg = instrument.write_bit(0, 1, 5) # Writes the load output value to ON
# Arguments: decimal register, value to store, function code
if reg is None:
print("Write Success")

C++ on an Arduino-compatible microcontroller. ModbusMaster (opens in a new tab) is a good option. This example assumes an RS-485 adapter that needs a pin (pin 13) to signal whether it is sending or receiving:

#include <ModbusMaster.h>
#define Battery_Voltage_Address 0x30A0 // Register we want to read
#define MAX485_DE D13 // Send/receive signal
#define usbSerial Serial
ModbusMaster node; // Instantiate the ModbusMaster object
double load = 1; // Setting load output to ON
void preTransmission1() // Sets the pre-transmission signal (transmit)
{
digitalWrite(MAX485_DE, 1);
}
void postTransmission1() // Sets the post-transmission signal (receive)
{
digitalWrite(MAX485_DE, 0);
}
void setLoad() { // Turns the controller output ON or OFF
if (load == 1) {
Serial.println("Output ON");
node.writeSingleCoil(0x0000, 1); // Write the value to the register
delay(1000);
} else {
Serial.println("Output OFF");
node.writeSingleCoil(0x0000, 0);
delay(1000);
}
}
int readModbusRegister(uint16_t regAddress)
{
uint8_t result;
uint16_t data;
int value = -1;
int numRead = 1;
Serial.print("Reading Modbus Register at address: 0x");
Serial.println(regAddress, HEX);
result = node.readInputRegisters(regAddress, numRead); // Read the register
if (result == node.ku8MBSuccess) { // Check for success
Serial.print(" Response Bytes: ");
for (uint8_t i = 0; i < numRead; i++) {
Serial.print(node.getResponseBuffer(i), HEX);
Serial.print(" ");
}
Serial.println();
data = node.getResponseBuffer(0);
value = data;
} else { // Else error
Serial.print("Error reading input register " + String(regAddress) + ". Error code: ");
Serial.println(result, HEX);
}
delay(1000);
return value; // Return the register value
}
void setup()
{
pinMode(MAX485_DE, OUTPUT); // Set pin modes and values
digitalWrite(MAX485_DE, 0);
Serial.begin(9600); // Begin serial communication
Serial1.begin(9600);
node.begin(1, Serial1); // Modbus slave ID 1, Serial1
// Callbacks configure the RS-485 transceiver direction
node.preTransmission(preTransmission1);
node.postTransmission(postTransmission1);
}
void loop()
{
int res = 0;
res = readModbusRegister(Battery_Voltage_Address); // Read and print the register
delay(1 * 60 * 1000); // Wait 1 minute
}

The scripts are also available standalone on request. For help with an integration, contact us (opens in a new tab).