Replies: 5 comments 7 replies
-
Try `-c QPI` instead of getstatus first. This will give the protocol
version that the inverter thinks it knows (default is PI30)
Once you have the protocol try some of the individual commands next `-c`
without a command should list the available commands for the protocol you
use (`-P xxxx` to supply a protocol if it isn't PI30)
…On Sun, 8 May 2022, 4:58 pm krime777, ***@***.***> wrote:
I'm trying to get data from my Easun SV IV inverter with no success. The
closest I got to getting some data is with the following command:
/home/pi# mpp-solar -p /dev/hidraw0 -P PI30 --getstatus -I
2022-05-08 ***@***.***: Solar Device Command
Utility, version: 0.9.12, doc updates
2022-05-08 ***@***.***: Creating device "unnamed"
(type: "mppsolar") on port "/dev/hidraw0 (porttype=None)" using protocol
"PI30"
2022-05-08 ***@***.***: Using hidrawio for
communications
2022-05-08 ***@***.***: Looping 1 commands
2022-05-08 ***@***.***: Getting results from
device: mppsolar device - name: unnamed, port:
<mppsolar.io.hidrawio.HIDRawIO object at 0x75f43460>, protocol:
<mppsolar.protocols.pi30.pi30 object at 0x766c4d90> for command:
get_status, tag: get_status, outputs: screen
2022-05-08 ***@***.***: Running command
get_status
2022-05-08 ***@***.***: Running command QPIGS
2022-05-08 ***@***.***: Using
protocol b'PI30' with 40 commands
2022-05-08 ***@***.***: full command
b'QPIGS\xb7\xa9\r' for command QPIGS
2022-05-08 ***@***.***: response passed
to decode: b'(NAKss\r'
2022-05-08 ***@***.***: NAK
2022-05-08 ***@***.***: Decoded response
{'ERROR': ['NAK', '']}
2022-05-08 ***@***.***: Running command Q1
2022-05-08 ***@***.***: Using
protocol b'PI30' with 40 commands
2022-05-08 ***@***.***: full command
b'Q1\x1b\xfc\r' for command Q1
2022-05-08 ***@***.***: response passed
to decode: b'(01200 00015 00 00 00 000 031 025 033 02 00 000 0030 0000 0000
00.00 12 0 000 000 000 000 00.00 000 000 0 0000\xc5i\r'
2022-05-08 ***@***.***: Processing
response of type DEFAULT
2022-05-08 ***@***.***: Processing
DEFAULT type responses
2022-05-08 ***@***.***: Decoded response
{'raw_response': ['(01200 00015 00 00 00 000 031 025 033 02 00 000 0030
0000 0000 00.00 12 0 000 000 000 000 00.00 000 000 0 0000Åi\r', ''],
'_command': 'Q1', '_command_description': 'Q1 query', 'Time until the end
of absorb charging': [1200, 'sec'], 'Time until the end of float charging':
[15, 'sec'], 'SCC Flag': ['SCC not communicating?', ''], 'AllowSccOnFlag':
['00', ''], 'ChargeAverageCurrent': ['00', ''], 'SCC PWM temperature': [0,
'°C'], 'Inverter temperature': [31, '°C'], 'Battery temperature': [25,
'°C'], 'Transformer temperature': [33, '°C'], 'GPIO13': [2, ''], 'Fan lock
status': ['Not locked', ''], 'Not used': ['000', ''], 'Fan PWM speed': [30,
'Percent'], 'SCC charge power': [0, 'W'], 'Parallel Warning??': ['0000',
''], 'Sync frequency': [0.0, ''], 'Inverter charge status': ['absorb', ''],
'Unknown value in response 17': ['0', ''], 'Unknown value in response 18':
['000', ''], 'Unknown value in response 19': ['000', ''], 'Unknown value in
response 20': ['000', ''], 'Unknown value in response 21': ['000', ''],
'Unknown value in response 22': ['00.00', ''], 'Unknown value in response
23': ['000', ''], 'Unknown value in response 24': ['000', ''], 'Unknown
value in response 25': ['0', ''], 'Unknown value in response 26': ['0000',
'']}
2022-05-08 ***@***.***: attempting to create
output processor: screen
2022-05-08 ***@***.***: Using output processor:
screen
Command: Q1 - Q1 query
Parameter Value Unit
error NAK
time_until_the_end_of_absorb_charging 1200 sec
time_until_the_end_of_float_charging 15 sec
scc_flag SCC not communicating?
allowscconflag 00
chargeaveragecurrent 00
scc_pwm_temperature 0 °C
inverter_temperature 31 °C
battery_temperature 25 °C
transformer_temperature 33 °C
gpio13 2
fan_lock_status Not locked
not_used 000
fan_pwm_speed 30 Percent
scc_charge_power 0 W
parallel_warning?? 0000
sync_frequency 0.0
inverter_charge_status absorb
unknown_value_in_response_17 0
unknown_value_in_response_18 000
unknown_value_in_response_19 000
unknown_value_in_response_20 000
unknown_value_in_response_21 000
unknown_value_in_response_22 00.00
unknown_value_in_response_23 000
unknown_value_in_response_24 000
unknown_value_in_response_25 0
unknown_value_in_response_26 0000
—
Reply to this email directly, view it on GitHub
<#222>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNWHPGFQCM5TV6O5SZ3VI5CVRANCNFSM5VLMDSGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So that didn't help
Try another command
QDI or QPIGS or QPGS0 to see if any of them work
Next try different protocols especially PI16 and PI17
…On Sun, 8 May 2022, 5:46 pm krime777, ***@***.***> wrote:
mpp-solar -p /dev/hidraw0 -P PI30 -c QPI -I
2022-05-08 ***@***.***: Solar Device Command
Utility, version: 0.9.12, doc updates
2022-05-08 ***@***.***: Creating device "unnamed"
(type: "mppsolar") on port "/dev/hidraw0 (porttype=None)" using protocol
"PI30"
2022-05-08 ***@***.***: Using hidrawio for
communications
2022-05-08 ***@***.***: Looping 1 commands
2022-05-08 ***@***.***: Getting results from
device: mppsolar device - name: unnamed, port:
<mppsolar.io.hidrawio.HIDRawIO object at 0x75f77490>, protocol:
<mppsolar.protocols.pi30.pi30 object at 0x766f8d90> for command: QPI, tag:
QPI, outputs: screen
2022-05-08 ***@***.***: Running command QPI
2022-05-08 ***@***.***: Using
protocol b'PI30' with 40 commands
2022-05-08 ***@***.***: full command
b'QPI\xbe\xac\r' for command QPI
2022-05-08 ***@***.***: response passed
to decode: b'(NAKss\r'
2022-05-08 ***@***.***: NAK
2022-05-08 ***@***.***: Decoded response
{'ERROR': ['NAK', '']}
2022-05-08 ***@***.***: attempting to create
output processor: screen
2022-05-08 ***@***.***: Using output processor:
screen
Parameter Value Unit
error NAK
—
Reply to this email directly, view it on GitHub
<#222 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNXSF7TOLUU4VFXSHFDVI5IKHANCNFSM5VLMDSGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Looks like pi18 or a variation of it
Try commands that fail a few times with info level messages to see if there
are differences in response
And maybe both pi18 and pi17 PI command with info messages to see the
differences
…On Sun, 8 May 2022, 6:23 pm krime777, ***@***.***> wrote:
Thanks for the help!
I'm starting to get some (weird) results for PI17 and PI18:
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI17 -c PI
Command: PI - Device Protocol Version inquiry
Parameter Value Unit
protocol_version 18
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 -c GS
Command: GS - General status query Parameter Value Unit
warning0 Command GS was rejected
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 -c MOD
Command: MOD - Working mode query Parameter Value Unit
working_mode Battery mode
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 -c ET
Command: ET - Total Generated Energy query Parameter Value Unit
warning0 Command ET was rejected
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 -c ID
Command: ID - Device Serial Number inquiry Parameter Value Unit
warning0 Command ID was rejected
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 --getstatus
2022-05-08 ***@***.***: full_command not
found for EY in protocol b'PI18'
Command: PI - Device Protocol Version inquiry Parameter Value Unit
warning0 Command PI was rejected
error full_command not found for EY in protocol b'PI18'
main_cpu_version 5401
slave_1_cpu_version 4022
slave_2_cpu_version 0
ac_input_rated_voltage 230.0 V
ac_input_rated_current 24.3 A
ac_output_rated_voltage 230.0 V
ac_output_rated_frequency 50.0 Hz
ac_output_rated_current 24.3 A
ac_output_rating_apparent_power 5600 VA
ac_output_rating_active_power 5600 W
battery_rated_voltage 48.0 V
battery_re-charge_voltage 50.0 V
battery_re-discharge_voltage 51.0 V
battery_under_voltage 48.0 V
battery_bulk_voltage 54.1 V
battery_float_voltage 53.7 V
battery_type User
max_ac_charging_current 10 A
max_charging_current 60 A
input_voltage_rang Appliance
output_source_priority Solar-Battery-Utility
charger_source_priority Only Solar
parallel_max_num 9
machine_type Off-Grid
topology transformerless
output_model_setting Single module
solar_power_priority Load-Battery-Utiliy
mppt_strings 1
unknown_value_in_response_25 00
working_mode Battery mode
buzzer_beep Enabled
overload_bypass_function Enabled
display_back_to_default_page Enabled
overload_restart Disabled
over_temperature_restart Disabled
backlight_on Enabled
alarm_primary_source_interrupt Enabled
fault_code_record Disabled
reserved 0
max._charging_current_value_1 10 A
max._charging_current_value_2 20 A
max._charging_current_value_3 30 A
max._charging_current_value_4 40 A
max._charging_current_value_5 50 A
max._charging_current_value_6 60 A
max._charging_current_value_7 70 A
max._charging_current_value_8 80 A
unknown_value_in_response_8 090
unknown_value_in_response_9 090
unknown_value_in_response_10 100
unknown_value_in_response_11 110
max._ac_charging_current_value_1 2 A
max._ac_charging_current_value_2 10 A
max._ac_charging_current_value_3 20 A
max._ac_charging_current_value_4 30 A
max._ac_charging_current_value_5 40 A
max._ac_charging_current_value_6 50 A
max._ac_charging_current_value_7 60 A
max._ac_charging_current_value_8 70 A
max._ac_charging_current_value_9 80 A
unknown_value_in_response_12 120
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 --getsettings
2022-05-08 ***@***.***: full_command not
found for PEIPDIPOPPSP in protocol b'PI18'
Parameter Value Unit
error full_command not found for PEIPDIPOPPSP in protocol b'PI18'
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI18 -c PI
Command: PI - Device Protocol Version inquiry
Parameter Value Unit
warning0 Command PI was rejected
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI17 -c BATS
Command: BATS - Query battery setting Parameter Value Unit
warning0 Command BATS was rejected
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI17 -c ID
Command: ID - Device Serial Number inquiry Parameter Value Unit
serial_number 1496132108101698000000
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI17 -c PS
Command: PS - Device Power Status Parameter Value Unit
warning0 Command PS was rejected
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI17 -c WS
Command: WS - Warning status inquiry
Parameter Value Unit
warning0 Command WS was rejected
PI17 --getstatus doesn't output anything:
***@***.***:/home/pi# mpp-solar -p /dev/hidraw0 -P PI17 --getstatus
-D
2022-05-08 ***@***.***: Solar Device Command
Utility, version: 0.9.12, doc updates
2022-05-08 ***@***.***:
MqttBroker(name='localhost', port=1883, username=None, password=None,
results_topic='mpp-solar', mqttc=<paho.mqtt.client.Client object at
0x765e7f40>, _isConnected=False)
2022-05-08 ***@***.***: Creating device "unnamed"
(type: "mppsolar") on port "/dev/hidraw0 (porttype=None)" using protocol
"PI17"
2022-05-08 ***@***.***: device_class <class
'mppsolar.devices.mppsolar.mppsolar'>
2022-05-08 ***@***.*** <https://github.com/33>:
*init* args ()
2022-05-08 ***@***.*** <https://github.com/34>:
*init* kwargs {'name': 'unnamed', 'port': '/dev/hidraw0', 'protocol':
'PI17', 'baud': 2400, 'porttype': None, 'mqtt_broker':
MqttBroker(name='localhost', port=1883, username=None, password=None,
results_topic='mpp-solar', mqttc=<paho.mqtt.client.Client object at
0x765e7f40>, _isConnected=False)}
2022-05-08 ***@***.***: port matches hidraw
2022-05-08 ***@***.***: Using hidrawio for
communications
2022-05-08 ***@***.***: Protocol PI17
2022-05-08 ***@***.*** <https://github.com/38>:
*init* name unnamed, port <mppsolar.io.hidrawio.HIDRawIO object at
0x75fb2460>, protocol <mppsolar.protocols.pi17.pi17 object at 0x760cdfb8>
2022-05-08 ***@***.***: Commands
[(<mppsolar.devices.mppsolar.mppsolar object at 0x75fb2508>, 'get_status',
'get_status', 'screen', None, None)]
2022-05-08 ***@***.***: Looping 1 commands
2022-05-08 ***@***.***: Getting results from
device: mppsolar device - name: unnamed, port:
<mppsolar.io.hidrawio.HIDRawIO object at 0x75fb2460>, protocol:
<mppsolar.protocols.pi17.pi17 object at 0x760cdfb8> for command:
get_status, tag: get_status, outputs: screen
2022-05-08 ***@***.***: Running command
get_status
2022-05-08 ***@***.***: results: {}
2022-05-08 ***@***.***: attempting to create
output processor: screen
2022-05-08 ***@***.*** <https://github.com/16>:
processor.screen *init* kwargs {}
2022-05-08 ***@***.***: Using output filter: None
2022-05-08 ***@***.***: Using output processor:
screen
2022-05-08 ***@***.***: kwargs {'data': {},
'tag': 'get_status', 'mqtt_broker': MqttBroker(name='localhost', port=1883,
username=None, password=None, results_topic='mpp-solar',
mqttc=<paho.mqtt.client.Client object at 0x765e7f40>, _isConnected=False),
'filter': None, 'excl_filter': None, 'keep_case': False}
2022-05-08 ***@***.***: Not daemon, so not looping
—
Reply to this email directly, view it on GitHub
<#222 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNVWOKEFKBHDBNCTTSDVI5MWRANCNFSM5VLMDSGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sounds good to me. Happy either way
…On Fri, 9 Dec 2022, 2:30 am Greg Giannoni, ***@***.***> wrote:
Hi. I had same issue earlier this week.
I'm a solar solution installer & reseller, and I connect arm-based board
to my installations to offer monitoring & nice dashboards to my clients.
I usually use SMP-5k, but I installed two SV-IV 5.6k last week and I had
the same issue.
I often work with easun (directly), so it was easy for me to ask them the
protocol specs. I can send you those specs by private message, or just wait
1 or 2 weeks, I'll adapt the lib to recognize those inverters and I'll make
the pull request.
—
Reply to this email directly, view it on GitHub
<#222 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNS377XEIP4YYQCFAFDWMHPG5ANCNFSM5VLMDSGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I successfully implemented all query commands. I've implemented some set commands :
I'll try to find out why some set commands are rejected. Once found, I'll implement the missing ones :
So if someone has any idea for the rejected commands, tell me ! Greg. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get data from my Easun SV IV inverter with no success. The closest I got to getting some data is with the following command:
/home/pi# mpp-solar -p /dev/hidraw0 -P PI30 --getstatus -I
2022-05-08 07:50:27,719:INFO:init:main@195: Solar Device Command Utility, version: 0.9.12, doc updates
2022-05-08 07:50:27,720:INFO:init:main@299: Creating device "unnamed" (type: "mppsolar") on port "/dev/hidraw0 (porttype=None)" using protocol "PI30"
2022-05-08 07:50:27,726:INFO:init:get_port@89: Using hidrawio for communications
2022-05-08 07:50:27,734:INFO:init:main@357: Looping 1 commands
2022-05-08 07:50:27,734:INFO:init:main@367: Getting results from device: mppsolar device - name: unnamed, port: <mppsolar.io.hidrawio.HIDRawIO object at 0x75f43460>, protocol: <mppsolar.protocols.pi30.pi30 object at 0x766c4d90> for command: get_status, tag: get_status, outputs: screen
2022-05-08 07:50:27,734:INFO:device:run_command@271: Running command get_status
2022-05-08 07:50:27,735:INFO:device:run_command@271: Running command QPIGS
2022-05-08 07:50:27,735:INFO:abstractprotocol:get_full_command@50: Using protocol b'PI30' with 40 commands
2022-05-08 07:50:27,736:INFO:device:run_command@298: full command b'QPIGS\xb7\xa9\r' for command QPIGS
2022-05-08 07:50:28,554:INFO:abstractprotocol:decode@196: response passed to decode: b'(NAKss\r'
2022-05-08 07:50:28,555:INFO:abstractprotocol:decode@200: NAK
2022-05-08 07:50:28,555:INFO:device:run_command@336: Decoded response {'ERROR': ['NAK', '']}
2022-05-08 07:50:28,556:INFO:device:run_command@271: Running command Q1
2022-05-08 07:50:28,556:INFO:abstractprotocol:get_full_command@50: Using protocol b'PI30' with 40 commands
2022-05-08 07:50:28,557:INFO:device:run_command@298: full command b'Q1\x1b\xfc\r' for command Q1
2022-05-08 07:50:31,477:INFO:abstractprotocol:decode@196: response passed to decode: b'(01200 00015 00 00 00 000 031 025 033 02 00 000 0030 0000 0000 00.00 12 0 000 000 000 000 00.00 000 000 0 0000\xc5i\r'
2022-05-08 07:50:31,481:INFO:abstractprotocol:decode@236: Processing response of type DEFAULT
2022-05-08 07:50:31,481:INFO:abstractprotocol:decode@247: Processing DEFAULT type responses
2022-05-08 07:50:31,483:INFO:device:run_command@336: Decoded response {'raw_response': ['(01200 00015 00 00 00 000 031 025 033 02 00 000 0030 0000 0000 00.00 12 0 000 000 000 000 00.00 000 000 0 0000Åi\r', ''], '_command': 'Q1', '_command_description': 'Q1 query', 'Time until the end of absorb charging': [1200, 'sec'], 'Time until the end of float charging': [15, 'sec'], 'SCC Flag': ['SCC not communicating?', ''], 'AllowSccOnFlag': ['00', ''], 'ChargeAverageCurrent': ['00', ''], 'SCC PWM temperature': [0, '°C'], 'Inverter temperature': [31, '°C'], 'Battery temperature': [25, '°C'], 'Transformer temperature': [33, '°C'], 'GPIO13': [2, ''], 'Fan lock status': ['Not locked', ''], 'Not used': ['000', ''], 'Fan PWM speed': [30, 'Percent'], 'SCC charge power': [0, 'W'], 'Parallel Warning??': ['0000', ''], 'Sync frequency': [0.0, ''], 'Inverter charge status': ['absorb', ''], 'Unknown value in response 17': ['0', ''], 'Unknown value in response 18': ['000', ''], 'Unknown value in response 19': ['000', ''], 'Unknown value in response 20': ['000', ''], 'Unknown value in response 21': ['000', ''], 'Unknown value in response 22': ['00.00', ''], 'Unknown value in response 23': ['000', ''], 'Unknown value in response 24': ['000', ''], 'Unknown value in response 25': ['0', ''], 'Unknown value in response 26': ['0000', '']}
2022-05-08 07:50:31,484:INFO:init:get_outputs@37: attempting to create output processor: screen
2022-05-08 07:50:31,489:INFO:screen:output@19: Using output processor: screen
Command: Q1 - Q1 query
Parameter Value Unit
error NAK
time_until_the_end_of_absorb_charging 1200 sec
time_until_the_end_of_float_charging 15 sec
scc_flag SCC not communicating?
allowscconflag 00
chargeaveragecurrent 00
scc_pwm_temperature 0 °C
inverter_temperature 31 °C
battery_temperature 25 °C
transformer_temperature 33 °C
gpio13 2
fan_lock_status Not locked
not_used 000
fan_pwm_speed 30 Percent
scc_charge_power 0 W
parallel_warning?? 0000
sync_frequency 0.0
inverter_charge_status absorb
unknown_value_in_response_17 0
unknown_value_in_response_18 000
unknown_value_in_response_19 000
unknown_value_in_response_20 000
unknown_value_in_response_21 000
unknown_value_in_response_22 00.00
unknown_value_in_response_23 000
unknown_value_in_response_24 000
unknown_value_in_response_25 0
unknown_value_in_response_26 0000
Beta Was this translation helpful? Give feedback.
All reactions