Getting Data from the SUN-1000GTIL2


MASSIVE restock of EV Batteries at www.batteryhookup.com 5% coupon "POWERWALLS"

Wolf

Active member
Joined
Sep 25, 2018
Messages
1,715
I was going to post this in the other GTIL threads but, after careful consideration I decided against it, as it really doesn't involve controlling the output but being able to view the data in Grafana.
The idea behind this was to build a wireless transmitter to locally monitor the available data from the GTIL instead of sending your data to some offshore website via the available Wi-Fi stick for $55.
Kudos to @MartinCZ https://secondlifestorage.com/index...il2-sun-1000g2-with-raspberry.2328/post-74585 that wrote the initial code. After learning to use PlatformIO I was able to modify the code to send all this data directly to influx and of course visualize it Grafana. Once I understood how PlafotmIO works took about 3 evenings to get it all together. By the way it requires a DB9 RS232 null modem cable. Also of course you need to have a GTIL2 with the serial "Remote WIFI Port".
1655124250911.png

First prototype of the Module.
20220607_203444.jpg
Final Product self contained powered from the GTIL remote WIFI Port pin9 (12V)
20220612_160415.jpg20220612_160422.jpg20220612_163251.jpg
The results in Grafana
1655124567050.png

On another note I had (2) GTIL fail. Both tripped the 20 amp breakers they are wired to. Did not blow the 30A internal fuses. Tried to reset the braker and hu? No go. Tripped immediately again. Did not blow the 30A internal fuses got to love those ABB breakers expensive but well worth it as nothing else was destroyed within the GTIL. Fortunately I had 2 backup units so it was just plug and play and I was back up and running within a matter of minutes. Additionally since I have 4 I was never totally down.
Found shorted DC input. Make long story short (pun) removed the IRFB4227 Mosfets found 1 shorted replaced all. 1 repaired 1 to go.

If anyone would like the code to let me know. Total credit goes to @MartinCZ for the initial code to decipher the Modbus protocol. I am also working on expanding the Python code from @lambda https://secondlifestorage.com/index...il2-sun-1000g2-with-raspberry.2328/post-70563
to basically do the same thing. I'll keep you posted.

Wolf
 

Wolf

Active member
Joined
Sep 25, 2018
Messages
1,715
Update on the final product. They are now self-contained in a nice box and just plug in. Still easy to program as in my case I have 4 of them so each one needs to have a separate root topic for influx. Didn't want to make it too complicated. Has a green LED to indicate power on and a blue LED to indicate continues loop function. During my testing of the units there was a slight power glitch ( 2 or 3 seconds) and they did not come back on line which prompted me to remember to add a Wi-Fi reconnect into the code. Problem solved. Some pictures for you.
From prototype to finished product.
1655724572463.png1655724662438.png 1655724531509.png1655726344253.png

And a bit of nostalgia. 4 years in the making My My how we have grown.

May2018___________________________________June 2018_________________________________ August 2019
1655725227236.png1655724897867.png1655724954713.png

April 2019_____________________________________________________________May 2020
1655725724470.png1655725905061.png

Yesterday June 2022
1655724715760.png

Wolf
 
Last edited:
Top