This commit is contained in:
parent
7f79ef6c12
commit
6657bf072c
@ -20,12 +20,8 @@ class CfdpInCcsdsWrapper(SpecificApidHandlerBase):
|
|||||||
pdu = packet[SPACE_PACKET_HEADER_SIZE:]
|
pdu = packet[SPACE_PACKET_HEADER_SIZE:]
|
||||||
pdu_base = PduFactory.from_raw(pdu)
|
pdu_base = PduFactory.from_raw(pdu)
|
||||||
if pdu_base.pdu_type == PduType.FILE_DATA:
|
if pdu_base.pdu_type == PduType.FILE_DATA:
|
||||||
_LOGGER.info("Received File Data PDU TM")
|
_LOGGER.info("Received File Data PDU")
|
||||||
else:
|
else:
|
||||||
if pdu_base.directive_type == DirectiveType.FINISHED_PDU:
|
directive_type = DirectiveType(pdu_base.directive_type)
|
||||||
_LOGGER.info("Received Finished PDU TM")
|
_LOGGER.info(f"Received File Directive PDU with type {directive_type!r}")
|
||||||
else:
|
|
||||||
_LOGGER.info(
|
|
||||||
f"Received File Directive PDU with type {pdu_base.directive_type!r} TM"
|
|
||||||
)
|
|
||||||
self.handler.pass_pdu_packet(pdu_base)
|
self.handler.pass_pdu_packet(pdu_base)
|
||||||
|
@ -25,7 +25,9 @@ class EiveCfdpUser(CfdpUserBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def file_segment_recv_indication(self, params: FileSegmentRecvdParams):
|
def file_segment_recv_indication(self, params: FileSegmentRecvdParams):
|
||||||
pass
|
_LOGGER.info(
|
||||||
|
f"CFDP User: Received File Data PDU for {params.transaction_id} | Offset: {params.offset} | Segment Length: {params.length}"
|
||||||
|
)
|
||||||
|
|
||||||
def report_indication(self, transaction_id: TransactionId, status_report: any):
|
def report_indication(self, transaction_id: TransactionId, status_report: any):
|
||||||
pass
|
pass
|
||||||
@ -49,4 +51,4 @@ class EiveCfdpUser(CfdpUserBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def eof_recv_indication(self, transaction_id: TransactionId):
|
def eof_recv_indication(self, transaction_id: TransactionId):
|
||||||
pass
|
_LOGGER.info(f"CFDP User: EOF received for {transaction_id}")
|
||||||
|
Loading…
Reference in New Issue
Block a user