Replies: 3 comments 4 replies
-
there is a lot here :P to start, write support isn't implemented yet, because it is risky. i can see about adding it, but i need to think more about what safety mechanisms to put in place. So, to my understanding, modbus over lan requires a server / specialized hardware. there aren't any lights on the rs485 port, so i think we can assume it's not built in. The easiest way to get started would be to look for the USB ports, which do the hardwork of making a cable for you. In your case, the Growatt MiC 600, should have a USB-A port. usb-a to usb-a cables are a bit rare, but available online. For your SPH model ones, i don't see a USB port on them, so you'll have to interface either via the "Serial Port" or rs485. The manual is advertising using a standard db9 usb serial adapter. the manual mentions dip switches for the port "Before use RS232 communication, you should make sure the follow PIN1 and PIN2 are OFF" i think those dip switches control power over serial which is not standard; so make sure they are off. as for interfacing via RS485, you'll need to find the pinout of the port, a RS485 usb adapter, and a ethernet cable. the minimum for rs485 is 2 wires. one positive, one negative. tx+, tx-. optionally a 3rd ground wire. oh the RS485 port may also be running a different modbus "protocol", based on the inverter's settings. it's the most difficult to connect to. i should mention it could be a lot of headache. i personally haven't connected to it yet. i've tested a bit on a sok battery but i'm getting random giberish, i think the can bus is leaking over to the modbus lines :/ and/or the documented wiring is wrong. tbf i never got modbus running between batteries/inverter, just can bus. so waiting for another rs485 adapter to verify its not the adapter. if you want to connect things up via ethernet to a network you'll need a modbus to lan server / adapter and i'd need to add that option in to the code to use modbus over tcp. takes 5 minutes. a usb server and/or serial server should theoretically also work if you interface that way. i'd say start off small, take a usff pc or laptop or whatever device, install linux on it and try getting one inverter connected. for my current setup, i'm running proxmox on a thinclient ( basically a usff ), and from there i have various vms, that way it's multi-purpose and easy to backup. bare-metal backups suck. the goal of this project is to be multi-purpose, so if you have the documentation for whatever device running modbus , can just whip up a csv for the most part and good to go :) |
Beta Was this translation helpful? Give feedback.
-
modbus tcp/udp/tls added if you end up going that route. untested, but should work. currently in v1.0.8 branch. will be in main when v1.0.8 is released. key settings: #tcp/tls/udp example |
Beta Was this translation helpful? Give feedback.
-
I will need 2 waveshare RS485 RJ45 adapters for the smartmeter and for the inverter, most likely not for the wallbox which should run natively modbus tcp via rj 45 and WLAN, but not sure . I will start with 2 of these , also got 4 wireless adapters for direct transmission cause I have found a solution on aliexpress which offers a 1 to many modbus connection via 868 Mhz. Those are quite cheap: 4 for 35€ or so here on AliExpress I simply have to wait for the parts and then start with one of these. |
Beta Was this translation helpful? Give feedback.
-
I have no clue and therefore a lot of guesswork, but I have 8 growatt inverter of different types and sizes like MiC 600 - 2000 - 3000 and Min 4600 and SPH 4600 and SPH 6000.
I would like to change settings from HA or automatically like setting active power ratio or charging points / times
But for now I want to start with the basic configuration like
I know about modbus nothing except it is only a 1:1 connection and needs a kind of master slave configuration that each devices knows who is playing which role.
And right know I am struggling about how to start: Should I setup and cut a RJ45 cable, I mean cut of the plug to connect that to the eastron which comes with terminals for each wire ?
Or can I use my LAN network for the connection ?
Can I connect the eastron with a short cable to my router and then the last meter from my switch to the Growatt inverter ?
That would be far easier, but do I need adapters for that ?
I want to avoid to cut 35 m LAN cable to get rid of the connector .
Sorry, but this is my starting point and the only other thing I know is that I need to intercept the modbus data with a proxy to add additional devices (by repeating the same signals again for these devices) that should benefit from the modbus data.
I hope someone has an idea how to get it done right.
My only proxy experience is the grott proxy server for growatt inverters to have access to the data.
In the long run I want to change settings in the growatt inverters automatically like limitin active power ratio to 20% on all inverters.
And of cause I need the modbus data for surplus charging of the EV and powering the heatpump in 2nd priority, another modbus challenge I guess cause the Wallbox Pulsar Plus is another modbus device.
THANKS A LOT
Beta Was this translation helpful? Give feedback.
All reactions