Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get all Info's out from mpp 8048max #130

Closed
AnKloss opened this issue Jul 14, 2021 · 209 comments
Closed

Can not get all Info's out from mpp 8048max #130

AnKloss opened this issue Jul 14, 2021 · 209 comments

Comments

@AnKloss
Copy link

AnKloss commented Jul 14, 2021

Hello,
After change output to mpp-solar, i get 36 command out from mpp controller, but missing all info's about

  • PV1 and 2 charging Power (watt),
  • PV1 and 2 input current,
  • Total generation Wh,
  • Today generation Wh,

mpp-solsr is version 0.7.67 , as can see in cron.out file

How can i get this info out ?

cron.out file >>>>
2021-07-14 02:29:01,239:INFO:init:main@235: Solar Device Command Utility, version: 0.7.67, move jk04 to new processing, ad>2021-07-14 02:29:01,240:INFO:init:main@338: Creating device "unnamed" (type: "mppsolar") on port "/dev/ttyUSB0 (porttype=N>2021-07-14 02:29:01,244:INFO:device:set_port@160: Using serialio for communications
2021-07-14 02:29:01,274:INFO:init:main@394: Looping 1 commands
2021-07-14 02:29:01,275:INFO:init:main@404: Getting results from device: mppsolar device - name: unnamed, port: <mppsolar.>2021-07-14 02:29:01,275:INFO:device:run_command@270: Running command QPIGS
2021-07-14 02:29:01,275:INFO:abstractprotocol:get_full_command@30: Using protocol b'PI30' with 36 commands
2021-07-14 02:29:01,275:INFO:device:run_command@296: full command b'QPIGS\xb7\xa9\r' for command QPIGS
2021-07-14 02:29:02,841:INFO:abstractprotocol:decode@174: response passed to decode: b'(242.7 50.0 230.1 50.0 0828 0753 010 41>2021-07-14 02:29:02,844:INFO:abstractprotocol:decode@214: Processing response of type DEFAULT
2021-07-14 02:29:02,845:INFO:abstractprotocol:decode@225: Processing DEFAULT type responses
2021-07-14 02:29:02,846:INFO:device:run_command@334: Decoded response {'raw_response': ['(242.7 50.0 230.1 50.0 0828 0753 010 >2021-07-14 02:29:02,847:INFO:init:get_outputs@26: attempting to create output processor: screen
2021-07-14 02:29:02,850:INFO:screen:output@19: Using output processor: screen
Command: QPIGS - General Status Parameters inquiry

outout from mosquitto >>>
mpp-solar mpp-solar,command=QPGS1 parallel_instance_number="Not valid"
mpp-solar mpp-solar,command=QPGS1 serial_number="xxxxxxxxxxxxxx" (sorry i not show this)
mpp-solar mpp-solar,command=QPGS1 work_mode="Battery Mode"
mpp-solar mpp-solar,command=QPGS1 fault_code="No fault"
mpp-solar mpp-solar,command=QPGS1 grid_voltage=242.4
mpp-solar mpp-solar,command=QPGS1 grid_frequency=50.05
mpp-solar mpp-solar,command=QPGS1 ac_output_voltage=230.2
mpp-solar mpp-solar,command=QPGS1 ac_output_frequency=50.0
mpp-solar mpp-solar,command=QPGS1 ac_output_apparent_power=414
mpp-solar mpp-solar,command=QPGS1 ac_output_active_power=387
mpp-solar mpp-solar,command=QPGS1 load_percentage=5
mpp-solar mpp-solar,command=QPGS1 battery_voltage=53.0
mpp-solar mpp-solar,command=QPGS1 battery_charging_current=18
mpp-solar mpp-solar,command=QPGS1 battery_capacity=68
mpp-solar mpp-solar,command=QPGS1 pv_input_voltage=171.3 (<< is PV1 volt)
mpp-solar mpp-solar,command=QPGS1 total_charging_current=18
mpp-solar mpp-solar,command=QPGS1 total_ac_output_apparent_power=414
mpp-solar mpp-solar,command=QPGS1 total_output_active_power=387
mpp-solar mpp-solar,command=QPGS1 total_ac_output_percentage=4
mpp-solar mpp-solar,command=QPGS1 is_scc_ok=1
mpp-solar mpp-solar,command=QPGS1 is_ac_charging=0
mpp-solar mpp-solar,command=QPGS1 is_scc_charging=1
mpp-solar mpp-solar,command=QPGS1 is_battery_over_voltage=0
mpp-solar mpp-solar,command=QPGS1 is_battery_under_voltage=0
mpp-solar mpp-solar,command=QPGS1 is_line_lost=0
mpp-solar mpp-solar,command=QPGS1 is_load_on=1
mpp-solar mpp-solar,command=QPGS1 is_configuration_changed=0
mpp-solar mpp-solar,command=QPGS1 output_mode="single machine"
mpp-solar mpp-solar,command=QPGS1 charger_source_priority="Solar + Utility"
mpp-solar mpp-solar,command=QPGS1 max_charger_current=80
mpp-solar mpp-solar,command=QPGS1 max_charger_range=120
mpp-solar mpp-solar,command=QPGS1 max_ac_charger_current=10
mpp-solar mpp-solar,command=QPGS1 pv_input_current=4
mpp-solar mpp-solar,command=QPGS1 battery_discharge_current=0
mpp-solar mpp-solar,command=QPGS1 unknown_float=179.8 (<<- is PV2 volt)
mpp-solar mpp-solar,command=QPGS1 unknown_flags?="04"

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

1
screen looking now, i get happy
mfg
Andreas

@jblance
Copy link
Owner

jblance commented Jul 14, 2021

Sorry I dont understand - is there something still not working?

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

Hello
i still missing this values >>
PV1 and 2 charging Power (watt),
PV1 and 2 input current,
Total generation Wh,
Today generation Wh,
<<<

not show up at all.
How i can get this ?

mfg
Andreas

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

26718

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

26721

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

This info show up on the wifi app

@jblance
Copy link
Owner

jblance commented Jul 14, 2021 via email

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

okay will do,
can you send my a sample of this commands please , as i am not a programmer.

mfg
Andreas

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

i use this command
sudo mpp-solar -q localhost -c QPIGS -D > /home/ubuntu/cron1.out 2>&1

output >>>

2021-07-14 05:49:50,311:INFO:__init__:main@235: Solar Device Command Utility, version: 0.7.67, move jk04 to new processing, add lookup functionality
2021-07-14 05:49:50,312:INFO:__init__:main@338: Creating device "unnamed" (type: "mppsolar") on port "/dev/ttyUSB0 (porttype=None)" using protocol "PI30"
2021-07-14 05:49:50,319:DEBUG:__init__:main@342: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2021-07-14 05:49:50,319:DEBUG:device:__init__@31: __init__ args ()
2021-07-14 05:49:50,320:DEBUG:device:__init__@32: __init__ kwargs {'name': 'unnamed', 'port': '/dev/ttyUSB0', 'protocol': 'PI30', 'baud': 2400, 'porttype': None, 'mqtt_broker': 'localhost', '>2021-07-14 05:49:50,320:DEBUG:device:get_port_type@86: port matches ttyusb
[snip]
2021-07-14 05:49:51,965:DEBUG:abstractprotocol:get_command_defn@41: Processing command 'QPIGS'
2021-07-14 05:49:51,965:DEBUG:abstractprotocol:get_command_defn@43: Found command QPIGS in protocol b'PI30'
2021-07-14 05:49:51,965:INFO:abstractprotocol:decode@214: Processing response of type DEFAULT
2021-07-14 05:49:51,966:DEBUG:abstractprotocol:decode@218: trimmed and split responses: [b'238.1', b'50.0', b'230.1', b'50.0', b'0874', b'0787', b'010', b'416', b'53.00', b'002', b'068', b'00>
2021-07-14 05:49:51,966:INFO:abstractprotocol:decode@225: Processing DEFAULT type responses
2021-07-14 05:49:51,967:INFO:device:run_command@334: Decoded response {'raw_response': ['(238.1 50.0 230.1 50.0 0874 0787 010 416 53.00 002 068 0052 02.7 174.6 00.00 00000 00010110 00 00 0048>
2021-07-14 05:49:51,967:DEBUG:__init__:main@408: results: {'raw_response': ['(238.1 50.0 230.1 50.0 0874 0787 010 416 53.00 002 068 0052 02.7 174.6 00.00 00000 00010110 00 00 00482 010sú\r', >
2021-07-14 05:49:51,967:INFO:__init__:get_outputs@26: attempting to create output processor: screen
2021-07-14 05:49:51,971:DEBUG:screen:__init__@16: processor.screen __init__ kwargs {}
2021-07-14 05:49:51,972:DEBUG:__init__:main@414: Using output filter: None
2021-07-14 05:49:51,972:INFO:screen:output@19: Using output processor: screen
2021-07-14 05:49:51,973:DEBUG:screen:output@20: kwargs {'data': {'raw_response': ['(238.1 50.0 230.1 50.0 0874 0787 010 416 53.00 002 068 0052 02.7 174.6 00.00 00000 00010110 00 00 00482 010s>
2021-07-14 
Command: QPIGS - General Status Parameters inquiry
------------------------------------------------------------
Parameter                       Value           Unit
ac_input_voltage                238.1           V
ac_input_frequency              50.0            Hz
ac_output_voltage               230.1           V
ac_output_frequency             50.0            Hz
ac_output_apparent_power        874             VA
ac_output_active_power          787             W
ac_output_load                  10              %
bus_voltage                     416             V
battery_voltage                 53.0            V
battery_charging_current        2               A
battery_capacity                68              %
inverter_heat_sink_temperature  52              °C
pv_input_current_for_battery    2.7             A
pv_input_voltage                174.6           V
battery_voltage_from_scc        0.0             V
battery_discharge_current       0               A
is_sbu_priority_version_added   0               bool
is_configuration_changed        0               bool
is_scc_firmware_updated         0               bool
is_load_on                      1               bool
is_battery_voltage_to_steady_while_charging     0               bool
is_charging_on 1 bool
is_scc_charging_on 1 bool
is_ac_charging_on 0 bool
rsv1 0 A
rsv2 0 A
pv_input_power 482 W
is_charging_to_float 0 bool
is_switched_on 1 bool
is_reserved 0 bool

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

is_charging_on 1 bool
is_scc_charging_on 1 bool
is_ac_charging_on 0 bool
rsv1 0 A
rsv2 0 A
pv_input_power 482 W
is_charging_to_float 0 bool
is_switched_on 1 bool
is_reserved 0 bool

@AnKloss
Copy link
Author

AnKloss commented Jul 14, 2021

command
mpp-solar -q localhost -c QPGS0 -D > /home/ubuntu/cron2.out 2>&1

output >>>

2021-07-14 05:57:59,654:INFO:__init__:main@235: Solar Device Command Utility, version: 0.7.67, move jk04 to new processing, add lookup functionality
2021-07-14 05:57:59,654:INFO:__init__:main@338: Creating device "unnamed" (type: "mppsolar") on port "/dev/ttyUSB0 (porttype=None)" using protocol "PI30"
2021-07-14 05:57:59,662:DEBUG:__init__:main@342: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2021-07-14 05:57:59,662:DEBUG:device:__init__@31: __init__ args ()
2021-07-14 05:57:59,663:DEBUG:device:__init__@32: __init__ kwargs {'name': 'unnamed', 'port': '/dev/ttyUSB0', 'protocol': 'PI30', 'baud': 2400, 'porttype': None, 'mqtt_broker': 'localhost', 'mqtt_port': 1883, 'mqtt_>2021-07-14 05:57:59,663:DEBUG:device:get_port_type@86: port matches ttyusb
[snip]
05:58:01,433:INFO:abstractprotocol:decode@174: response passed to decode: b'(0 92932105105335 B 00 237.3 50.03 229.9 50.06 0459 0427 005 53.1 007 069 176.6 007 00459 00427 005 10100010 0 2 080 120 010 02 >
2021-07-14 05:58:01,433:DEBUG:protocol_helpers:crcPI@299: Calculating CRC for b'(0 92932105105335 B 00 237.3 50.03 229.9 50.06 0459 0427 005 53.1 007 069 176.6 007 00459 00427 005 10100010 0 2 080 120 010 02 000 195>
2021-07-14 05:58:01,434:DEBUG:protocol_helpers:crcPI@349: Generated CRC 0x87 0x7c 0x877c
2021-07-14 05:58:01,435:DEBUG:pi30:check_response_valid@860: CRCs match
2021-07-14 05:58:01,435:DEBUG:abstractprotocol:get_command_defn@41: Processing command 'QPGS0'
2021-07-14 05:58:01,439:INFO:abstractprotocol:decode@214: Processing response of type DEFAULT
2021-07-14 05:58:01,439:DEBUG:abstractprotocol:decode@218: trimmed and split responses: [b'0', b'92932105105335', b'B', b'00', b'237.3', b'50.03', b'229.9', b'50.06', b'0459', b'0427', b'005', b'53.1', b'007', b'069>2021-07-14 05:58:01,439:INFO:abstractprotocol:decode@225: Processing DEFAULT type responses
2021-07-14 05:58:01,440:INFO:device:run_command@334: Decoded response {'raw_response': ['(0 92932105105335 B 00 237.3 50.03 229.9 50.06 0459 0427 005 53.1 007 069 176.6 007 00459 00427 005 10100010 0 2 080 120 010 0>2021-07-14 05:58:01,441:DEBUG:__init__:main@408: results: {'raw_response': ['(0 92932105105335 B 00 237.3 50.03 229.9 50.06 0459 0427 005 53.1 007 069 176.6 007 00459 00427 005 10100010 0 2 080 120 010 02 000 195.7 >
2021-07-14 05:58:01,441:INFO:__init__:get_outputs@26: attempting to create output processor: screen
2021-07-14 05:58:01,444:DEBUG:screen:__init__@16: processor.screen __init__ kwargs {}
2021-07-14 05:58:01,444:DEBUG:__init__:main@414: Using output filter: None
2021-07-14 05:58:01,444:INFO:screen:output@19: Using output processor: screen
2021-07-14 05:58:01,445:DEBUG:screen:output@20: kwargs {'data': {'raw_response': ['(0 92932105105335 B 00 237.3 50.03 229.9 50.06 0459 0427 005 53.1 007 069 176.6 007 00459 00427 005 10100010 0 2 080 120 010 02 000 >

Command: QPGS0 - Parallel Information inquiry
------------------------------------------------------------
Parameter                       Value           Unit
parallel_instance_number        Not valid
serial_number                   92932105105335
work_mode                       Battery Mode
fault_code                      No fault
grid_voltage                    237.3           V
grid_frequency                  50.03           Hz
ac_output_voltage               229.9           V
ac_output_frequency             50.06           Hz
ac_output_apparent_power        459             VA
ac_output_active_power          427             W
load_percentage                 5               %
battery_voltage                 53.1            V
battery_charging_current        7               A
battery_capacity                69              %
pv_input_voltage                176.6           V
total_charging_current          7               A
total_ac_output_apparent_power  459             VA
total_output_active_power       427             W
total_ac_output_percentage      5               %
is_scc_ok                       1               bool
is_ac_charging                  0               bool
is_scc_charging                 1               bool
is_battery_over_voltage         0               bool
is_battery_under_voltage        0               bool
is_line_lost                    0               bool
is_load_on                      1               bool
is_configuration_changed        0               bool
output_mode                     single machine
charger_source_priority         Solar + Utility
max_charger_current             80              A

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

Hello good day,
is this the right output you looking for ?

mfg
Andreas

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

Hello,
Can you help my to fix this ?
mfg
Andreas

@jblance
Copy link
Owner

jblance commented Jul 15, 2021 via email

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

okay may thanks.
i will ask to mpp service , is there any change between 5048 and 8048
Do you need any spec. info from mpp ?
mfg
Andreas

@jblance
Copy link
Owner

jblance commented Jul 15, 2021 via email

@jblance
Copy link
Owner

jblance commented Jul 15, 2021

So QPGS0 gives 4 extra values as shown at the end, do these match anything?

Command: QPGS0 - Parallel Information inquiry
------------------------------------------------------------
Parameter                       Value           Unit	Raw response
parallel_instance_number        Not valid		0
serial_number                   92932105105335		92932105105335
work_mode                       Battery Mode		B
fault_code                      No fault		00
grid_voltage                    237.3           V	237.3 
grid_frequency                  50.03           Hz	50.03
ac_output_voltage               229.9           V	229.9
ac_output_frequency             50.06           Hz	50.06
ac_output_apparent_power        459             VA	0459  
ac_output_active_power          427             W	0427
load_percentage                 5               %	005 
battery_voltage                 53.1            V	53.1 
battery_charging_current        7               A	007  
battery_capacity                69              %	069
pv_input_voltage                176.6           V	176.6  
total_charging_current          7               A	007
total_ac_output_apparent_power  459             VA	00459
total_output_active_power       427             W	00427
total_ac_output_percentage      5               %	005
is_scc_ok                       1               bool	10100010
is_ac_charging                  0               bool
is_scc_charging                 1               bool
is_battery_over_voltage         0               bool
is_battery_under_voltage        0               bool
is_line_lost                    0               bool
is_load_on                      1               bool
is_configuration_changed        0               bool
output_mode                     single machine		0
charger_source_priority         Solar + Utility		2
max_charger_current             80              A	080 

extra results:

							120 
							010
							02
							000

Can you try:
mpp-solar -P PI41 -c QP2GS0 -D and post the output (make sure the service / cron isnt processing at the same time)

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

ubuntu@ubuntu:~$ mpp-solar -P PI41 -c QP2GS0 -D

2021-07-15 23:13:54,650:INFO:__init__:main@235: Solar Device Command Utility, version: 0.7.67, move jk04 to new processing, add lookup functionality
2021-07-15 23:13:54,650:INFO:__init__:main@338: Creating device "unnamed" (type: "mppsolar") on port "/dev/ttyUSB0 (porttype=None)" using protocol "PI41"
2021-07-15 23:13:54,660:DEBUG:__init__:main@342: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2021-07-15 23:13:54,661:DEBUG:device:__init__@31: __init__ args ()
2021-07-15 23:13:54,661:DEBUG:device:__init__@32: __init__ kwargs {'name': 'unnamed', 'port': '/dev/ttyUSB0', 'protocol': 'PI41', 'baud': 2400, 'porttype': None, 'mqtt_broker': 'localhost', 'mqtt_port': 1883, 'mqtt_user': None, 'mqtt_pass': None}
2021-07-15 23:13:54,662:DEBUG:device:get_port_type@86: port matches ttyusb
2021-07-15 23:13:54,662:INFO:device:set_port@160: Using serialio for communications
2021-07-15 23:13:54,683:DEBUG:device:set_protocol@96: Protocol PI41
2021-07-15 23:13:54,712:DEBUG:device:__init__@36: __init__ name unnamed, port <mppsolar.io.serialio.SerialIO object at 0xb68eff88>, protocol <mppsolar.protocols.pi41.pi41 object at 0xb68eff70>
2021-07-15 23:13:54,712:DEBUG:__init__:main@389: Commands [(<mppsolar.devices.mppsolar.mppsolar object at 0xb68effe8>, 'QP2GS0', 'QP2GS0', 'screen', None, None)]
2021-07-15 23:13:54,713:INFO:__init__:main@394: Looping 1 commands
2021-07-15 23:13:54,713:INFO:__init__:main@404: Getting results from device: mppsolar device - name: unnamed, port: <mppsolar.io.serialio.SerialIO object at 0xb68eff88>, protocol: <mppsolar.protocols.pi41.pi41 object at 0xb68eff70> for command: QP2GS0, tag: QP2GS0, outputs: screen
2021-07-15 23:13:54,713:INFO:device:run_command@270: Running command QP2GS0
2021-07-15 23:13:54,713:INFO:abstractprotocol:get_full_command@30: Using protocol b'PI41' with 38 commands
2021-07-15 23:13:54,714:DEBUG:protocol_helpers:crcPI@299: Calculating CRC for b'QP2GS0'
2021-07-15 23:13:54,714:DEBUG:protocol_helpers:crcPI@349: Generated CRC 0x14 0x05 0x1405
2021-07-15 23:13:54,714:DEBUG:abstractprotocol:get_full_command@37: full command: b'QP2GS0\x14\x05\r'
2021-07-15 23:13:54,714:INFO:device:run_command@296: full command b'QP2GS0\x14\x05\r' for command QP2GS0
2021-07-15 23:13:54,715:DEBUG:abstractprotocol:get_command_defn@41: Processing command 'QP2GS0'
2021-07-15 23:13:54,715:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: F
2021-07-15 23:13:54,716:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: MCHGC
2021-07-15 23:13:54,718:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: MNCHGC
2021-07-15 23:13:54,719:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: MUCHGC
2021-07-15 23:13:54,720:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PBCV
2021-07-15 23:13:54,722:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PBDV
2021-07-15 23:13:54,723:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PBFT
2021-07-15 23:13:54,725:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PBT
2021-07-15 23:13:54,726:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PCP
2021-07-15 23:13:54,727:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PCVV
2021-07-15 23:13:54,729:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PE
2021-07-15 23:13:54,730:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PD
2021-07-15 23:13:54,731:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PGR
2021-07-15 23:13:54,732:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: POP
2021-07-15 23:13:54,733:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: POPM
2021-07-15 23:13:54,735:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PPCP
2021-07-15 23:13:54,736:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PPVOKC
2021-07-15 23:13:54,737:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PSDV
2021-07-15 23:13:54,738:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: PSPB
2021-07-15 23:13:54,739:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: QPGS
2021-07-15 23:13:54,741:DEBUG:abstractprotocol:get_command_defn@47: Regex commands _command: QP2GS
2021-07-15 23:13:54,742:DEBUG:abstractprotocol:get_command_defn@51: Matched: QP2GS0 to: QP2GS value: 0
2021-07-15 23:13:54,742:DEBUG:serialio:send_and_receive@19: port /dev/ttyUSB0, baudrate 2400
2021-07-15 23:13:55,397:DEBUG:serialio:send_and_receive@22: Executing command via serialio...
2021-07-15 23:13:55,499:DEBUG:serialio:send_and_receive@30: serial response was: b'(NAKss\r'
2021-07-15 23:13:55,500:DEBUG:device:run_command@315: Send and Receive Response b'(NAKss\r'
2021-07-15 23:13:55,500:INFO:abstractprotocol:decode@174: response passed to decode: b'(NAKss\r'
2021-07-15 23:13:55,500:INFO:abstractprotocol:decode@178: NAK
2021-07-15 23:13:55,500:INFO:device:run_command@334: Decoded response {'ERROR': ['NAK', '']}
2021-07-15 23:13:55,501:DEBUG:__init__:main@408: results: {'ERROR': ['NAK', '']}
2021-07-15 23:13:55,501:INFO:__init__:get_outputs@26: attempting to create output processor: screen
2021-07-15 23:13:55,507:DEBUG:screen:__init__@16: processor.screen __init__ kwargs {}
2021-07-15 23:13:55,508:DEBUG:__init__:main@414: Using output filter: None
2021-07-15 23:13:55,508:INFO:screen:output@19: Using output processor: screen
2021-07-15 23:13:55,509:DEBUG:screen:output@20: kwargs {'data': {'ERROR': ['NAK', '']}, 'tag': 'QP2GS0', 'mqtt_broker': 'localhost', 'mqtt_port': 1883, 'mqtt_user': None, 'mqtt_pass': None, 'mqtt_topic': 'mpp-solar', 'filter': None, 'excl_filter': None, 'keep_case': False}
Parameter                       Value           Unit
2021-07-15 23:13:55,509:DEBUG:helpers:key_wanted@21: key_wanted: No filter and key error not excluded by excl_filter None so key wanted
error                           NAK
2021-07-15 23:13:55,509:DEBUG:__init__:main@434: Not daemon, so not looping
ubuntu@ubuntu:~$

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

cron is off

@jblance
Copy link
Owner

jblance commented Jul 15, 2021

ok, so that command isnt supported
how about
mpp-solar -P PI41 -c QPIGS2 -D

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

ubuntu@ubuntu:~$ mpp-solar -P PI41 -c QPIGS2 -D

2021-07-15 23:49:19,813:INFO:__init__:main@235: Solar Device Command Utility, version: 0.7.67, move jk04 to new processing, add lookup functionality
2021-07-15 23:49:19,813:INFO:__init__:main@338: Creating device "unnamed" (type: "mppsolar") on port "/dev/ttyUSB0 (porttype=None)" using protocol "PI41"
2021-07-15 23:49:19,817:DEBUG:__init__:main@342: device_class <class 'mppsolar.devices.mppsolar.mppsolar'>
2021-07-15 23:49:19,818:DEBUG:device:__init__@31: __init__ args ()
2021-07-15 23:49:19,818:DEBUG:device:__init__@32: __init__ kwargs {'name': 'unnamed', 'port': '/dev/ttyUSB0', 'protocol': 'PI41', 'baud': 2400, 'porttype': None, 'mqtt_broker': 'localhost', 'mqtt_port': 1883, 'mqtt_user': None, 'mqtt_pass': None}
2021-07-15 23:49:19,818:DEBUG:device:get_port_type@86: port matches ttyusb
2021-07-15 23:49:19,818:INFO:device:set_port@160: Using serialio for communications
2021-07-15 23:49:19,830:DEBUG:device:set_protocol@96: Protocol PI41
2021-07-15 23:49:19,851:DEBUG:device:__init__@36: __init__ name unnamed, port <mppsolar.io.serialio.SerialIO object at 0xb6865f88>, protocol <mppsolar.protocols.pi41.pi41 object at 0xb6865f70>
2021-07-15 23:49:19,851:DEBUG:__init__:main@389: Commands [(<mppsolar.devices.mppsolar.mppsolar object at 0xb6865fe8>, 'QPIGS2', 'QPIGS2', 'screen', None, None)]
2021-07-15 23:49:19,852:INFO:__init__:main@394: Looping 1 commands
2021-07-15 23:49:19,852:INFO:__init__:main@404: Getting results from device: mppsolar device - name: unnamed, port: <mppsolar.io.serialio.SerialIO object at 0xb6865f88>, protocol: <mppsolar.protocols.pi41.pi41 object at 0xb6865f70> for command: QPIGS2, tag: QPIGS2, outputs: screen
2021-07-15 23:49:19,852:INFO:device:run_command@270: Running command QPIGS2
2021-07-15 23:49:19,852:INFO:abstractprotocol:get_full_command@30: Using protocol b'PI41' with 38 commands
2021-07-15 23:49:19,853:DEBUG:protocol_helpers:crcPI@299: Calculating CRC for b'QPIGS2'
2021-07-15 23:49:19,853:DEBUG:protocol_helpers:crcPI@349: Generated CRC 0x68 0x2d 0x682d
2021-07-15 23:49:19,853:DEBUG:abstractprotocol:get_full_command@37: full command: b'QPIGS2h-\r'
2021-07-15 23:49:19,853:INFO:device:run_command@296: full command b'QPIGS2h-\r' for command QPIGS2
2021-07-15 23:49:19,853:DEBUG:abstractprotocol:get_command_defn@41: Processing command 'QPIGS2'
2021-07-15 23:49:19,853:DEBUG:abstractprotocol:get_command_defn@43: Found command QPIGS2 in protocol b'PI41'
2021-07-15 23:49:19,854:DEBUG:serialio:send_and_receive@19: port /dev/ttyUSB0, baudrate 2400
2021-07-15 23:49:19,858:DEBUG:serialio:send_and_receive@22: Executing command via serialio...
2021-07-15 23:49:19,986:DEBUG:serialio:send_and_receive@30: serial response was: b'(01.0 100.5 00105 /=\r'
2021-07-15 23:49:21,081:DEBUG:device:run_command@315: Send and Receive Response b'(01.0 100.5 00105 /=\r'
2021-07-15 23:49:21,081:INFO:abstractprotocol:decode@174: response passed to decode: b'(01.0 100.5 00105 /=\r'
2021-07-15 23:49:21,082:DEBUG:protocol_helpers:crcPI@299: Calculating CRC for b'(01.0 100.5 00105 '
2021-07-15 23:49:21,083:DEBUG:protocol_helpers:crcPI@349: Generated CRC 0x2f 0x3d 0x2f3d
2021-07-15 23:49:21,083:DEBUG:pi30:check_response_valid@860: CRCs match
2021-07-15 23:49:21,083:DEBUG:abstractprotocol:get_command_defn@41: Processing command 'QPIGS2'
2021-07-15 23:49:21,084:DEBUG:abstractprotocol:get_command_defn@43: Found command QPIGS2 in protocol b'PI41'
2021-07-15 23:49:21,084:INFO:abstractprotocol:decode@214: Processing response of type DEFAULT
2021-07-15 23:49:21,085:DEBUG:abstractprotocol:decode@218: trimmed and split responses: [b'01.0', b'100.5', b'00105', b'']
2021-07-15 23:49:21,085:INFO:abstractprotocol:decode@225: Processing DEFAULT type responses
2021-07-15 23:49:21,085:DEBUG:abstractprotocol:decode@250: Error resolving  as float
2021-07-15 23:49:21,086:INFO:device:run_command@334: Decoded response {'raw_response': ['(01.0 100.5 00105 /=\r', ''], '_command': 'QPIGS2', '_command_description': 'General Status Parameters inquiry', 'L2 AC Input Voltage': [1.0, 'V'], 'L2 AC Input Frequency': [100.5, 'Hz'], 'L2 AC Output Voltage': [105.0, 'V'], 'L2 AC Output Frequency': ['', 'Hz']}
2021-07-15 23:49:21,086:DEBUG:__init__:main@408: results: {'raw_response': ['(01.0 100.5 00105 /=\r', ''], '_command': 'QPIGS2', '_command_description': 'General Status Parameters inquiry', 'L2 AC Input Voltage': [1.0, 'V'], 'L2 AC Input Frequency': [100.5, 'Hz'], 'L2 AC Output Voltage': [105.0, 'V'], 'L2 AC Output Frequency': ['', 'Hz']}
2021-07-15 23:49:21,087:INFO:__init__:get_outputs@26: attempting to create output processor: screen
2021-07-15 23:49:21,091:DEBUG:screen:__init__@16: processor.screen __init__ kwargs {}
2021-07-15 23:49:21,092:DEBUG:__init__:main@414: Using output filter: None
2021-07-15 23:49:21,093:INFO:screen:output@19: Using output processor: screen
2021-07-15 23:49:21,093:DEBUG:screen:output@20: kwargs {'data': {'raw_response': ['(01.0 100.5 00105 /=\r', ''], '_command': 'QPIGS2', '_command_description': 'General Status Parameters inquiry', 'L2 AC Input Voltage': [1.0, 'V'], 'L2 AC Input Frequency': [100.5, 'Hz'], 'L2 AC Output Voltage': [105.0, 'V'], 'L2 AC Output Frequency': ['', 'Hz']}, 'tag': 'QPIGS2', 'mqtt_broker': 'localhost', 'mqtt_port': 1883, 'mqtt_user': None, 'mqtt_pass': None, 'mqtt_topic': 'mpp-solar', 'filter': None, 'excl_filter': None, 'keep_case': False}
Command: QPIGS2 - General Status Parameters inquiry
------------------------------------------------------------
Parameter                       Value           Unit
l2_ac_input_voltage             1.0             V
l2_ac_input_frequency           100.5           Hz
l2_ac_output_voltage            105.0           V
l2_ac_output_frequency                          Hz

ubuntu@ubuntu:~$

@jblance
Copy link
Owner

jblance commented Jul 15, 2021

so some response there (though clearly not for the details as displayed)
can you do
mpp-solar -P PI41 -c QPIGS2 -D and mpp-solar -c QPGS0 -D with a screenshot of the app as close as possible (want to see if the extra/new values correspond to items in the app)

@AnKloss
Copy link
Author

AnKloss commented Jul 15, 2021

ubuntu@ubuntu:~$ mpp-solar -c QPGS0 -D

2021-07-14 05:49:50,311:INFO:init:main@235: Solar Device Command Utility, version: 0.7.67, move jk04 to new processing, add lookup functionality
[...]
2021-07-15 23:58:35,838:DEBUG:serialio:send_and_receive@22: Executing command via serialio...
2021-07-15 23:58:36,471:DEBUG:serialio:send_and_receive@30: serial response was: b'(0 92932105105335 B 00 221.6 50.04 230.0 50.01 1150 1120 014 52.2 000 060 092.2 000 01150 01120 014 10100010 0 2 080 120 010 00 018 090.9 01I\xe7\r'
2021-07-15 23:58:37,561:DEBUG:device:run_command@315: Send and Receive Response b'(0 92932105105335 B 00 221.6 50.04 230.0 50.01 1150 1120 014 52.2 000 060 092.2 000 01150 01120 014 10100010 0 2 080 120 010 00 018 090.9 01I\xe7\r'
2021-07-15 23:58:37,562:INFO:abstractprotocol:decode@174: response passed to decode: b'(0 92932105105335 B 00 221.6 50.04 230.0 50.01 1150 1120 014 52.2 000 060 092.2 000 01150 01120 014 10100010 0 2 080 120 010 00 018 090.9 01I\xe7\r'
[...]
2021-07-15 23:58:37,575:INFO:abstractprotocol:decode@214: Processing response of type DEFAULT
2021-07-15 23:58:37,576:DEBUG:abstractprotocol:decode@218: trimmed and split responses: [b'0', b'92932105105335', b'B', b'00', b'221.6', b'50.04', b'230.0', b'50.01', b'1150', b'1120', b'014', b'52.2', b'000', b'060', b'092.2', b'000', b'01150', b'01120', b'014', b'10100010', b'0', b'2', b'080', b'120', b'010', b'00', b'018', b'090.9', b'01']
2021-07-15 23:58:37,576:INFO:abstractprotocol:decode@225: Processing DEFAULT type responses
2021-07-15 23:58:37,577:INFO:device:run_command@334: Decoded response {'raw_response': ['(0 92932105105335 B 00 221.6 50.04 230.0 50.01 1150 1120 014 52.2 000 060 092.2 000 01150 01120 014 10100010 0 2 080 120 010 00 018 090.9 01Iç\r', ''], '_command': 'QPGS0', '_command_description': 'Parallel Information inquiry', 'Parallel instance number': ['Not valid', ''], 'Serial number': ['92932105105335', ''], 'Work mode': ['Battery Mode', ''], 'Fault code': ['No fault', ''], 'Grid voltage': [221.6, 'V'], 'Grid frequency': [50.04, 'Hz'], 'AC output voltage': [230.0, 'V'], 'AC output frequency': [50.01, 'Hz'], 'AC output apparent power': [1150, 'VA'], 'AC output active power': [1120, 'W'], 'Load percentage': [14, '%'], 'Battery voltage': [52.2, 'V'], 'Battery charging current': [0, 'A'], 'Battery capacity': [60, '%'], 'PV Input Voltage': [92.2, 'V'], 'Total charging current': [0, 'A'], 'Total AC output apparent power': [1150, 'VA'], 'Total output active power': [1120, 'W'], 'Total AC output percentage': [14, '%'], 'Is SCC OK': [1, 'bool'], 'Is AC Charging': [0, 'bool'], 'Is SCC Charging': [1, 'bool'], 'Is Battery Over Voltage': [0, 'bool'], 'Is Battery Under Voltage': [0, 'bool'], 'Is Line Lost': [0, 'bool'], 'Is Load On': [1, 'bool'], 'Is Configuration Changed': [0, 'bool'], 'Output mode': ['single machine', ''], 'Charger source priority': ['Solar + Utility', ''], 'Max charger current': [80, 'A'], 'Max charger range': [120, 'A'], 'Max AC charger current': [10, 'A'], 'PV input current': [0, 'A'], 'Battery discharge current': [18, 'A'], 'Unknown float': [90.9, ''], 'Unknown flags?': ['01', '']}
2021-07-15 23:58:37,578:DEBUG:__init__:main@408: results: {'raw_response': ['(0 92932105105335 B 00 221.6 50.04 230.0 50.01 1150 1120 014 52.2 000 060 092.2 000 01150 01120 014 10100010 0 2 080 120 010 00 018 090.9 01Iç\r', ''], '_command': 'QPGS0', '_command_description': 'Parallel Information inquiry', 'Parallel instance number': ['Not valid', ''], 'Serial number': ['92932105105335', ''], 'Work mode': ['Battery Mode', ''], 'Fault code': ['No fault', ''], 'Grid voltage': [221.6, 'V'], 'Grid frequency': [50.04, 'Hz'], 'AC output voltage': [230.0, 'V'], 'AC output frequency': [50.01, 'Hz'], 'AC output apparent power': [1150, 'VA'], 'AC output active power': [1120, 'W'], 'Load percentage': [14, '%'], 'Battery voltage': [52.2, 'V'], 'Battery charging current': [0, 'A'], 'Battery capacity': [60, '%'], 'PV Input Voltage': [92.2, 'V'], 'Total charging current': [0, 'A'], 'Total AC output apparent power': [1150, 'VA'], 'Total output active power': [1120, 'W'], 'Total AC output percentage': [14, '%'], 'Is SCC OK': [1, 'bool'], 'Is AC Charging': [0, 'bool'], 'Is SCC Charging': [1, 'bool'], 'Is Battery Over Voltage': [0, 'bool'], 'Is Battery Under Voltage': [0, 'bool'], 'Is Line Lost': [0, 'bool'], 'Is Load On': [1, 'bool'], 'Is Configuration Changed': [0, 'bool'], 'Output mode': ['single machine', ''], 'Charger source priority': ['Solar + Utility', ''], 'Max charger current': [80, 'A'], 'Max charger range': [120, 'A'], 'Max AC charger current': [10, 'A'], 'PV input current': [0, 'A'], 'Battery discharge current': [18, 'A'], 'Unknown float': [90.9, ''], 'Unknown flags?': ['01', '']}
2021-07-15 23:58:37,578:INFO:__init__:get_outputs@26: attempting to create output processor: screen
[...]
Command: QPGS0 - Parallel Information inquiry
------------------------------------------------------------
Parameter                       Value           Unit
parallel_instance_number        Not valid
serial_number                   92932105105335
work_mode                       Battery Mode
fault_code                      No fault
grid_voltage                    221.6           V
grid_frequency                  50.04           Hz
ac_output_voltage               230.0           V
ac_output_frequency             50.01           Hz
ac_output_apparent_power        1150            VA
ac_output_active_power          1120            W
load_percentage                 14              %
battery_voltage                 52.2            V
battery_charging_current        0               A
battery_capacity                60              %
pv_input_voltage                92.2            V
total_charging_current          0               A
total_ac_output_apparent_power  1150            VA
total_output_active_power       1120            W
total_ac_output_percentage      14              %
is_scc_ok                       1               bool
is_ac_charging                  0               bool
is_scc_charging                 1               bool
is_battery_over_voltage         0               bool
is_battery_under_voltage        0               bool
is_line_lost                    0               bool
is_load_on                      1               bool
is_configuration_changed        0               bool
output_mode                     single machine
charger_source_priority         Solar + Utility
max_charger_current             80              A
max_charger_range               120             A
max_ac_charger_current          10              A
pv_input_current                0               A
battery_discharge_current       18              A
unknown_float                   90.9
unknown_flags?                  01

@AnKloss
Copy link
Author

AnKloss commented Jul 16, 2021

A1

@jblance
Copy link
Owner

jblance commented Jul 16, 2021

sorry I ment the wifi app, ie
image

@AnKloss
Copy link
Author

AnKloss commented Jul 16, 2021

is the wifi app

@jblance
Copy link
Owner

jblance commented Jul 16, 2021

The screenshot you posted is the terminal screen.
I want the data from mppsolar and the wifi app at the same time to compare results

@AnKloss
Copy link
Author

AnKloss commented Jul 16, 2021

PV1 and 2 input watt (Current * Volt = watt) not Wh
For PV1 i get current, for PV 2 i not get it , but in the History is show

@AnKloss
Copy link
Author

AnKloss commented Jul 16, 2021

26733

@jblance
Copy link
Owner

jblance commented Jul 16, 2021

I don't understand what you mean.

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

#!/bin/bash
today=$(date '+%Y%m%d')
thismonth=$(date '+%Y%m')
thisyear=$(date '+%Y')

mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QED$today -o influx2_mqtt
mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QED$today

mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QEM$thismonth -o influx2_mqtt
mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QEM$thismonth

mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QEY$thisyear -o influx2_mqtt
mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QEY$thisyear

might need to have the full path for mpp-solar for cron user
what does which mpp-solar give on your system (outside of venv)
also need to check outside of venv (cron will not have the venv environment setup)

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

i edit if in both conf

(mppsolar) pi@raspberrypi:~ $ sudo crontab -l

          • /home/pi/myscript.sh

(mppsolar) pi@raspberrypi:~ $ crontab -l

          • /home/pi/myscript.sh

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

(mppsolar) pi@raspberrypi:~ $ /home/pi/myscript.sh

Command: QED20210805 - Daily PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_day     3185            Wh
year                            2021
month                           August
day                             05
Command: QEM202108 - Monthly PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_month   85700           Wh
year                            2021
month                           August
Command: QEY2021 - Yearly PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_year    557700          Wh
year                            2021

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

i edit if in both conf

(mppsolar) pi@raspberrypi:~ $ sudo crontab -l

          • /home/pi/myscript.sh

(mppsolar) pi@raspberrypi:~ $ crontab -l

          • /home/pi/myscript.sh

only use one

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

(mppsolar) pi@raspberrypi:~ $ /home/pi/myscript.sh

test the script outside of the venv (the virtual environment will not be activated in the environment that cron scripts run under)

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

(mppsolar) pi@raspberrypi:~ $ which mpp-solar
/usr/local/bin/mpp-solar
(mppsolar) pi@raspberrypi:~ $

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

okay i deactivate venc

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

venv sorry

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

(mppsolar) pi@raspberrypi:~ $ which mpp-solar
/usr/local/bin/mpp-solar
(mppsolar) pi@raspberrypi:~ $

edit the script to add the full path to the mpp-solar command, e.g.
/usr/local/bin/mpp-solar -p /dev/ttyUSB0 --porttype serial -P PI30MAX -T QPGS0 -c QED$today -o influx2_mqtt

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

then do the testing of the script from a non-venv terminal screen, using the full path to the script (and sudo if you are using the root crontab)

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

okay change script with full path

pi@raspberrypi:~ $ /home/pi/myscript.sh

Command: QED20210805 - Daily PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_day     3185            Wh
year                            2021
month                           August
day                             05
Parameter                       Value           Unit
error                           Invalid response CRC
Command: QEY2021 - Yearly PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_year    557700          Wh
year                            2021
pi@raspberrypi:~ $ /home/pi/myscript.sh
Parameter                       Value           Unit
error                           Invalid response CRC
Command: QEM202108 - Monthly PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_month   85700           Wh
year                            2021
month                           August
Parameter                       Value           Unit
error                           Invalid response CRC

pi@raspberrypi:~ $ sudo /etc/init.d/cron restart

[ ok ] Restarting cron (via systemctl): cron.service.

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

pi@raspberrypi:~ $ /home/pi/myscript.sh

Command: QED20210805 - Daily PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_day     3185            Wh
year                            2021
month                           August
day                             05
2021-08-05 09:38:46,401:WARNING:serialio:send_and_receive@33: Serial read error: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Command: QEM202108 - Monthly PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_month   85700           Wh
year                            2021
month                           August
Command: QEY2021 - Yearly PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_year    557700          Wh
year                            2021

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

pi@raspberrypi:~ $ sudo /etc/init.d/cron restart

[ ok ] Restarting cron (via systemctl): cron.service.

this should not be needed - editing crontab will reload the service

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

pi@raspberrypi:~ $ /home/pi/myscript.sh

Command: QED20210805 - Daily PV Generated Energy Inquiry
------------------------------------------------------------
Parameter                       Value           Unit
pv_generated_energy_for_day     3185            Wh
year                            2021
month                           August
day                             05
2021-08-05 09:38:46,401:WARNING:serialio:send_and_receive@33: Serial read error: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

you are getting clashes due to multiple things (cron and commandline) trying to access the serial port at the same time

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

yes right

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

after 3 times start the script i get no error more , but the other 2 times before , get error.
so is need a time sinc with mpp-solar.
question,
can mpp=solar start or read a external script to add or to run this to or after the normal command ?

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

error from the first 2 times

2021-08-05 09:42:47,136:WARNING:serialio:send_and_receive@33: Serial read error: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Parameter Value Unit
error Invalid response CRC

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

huh?
not time sync question, just luck if you are running cron and commands at the same time

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

right

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

if testing on command line, comment out cron entry

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

okay

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

i see now timestampe sinc all most in grafana . so the full path looking like working
27076

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

great

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

if not sins, may have same (call it sinc errors) erros and the is will show up in the next sinc

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

can you public this? then all can use it to run this .

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

can you public this? then all can use it to run this .

public what?
only need the script for this one inverter and function that needs the command to ask for yesterday or today via a date

@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

yes but same times, people like me , need to get on the right way how is will by working to get the data out.
Anyway very much thanks for helping.
mfg
Andreas

@jblance
Copy link
Owner

jblance commented Aug 5, 2021

fair enough - I may add it to a document
though at some point adding some helper commands to fix this would be better, something like -c get_daily_power -1 to get yesterdays power and/or -c get_monthly_power 0 to get this months power
I will close this issue (as it is very long), open another if you have other issues

@jblance jblance closed this as completed Aug 5, 2021
@AnKloss
Copy link
Author

AnKloss commented Aug 5, 2021

yes have e nice day and wait on the office update 0.7.76

mfg
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants