Q1 query protocol change?
See original GitHub issuethis is what happens when I try q1 query on PIP-4024MSP:
Note this line DEBUG:MPP-Solar:usb byte_response was: b'(1 0 0000 15472 00001 00 00 03 000 026 019 028 00 00 000 0040 0000 0000 00.00 11\x0e\xc8\r'
and compare with ["(00000 00000 01 01 00 059 045 053 068 00 00 000 0040 0580 0000 50.00 139", "39B9"]
from here
They seem to have added 3 more values
pi@zero:/var/log $ mpp-solar -d /dev/hidraw0 -c Q1 -D
INFO:MPP-Solar:command Q1
INFO:MPP-Solar:Serial device used: /dev/hidraw0, baud rate: 2400
DEBUG:MPP-Solar:Device matches hidraw regex
INFO:MPP-Solar:Loading commands for inverter model: standard
[...snip...]
DEBUG:MPP-Solar:Searching for cmd 'Q1'
INFO:MPP-Solar:DIRECT USB connection: executing Q1
Q1 query
DEBUG:MPP-Solar:length of to_send: 5
DEBUG:MPP-Solar:1 chunk send
DEBUG:MPP-Solar:usb byte_response was: b'(1 0 0000 15472 00001 00 00 03 000 026 019 028 00 00 000 0040 0000 0000 00.00 11\x0e\xc8\r'
Traceback (most recent call last):
File "/usr/local/bin/mpp-solar", line 11, in <module>
load_entry_point('mpp-solar==0.4.1', 'console_scripts', 'mpp-solar')()
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/__init__.py", line 83, in main
results = mp.getResponseDict(args.command)
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/mpputils.py", line 40, in getResponseDict
return self.inverter.getResponseDict(cmd)
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/mppinverter.py", line 215, in getResponseDict
result = self.execute(cmd)
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/mppinverter.py", line 351, in execute
return self._doDirectUsbCommand(command)
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/mppinverter.py", line 335, in _doDirectUsbCommand
command.setByteResponse(response_line)
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/mppcommand.py", line 139, in setByteResponse
self.response_dict = self.getResponseDict()
File "/usr/local/lib/python3.7/dist-packages/mpp_solar-0.4.1-py3.7.egg/mppsolar/mppcommand.py", line 443, in getResponseDict
msgs[key] = [resp_format[2][int(result)], '']
IndexError: list index out of range
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Simple Nomenclator Query Protocol (SNQP) RFC 2259
This memo provides information for the Internet community. · The Simple Nomenclator Query Protocol (SNQP) allows a client to communicate with a descriptive...
Read more >Master Server Query Protocol - Valve Developer Community
This page documents the legacy Steam master server query protocol. The legacy master is still used by older games and mods, but all...
Read more >Postgres query execution: simple query - DEV Community
When using the simple query protocol, all work is done in one step, assigned by 'Q' in the variable 'firstchar'. This step executes...
Read more >Front End / Back End Protocol - Vertica Integrator's Guide
A simple query cycle is initiated by the frontend sending a Query message to the backend. The message includes an SQL command (or...
Read more >Performing private database queries in a real-world ... - Nature
Here we present a fault-tolerant private query protocol, in which the novel error correction procedure is integral to the security of the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OMFG you’re awesome! I updated and it added PV input power. I’m happy! Fuck Q1, pw input power is all I want.
pv_input_power 429 W
Also check QPIGS raw output (or update to latest code from github), I have updated it based on @nigel16494’s feedback - there is a ‘PV Input Power’ value is some responses (not sure if it is true for QPI = 87 000 though)