-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Growatt Inverter support via RS 485 / CAN #1
Comments
I'm currently implementing a MQTT support with a little webserver to see the states of all battery cells in each battery pack. To implement the Growatt protocol would be no problem but maybe in a couple of days. If you have the protocol at hand or could organize it, it would be helpful and speed up the process :) Best regards, |
I will help with all i can. I would like to make my Daly BMS speak with my Growatt inverter. Currently i am able to read info from the Daly via small python script i found here This is the information from my Daly: daly-bms-cli --device /dev/ttyUSB2 --all { Also I am able to read data from my Growatt inverter and graph it using grafana via this: Daly is using this connection - ch341-uart converter now attached to ttyUSB2 (USB to UART cable connected to Daly device) If i can help you somehow i would do it even with some remote access if you like. |
Here is Daly BMS protocol |
Here is Growatt protocol |
Hi Todor, |
FYI: I've added a growatt module to the project. Just for the structure... there is no functionality yet! |
Hi Todor, |
Hi, |
I have ordered the same CAN device model as yours. I found also one PYLON_EMU project with dbc file where you can see what you must report via the CAN to the inverter. I am attaching the file if you are interested. |
Ok trying to simply connect Growatt to can0. i2c canhatdtparam=spi=on Also doing this setup ... link up/usr/bin/ip link set can0 up type can bitrate 1000000 dbitrate 8000000 restart-ms 1000 berr-reporting on fd on buffers/usr/sbin/ifconfig can0 txqueuelen 65536 If i loop can0 to can1 and send something like this candump can0 I see the output. |
Hi Todor, So I believe your Growatt will not have a baudrate of 1000000 but probably 500000. But I will check the documentation. My settings for the SMA SI are like this:
Also make sure you've connected the correct wires (PIN4 = CAN H and PIN 5 = CAN L) of the RJ45 plug to your CAN adaptor. EDIT: I checked for the baudrate and think I've found that it is 500kb |
Yes I have the exact same can model you suggested. I setup to 500kb now. Will I see any output from the inverter even if i did not setup program 36 at the inverter side ? I have the same schema in my Growatt book. Seems like the cables are blue and white-blue. As far as I know i should connect CANH to CANH and CANL to CANL ? |
Yes, CAN H to CAN H and CAN L to CAN L. I'm not sure if you need to set up your inverter to use 2 Lithium and then 36 mode 51 (Growatt) or 52 (Pylontech I think) for the inverter to activate the CAN communication on its BMS port. You should see some output in the log about the inverter communication. If the Growatt inverter module (with mode 51 on the inverter) doesn't work you can also try to configure the SOLARK inverter since that is also a pure Pylontech CAN protocol implementation with mode 52 on the inverter. |
Anyone did a voltage measurements for Growatt CAN H/L ? According to scheme blue/white and blue are pin numbers 4/5. Orange is the ground. I did measure mine and both H/L shows 2.25 voltage. Also resistance between H/L is 160 oms. Is this correct ? I thought CAN H should have more high voltage. |
As per CAN physical layer specification: The CAN-L and CAN-H waveforms mirror each other about 2.5 V and have a 1 V peak to peak amplitude. The CAN-L waveform switches from 2.5 V down to 1.5 V and the CAN-H waveform switches from 2.5 V up to 3.5 V. So 2.25V seems a bit low for CAN H even if its idle. Have you connected PIN 6 (GND) also? |
No i have not connected Ground because i read that it is dangerous and you do not need it. |
You could try to send a frame like:
or
That should send the follow values: Be sure to choose the correct BMS setting in the Growatt inverter. |
I tried but nothing happened. Growatt does not return anything. I do not know if this is normal ? Maybe i need to setup the Growatt first ?! 2024-02-22 10:45:23.680 | ERROR | 2-thread-1 | verter.core.Inverter:70 | Failed to send CAN frame I did not setup anything to growatt yet ! I am still not sure if these voltages 2.25 on blue/white and blue are correct. |
Hi Todor, |
Hi, You will need to download the new Configurator and re-configure your setup and do a clean install. |
Hi Todor, |
Hello, |
Hello, Have you succeeded to get cell information? I have the SPF 5000 ES with 6 Growatt ARK 2.5 batteries trying to get the same battery details as you. Thank you. |
Hi Jimmy, |
Thank you. Is there any step by step documentation I can follow to be able to get cell details information from the inverter USB port to an Arduino or raspberry PI? Thank you. |
No, you don't need daly or python.
And then download and start the Configurator app as described in the Wiki. |
Sorry one more thing. Yesterday we talked about one end of the custom made network cable to the battery and the other end to PI4. But what do I do with the Waveshare RS485 CAN HAT? I dont have one but if need to I`ll one. Thank you. |
The PI4 has an AARCH64 OS platform. The RJ 45 goes right into your CAN port of the ARK. Then you will need to either cut the end off and use wire 4 and 5 (as seen above). Make sure you have the plug the right way around when determining the wires. You will need to connect the CAN H and CAN L wires to the Waveshare 2CH CAN hat respectively: |
Thank you for the clear explanation. I will try first option because I live on an island in the caribbean and buying electronic parts is not easy. I'll try that today and report back my progress. Thank you for all the help. Greatly appreciated. |
Hello Torsten, I made it this far but nothing shows on the webpage with port 8080. I attached all the details I have and logs maybe you see what is missing. Thank you. |
I also can not detect the inverter via my PI CanHat. Maybe the cabling is not correct. I am using standart RJ-45 cable with connectors and cut the cable. Using blue and white-blue cables for CANL and CANH. |
I am connecting directly to the Growatt Ark battery the same way as you. But no success. |
Hi Jimmy, What CAN ports show up if you use the command:
Usually they are call Another thing I noticed on your configuration you configure a Daly BMS. I would expect the Growatt ARK BMS to use the Growatt CAN protocol. If that doesn't work try the Pylon HV or the Pylon CAN protocol and see if you get some data. Let me know if that helps. @sanitariu have you checked the documentation which RJ45 wires are CAN H and CAN L for the inverter? I think they were pin 4 and pin 5. Maybe try to switch the cables. Best regards, |
Thank you Torsten for the help and suggestions. I am extensively traveling for the next 3 weeks. Away from my inverter so I will try that command to see if I get any data as soon as I return home. |
Hi there, im just wondering if you managed to get the Growatt SPF (48v) inverter working with the BMS-inverter. I have some Lithium Po4 batteries and it would be nice to input data for BMS on inverter. i have two batteries but they are not charging/discharging equally on bms setting (Li) and so others use (user2) and input own values problem i am facing is that when i set one particular parameter it resets and i have to input it again the next day for the batteries to charge. so far only the bms function works and i will have to swap cables from top battery to bottom as not charging/discharging equally. hope this is the right place i am searchimg for my answer. cheers |
Hello, I have set the settings 36 to 52. The built in BMS of my SPF 5000 ES does a ok job. I say ok because if I take a reading with a USB stick CONFIG.txt, and open the spreadsheet of each battery, i can see that of my 6 batteries some have different number of discharge cycle. So I plan on rotating the battery every 6 months otherwise some willl be much more used than other. My batteries are different than yours. I have 6 ARK 2.5 Kwh A01. Sorry not much help here. |
Hi Jimmy, thanks very much for your response. Yes i think i may have to rotate the batteris in this case with my syatem. At the moment my setting 36 is on 01 which was mentioned by the seller who sold me the battery(OT-LV-5120WH)/inverter(SPF 5000 ES). I havent tried it on 52 yet, is it just a protocol for the battery brand? Im also waiting for the RS-232 connection from battery to check detailed info. |
@funkydeo yes, the Growatt SPF should be working with either the Growatt inverter CAN binding or the Pylon inverter CAN binding |
Hi, I will definitly send support to this project. Great work! i have some minor issues with 'Next frame: Buffer (HEX): Null - No bytes recieved' from Daly HV BMS every 8 or so seconds. |
Hi @KelasHA00, Your suggestion is great to add a Wiki page documenting which binding works with which BMS and which Inverter! |
Well, the description in the Inverter settings leads to think the Growatt Can is the correct one. But i guess it only applies to LV Growatt inverters. I spend quite some hours double checking my wiring and resetting the Pi. The daly only works on rs485, but should be able to communicate on Can also. |
One issue i just noticed now is, the inverter is mostly idling the battery when using Lithium setting. Battery at 40% and no change when excess power should trigger a charge. Daly is a HV / 48s LiIon series the Inverter a SPH TL3 BH UP running firmware YA1.0. |
Yes, the CAN protocol works definetly better with the Daly. I have also 8 Daly's running via the Waveshare 2CH CAN hat on my RPI 4B. Must make sure that the Daly is really a CAN-enabled version (they do advertise CAN but need it specifically enabled on ordering), otherwise you're stuck with RS485. |
Have you checked the maximum discharge voltage for you Daly? This might cut off at 40% charge. |
Closing this issue since I have not heard anything for a long time. Please create a new issue if you encounter any problems. |
Hi Torsten,
Thanks for the update, I have not had time to tinker with the inverter yet,
but i will let u know if I do encounter any problems once I do get time to
sort it out.
Kind regards,
Nick
…On Friday 9 August 2024, Torsten Oltmanns ***@***.***> wrote:
Closing this issue since I have not heard anything for a long time. Please
create a new issue if you encounter any problems.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIKHMJ5XDEXQV72QDL7JFQDZQRE5ZAVCNFSM6AAAAAA4P7V24SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXGE2TSOJVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello,
Do you plan any support for Growatt Inverter support via RS 485 ?
The text was updated successfully, but these errors were encountered: