added debug output in action reply handler and tm handling in tmtcpy, ready to merge into main

This commit is contained in:
lkoester
2024-04-24 16:43:59 +02:00
parent 09bef401c0
commit 83322ae415
2 changed files with 8 additions and 1 deletions

View File

@ -143,6 +143,12 @@ class PusHandler(GenericApidHandlerBase):
_LOGGER.info(f"Received event packet. Event: {event_u32}")
if event_u32.group_id == 0 and event_u32.unique_id == 0:
_LOGGER.info("Received test event")
elif service == 8:
if pus_tm.subservice == 130:
_LOGGER.info(f"Received Action Data Reply TM[8,130]")
reply = pus_tm.source_data
reply = reply[6:]
_LOGGER.info(f"Data Reply Content: " + reply.decode('utf-8'))
elif service == 17:
tm_packet = Service17Tm.unpack(
packet, time_reader=CdsShortTimestamp.empty()