Skip to content

[Feature request] Add SMA Sunny Boy Storage 2.5 support #2012

@emhal

Description

@emhal

First of all thank you to all contributors of this project! Battery Emulator is awesome!

I was not able to get the SMA SBS 2.5 to work with Battery Emulator. None of the SMA BYD protocols was working.
The history can be found here (even though the discussion started with another topic): #1599

After some research I found out that the SBS 2.5 expects different CAN messages from a BYD battery than it's bigger brothers SBS 3.7, 5.0 and 6.0. Fortunately dala had some CAN logs of a setup with a SBS 2.5 with a real BYD battery: https://github.com/dalathegreat/byd-h-sma-can
When checking those I found out that the SBS 2.5 expects the battery identifying CAN messages like 558 not only once after the pairing command but constantly. Therefore I changed the code accordingly and got it working.

My implementation is probably not perfect and seems to send CAN messages too frequently (all 13 BYD messages each 100ms) but it is working flawlessly for more than one month now. Therefore I'd like to contribute that piece of code to the project. From one of the last release notes I noticed that InverterProtocolType 13 should be available now and could be used as "SMA-SBS2.5-BYD-HVS-CAN" like mentioned here:
#1912 (comment)
#1959 (comment)

I have the files SMA-SBS2.5-BYD-HVS-CAN.h and SMA-SBS2.5-BYD-HVS-CAN.cpp where can I upload them and who could implement them to the project? Also maybe somebody could further optimize the code? I'd also contribute it by myself to the project and add it as a feature branch with modified files InverterProtocol.h‎ INVERTERS.h and INVERTERS.cpp‎ to make that additional Inverter protocol available but I don't know how to get a contributor of this project.

From what I know besides me there is also @Simply-Johann with the same inverter that can test any new version supporting that new inverter protocol. He already successfully tested a precompiled version from me with this inverter protocol implemented based on the BE release 9.3.5

Thanks a lot in advance!

BR
Frank

Edit: I just realized I can upload the files as a zip archive, so I added them: Archiv.zip
There they are still named as the standard SMA BYD HVS files as that was the way I implemented it to test.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions