Skip to content
Daniel Öster edited this page Sep 25, 2024 · 13 revisions

Why use double LilyGo's?

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. 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)

How to connect it

Use twisted pair wires between the RS485 pins on both LilyGo's RS_A <-> RS_A RS_B <-> RS_B 34e5de10-ba9e-465d-a39c-362f6daaa2ed

How to configure it

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): bild

Battery connected LilyGo (Battery + Transmitter): bild

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 )

Clone this wiki locally