Skip to content
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

Done some work on a 4G stick #4

Open
dpoulson opened this issue Oct 22, 2017 · 31 comments
Open

Done some work on a 4G stick #4

dpoulson opened this issue Oct 22, 2017 · 31 comments

Comments

@dpoulson
Copy link

Hi,

Just wanted to say thanks for the work you did, gave me a great starting point for reverse engineering the protocol on a 4G stick.

https://github.com/dpoulson/ginlong-mqtt

Still a lot of work to do on it, they don't make it easy do they? Also tempted to possibly hook it up to a different supply so that it is on all the time, not just when there is solar. Maybe also crack it open and see what its running.

@graham0
Copy link
Owner

graham0 commented Oct 22, 2017

Hi Darren,

Well done, I thought they may have encrypted the data stream this time which would have made this method very difficult.

I'm away at the moment with only a tablet so I will have a closer look when I get home in a couple of weeks.

@graham-currie
Copy link

Graham.0
Just discovered this project when looking for info on the Solis WiFi logging ‘stick’.
Very impressed by your webpage data output, and by the amount of info collected there. It’s been a couple of decades since I did some very basic coding, and a few simple electronic projects, skills now long lost!
I’m having problems with initial setup of the stick. I was able to see SSID, log on and link to server. However, it then disappeared from network ( even when searched for as ‘hidden SSID). A very simple question. When first plugged in, I saw red then green lights illuminated through the semi translucent case. Even if I start from scratch again, (switch off inverter, back on, wait for initialisation, plug in stick, then no sign of any red / green llights, or WiFi signal on network, or direct from the stick.
Does your stick have any internal lights showing under normal operation. Maybe I am looking for a non existent WiFi signal, if it should ‘light up’, and the lack of lights is because it’s got a problem. (I have no fancy hardware WiFi discovering device, only software network analysis, and looking for it as a known (hidden) SSID. Any suggestions, before I admit failure and return it as faulty

@graham-currie
Copy link

Coincidentally, my Solar setup, and results very similar to yours, 15 panels, 3.6kw Solis G4, south east facing. And with very similar daily outputs, topping at peak sun angles and clear sun late mornings at a fraction below 3kw.

@graham0
Copy link
Owner

graham0 commented Feb 19, 2019 via email

@graham-currie
Copy link

Many thanks for quick and comprehensive reply. All as I expected, but As you suggest, I could try waiting for significantly longer than a few minutes before powering back up. Especially as you seem to recall it getting confused’ when plugging in and out.... and I’ve done plenty of that in attempting to get it to show signs of life.
You have impressive low energy costs. We have only had p.v. panels up for 2 weeks, and main reason I want to monitor elec generation and usage is to calculate optimum size for a new mains pressure / unvented h.w. cylinder. (h.w. currently from gas combi). I already have a Solic 200 ‘diverter’ and cabling to the proposed cylinder location, but still working out options; possibly separating off kitchen and family bathroom onto solar immersion, but keeping our attic room en-suite bathroom / shower from combi, so always have that option when not much solar available. Fortunately, our pipe routes look as though the separating into 2 circuits may be relatively easy.
Gas being relatively cheap per KWh compared to electric, I only want to make use of electric water heating when ‘free’ surplus solar available. Meanwhile, I think if I base the generation figures on your data it will be of use to me. Especially as I want to install before I will have typical year round figures. So again, thanks for making the data available to more than just yourself .
All best
Graham

@graham0
Copy link
Owner

graham0 commented Feb 20, 2019 via email

@graham-currie
Copy link

graham-currie commented Feb 20, 2019 via email

@flamegrilled
Copy link

Hi Graham,
I want to thank you for lots of hardwork creating the python/bash scripts.I have a 4G(wifi) 4.6kw Solis inverter and got you .py script to work.I have merged a bit of your code and Dpoulson Mqtt script to run the data into a HA mosquitto broker on a Rpi. Waiting for the sun to come up now to complete the HA config and will update once completed.

Regards,
Sean

@graham0
Copy link
Owner

graham0 commented Dec 5, 2019

Thanks flamegrilled,
Hope it works OK, don't think there will be much sun today though! My system is only generating 120W as I write this.
Graham

@flamegrilled
Copy link

flamegrilled commented Dec 5, 2019 via email

@davidbroster
Copy link

Hi Graham, I've just set up a Wifi stick on my Solis 3.6 4G. I have your script running on a Raspi nearby. It is listening but doesn't hear anything ! ..... mind you the stick only arrived this morning. One simple question ..... I set up the LAN address of my server and kept your port suggestion of 9999 and then I completed the wizard. The stick is reporting perfectly to the https://m.ginlong.com/ website. Now I reread your text instructions it maybe I have to reset and ignore the reporting to ginlong as perhaps the stick will only report to one or other of the defined servers and since its working with ginlong it doesn't send any data to the local server .... is this a correct assumption ?

@flamegrilled
Copy link

flamegrilled commented Sep 9, 2020 via email

@davidbroster
Copy link

davidbroster commented Sep 9, 2020 via email

@flamegrilled
Copy link

flamegrilled commented Sep 9, 2020 via email

@davidbroster
Copy link

davidbroster commented Sep 9, 2020 via email

@flamegrilled
Copy link

flamegrilled commented Sep 9, 2020 via email

@davidbroster
Copy link

davidbroster commented Sep 9, 2020 via email

@craigcurtin-dev
Copy link

Hey Guys,

Just got my Solis installed and running today in Sydney - they are currently shutdown as it is night.

In terms of getting the output to the two servers

  1. It only outputs every 5 minutes if you have it in TCP Client mode
  2. If you go to the URL http:\YOUR_INVERTER_IP\config_hide.html you can get at the extra settings you need (from what i have found so far
  3. When i add a 2nd Server - as you have noted no data was coming out - when i configured the address in this new webpage i can see it attaching to my Ubuntu VM

Craig

@davidbroster
Copy link

davidbroster commented Sep 17, 2020 via email

@craigcurtin-dev
Copy link

craigcurtin-dev commented Sep 17, 2020 via email

@davidbroster
Copy link

davidbroster commented Sep 18, 2020 via email

@craigcurtin-dev
Copy link

OK more updates on my progress or lack thereof.

The WIFI sticks (as probably everyone knows already) are made by IGEN/Solarman. The Solis/Ginlong website is just a rebranded version of their system.

It appears to be random but the majority of new sticks are now using the V5 protocol when sending data to Ginlong. They also appear to totally ignore the 2nd server setting and never send anything out.

For future reference the Solis 3P5K-4G inverter that i have (i have two of them) has a single RS485 bus that is exposed to us - when using the WIFI dongle it is plugged into that RS485 bus and will only work with the inverter set to address 1.

So having multiple inverters means there is no way to have two of them on the same RS485 bus.

Igate also make a WIFI box for the situation where you may have multiple inverters - it is marketed by Solis as the DLB (Data Logging Box) - here in Australia it sells for $350 ex gst and then you have to buy a wiring loom for it - RJ45 on the DLB end and RS485 Circular 4 pin connector - which is an ExceedCon unit and is extremely hard to source - still looking for that seperately.

I intend to ditch the WIFI stick and move to RS485 between the inverters and my monitoring system

Craig

@davidbroster
Copy link

davidbroster commented Oct 5, 2020 via email

@craigcurtin-dev
Copy link

craigcurtin-dev commented Oct 6, 2020 via email

@davidbroster
Copy link

davidbroster commented Oct 29, 2020 via email

@dpoulson
Copy link
Author

That sounds like a cracking solution. I too gave up on the ginlong stick long ago, would frequently drop off the network and not report for days. :/

Got loads of Pi zero and RS485 adapters spare, so sounds like a great plan.

Hi Craig, I “gave up” on the scraping and redirecting route and decided to “hack” my ‘402’ stick by adding a ‘Raspberry Pi Zero W’ and USB-RS485 adapter (yes it will all fit inside the original stick !!!). So I retain the Ginlong wifi-stick website reporting and added my own private data-grab. A little bit of Python3 to send modbus group 4 register reads to the Solis …. which are then decoded and shipped as serialised (pickled) through a python LAN socket to my hot water tank immersion heater controller (another RasPi Zero W). Low cost, low effort and It works really well grabbing updates every minute. The tank side ‘listens’ 24/7 and of course the Solis side shuts down overnight, which upset the tank-side watchdog so I’m currently rewriting some of the tank-side code to accommodate and at the same time producing some hourly ‘matplotlib’ graphics. I’m happy with this solution and will share if you are interested. Let me know. RSVP ……… David

@davidbroster
Copy link

davidbroster commented Oct 29, 2020 via email

@dpoulson
Copy link
Author

I'm in Lancaster, UK.

If you click on my profile, all my contact details are on there. :D

@craigcurtin-dev
Copy link

craigcurtin-dev commented Oct 29, 2020 via email

@NickSutton
Copy link

Fascinating reading! Did anyone ever make any more progress with the 5G inverter and newer sticks?

@graham0
Copy link
Owner

graham0 commented Jul 22, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants