Replies: 6 comments 12 replies
-
can you post the output of |
Beta Was this translation helpful? Give feedback.
-
great, so the inverter identifies itself as pi18 protocol - so thats a good
start
…On Mon, 1 May 2023 at 13:31, smrruby ***@***.***> wrote:
***@***.***:~ $ mpp-solar -p /dev/hidraw0 -P PI18SV -c PI
Command: PI - Device Protocol Version inquiry
------------------------------------------------------------
Parameter Value Unit
protocol_version 18
—
Reply to this email directly, view it on GitHub
<#344 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNS3RS4WCOB2TTTMG4DXD4HAVANCNFSM6AAAAAAXRC3DTA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
can you update to >=0.15.53 and try |
Beta Was this translation helpful? Give feedback.
-
okay that fixed it, here is the debug from the DAT command
|
Beta Was this translation helpful? Give feedback.
-
Need to use PI18LVX protocol
…On Wed, 3 May 2023, 4:24 am smrruby, ***@***.***> wrote:
okay that fixed it, here is the debug from the DAT command
***@***.***:~ $ mpp-solar -p /dev/hidraw0 -P PI18SV -c DAT230502102240 -D
2023-05-02 ***@***.***: Solar Device Command Utility, version: 0.15.56
2023-05-02 ***@***.***: mqttbroker config: {'name': 'localhost', 'port': 1883, 'u ser': None, 'pass': None}
2023-05-02 ***@***.***: MqttBroker name: localhost, port: 1883, user: None
2023-05-02 ***@***.***: udp port 5555
2023-05-02 ***@***.***: Using Postgres None
2023-05-02 ***@***.***: Using Mongo None with mppsolar
2023-05-02 ***@***.***: Creating device "unnamed" (type: "mppsolar") on port "/dev/hidra w0 (porttype=None)" using protocol "PI18SV"
2023-05-02 ***@***.***: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2023-05-02 ***@***.***: __init__ args ()
2023-05-02 ***@***.***: __init__ kwargs {'name': 'unnamed', 'port': '/dev/hidraw0', 'p rotocol': 'PI18SV', 'baud': 2400, 'porttype': None, 'mqtt_broker': <mppsolar.libs.mqttbrokerc.MqttBroker object at 0xb602cb50>, 'udp_port': '5555', 'mongo_url': None, 'mongo_db': 'mppsolar'}
2023-05-02 ***@***.***: port matches hidraw
2023-05-02 ***@***.***: Using hidrawio for communications
2023-05-02 ***@***.***: Protocol PI18SV
2023-05-02 ***@***.***: __init__ name unnamed, port <mppsolar.inout.hidrawio.HIDRawIO object at 0xb602cc58>, protocol PI18 protocol handler for Easun SV inverters
2023-05-02 ***@***.***: Commands [(<mppsolar.devices.mppsolar.mppsolar object at 0xb602 cb68>, 'DAT230502102240', 'DAT230502102240', 'screen', None, None)]
2023-05-02 ***@***.***: Looping 1 commands
2023-05-02 ***@***.***: Getting results from device: mppsolar device - name: unnamed, po rt: <mppsolar.inout.hidrawio.HIDRawIO object at 0xb602cc58>, protocol: PI18 protocol handler for Easun SV invert ers for command: DAT230502102240, tag: DAT230502102240, outputs: screen
2023-05-02 ***@***.***: Running command DAT230502102240
2023-05-02 ***@***.***: Using protocol b'PI18SV' with 46 commands
2023-05-02 ***@***.***: Processing command 'DAT230502102240'
2023-05-02 ***@***.***: Regex commands _command: EY
2023-05-02 ***@***.***: Regex commands _command: EM
2023-05-02 ***@***.***: Regex commands _command: ED
2023-05-02 ***@***.***: Regex commands _command: PRI
2023-05-02 ***@***.***: Regex commands _command: PGS
2023-05-02 ***@***.***: Regex commands _command: LON
2023-05-02 ***@***.***: Regex commands _command: MCHGC
2023-05-02 ***@***.***: Regex commands _command: MUCHGC
2023-05-02 ***@***.***: Regex commands _command: MCHGV
2023-05-02 ***@***.***: Regex commands _command: DAT
2023-05-02 ***@***.***: Matched: DAT230502102240 to: DAT value: 2305 02102240
2023-05-02 ***@***.***: _cmd is: b'DAT230502102240'
2023-05-02 ***@***.***: _type is: SETTER
2023-05-02 ***@***.***: _prefix: ^S018
2023-05-02 ***@***.***: auto_prefix: ^S018
2023-05-02 ***@***.***: _pre_cmd: b'^S018DAT230502102240'
2023-05-02 ***@***.***: CRC: True
2023-05-02 ***@***.***: Calculating CRC for b'^S018DAT230502102240'
2023-05-02 ***@***.***: Generated CRC 0xc6 0x36 0xc636
2023-05-02 ***@***.***: full command: b'^S018DAT230502102240\xc66\r'
2023-05-02 ***@***.***: full command b'^S018DAT230502102240\xc66\r' for command DAT2 30502102240
2023-05-02 ***@***.***: Processing command 'DAT230502102240'
2023-05-02 ***@***.***: Regex commands _command: EY
2023-05-02 ***@***.***: Regex commands _command: EM
2023-05-02 ***@***.***: Regex commands _command: ED
2023-05-02 ***@***.***: Regex commands _command: PRI
2023-05-02 ***@***.***: Regex commands _command: PGS
2023-05-02 ***@***.***: Regex commands _command: LON
2023-05-02 ***@***.***: Regex commands _command: MCHGC
2023-05-02 ***@***.***: Regex commands _command: MUCHGC
2023-05-02 ***@***.***: Regex commands _command: MCHGV
2023-05-02 ***@***.***: Regex commands _command: DAT
2023-05-02 ***@***.***: Matched: DAT230502102240 to: DAT value: 2305 02102240
2023-05-02 ***@***.***: length of to_send: 23
2023-05-02 ***@***.***: multiple chunk send
2023-05-02 ***@***.***: send: b'^S018DAT', to_send: b'230502102240\xc66\r'
2023-05-02 ***@***.***: multiple chunk send
2023-05-02 ***@***.***: send: b'23050210', to_send: b'2240\xc66\r'
2023-05-02 ***@***.***: multiple chunk send
2023-05-02 ***@***.***: send: b'2240\xc66\r', to_send: b''
2023-05-02 ***@***.***: usb response was: b'^1\x0b\xc2\r'
2023-05-02 ***@***.***: Send and Receive Response b'^1\x0b\xc2\r'
2023-05-02 ***@***.***: response passed to decode: b'^1\x0b\xc2\r'
2023-05-02 ***@***.***: Processing command 'DAT230502102240'
2023-05-02 ***@***.***: Regex commands _command: EY
2023-05-02 ***@***.***: Regex commands _command: EM
2023-05-02 ***@***.***: Regex commands _command: ED
2023-05-02 ***@***.***: Regex commands _command: PRI
2023-05-02 ***@***.***: Regex commands _command: PGS
2023-05-02 ***@***.***: Regex commands _command: LON
2023-05-02 ***@***.***: Regex commands _command: MCHGC
2023-05-02 ***@***.***: Regex commands _command: MUCHGC
2023-05-02 ***@***.***: Regex commands _command: MCHGV
2023-05-02 ***@***.***: Regex commands _command: DAT
2023-05-02 ***@***.***: Matched: DAT230502102240 to: DAT value: 2305 02102240
2023-05-02 ***@***.***: Processing response of type DEFAULT
2023-05-02 ***@***.***: trimmed and split responses: ['ACK']
2023-05-02 ***@***.***: Processing DEFAULT type responses
2023-05-02 ***@***.***: Decoded response {'_command': 'DAT230502102240', '_command_ description': 'Set date time', 'raw_response': ['^1\x0bÂ\r', ''], 'DAT': ['ACK', '']}
2023-05-02 ***@***.***: results: {'_command': 'DAT230502102240', '_command_description' : 'Set date time', 'raw_response': ['^1\x0bÂ\r', ''], 'DAT': ['ACK', '']}
2023-05-02 ***@***.***: attempting to create output processor: screen
2023-05-02 ***@***.***: processor.screen __init__ kwargs {}
2023-05-02 ***@***.***: Using output filter: None
2023-05-02 ***@***.***: Using output processor: screen
2023-05-02 ***@***.***: kwargs {'data': {'_command': 'DAT230502102240', '_command_descri ption': 'Set date time', 'raw_response': ['^1\x0bÂ\r', ''], 'DAT': ['ACK', '']}, 'tag': 'DAT230502102240', 'name ': 'unnamed', 'mqtt_broker': <mppsolar.libs.mqttbrokerc.MqttBroker object at 0xb602cb50>, 'udp_port': '5555', 'p ostgres_url': None, 'mongo_url': None, 'mongo_db': 'mppsolar', 'mqtt_topic': None, 'filter': None, 'excl_filter' : None, 'keep_case': False}
2023-05-02 ***@***.***: displayData: {'dat': ['ACK', '']}
Command: DAT230502102240 - Set date time
--------------------------------------------------------------------------------
Parameter Value Unit
dat ACK
2023-05-02 ***@***.***: Not daemon, so not looping
***@***.***:~ $ mpp-solar -p /dev/hidraw0 -P PI18SV -c T
Command: T - Query current time
--------------------------------------------------------------------------------
Parameter Value Unit
datetime 20230502103117 YYYYMMDDHHMMSS
—
Reply to this email directly, view it on GitHub
<#344 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNQHX2RM6ON7MICCWMLXEEYNBANCNFSM6AAAAAAXRC3DTA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So didn't send crc as I wanted, but still didn't change the time
…On Thu, 4 May 2023, 7:53 am smrruby, ***@***.***> wrote:
Opps, here it is with the correct revised protocol
***@***.***:~ $ mpp-solar -p /dev/hidraw0 -P PI18LVX -c DAT230503135140 -D
2023-05-03 ***@***.***: Solar Device Command Utility, version: 0.15.56
2023-05-03 ***@***.***: mqttbroker config: {'name': 'localhost', 'port': 1883, 'user': None, 'pass': None}
2023-05-03 ***@***.***: MqttBroker name: localhost, port: 1883, user: None
2023-05-03 ***@***.***: udp port 5555
2023-05-03 ***@***.***: Using Postgres None
2023-05-03 ***@***.***: Using Mongo None with mppsolar
2023-05-03 ***@***.***: Creating device "unnamed" (type: "mppsolar") on port "/dev/hidraw0 (porttype=None)" using protocol "PI18LVX"
2023-05-03 ***@***.***: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2023-05-03 ***@***.***: __init__ args ()
2023-05-03 ***@***.***: __init__ kwargs {'name': 'unnamed', 'port': '/dev/hidraw0', 'protocol': 'PI18LVX', 'baud': 2400, 'porttype': None, 'mqtt_broker': <mppsolar.libs.mqttbrokerc.MqttBroker object at 0xb6014b50>, 'udp_port': '5555', 'mo ngo_url': None, 'mongo_db': 'mppsolar'}
2023-05-03 ***@***.***: port matches hidraw
2023-05-03 ***@***.***: Using hidrawio for communications
2023-05-03 ***@***.***: Protocol PI18LVX
2023-05-03 ***@***.***: __init__ name unnamed, port <mppsolar.inout.hidrawio.HIDRawIO object at 0xb6014c58 >, protocol PI18 protocol handler for LVX inverters
2023-05-03 ***@***.***: Commands [(<mppsolar.devices.mppsolar.mppsolar object at 0xb6014b68>, 'DAT230503135 140', 'DAT230503135140', 'screen', None, None)]
2023-05-03 ***@***.***: Looping 1 commands
2023-05-03 ***@***.***: Getting results from device: mppsolar device - name: unnamed, port: <mppsolar.inout. hidrawio.HIDRawIO object at 0xb6014c58>, protocol: PI18 protocol handler for LVX inverters for command: DAT230503135140, tag: DAT230 503135140, outputs: screen
2023-05-03 ***@***.***: Running command DAT230503135140
2023-05-03 ***@***.***: Using protocol b'PI18LVX' with 46 commands
2023-05-03 ***@***.***: Processing command 'DAT230503135140'
2023-05-03 ***@***.***: Regex commands _command: EY
2023-05-03 ***@***.***: Regex commands _command: EM
2023-05-03 ***@***.***: Regex commands _command: ED
2023-05-03 ***@***.***: Regex commands _command: PRI
2023-05-03 ***@***.***: Regex commands _command: PGS
2023-05-03 ***@***.***: Regex commands _command: LON
2023-05-03 ***@***.***: Regex commands _command: MCHGC
2023-05-03 ***@***.***: Regex commands _command: MUCHGC
2023-05-03 ***@***.***: Regex commands _command: MCHGV
2023-05-03 ***@***.***: Regex commands _command: DAT
2023-05-03 ***@***.***: Matched: DAT230503135140 to: DAT value: 230503135140
2023-05-03 ***@***.***: _cmd is: b'DAT230503135140'
2023-05-03 ***@***.***: _type is: SETTER
2023-05-03 ***@***.***: _prefix: ^S018
2023-05-03 ***@***.***: auto_prefix: ^S018
2023-05-03 ***@***.***: _pre_cmd: b'^S018DAT230503135140'
2023-05-03 ***@***.***: CRC: False
2023-05-03 ***@***.***: full command: b'^S018DAT230503135140\r'
2023-05-03 ***@***.***: full command b'^S018DAT230503135140\r' for command DAT230503135140
2023-05-03 ***@***.***: Processing command 'DAT230503135140'
2023-05-03 ***@***.***: Regex commands _command: EY
2023-05-03 ***@***.***: Regex commands _command: EM
2023-05-03 ***@***.***: Regex commands _command: ED
2023-05-03 ***@***.***: Regex commands _command: PRI
2023-05-03 ***@***.***: Regex commands _command: PGS
2023-05-03 ***@***.***: Regex commands _command: LON
2023-05-03 ***@***.***: Regex commands _command: MCHGC
2023-05-03 ***@***.***: Regex commands _command: MUCHGC
2023-05-03 ***@***.***: Regex commands _command: MCHGV
2023-05-03 ***@***.***: Regex commands _command: DAT
2023-05-03 ***@***.***: Matched: DAT230503135140 to: DAT value: 230503135140
2023-05-03 ***@***.***: length of to_send: 21
2023-05-03 ***@***.***: multiple chunk send
2023-05-03 ***@***.***: send: b'^S018DAT', to_send: b'230503135140\r'
2023-05-03 ***@***.***: multiple chunk send
2023-05-03 ***@***.***: send: b'23050313', to_send: b'5140\r'
2023-05-03 ***@***.***: multiple chunk send
2023-05-03 ***@***.***: send: b'5140\r', to_send: b''
2023-05-03 ***@***.***: usb response was: b'^1\x0b\xc2\r'
2023-05-03 ***@***.***: Send and Receive Response b'^1\x0b\xc2\r'
2023-05-03 ***@***.***: response passed to decode: b'^1\x0b\xc2\r'
2023-05-03 ***@***.***: Processing command 'DAT230503135140'
2023-05-03 ***@***.***: Regex commands _command: EY
2023-05-03 ***@***.***: Regex commands _command: EM
2023-05-03 ***@***.***: Regex commands _command: ED
2023-05-03 ***@***.***: Regex commands _command: PRI
2023-05-03 ***@***.***: Regex commands _command: PGS
2023-05-03 ***@***.***: Regex commands _command: LON
2023-05-03 ***@***.***: Regex commands _command: MCHGC
2023-05-03 ***@***.***: Regex commands _command: MUCHGC
2023-05-03 ***@***.***: Regex commands _command: MCHGV
2023-05-03 ***@***.***: Regex commands _command: DAT
2023-05-03 ***@***.***: Matched: DAT230503135140 to: DAT value: 230503135140
2023-05-03 ***@***.***: Processing response of type DEFAULT
2023-05-03 ***@***.***: trimmed and split responses: ['ACK']
2023-05-03 ***@***.***: Processing DEFAULT type responses
2023-05-03 ***@***.***: Decoded response {'_command': 'DAT230503135140', '_command_description': 'Set d ate time', 'raw_response': ['^1\x0bÂ\r', ''], 'DAT': ['ACK', '']}
2023-05-03 ***@***.***: results: {'_command': 'DAT230503135140', '_command_description': 'Set date time', ' raw_response': ['^1\x0bÂ\r', ''], 'DAT': ['ACK', '']}
2023-05-03 ***@***.***: attempting to create output processor: screen
2023-05-03 ***@***.***: processor.screen __init__ kwargs {}
2023-05-03 ***@***.***: Using output filter: None
2023-05-03 ***@***.***: Using output processor: screen
2023-05-03 ***@***.***: kwargs {'data': {'_command': 'DAT230503135140', '_command_description': 'Set date ti me', 'raw_response': ['^1\x0bÂ\r', ''], 'DAT': ['ACK', '']}, 'tag': 'DAT230503135140', 'name': 'unnamed', 'mqtt_broker': <mppsolar.l ibs.mqttbrokerc.MqttBroker object at 0xb6014b50>, 'udp_port': '5555', 'postgres_url': None, 'mongo_url': None, 'mongo_db': 'mppsolar ', 'mqtt_topic': None, 'filter': None, 'excl_filter': None, 'keep_case': False}
2023-05-03 ***@***.***: displayData: {'dat': ['ACK', '']}
Command: DAT230503135140 - Set date time
--------------------------------------------------------------------------------
Parameter Value Unit
dat ACK
2023-05-03 ***@***.***: Not daemon, so not looping
***@***.***:~ $ mpp-solar -p /dev/hidraw0 -P PI18LVX -c T
Command: T - Query current time
--------------------------------------------------------------------------------
Parameter Value Unit
datetime 20230503135943 YYYYMMDDHHMMSS
—
Reply to this email directly, view it on GitHub
<#344 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNU2GL2ZMFLD3P7ZCOLXEKZVPANCNFSM6AAAAAAXRC3DTA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
has anyone gotten any set or write related commands to work on this unit. This jblance/mpp-solar code has been working well for reads but the only Set command that responds with "ACK" is setting the time and even that doesn't appear to actually change the time. A few tries:
Query the time and attempt to change it
get back ACK but the time didn't change (trying to change minutes to "27" but it says at 34 or 35 and counting.
a few others:
Beta Was this translation helpful? Give feedback.
All reactions