From 342a3bbcc99a0ca2370e76869e26051be79b037c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 12 Dec 2023 15:28:32 +0100 Subject: [PATCH] update PLOC Supversisor TM handling --- eive_tmtc/tmtc/payload/ploc_supervisor.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/eive_tmtc/tmtc/payload/ploc_supervisor.py b/eive_tmtc/tmtc/payload/ploc_supervisor.py index cffd273..497fce9 100644 --- a/eive_tmtc/tmtc/payload/ploc_supervisor.py +++ b/eive_tmtc/tmtc/payload/ploc_supervisor.py @@ -753,8 +753,10 @@ def get_event_buffer_path() -> str: class SocState(enum.IntEnum): OFF = 0 BOOTING = 1 - OPERATIONAL = 2 - SHUTDOWN = 3 + UPDATE = 2 + OPERATIONAL = 3 + RESET = 4 + FAULTY = 5 def handle_supv_hk_data(set_id: int, hk_data: bytes, pw: PrintWrapper): @@ -792,7 +794,10 @@ def handle_hk_report(hk_data: bytes, pw: PrintWrapper): pw.dlog(f"Temp PS {temp_ps} C | Temp PL {temp_pl} C | Temp SUP {temp_sup} C") pw.dlog(f"Uptime {uptime} | CPU Load {cpu_load} | Avail Heap {avail_heap}") pw.dlog(f"Number TCs {num_tcs} | Number TMs {num_tms}") - pw.dlog(f"SOC state {SocState(soc_state)}") + try: + pw.dlog(f"SOC state {SocState(soc_state)}") + except ValueError: + pw.dlog(f"Invalid SOC state {soc_state}") pw.dlog(f"NVM 01 State {nvm_0_1_state}") pw.dlog(f"NVM 3 State {nvm_3_state}") pw.dlog(f"Mission IO state {mission_io_state}")