Skip to content

Commit

Permalink
Update USER_SETTINGS.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mackelec authored Nov 20, 2023
1 parent 86070a0 commit 190dbe7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Software/USER_SETTINGS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/

0 comments on commit 190dbe7

Please sign in to comment.