Git Product home page Git Product logo

Comments (5)

danb35 avatar danb35 commented on August 24, 2024

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:~ $ 

from mpp-solar.

jblance avatar jblance commented on August 24, 2024

Pi18 has different commands
Try one of the below instead of PI
GS
ET
MOD

from mpp-solar.

jblance avatar jblance commented on August 24, 2024

Probably better to use the latest code for your model of inverter to be honest (even though it is marked unstable)

from mpp-solar.

danb35 avatar danb35 commented on August 24, 2024

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

from mpp-solar.

jblance avatar jblance commented on August 24, 2024

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)

from mpp-solar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.