System Monitoring
Battery Protection Behavior
Section titled “Battery Protection Behavior”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.
Low Voltage and Over Voltage Protection
Section titled “Low Voltage and Over Voltage Protection”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 Setting | Description | Action | Charge Controller Value | BMS Value |
|---|---|---|---|---|
| LVP | Low Voltage Protection | Turn Load Off | 12.4 V | 2.3 ± 0.1 V per parallel string |
| LVR | Low Voltage Recovery | Turn Load On | 13.1 V | 2.7 ± 0.1 V per parallel string |
| OVP | Over Voltage Protection | Stop Charging | 14.0 V | 3.65 ± 0.05 V per parallel string |
| OVR | Over Voltage Recovery | Resume Charging | 13.3 V | 3.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
View chart thresholds as a table
| Threshold | Battery voltage | Chart label |
|---|---|---|
| OVP | 14.0 V | charge target, charging stops |
| OVR | 13.3 V | charging re-enabled |
| LVR | 13.1 V | load reconnects |
| LVP | 12.4 V | load disconnects |
Low Temperature and Over Temperature Protection
Section titled “Low Temperature and Over Temperature Protection”The temperature protections are as follows.
| Protection Setting | Description | Action | Charge Controller Value | BMS Value |
|---|---|---|---|---|
| LTP | Low Temperature Protection | Stop Charging | 0 °C | NA |
| LTR | Low Temperature Recovery | Resume Charging | ~2 °C | NA |
| OTP | Over Temperature Protection | Stop Charging | 60 °C | 75 ± 5 °C |
| OTR | Over Temperature Recovery | Resume Charging | ~55 °C | 53 ± 14 °C |
Voltage Only
Section titled “Voltage Only”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 IoT Module
Section titled “Voltaic IoT Module”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.
RS-485 Guide
Section titled “RS-485 Guide”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.
Overview
Section titled “Overview”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.
Hardware
Section titled “Hardware”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
| Pin | Name | Description |
|---|---|---|
| 1 | V+, red | Unregulated 12V battery voltage |
| 2 | GND, black | Ground |
| 3 | A, yellow | Half-duplex RS-485 serial pin |
| 4 | B, white | Half-duplex RS-485 serial pin |

Legacy configuration
| Pin | Name | Description |
|---|---|---|
| 1 | V+, red | Unregulated 12V battery voltage |
| 2 | GND, black | Ground |
| 3 | B, yellow | Half-duplex RS-485 serial pin |
| 4 | A, white | Half-duplex RS-485 serial pin |

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.
RS-485 Parameters
Section titled “RS-485 Parameters”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
Hex Format
Section titled “Hex Format”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| Bytes | Meaning |
|---|---|
01 | The charge controller device ID. The default is 01 and can be changed on the device. |
04 | The Modbus function code. 04 reads an input register. |
30 A0 | The register to read or write. The registers are listed below. |
00 01 | The number of registers to read, usually 1. |
XX XX | Cyclic 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| Bytes | Meaning |
|---|---|
01 | The charge controller device ID. |
04 | The Modbus function code, echoed. |
00 02 | The number of data bytes returned: twice the number of registers. |
05 46 | The 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 XX | CRC reply. Most Modbus libraries check it. |
Modbus function codes
| Code | Function |
|---|---|
| 0x02 | Read discrete inputs |
| 0x03 | Read holding registers |
| 0x04 | Read input registers |
| 0x05 | Write single coil |
| 0x06 | Write single holding register |
| 0x10 | Write multiple holding registers |
Charge Controller Registers
Section titled “Charge Controller 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.
| Register | Function code | Register code | Decimal code | Multiplier |
|---|---|---|---|---|
| Battery voltage (V) | 0x04 | 0x30A0 | 12448 | 100 |
| Battery current (A), signed | 0x04 | 0x3047 | 12359 | 100 |
| System input voltage (V) | 0x04 | 0x304E | 12366 | 100 |
| System input current (A) | 0x04 | 0x304F | 12367 | 100 |
| Load voltage (V) | 0x04 | 0x304A | 12362 | 100 |
| Load current (A) | 0x04 | 0x304B | 12363 | 100 |
| Environment temperature (°C) | 0x04 | 0x30A2 | 12450 | 100 |
| Controller temperature (°C) | 0x04 | 0x3037 | 12343 | 100 |
| Battery status | 0x04 | 0x3033 | 12339 |
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.
| Digits | Value | Meaning |
|---|---|---|
| First two | 0 | Normal |
| First two | 1 | High temperature protection |
| Last two | 0 | Normal |
| Last two | 1 | Over voltage protection |
| Last two | 2 | Low voltage |
| Last two | 3 | Low 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.
| Register | Function code | Hex value | Decimal value | Data |
|---|---|---|---|---|
| Battery output switch | 0x05 | 0 | 0 | 1 turns the output on, 0 turns it off |
| Device ID | 0x03 to read, 0x06 to write | 0x9020 | 36896 | Default 1, range 1 to 247 |
Modbus Libraries and Example Code
Section titled “Modbus Libraries and Example Code”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 minimalmodbusimport serial
instrument = minimalmodbus.Instrument('COM12', 1) # COM port depends on the computer and port used
instrument.serial.baudrate = 9600instrument.serial.bytesize = 8instrument.serial.parity = serial.PARITY_NONEinstrument.serial.stopbits = 1instrument.serial.timeout = 1instrument.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 codeprint("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 codeif 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 SerialModbusMaster node; // Instantiate the ModbusMaster objectdouble 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).
