Here are some network-technical notes on the datalogger used by the Hosola Photovoltaics (PV) inverter (and possibly other brands).
The MAC address of my inverter is
ac:cf:23:12:85:1dHi-flying electronics technology Co.,LtdSo the OUI (Organizational Unique Identifier) is ac:cf:23:
Thus, if you have arp-scan installed (Linux), you can find the IP address of the datalogger like this:
$ sudo arp-scan --localnet --interface=wlan0 | grep -i ac:cf:23:192.168.0.112 ac:cf:23:12:85:1d Hi-flying electronics technology Co.,LtdWith the IP address known, you can access the datalogger from your PC
nmap gives this as this guesstimate of the OS on the datalogger:
Device type: switchRunning: 3Com embeddedOS details: 3Com Baseline Switch 2250-SFP PlusOpen ports:
80/tcp open http8899/tcp open ospf-lite
Port 80 is of course the built-in webserver (default account: admin/admin). The webserver says it is "Server: Ralink HTTPD".
I have not yet discovered what the port 8899 does (other than just accepting connections).
You can access the datalogger using your webbrowser via (for example) http://192.168.0.112/ . After login (default: admin/admin) you can access all info.
Sometimes it can be handy to access the webserver from another program or the command line. First results for that:
curl -u admin:admin http://192.168.0.112/should give you access to the front page.
Some more useful stuff is at
http://192.168.0.112/js/status.js (you can open this in your webbroser). To get the information from the command line, you can use something like this:
$ curl -u admin:admin http://192.168.0.112/js/status.js --stderr /dev/null | sed -e 's/;/\n/g' | grep -e "^var" | grep -i webdatavar webData="H4993F0274,V1.05,V1.05,SolarSmart 2.2KW, 2200,143,248,25,,0,The meaning of the last values (so: 2200,143,248,25,,3,) are respectively:
Rated power 2200 W
Current power 143 W
Yield today 2.48 kWh
Total yield 2.5 kWh
Alarms ---
Last updated 3 Min Ago
So, a very ugly one-line for getting the current power production is:
sander@flappie:~$ curl -u admin:admin http://192.168.0.112/js/status.js --stderr /dev/null | sed -e 's/;/\n/g' | grep -e "^var" | grep -i webdata | awk '{ print $4 }' | awk -F, '{ print $2 }' 126sander@flappie:~$So the current power production is 126 Watt.
PS:
The Hosola can log it's data to SolarMAN (
http://www.solarmanpv.com/). You have to fill out a serial number for that. Use the serial that's broadcast by the Hosola Acess Point. So with something like AP_604443661 ... use the numbers 604443661 in the SolarMAN registration interface.
You can also find this number in the Hosola datalogger webinterface: Status -> Device information
-> Device serial number.
So: do NOT use the "Inverter serial number", which is something like H4993F0274