Closed sante85 closed 9 months ago
Second one are on different port.
Read this for inspiration https://github.com/jblance/mpp-solar/issues/287
i have sended this command QPIGS2
mpp-solar -p /dev/ttyUSB0 -c QPIGS2
but not response get.
SolPiLog get a response
the default protocol doesnt have that command, try mpp-solar -p /dev/ttyUSB0 -c QPIGS2 -P pi30max
or better yet post the result of mpp-solar -p /dev/ttyUSB0 --getDeviceId
with python 3.9.2 Solar Device Command Utility, version: 0.15.62
seem that not read protocolo format.
it is very strange because at launch: mpp-solar -p /dev/ttyUSB0 -c QPIGS2 -P pi30max get this error
package, level)
File "
why?
thanks
can you post a debug run
can you update to the latest? (will need python 3.10 which may be a problem)
can you post a debug run
dbg mode:
mpp-solar -p /dev/ttyUSB0 --getstatus -D
2023-10-09 22:35:46,900:INFO:init:main@214: Solar Device Command Utility, version: 0.15.62
2023-10-09 22:35:46,901:DEBUG:mqttbrokerc:init@29: mqttbroker config: {'name': 'localhost', 'port': 1883, 'user': None, 'pass': None}
2023-10-09 22:35:46,902:DEBUG:init:main@239: MqttBroker name: localhost, port: 1883, user: None
2023-10-09 22:35:46,902:DEBUG:init:main@241: udp port 5555
2023-10-09 22:35:46,902:DEBUG:init:main@243: Using Postgres None
2023-10-09 22:35:46,903:DEBUG:init:main@246: Using Mongo None with mppsolar
2023-10-09 22:35:46,903:INFO:init:main@347: Creating device "unnamed" (type: "mppsolar") on port "/dev/ttyUSB0 (porttype=None)" using protocol "PI30"
2023-10-09 22:35:46,909:DEBUG:init:main@351: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2023-10-09 22:35:46,910:DEBUG:device:init@33: init args ()
2023-10-09 22:35:46,910:DEBUG:device:init@34: init kwargs {'name': 'unnamed', 'port': '/dev/ttyUSB0', 'protocol': 'PI30', 'baud': 2400, 'porttype': None, 'mqtt_broker': <mppsolar.libs.mqttbrokerc.MqttBroker object at 0x760c8b50>, 'udp_port': '5555', 'mongo_url': None, 'mongo_db': 'mppsolar'}
2023-10-09 22:35:46,911:DEBUG:init:get_port_type@69: port matches ttyusb
2023-10-09 22:35:46,911:INFO:init:get_port@111: Using serialio for communications
2023-10-09 22:35:46,933:DEBUG:init:get_protocol@13: Protocol PI30
Traceback (most recent call last):
File "/usr/local/bin/mpp-solar", line 8, in
Is the toDTO method called at all in the mppsolar folder? I thought it was just a powermon thing?
with python 3.11 and 0.16 run right.
IF I RUN mppsolar -p /dev/ttyUSB0 -P PI30 -c QPIGS -o mqtt --mqtttopic aaa
not consider "aaa" with prefix
MOSQUITO OUTPUT SUBSCRIBE
QPIGS/status/ac_input_voltage/value 223.2 QPIGS/status/ac_input_voltage/unit V QPIGS/status/ac_input_frequency/value 49.9 QPIGS/status/ac_input_frequency/unit Hz QPIGS/status/ac_output_voltage/value 223.2 QPIGS/status/ac_output_voltage/unit V QPIGS/status/ac_output_frequency/value 49.9 QPIGS/status/ac_output_frequency/unit Hz QPIGS/status/ac_output_apparent_power/value 0 QPIGS/status/ac_output_apparent_power/unit VA .....
If you are trying to influence the topic I think it's the 'tag' option for this output module
On Tue, 10 Oct 2023, 9:20 pm sante85, @.***> wrote:
with python 3.11 and 0.16 run right.
IF I RUN mppsolar -p /dev/ttyUSB0 -P PI30 -c QPIGS -o mqtt --mqtttopic aaa
not consider "aaa" with prefix
MOSQUITO OUTPUT SUBSCRIBE
QPIGS/status/ac_input_voltage/value 223.2 QPIGS/status/ac_input_voltage/unit V QPIGS/status/ac_input_frequency/value 49.9 QPIGS/status/ac_input_frequency/unit Hz QPIGS/status/ac_output_voltage/value 223.2 QPIGS/status/ac_output_voltage/unit V QPIGS/status/ac_output_frequency/value 49.9 QPIGS/status/ac_output_frequency/unit Hz QPIGS/status/ac_output_apparent_power/value 0 QPIGS/status/ac_output_apparent_power/unit VA .....
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/408#issuecomment-1754673352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNR7WIER25YJ4NOW5XLX6UAOPAVCNFSM6AAAAAA5PHPN2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGY3TGMZVGI . You are receiving this because you commented.Message ID: @.***>
i have tried but in this case mqtt not run properly
'''
mppsolar -p /dev/ttyUSB0 -P PI30MAX -c QPIGS2 -o mqtt -T 92932208100911
mosquito output
92932208100911/status/validity_check/value Error: Invalid response CRCs
why?
only output mqtt not trigger data.
json format is ok mppsolar -p /dev/ttyUSB0 -P PI30MAX -c QPIGS2 -o json {"_command": "QPIGS2", "_command_description": "General Status Parameters inquiry 2", "pv2_input_current": 0.0, "pv2_input_voltage": 0.0, "pv2_charging_power": 0}
i have tried but in this case mqtt not run properly
mppsolar -p /dev/ttyUSB0 -P PI30MAX -c QPIGS2
Command: QPIGS2 - General Status Parameters inquiry 2
Parameter Value Unit
pv2_input_current 0.0 A {'icon': 'mdi:solar-power', 'device-class': 'current'} pv2_input_voltage 0.0 V {'icon': 'mdi:solar-power', 'device-class': 'voltage'} pv2_charging_power 0 W {'icon': 'mdi:solar-power', 'device-class': 'power', 'state_class': 'measurement'} '''
mppsolar -p /dev/ttyUSB0 -P PI30MAX -c QPIGS2 -o mqtt -T 92932208100911
mosquito output
92932208100911/status/validity_check/value Error: Invalid response CRCs
why?
the device response was likely incomplete - are any other connections to the device? try running the command a few times
hi,
this inverter have 2 MPPT DEVICES.
with command mpp-solar -p /dev/ttyUSB0 --getstatus
expose datas of one of two.
how to do this?