... again me and my ideas :D
Is there a way to remote controll an AUX output in the Classic over ethernet, by a command line?
Otherwise I allways have to open the LA, go to the AUX settings, change state there...
I want to control the big relais between grid and inverter (if battery volts are below 47v, it switches over to grid, so batteries are not discharged below critical %)
But I also want to control this relais manually.
Can I send a command over ethernet, that sends something like "change/set state of AUX1 to ON" ( / OFF) ?
Telnet possible ... or a clean command line in CLI in Linux or DOS-Box in Windos ?
After I rebuild the system, when I get the new batteries, I didn't install this again.
Before, I set a voltage range, when the Classic disconnects the inverter from grid (then it acts like a UPS)
and sometimes I had to open the LA and change this manually.
May be, one day I buy a inverter with ethernet interface; but so long, as they are not that cheap, this inverter must do its job.
I also miss a feedback way from the interter, that shows me the state, if it is on grid or on battery.
Soon I will open it and look for the big big relais, or what they use, and try to get a status from this, feed back to the classic to an AUX :D So I can see the status.
So long, I fixes now an old smartphone in front of the "grid energy counter" , so I have one way, to see it.
If the disc runs, I know I use power from grid :D
(image in attachment)
I would think you could do it with modbus commands .
Larry
how can I do it? ;)
Hi, binkino,
You'll need a command line modbus interface -- here's one, though I haven't used it myself:
https://github.com/tallakt/modbus-cli
Looks like you'll need ruby installed.
Once it's built and installed you should be able to do the following:
modbus write <IP of Classic> <HR Offset> [reg values]
In the case of the Classic Aux:
modbus write <IP of classic> %MW4165 [Aux1&2 value]
The Aux 1& 2 value is complicated, you'll have to look at the table in the manual to set it to exactly what you want (Table 4165-1,2,3,4):
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf
For example, to set the aux1 to off and leave aux 2 on auto WBJr you would write:
modbus write <IP of classic> %MW4165 20993
0x5201 = 01 010010 00 000000
01=aux2 auto
010010 = aux2 function18 (WBJr)
00 = aux1 off
000001 = aux1 function1 (Diversion)
sorry, I missed that 20993dec = 0x5201
Thank you ;)