From 190dbe7f885be151b5e3290d58b0d4f1d0e2d3a9 Mon Sep 17 00:00:00 2001 From: mackelec Date: Tue, 21 Nov 2023 07:42:49 +1000 Subject: [PATCH] Update USER_SETTINGS.h --- Software/USER_SETTINGS.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Software/USER_SETTINGS.h b/Software/USER_SETTINGS.h index 83c5e6176..37f3dbe70 100644 --- a/Software/USER_SETTINGS.h +++ b/Software/USER_SETTINGS.h @@ -16,7 +16,7 @@ //#define TEST_FAKE_BATTERY /* Select inverter communication protocol. See Wiki for which to use with your inverter: https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/wiki */ -//#define BYD_CAN //Enable this line to emulate a "BYD Battery-Box Premium HVS" over CAN Bus +#define BYD_CAN //Enable this line to emulate a "BYD Battery-Box Premium HVS" over CAN Bus //#define BYD_MODBUS //Enable this line to emulate a "BYD 11kWh HVM battery" over Modbus RTU //#define LUNA2000_MODBUS //Enable this line to emulate a "Luna2000 battery" over Modbus RTU //#define PYLON_CAN //Enable this line to emulate a "Pylontech battery" over CAN bus @@ -42,7 +42,22 @@ //#define CONTACTOR_CONTROL //Enable this line to have pins 25,32,33 handle automatic precharge/contactor+/contactor- closing sequence //#define PWM_CONTACTOR_CONTROL //Enable this line to use PWM logic for contactors, which lower power consumption and heat generation //#define DUAL_CAN //Enable this line to activate an isolated secondary CAN Bus using add-on MCP2515 controller (Needed for FoxESS inverters) -#define SERIAL_LINK_RECEIVER_FROM_BATTERY //Enable this line to send battery data over Modbus pins to another Lilygo -#define SERIAL_LINK_TRANSMITTER_INVERTER //Enable this line to receive battery data over Modbus pins from another Lilygo + +#define SERIAL_LINK_RECEIVER_FROM_BATTERY //Enable this line to receive battery data over RS485 pins to another Lilygo +//#define SERIAL_LINK_TRANSMITTER_INVERTER //Enable this line to send battery data over RS485 pins from another Lilygo #endif + +/* + * Using SerialDataLink + * + * for example, if inverter is BYD_CAN compatible and Tesla M3 bttery is used + * + * Inverter end: + * #define SERIAL_LINK_RECEIVER_FROM_BATTERY + * #define BYD_CAN + * + * Battery end + * #define TESLA_MODEL_3_BATTERY + * define SERIAL_LINK_TRANSMITTER_INVERTER + */