basic HK reply TM packing and handling

This commit is contained in:
2022-12-22 09:15:59 +01:00
parent 49c5f3eda2
commit 27c1a9850c
2 changed files with 29 additions and 3 deletions

View File

@ -142,6 +142,15 @@ class PusHandler(SpecificApidHandlerBase):
self.verif_wrapper.log_to_console(tm_packet, res)
self.verif_wrapper.log_to_file(tm_packet, res)
dedicated_handler = True
if service == 3:
LOGGER.info("No handling for HK packets implemented")
LOGGER.info(f"Raw packet: 0x[{packet.hex(sep=',')}]")
pus_tm = PusTelemetry.unpack(packet)
if pus_tm.subservice == 25:
if len(pus_tm.source_data) < 8:
raise ValueError("No addressable ID in HK packet")
json_str = pus_tm.source_data[8:]
dedicated_handler = True
if service == 5:
tm_packet = Service5Tm.unpack(packet)
if service == 17: