Kostal inverters - dalathegreat/Battery-Emulator GitHub Wiki

Compatible Kostal inverters

  • PLENTICORE plus 3.0 / 4.2 / 5.5 / 7.0 / 8.5 / 10
  • PLENTICORE plus G2 4.2 / 5.5 / 7.0 / 8.5 / 10
  • Plenticore BI 5.5-13/ 5.5-26
  • Plenticore BI 10.0-26
  • Piko MP Plus 1.5-1/2.0-1/ 2.5-1
  • Piko MP Plus 3.0-1, 3.0-2, 3.5-1, 3.5-2, 4.6-2, 5.0-2
  • PIKO 6.0 BA / 8.0 BA / 10 BA

Communication wiring

The Kostal inverter works via CAN. The LilyGo board can have both a CAN battery and a CAN inverter connected on the same pins. When the board is used with two CAN devices at the same time that have termination resistors in all ends, the terminating resistor needs to be removed from the board. Please measure CAN termination if you have issues. This is explained in CAN-troubleshooting

ℹī¸ Always check the termination resistance of the system! That way you know if resistor needs to be removed or not.

ℹī¸ Grounding is extremely important. Make sure the battery case is connected to protective earth, and the shield part of the twisted pair CAN is connected to PE also! Failing to do this will result in CAN errors.

Compiling the software for Kostal inverters

Make sure that the settings in the "USER_SETTINGS.h" file are correct. The Kostal inverters seem to support both H and HVS CAN, so see in the manual which you need depending on generation. Either one of these two are needed:

#define SMA_CAN //Enable this line to emulate a "BYD Battery-Box H 8.9kWh, 7 mod" over CAN bus

or if you have the G2 inverter:

#define CAN_BYD //Enable this line to emulate a "BYD Battery-Box Premium HVS" over CAN Bus

Needs to be uncommented for the software to emulate the BYD protocol over CAN. Next step is then to select the battery that you intend to use, for instance if you use LEAF battery, make sure the following line is uncommented:

#define BATTERY_TYPE_LEAF // See NISSAN-LEAF-BATTERY.h for more LEAF battery settings

After setting this up, flash the board!

Installation examples

Please feel free to add!