dalathegreat / Battery-Emulator

This software enables EV battery packs to be used for stationary storage in combination with solar inverters.
GNU General Public License v3.0
922 stars 125 forks source link

SMA SB SE #370

Open alex-military opened 1 month ago

alex-military commented 1 month ago

Hi, I see that you are implementing a tripower smart energy SMA but will it also be compatible with single-phase ones? i.e. with Sunny Boy Smart Energy? Will this protocol be implemented with batrium BMS?

dalathegreat commented 1 month ago

No SMA protocol is 100% tested yet. We might need CAN logs from a functional SMA system before we can get one working!

alex-military commented 1 month ago

I worked for a year with SMA inverters and they work with BYD batteries but have an automatic recognition mode. I intend to create a system in my home with a sunny boy smart energy or a tripower smart energy to take advantage of full backup. If it is not very complicated to find these registers I will gladly help you if up to then you have not managed to implement them

dalathegreat commented 1 month ago

The current SMA protocol implemented has wrong bits set in some places. We need to emulate a RESU battery, not BYD. Here is a screenshot from a Sunny Boy Storage inverter setup with the Battery-Emulator. It does not work

image

Neither does the SMA-Tripower protocol. We need CAN logs to proceed from a working system.

alex-military commented 1 month ago

OK could you explain to me how I can extract or find these can registers? I still have a few contacts who install those inverters and maybe I can convince them to let me connect to the inverters and try to recover them but that's something I've never done

dalathegreat commented 1 month ago

@alex-military , see this Wiki page I wrote on the subject of logging; https://github.com/dalathegreat/Battery-Emulator/wiki/Data-needed-for-new-inverter-integration

alex-military commented 1 month ago

OK, let's see if I understood correctly because the translation doesn't help me. I use Google Translate to understand. in practice with a working system (sma tripower SE inverter or sunny boy SE and BYD battery) I connect a lilygo in parallel on the CAN cables and note down the data (even the time?) of %soc temp charge/discharge status temp etc etc. then by leaving the recording they must simulate sudden battery shutdown sudden shutdown inverter charge discharge and note down the event messages that appear on the inverter dashboard? finally, through a cross comparison, the various values ​​obtained in the register are compared to map them and, if necessary, all the rest of the data is interpreted. should it be right?

dalathegreat commented 1 month ago

Yes. Most important is to get Startup log, and operation log.

This page has more info on how to log: https://github.com/dalathegreat/Battery-Emulator/wiki/CAN-logging

Once you have log files, post them here and we can fix the protocol!

dalathegreat commented 3 weeks ago

@alex-military SMA-CAN has been improved in this commit, I got RESU logs that at the same time improved the BYD code

https://github.com/dalathegreat/Battery-Emulator/commit/dbab56944d1705ae825169fcb5b441a3c6c18c0a#diff-18b344f7c221f3d197c188c1d6700b37cb53e455243ca7b9298cc67a2b46497b

Please try dropping in this SMA-CAN.cpp file and restesting

alex-military commented 1 week ago

Hi, I tried with some ex-colleagues if I could go and do the data recording but unfortunately no one gave me availability. I was thinking of doing an installation myself but not having the battery I don't know how I could help

dalathegreat commented 6 days ago

Hi, We are working nighlty on adding SMA support on the Patreon Discord server. We have CAN logs, and are working out the pairing process.

alex-military commented 6 days ago

great so you already have the communication profile you just have to complete the implementation and then it will be ready? all this is perfect because I can start getting a compatible battery.