-
Notifications
You must be signed in to change notification settings - Fork 113
Rerouting Growatt Wifi TCPIP data via your Grott Server
The Grott growatt monitor is based on rerouting the network connection from the inverter to the growatt server via an other linux server (in my case a raspberry pi) where the grott monitor progam is running.
The inverter normally sends it messages to port 5279 on the growatt server on the internet. During the installation of the Shine wifi module or afterwards via the growatt dialogue on the internet the inverter is configured to send it's data to the linux server.
In proxy mode Grott will forward the data to the Growatt server. In sniff mode you have to configure IP port forwarding. Via port forwading the linux server will sent the data to the Growatt server.
Via the menu on the Growatt server the target IP address can be set:
for more information see: https://www.pvo-int.com/wp-content/uploads/2019/03/Troubleshooting-Guide-for-Growatt-Monitoring-devices.pdf. Be aware dialoques (screens) has been changed!
You can set the growatt server or ip address in the advanced configuration menu at initial setup of after a reset of the wifi module.
-
Enable ipforwarding in the unix: echo 1 > /proc/sys/net/ipv4/ip_forward
-
Make sure that IP forwarding works after reboot : edit /etc/sysctl.conf and change the line that says net.ipv4.ip_forward = 0 to net.ipv4.ip_forward = 1
-
sudo iptables -t nat -A PREROUTING -p tcp --dport 5279 -j DNAT --to-destination 47.91.67.66:5279
-
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
- sudo iptables -t nat -L
- sudo iptables -nvxL