diff --git a/Software/USER_SETTINGS.h b/Software/USER_SETTINGS.h index 37f3dbe7..454dee37 100644 --- a/Software/USER_SETTINGS.h +++ b/Software/USER_SETTINGS.h @@ -12,8 +12,10 @@ //#define KIA_HYUNDAI_64_BATTERY //#define NISSAN_LEAF_BATTERY //#define RENAULT_ZOE_BATTERY -//#define TESLA_MODEL_3_BATTERY +#define TESLA_MODEL_3_BATTERY //#define TEST_FAKE_BATTERY +//#define SERIAL_LINK_RECEIVER_FROM_BATTERY //Enable this line to receive battery data over RS485 pins to another Lilygo + /* 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 @@ -23,6 +25,23 @@ //#define SMA_CAN //Enable this line to emulate a "BYD Battery-Box H 8.9kWh, 7 mod" over CAN bus //#define SOFAR_CAN //Enable this line to emulate a "Sofar Energy Storage Inverter High Voltage BMS General Protocol (Extended Frame)" over CAN bus //#define SOLAX_CAN //Enable this line to emulate a "SolaX Triple Power LFP" over CAN bus +//#define SERIAL_LINK_TRANSMITTER_INVERTER //Enable this line to send battery data over RS485 pins from another Lilygo + +/* + * 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 + */ + + /* Battery settings */ #define BATTERY_WH_MAX \ @@ -43,21 +62,8 @@ //#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 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 - */