-
Notifications
You must be signed in to change notification settings - Fork 159
Double LilyGo
Some Inverters do not like to see automotive CAN frames on the CAN channel meant for stationary storage. When they see these messages, they enter a fault state. To get around this, we can use two LilyGo's in tandem, one interfacing only with battery, and the other interfacing only with inverter. They then talk to each other via Serial communication on the RS485 pins, to relay the data without CAN.
Important
The Double LilyGo setup can be very buggy and hard to troubleshoot. It is recommended to instead use an add-on CAN channel, or Stark board
A better option is to add an MCP2515 to get an isolated CAN channel, see this page for more info: https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/wiki/Dual-Can-(MCP2515-add%E2%80%90on)
Use twisted pair wires between the RS485 pins on both LilyGo's RS_A <-> RS_A RS_B <-> RS_B
Example configuration, using a Tesla battery with Solax inverter. All configurations are done in the USER_SETTINGS.h
file. The two new options (#define SERIAL_LINK_RECEIVER
& #define SERIAL_LINK_TRANSMITTER
) can be found here.
Inverter connected LilyGo (Protocol + Receiver):
Battery connected LilyGo (Battery + Transmitter):
Note
If you get compilation errors, you most likely selected too many arguments on the same board. For example, SERIAL_LINK_RECEIVER + SOLAX_CAN + TESLA_MODEL_3Y_BATTERY is an invalid combination, the board configured as receiver should only have the protocol enabled ( SERIAL_LINK_RECEIVER + SOLAX_CAN )