Closed danb35 closed 3 years ago
When passing -c QPIRI
instead, the last section of the DEBUG output reads as follows:
DEBUG:MPP-Solar:Searching for cmd 'QPIRI'
INFO:MPP-Solar:DIRECT USB connection: executing QPIRI
Current Settings inquiry
-- queries the current settings from the Inverter
DEBUG:MPP-Solar:length of to_send: 8
DEBUG:MPP-Solar:1 chunk send
DEBUG:MPP-Solar:usb byte_response was: b'^0\x1b\xe3\r'
DEBUG:MPP-Solar:Byte_Response length: 5
DEBUG:MPP-Solar:CRC resp 27, 227
DEBUG:MPP-Solar:Calculating CRC for b'^0'
DEBUG:MPP-Solar:Generated CRC 1b e3 1be3
DEBUG:MPP-Solar:CRC calc 27 227
DEBUG:MPP-Solar:CRCs match
DEBUG:MPP-Solar:getResponse with protocol = PI18
DEBUG:MPP-Solar:Response invalid as insufficient number of elements in byte_response. Got 1, expected as least 25
INFO:MPP-Solar:Invalid byte_response
DEBUG:MPP-Solar:getResponse with protocol = PI18
error Invalid byte_response
response
pi@solpiplog:~ $
Pi18 has different commands Try one of the below instead of PI GS ET MOD
Probably better to use the latest code for your model of inverter to be honest (even though it is marked unstable)
Ah, that looks better:
pi@solpiplog:~ $ mpp-solar -c GS -M PI18 -d /dev/hidraw0
ac_output_active_power 1014 W
ac_output_apparent_power 1097 VA
ac_output_frequency 60.0 Hz
ac_output_voltage 120.6 V
battery_capacity 100 %
battery_charging_current 1 A
battery_discharge_current 0 A
battery_power_direction charge
battery_voltage 27.1 V
battery_voltage_from_scc 27.1 V
battery_voltage_from_scc2 0.0 V
dc/ac_power_direction AC-DC
grid_frequency 60.0 Hz
grid_voltage 120.6 V
inverter_heat_sink_temperature 33 oC
line_power_direction input
load_connection connect
local_parallel_id 0
mppt1_charger_status charging
mppt1_charger_temperature 38 oC
mppt2_charger_status abnormal
mppt2_charger_temperature 0 oC
output_load_percent 42 %
pv1_input_power 35 W
pv1_input_voltage 65.6 V
pv2_input_power 0 W
pv2_input_voltage 0.0 V
setting_value_configuration_state Something changed
pi@solpiplog:~ $ mpp-solar -c ET -M PI18 -d /dev/hidraw0
total_generated_energy 317 KWh
pi@solpiplog:~ $ mpp-solar -c MOD -M PI18 -d /dev/hidraw0
working_mode Hybrid mode(Line mode, Grid mode)
I'll give the new code a shot. [s]Is there a reference for Pi18?[/s] Never mind, I see https://github.com/jblance/mpp-solar/blob/master/docs/PI18_InfiniSolar-V-protocol-20170926.pdf
There is a doc in the docs directory and the new code should have an option to display avaliable commands (pi18 hasn't had many implemented as yet)
This looks similar to #25, but that issue is closed, and I'm not sure it's actually dealing with the same model (as the model numbering is still a little confusing to me). The "model name" is marked (both on the box and on the inverter itself) as "HV LV 2424." Using release 0.4.6, I'm not able to connect to--or at least retrieve useful information from--the inverter. Using some of the troubleshooting commands in the other issue, it looks like it's using protocol 18:
But it won't even retrieve the device's serial number:
And an information query returns an error:
Debug information below: