mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
RPi:crash when using additional InfoCommands
Python goes in crash, when using an other InfoCommend i.e. uncomment line 178 of __main__.py
This commit is contained in:
parent
dbb352801e
commit
9331d9197b
3 changed files with 6 additions and 4 deletions
|
@ -183,6 +183,8 @@ class ResponseDecoder(ResponseDecoderFactory):
|
||||||
model_desc = "Firmware version / date"
|
model_desc = "Firmware version / date"
|
||||||
elif command.upper() == '02':
|
elif command.upper() == '02':
|
||||||
model_desc = "Inverter generic events log"
|
model_desc = "Inverter generic events log"
|
||||||
|
elif command.upper() == '05':
|
||||||
|
model_desc = "Inverter generic SystemConfigPara"
|
||||||
elif command.upper() == '0B':
|
elif command.upper() == '0B':
|
||||||
model_desc = "mirco-inverters status data"
|
model_desc = "mirco-inverters status data"
|
||||||
elif command.upper() == '0C':
|
elif command.upper() == '0C':
|
||||||
|
|
|
@ -175,7 +175,7 @@ def poll_inverter(inverter, dtu_ser, do_init, retries):
|
||||||
inv_str = str(inverter_ser)
|
inv_str = str(inverter_ser)
|
||||||
if do_init:
|
if do_init:
|
||||||
command_queue[inv_str].append(hoymiles.compose_send_time_payload(InfoCommands.InverterDevInform_All))
|
command_queue[inv_str].append(hoymiles.compose_send_time_payload(InfoCommands.InverterDevInform_All))
|
||||||
# command_queue[inv_str].append(hoymiles.compose_send_time_payload(InfoCommands.SystemConfigPara))
|
command_queue[inv_str].append(hoymiles.compose_send_time_payload(InfoCommands.SystemConfigPara))
|
||||||
command_queue[inv_str].append(hoymiles.compose_send_time_payload(InfoCommands.RealTimeRunData_Debug))
|
command_queue[inv_str].append(hoymiles.compose_send_time_payload(InfoCommands.RealTimeRunData_Debug))
|
||||||
|
|
||||||
# Put all queued commands for current inverter on air
|
# Put all queued commands for current inverter on air
|
||||||
|
|
|
@ -430,15 +430,15 @@ class DebugDecodeAny(UnknownResponse):
|
||||||
l_payload = len(self.response)
|
l_payload = len(self.response)
|
||||||
logging.debug(f' payload has {l_payload} bytes')
|
logging.debug(f' payload has {l_payload} bytes')
|
||||||
|
|
||||||
logging.debug()
|
logging.debug('')
|
||||||
logging.debug('Field view: int')
|
logging.debug('Field view: int')
|
||||||
print_table_unpack('>B', self.response)
|
print_table_unpack('>B', self.response)
|
||||||
|
|
||||||
logging.debug()
|
logging.debug('')
|
||||||
logging.debug('Field view: shorts')
|
logging.debug('Field view: shorts')
|
||||||
print_table_unpack('>H', self.response)
|
print_table_unpack('>H', self.response)
|
||||||
|
|
||||||
logging.debug()
|
logging.debug('')
|
||||||
logging.debug('Field view: longs')
|
logging.debug('Field view: longs')
|
||||||
print_table_unpack('>L', self.response)
|
print_table_unpack('>L', self.response)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue