lluiscab / MPQTT

MPQTT is a linux program used to extract data from Voltronic / Axpert / MasterPower inverters and sending it to MQTT for use in Home Assistant
10 stars 4 forks source link

ERROR mpqtt > InvalidDeviceMode #1

Open Andries21 opened 3 years ago

Andries21 commented 3 years ago

Hi,

Thanks for MPQTT, it's small and works on Pi Zero. I have one problem, the service randomly stops with error InvalidDeviceMode. I played around with systemd start/restart but that only helped a little. It use to stop after 40 minutes now I got it to work for a few hours at a time. I saw today that it stops when the inverter changed from mains charging to solar. I know way to little of linux to fix it. Hope you can help.

lluiscab commented 3 years ago

Hi,

Could you enable debug mode on the settings file and then send the output when the error occurs? My guess is that there's an error somewhere reading the inverter mode and the debug information would be very helphul :)

Andries21 commented 3 years ago

Hi,

Debug is set to true in config file but I have no idea where to find the required debug info. If you could point me in the right direction please?

Sent from Mail for Windows 10

From: lluiscab Sent: Thursday, 08 April 2021 09:03 To: lluiscab/MPQTT Cc: Andries21; Author Subject: Re: [lluiscab/MPQTT] ERROR mpqtt > InvalidDeviceMode (#1)

Hi, Could you enable debug mode on the settings file and then send the output when the error occurs? My guess is that there's an error somewhere reading the inverter mode and the debug information would be very helphul :) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

lluiscab commented 3 years ago

Hi,

If you are running this program as a service (from the deb download for example), you should be able to see the logs using the following command:

$ journalctl -u mpqtt.service
Andries21 commented 3 years ago

Hi,

I attached the export. Had to delete a lot of the content to be able to email. If you need more let me know….

Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 228, 181].
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.4, grid_frequency: 49.7, ac_out_voltage: 229.4, ac_out_frequency: 49.7, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 410, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:36 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1389ms
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:37 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 56, 46, 52, 32, 52, 57, 46, 56, 32, 50, 50, 56, 46, 52, 32, 52, 57, 46, 56, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 200, 130]
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 56, 46, 52, 32, 52, 57, 46, 56, 32, 50, 50, 56, 46, 52, 32, 52, 57, 46, 56, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 200, 130].
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 228.4, grid_frequency: 49.8, ac_out_voltage: 228.4, ac_out_frequency: 49.8, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 410, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:38 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:39 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1392ms
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:40 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 57, 46, 53, 32, 52, 57, 46, 56, 32, 50, 50, 57, 46, 53, 32, 52, 57, 46, 56, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 149, 81]
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 53, 32, 52, 57, 46, 56, 32, 50, 50, 57, 46, 53, 32, 52, 57, 46, 56, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 149, 81].
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.5, grid_frequency: 49.8, ac_out_voltage: 229.5, ac_out_frequency: 49.8, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 410, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:41 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1396ms
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:42 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 57, 46, 50, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 50, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 48, 57, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 95, 125]
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 50, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 50, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 48, 57, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 95, 125].
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.2, grid_frequency: 49.7, ac_out_voltage: 229.2, ac_out_frequency: 49.7, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 409, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:43 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:44 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:44 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1394ms
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:45 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 48, 57, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 121, 194]
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 48, 57, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 121, 194].
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.4, grid_frequency: 49.7, ac_out_voltage: 229.4, ac_out_frequency: 49.7, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 409, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:46 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1396ms
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:47 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 228, 181]
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 228, 181].
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.4, grid_frequency: 49.7, ac_out_voltage: 229.4, ac_out_frequency: 49.7, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 410, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:48 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1383ms
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:49 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 228, 181]
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 52, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 228, 181].
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.4, grid_frequency: 49.7, ac_out_voltage: 229.4, ac_out_frequency: 49.7, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 410, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:50 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:51 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1395ms
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceModeInquiry.
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 76, 6, 7].
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceModeInquiry): QMODResponse { mode: LineMode }
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceRatingInformation.
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceRatingInformation): ().
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceRatingInformation): [81, 80, 73, 82, 73, 248, 84, 13]
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceRatingInformation): [0, 0, 0, 40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114]
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceRatingInformation.
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceRatingInformation): [40, 50, 51, 48, 46, 48, 32, 48, 54, 46, 53, 32, 50, 51, 48, 46, 48, 32, 53, 48, 46, 48, 32, 48, 54, 46, 53, 32, 49, 53, 48, 48, 32, 49, 50, 48, 48, 32, 49, 50, 46, 48, 32, 49, 49, 46, 53, 32, 49, 48, 46, 54, 32, 49, 52, 46, 54, 32, 49, 51, 46, 54, 32, 50, 32, 49, 48, 32, 48, 49, 48, 32, 49, 32, 48, 32, 49, 32, 49, 32, 48, 49, 32, 48, 32, 48, 32, 49, 50, 46, 53, 32, 48, 32, 49, 236, 114].
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceRatingInformation): QPIRIResponse { grid_rating_voltage: 230.0, grid_rating_current: 6.5, ac_output_rating_voltage: 230.0, ac_out_rating_frequency: 50.0, ac_out_rating_current: 6.5, ac_out_rating_apparent_power: 1500, ac_out_rating_active_power: 1200, battery_rating_voltage: 12.0, battery_recharge_voltage: 11.5, battery_under_voltage: 10.6, battery_bulk_voltage: 14.6, battery_float_voltage: 13.6, battery_type: User, max_ac_charging_current: 10, max_charging_current: 10, input_voltage_range: UPS, output_source_priority: GridFirst, charge_source_priority: SolarFirst, machine_type: OffGrid, topology: Transformerless, output_mode: SingleMachineOutput, battery_redischarge_voltage: 12.5 }
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command QueryDeviceGeneralStatus.
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (QueryDeviceGeneralStatus): ().
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (QueryDeviceGeneralStatus): [81, 80, 73, 71, 83, 183, 169, 13]
Apr 08 07:29:52 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (QueryDeviceGeneralStatus): [0, 0, 0, 0, 0, 0, 40, 50, 50, 57, 46, 48, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 48, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 223, 159]
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response QueryDeviceGeneralStatus.
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (QueryDeviceGeneralStatus): [40, 50, 50, 57, 46, 48, 32, 52, 57, 46, 55, 32, 50, 50, 57, 46, 48, 32, 52, 57, 46, 55, 32, 48, 48, 48, 48, 32, 48, 48, 48, 48, 32, 48, 48, 48, 32, 52, 49, 48, 32, 49, 51, 46, 54, 57, 32, 48, 48, 50, 32, 49, 48, 48, 32, 48, 48, 52, 50, 32, 48, 48, 48, 50, 32, 48, 52, 48, 46, 54, 32, 49, 51, 46, 55, 48, 32, 48, 48, 48, 48, 48, 32, 48, 48, 48, 49, 48, 49, 49, 48, 32, 48, 48, 32, 48, 48, 32, 48, 48, 48, 52, 48, 32, 49, 49, 48, 223, 159].
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (QueryDeviceGeneralStatus): QPIGSResponse { grid_voltage: 229.0, grid_frequency: 49.7, ac_out_voltage: 229.0, ac_out_frequency: 49.7, ac_out_apparent_power: 0, ac_out_active_power: 0, out_load_percent: 0, bus_voltage: 410, battery_voltage: 13.69, battery_charge_current: 2, battery_capacity: 100, inverter_heat_sink_temp: 42, pv_input_current: 2, pv_input_voltage: 40.6, battery_scc_voltage: 13.7, battery_discharge_current: 0, device_status: DeviceStatus { charge_status: ChargingFromSCC, active_load: true } }
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceWarningStatus.
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceWarningStatus): ().
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceWarningStatus): [81, 80, 73, 87, 83, 180, 218, 13]
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceWarningStatus): [0, 0, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228]
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Decoding response DeviceWarningStatus.
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoding response (DeviceWarningStatus): [40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 235, 228].
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Decoded response (DeviceWarningStatus): QPIWSResponse { inverter_fault: false, bus_over: false, bus_under: false, bus_soft_fail: false, line_fail: false, opv_short: false, inverter_voltage_too_low: false, inverter_voltage_too_high: false, over_temperature: false, fan_locked: false, battery_voltage_high: false, battery_low_alarm: false, battery_under_shutdown: false, over_load: false, eeprom_fault: false, inverter_over_current: false, inverter_soft_fail: false, self_test_fail: false, op_dc_voltage_over: false, bat_open: false, current_sensor_fail: false, battery_short: false, power_limit: false, pv_voltage_high: false, mppt_overload_fault: false, mppt_overload_warning: false, battery_too_low_to_charge: false }
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Update finished without errors
Apr 08 07:29:53 raspberrypi mpqtt[1581]:  INFO  mpqtt                     > Update took 1392ms
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  DEBUG mpqtt                     > Starting update
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  DEBUG masterpower_api::codec    > Encoding command DeviceModeInquiry.
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Command payload (DeviceModeInquiry): ().
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  TRACE masterpower_api::inverter > Writing command to stream
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 40, 76, 6, 7]
Apr 08 07:29:54 raspberrypi mpqtt[1581]:  TRACE masterpower_api::codec    > Attempting to recover from invalid response
Andries21 commented 3 years ago

Apr 08 09:25:15 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:15 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:15 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:15 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:15 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:15 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:15 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:16 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:16 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:16 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:16 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:16 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:16 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:16 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:16 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:16 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:16 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:17 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:17 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:17 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:17 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:17 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:17 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:17 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:17 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:17 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:17 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:18 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:18 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:18 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:18 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:18 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:18 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:18 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:18 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:18 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:18 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:19 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:19 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:19 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:19 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:19 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:19 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:19 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:19 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:19 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:19 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:20 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:20 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:20 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:20 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:20 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:20 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:20 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:20 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:20 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:20 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:21 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:21 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:21 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:21 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:21 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:21 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:21 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:21 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:21 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:21 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:22 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:22 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:22 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:22 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:22 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:22 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:22 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:22 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:22 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:22 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:23 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:23 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:23 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:23 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:23 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:24 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:24 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:24 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:24 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:24 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:25 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:25 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:25 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:25 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:25 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:25 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:25 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:25 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:25 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:25 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:26 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:26 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:26 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:26 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:26 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:26 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:26 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:26 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:26 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:26 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:27 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:27 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:27 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:27 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:27 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:27 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:27 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:27 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:27 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:27 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:28 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:28 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:28 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:28 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:28 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:28 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:28 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:28 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:28 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:28 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:29 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:29 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:29 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:29 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:29 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:29 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:29 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:29 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:29 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:29 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:30 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:30 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:30 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:30 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:30 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:30 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:30 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:30 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:30 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:30 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:31 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:31 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:31 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:31 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:31 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:31 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:31 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:31 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:31 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:31 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:32 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:32 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:32 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:32 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:32 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:32 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:32 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:32 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:32 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:32 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:33 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:33 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:33 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:33 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:33 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:33 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:33 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:33 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:33 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:33 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:34 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:34 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:34 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:34 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:34 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:35 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:35 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:35 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:35 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:35 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:36 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:36 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:36 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:36 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:36 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:36 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:36 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:36 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:36 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:36 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:37 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:37 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:37 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:37 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:37 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

Apr 08 09:25:37 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Invalid response format (DeviceModeInquiry): [0, 0, 0, 0, 0, 0, 40, 78, 65, 75, 115, 115]

Apr 08 09:25:37 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Attempting to recover from invalid response

Apr 08 09:25:37 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Decoding response DeviceModeInquiry.

Apr 08 09:25:37 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].

Apr 08 09:25:37 raspberrypi mpqtt[1656]: ERROR mpqtt > InvalidDeviceMode

Apr 08 09:25:38 raspberrypi mpqtt[1656]: DEBUG mpqtt > Starting update

Apr 08 09:25:38 raspberrypi mpqtt[1656]: DEBUG masterpower_api::codec > Encoding command DeviceModeInquiry.

Apr 08 09:25:38 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Command payload (DeviceModeInquiry): ().

Apr 08 09:25:38 raspberrypi mpqtt[1656]: TRACE masterpower_api::codec > Encoded command (DeviceModeInquiry): [81, 77, 79, 68, 73, 193, 13]

Apr 08 09:25:38 raspberrypi mpqtt[1656]: TRACE masterpower_api::inverter > Writing command to stream

From: lluiscab @.> Sent: Thursday, 08 April 2021 09:02 To: lluiscab/MPQTT @.> Cc: Andries21 @.>; Author @.> Subject: Re: [lluiscab/MPQTT] ERROR mpqtt > InvalidDeviceMode (#1)

Hi,

Could you enable debug mode on the settings file and then send the output when the error occurs? My guess is that there's an error somewhere reading the inverter mode and the debug information would be very helphul :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lluiscab/MPQTT/issues/1#issuecomment-815505401 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOT2FRLQXR4F72U7JMCRRTTHVIGHANCNFSM42SFZQ6A . https://github.com/notifications/beacon/ASOT2FRREY3HTEN2GG4FLNLTHVIGHA5CNFSM42SFZQ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGCNZ76I.gif

lluiscab commented 3 years ago
TRACE masterpower_api::codec    > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115].
ERROR mpqtt                     > InvalidDeviceMode

Okay, so it seems to get stuck on a loop trying to query the device mode. The response if gets is (NAKss which basically means invalid command, I don't remember right now but I don't believe there's any recovery logic implemented in case this happens.

Does this error go away if you manually restart the service? Everytime I have seen it happen it always seems to be fixed by restarting the communication. If so, I could look into adding some delay and retry logic to try and prevent the infinite loop

Andries21 commented 3 years ago

Hi,

If I manually restart the service it starts to work again. But it seems to work for a few minutes than stops. The only time I get it to work for a few hours seems to be at night when it is mains charging.

From: lluiscab @.> Sent: Thursday, 08 April 2021 15:38 To: lluiscab/MPQTT @.> Cc: Andries21 @.>; Author @.> Subject: Re: [lluiscab/MPQTT] ERROR mpqtt > InvalidDeviceMode (#1)

TRACE masterpower_api::codec > Decoding response (DeviceModeInquiry): [40, 78, 65, 75, 115, 115]. ERROR mpqtt > InvalidDeviceMode

Okay, so it seems to get stuck on a loop trying to query the device mode. The response if gets is (NAKss which basically means invalid command, I don't remember right now but I don't believe there's any recovery logic implemented in case this happens.

Does this error go away if you manually restart the service? Everytime I have seen it happen it always seems to be fixed by restarting the communication. If so, I could look into adding some delay and retry logic to try and prevent the infinite loop

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lluiscab/MPQTT/issues/1#issuecomment-815831434 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOT2FQLBZLGYTZYLV27ISDTHWWTBANCNFSM42SFZQ6A . https://github.com/notifications/beacon/ASOT2FWOWXC2XQJWBPYLIH3THWWTBA5CNFSM42SFZQ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGCQJTCQ.gif