loopyengineeringco / Daly2Sofar

ESP32 bridge allowing Daly Smart BMS to be used with a Sofar inverter/charger (and others that use SMA CANBUS protocol).
29 stars 3 forks source link

What kind of battery model emulates? #4

Open djp3k05 opened 1 year ago

djp3k05 commented 1 year ago

Hello, I would like to try implementing your project, but before buying the stuffs needed, I have couple of questions: Does you project emulates any know battery model? like PYLONTECH? I own a Easun inverter (Infinisolar/Voltronic/Axperts). As my Daly bms does not have an rs485/can option (the pins are there, but it seems they are not enabled) - I found your project to be the only one to use the UART port of Daly. As a side note, I already using a wemos d1 to read the data from BMS and send it using MQTT to HomeAssistant.

Thanks.

loopyengineeringco commented 1 year ago

Hi, Sure - the Daly2Sofar doesn't emulate a battery system, it just speaks the default protocol that Sofar inverter understands which is the SMA protocol. It's sending all the bits of data to the right addresses that the inverter expects, and the inverter is happy, it doesn't necessarily need to know what battery system it is. But in my code I'm sending the characters S, M, A in case they make any difference, but I'm pretty sure they don't - this manufacturer name is just passed into the inverter's display and logging data. You could call it "Apple" and I don't think it would care.

I don't know if other inverters are the same.

Pylontech batteries do use a slightly different protocol - the concept is exactly the same as the SMA but the CANBUS packet addresses and structure is slightly different. I did start developing a Pylontech version too but the protocol information was half chinese, from dubious sources and hard to understand, I ran out of time and gave up, focussed on the SMA version.

The current code could be adapted quite easily to speak Pylontech, but the testing takes a long time.

So I guess the short answer is: if the inverter doesn't support SMA (Sunny Boy Storage battery) protocol then probably won't work. But if you have time/skills you could get it to work quite easily with some trial & error