From 87e5abe8ebb6a33d36445d43bcb6674b313626f1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 12 May 2023 11:51:47 +0200 Subject: [PATCH 1/2] add missing command list of PLOC MPSoC commands --- eive_tmtc/tmtc/payload/ploc_mpsoc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eive_tmtc/tmtc/payload/ploc_mpsoc.py b/eive_tmtc/tmtc/payload/ploc_mpsoc.py index e538b17..13161d4 100644 --- a/eive_tmtc/tmtc/payload/ploc_mpsoc.py +++ b/eive_tmtc/tmtc/payload/ploc_mpsoc.py @@ -146,6 +146,7 @@ def add_ploc_mpsoc_cmds(defs: TmtcDefinitionWrapper): oce.add(OpCode.FLASH_WRITE_FILE, Info.FLASH_WRITE_FILE) oce.add(OpCode.FLASH_READ_FILE, Info.FLASH_READ_FILE) oce.add(OpCode.FLASH_DELETE_FILE, Info.FLASH_DELETE_FILE) + oce.add(OpCode.FLASH_GET_DIR_CONTENT, Info.FLASH_GET_DIR_CONTENT) oce.add(OpCode.REPLAY_START, Info.REPLAY_START) oce.add(OpCode.REPLAY_STOP, Info.REPLAY_STOP) oce.add(OpCode.DOWNLINK_PWR_ON, Info.DOWNLINK_PWR_ON) From 377e98b5c2da12f10cdd12b027548a8075fdcb58 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 12 May 2023 13:22:58 +0200 Subject: [PATCH 2/2] bugfix MPSoC HK parsing --- eive_tmtc/tmtc/payload/ploc_mpsoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/payload/ploc_mpsoc.py b/eive_tmtc/tmtc/payload/ploc_mpsoc.py index 13161d4..deeb41d 100644 --- a/eive_tmtc/tmtc/payload/ploc_mpsoc.py +++ b/eive_tmtc/tmtc/payload/ploc_mpsoc.py @@ -522,7 +522,7 @@ def handle_ploc_mpsoc_hk_data(printer: FsfwTmTcPrinter, hk_data: bytes, set_id: cam_sdi_status, ) = struct.unpack(fmt_str, hk_data[current_idx : current_idx + inc_len]) current_idx += inc_len - pw.dlog("Received MPSoC HK") + pw.ilog(_LOGGER, "Received MPSoC HK") pw.dlog(f"Status: {status}") pw.dlog(f"Mode: {mode}") pw.dlog(f"Downlink Power On: {downlink_pwr_on}") @@ -576,6 +576,7 @@ def handle_ploc_mpsoc_hk_data(printer: FsfwTmTcPrinter, hk_data: bytes, set_id: sysmon_safe_cotr_cur, sysmon_nvm4_xo_cur, ) = struct.unpack(fmt_str, hk_data[current_idx : current_idx + inc_len]) + current_idx += inc_len pw.dlog( f"SYSMON MB 12V {sysmon_mb_12v:.3f} | SYSMON MB 3V3 {sysmon_mb_3v3:.3f} | "