Added CFDP packet stack #528

Merged
muellerr merged 10 commits from KSat/fsfw:mueller/cfdp-pdus into development 2022-02-02 10:27:40 +01:00
Owner

This PR adds the packet stack for the CCSDS File Delivery Protocol.
It also refactors the existing TMTC infastructure to allow sending
of CFDP packets to the CCSDS handlers.

This includes the whole PDU (Protocol Data Unit) stack:

  • File Data PDUs

and all file directive PDUs

  • ACK PDU
  • NAK PDU
  • Metadata PDU
  • Finished PDU
  • Prompt PDU
  • Keep Alive PDU
  • EOF PDU

The PR includes a full set of unittests for the packet stack
with a coverage of 90+ %.

The refactoring of the existing TMTC infastructure includes non-ideal
solutions like diamond inheritance.
Avoiding this solution would require refactoring the packet stack.
This would be a good idea anyway because the existing stack is tightly
coupled to the FSFW, making reuse more difficult if only the stack is
planned to be used without the store functionalities etc.

The PDU implementation provided here is only weakly coupled to the FSFW,
only using components like returnvalues or the Serialization modules.
There are dedicated serializers and deserializers, which also helps in
creating small focused modules which are easy to test. Deserializers mostly operate
on raw buffers and expose their functionality through the parseData function while
serializers provide a convenient high-level interface.

Some of the modules here were provied by Matthias Tompert.

This PR adds the packet stack for the CCSDS File Delivery Protocol. It also refactors the existing TMTC infastructure to allow sending of CFDP packets to the CCSDS handlers. This includes the whole PDU (Protocol Data Unit) stack: - File Data PDUs and all file directive PDUs - ACK PDU - NAK PDU - Metadata PDU - Finished PDU - Prompt PDU - Keep Alive PDU - EOF PDU The PR includes a full set of unittests for the packet stack with a coverage of 90+ %. The refactoring of the existing TMTC infastructure includes non-ideal solutions like diamond inheritance. Avoiding this solution would require refactoring the packet stack. This would be a good idea anyway because the existing stack is tightly coupled to the FSFW, making reuse more difficult if only the stack is planned to be used without the store functionalities etc. The PDU implementation provided here is only weakly coupled to the FSFW, only using components like returnvalues or the Serialization modules. There are dedicated serializers and deserializers, which also helps in creating small focused modules which are easy to test. Deserializers mostly operate on raw buffers and expose their functionality through the `parseData` function while serializers provide a convenient high-level interface. Some of the modules here were provied by Matthias Tompert.
muellerr added 1 commit 2021-12-03 15:40:03 +01:00
5907f8ee9d
Added CFDP packet stack
This PR adds the packet stack for the CCSDS File Delivery Protocol.
It also refactors the existing TMTC infastructure to allow sending
of CFDP packets to the CCSDS handlers.

This includes the whole PDU (Protocol Data Unit) stack:

- File Data PDUs

and all file directive PDUs

- ACK PDU
- NAK PDU
- Metadata PDU
- Finished PDU
- Prompt PDU
- Keep Alive PDU
- EOF PDU

The PR includes a full set of unittests for the packet stack
with a coverage of 90+ %.

The refactoring of the existing TMTC infastructure includes non-ideal
solutions like diamond inheritance.
Avoiding this solution would require refactoring the packet stack.
This would be a good idea anyway because the existing stack is tightly
coupled to the FSFW, making reuse more difficult if only the stack is
planned to be used without the store functionalities etc.

The PDU implementation provided here is only weakly coupled to the FSFW,
only using components like returnvalues or the Serialization modules.
There are dedicated serializers and deserializers, which also helps in
creating small focused modules which are easy to test.

Some of the modules here were provied by Matthias Tompert.
muellerr requested review from mohr 2021-12-03 15:40:16 +01:00
muellerr requested review from gaisser 2021-12-03 15:40:23 +01:00
muellerr added this to the v3.0.0 milestone 2021-12-03 15:41:27 +01:00
muellerr added the
feature
Refactor
Breaking API Change
labels 2021-12-03 15:41:40 +01:00
gaisser added 1 commit 2021-12-06 15:07:53 +01:00
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
c3a0aabfb8
Merge branch 'development' into mueller/cfdp-pdus
muellerr added 2 commits 2021-12-06 16:12:40 +01:00
muellerr added 1 commit 2021-12-06 16:23:20 +01:00
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
7a84dff7d6
maybe this fixes the build error?
Author
Owner

We should wait until this is resolved: https://github.com/catchorg/Catch2/issues/2326

We should wait until this is resolved: https://github.com/catchorg/Catch2/issues/2326
muellerr added 1 commit 2021-12-07 14:08:35 +01:00
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
d39e0c8bb6
renamed test folder
muellerr added 1 commit 2021-12-20 14:16:07 +01:00
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
d93f2c5055
Merge branch 'development' into mueller/cfdp-pdus
gaisser modified the milestone from v3.0.0 to v4.0.0 2022-01-10 14:48:48 +01:00
Owner

waiting on #538

waiting on #538
muellerr added 2 commits 2022-02-01 11:01:29 +01:00
muellerr added 1 commit 2022-02-02 10:19:36 +01:00
muellerr merged commit 70b593df65 into development 2022-02-02 10:27:40 +01:00
muellerr deleted branch mueller/cfdp-pdus 2022-02-02 10:27:42 +01:00
Sign in to join this conversation.
No description provided.