Inverter: Kostal - dalathegreat/Battery-Emulator GitHub Wiki
[!CAUTION] Working with high voltage is dangerous. Always follow local laws and regulations regarding high voltage work. If you are unsure about the rules in your country, consult a licensed electrician for more information.
Notes on RS485
Kostal uses a proprietary RS485 protocol. The protocol uses the RS485 pins on the Battery-Emulator hardware, which can be started by enabling the BYD_KOSTAL_RS485
option in USER_SETTINGS.h
Compatible Kostal inverters
A checkmark (â ) indicates that an user has reported back successfully using the Battery-Emulator.
- 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 G3 S / M / L â
- 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
Note that for some models the battery feature is optional, and needs to be activated via an activation code (or "PLENTICOIN") that needs to be purchased first. This code must be entered either via the onscreen menu or the web interface. On older firmware versions this was possible with the regular user login, on newer firmware versions this requires a service code. The same applies for the battery configuration screen. More details: https://www.kostal-solar-electric.com/Guideline_PLENTICORE-BYD/
Communication wiring
The Kostal inverter works via RS485. Connect pins A, B and GND from the kostal connector X601 to the corresponding points of the lilygo RS485 connector
âšī¸ 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.
Traces for reverse engineering
Inverter | Battery | Source | Traces |
---|---|---|---|
Kostal Plenticore Plus 5.5 | BYD B-Box HV 6.4 | huntworker from secondlifestorage forum | startup |
Kostal Plenticore Plus G2 10 | Dyness Tower T17, Firmware version 119 | SauliusS from Discord | 01_start_inverter, 02_start_battery, 03_discharging, 04_charging, 05_discharged to minimum allowed SoC 20%, with audible click, 08_battery-charging-then-DC-switch-turned-OFF, 10_charging-reaches-SoC-98, 11_charging-reaches-SoC-99 |
Setup to capture a trace
WANTED: Setups involving BYD HVM or HVS. Even better if there are multiple units in parallel via the HV Combiner Box.
Use this tree of the battery emulator on a LilyGo: https://github.com/lewurm/Battery-Emulator/tree/rs485-sniffing It will just print whatever bytes are seen on the RS485 line to the USB serial.
In terms of wiring, connect A/B/GND accordingly between inverter and LilyGo. Power the LilyGo via USB-C (connect to a Laptop) and observe the serial monitor.