Commit Graph

147 Commits

Author SHA1 Message Date
52f8c5038b
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers 2022-08-22 16:21:41 +02:00
10f34e5a48
Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack-with-retval-refactoring 2022-08-22 15:57:22 +02:00
8c8d1cfa84
apply auto-formatter 2022-08-22 15:02:16 +02:00
2a4ab0af7b
Merge branch 'mueller/refactor-tmtc-stack' into mueller/refactor-tmtc-stack-with-retval-refactoring 2022-08-22 14:17:24 +02:00
3b33b429e6 Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers 2022-08-18 11:21:16 +02:00
ff6de8e378 important bugfix for verif reporter 2022-08-18 11:20:27 +02:00
7881f5bab8
important bugfix for verif reporter 2022-08-18 11:19:42 +02:00
e3648b6e30 Merge remote-tracking branch 'upstream/mueller/refactor-tmtc-stack' into mueller/tmtc-stack-refactoring 2022-08-16 17:25:22 +02:00
2e52d7a31d Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers 2022-08-16 17:23:52 +02:00
875174c4ad
better name for global object 2022-08-16 17:17:45 +02:00
8fd8a37f59
flip verif reporter ctor arguments 2022-08-16 17:10:48 +02:00
d815f422c3
improve verif reporter API 2022-08-16 17:09:22 +02:00
217276d50c renamed returnvalue header 2022-08-16 12:48:22 +02:00
f63f3fa564 more occurences in comments 2022-08-16 12:12:21 +02:00
1037102349
merge retval refactoring 2022-08-16 01:08:26 +02:00
62fe75ee40
perform renaming 2022-08-15 20:28:16 +02:00
4d82d0e4c1
update source sequence counter code 2022-08-15 17:24:48 +02:00
d022ce82c5
Merge remote-tracking branch 'upstream/mueller/refactor-tmtc-stack' into mueller/tmtc-stack-refactoring 2022-08-15 11:30:09 +02:00
b20e8a9679
continue new cfdp router 2022-08-03 15:12:29 +02:00
458fe460eb
TMTC Routing Refactoring
1. Make TcDistributor less powerful / more flexible and rename it to TcDistributorBase
2. Require AcceptsTelecommandsIF to have an abstract function returning the name
3. Allows the CCSDS distributor to remove the CCSDS header before rerouting. This is useful
for protocols like CFDP which are CCSDS agnostic.

WIP: Still need to implement the removal of the CCSDS header
2022-08-01 11:00:36 +02:00
c7b4dc349a
using uint32_t for getIdentifier of AcceptsTcIF 2022-07-29 15:53:39 +02:00
6c5bbfa080
some renaming 2022-07-29 12:03:14 +02:00
da106fd96f
do not use TC info for failed TC retrieval 2022-07-29 10:23:59 +02:00
8f6f0e1d45
some more fail tests 2022-07-28 13:42:34 +02:00
30ba9ab916
some more fixes 2022-07-28 13:00:53 +02:00
93acac02f5
tests running again 2022-07-27 21:06:23 +02:00
f03b7cd660
another bugfix in CSB 2022-07-27 20:10:15 +02:00
d641d63531
set queue of tm send helper 2022-07-27 19:56:11 +02:00
4e571e5082
some more minor fixes 2022-07-27 19:40:54 +02:00
234ccdf764
send time stampers properly now 2022-07-27 17:48:59 +02:00
083d08ae2a
various bugs and improvements 2022-07-27 17:00:43 +02:00
059fb10558
add helper methods to disable crc calculation 2022-07-27 11:41:06 +02:00
18ee2ab903
example compiles again 2022-07-27 11:26:47 +02:00
9eb652e585
some printout fixes 2022-07-27 10:49:49 +02:00
152c01b2ec
psb unittests almost complete 2022-07-26 18:58:36 +02:00
8bf0fb9885
test auto-initializers 2022-07-26 18:46:28 +02:00
1954ce0ea4
default PUS receiver set automatically now 2022-07-26 17:41:10 +02:00
d98b79cf5e
adapt PSB so it can be unittested properly 2022-07-26 16:49:46 +02:00
f14c812aff
removed some obsolete code 2022-07-26 14:14:00 +02:00
75c824ec80
add new VerificationReporterIF 2022-07-26 13:59:09 +02:00
f1c37203a4
some more API improvements and replacements 2022-07-26 11:14:40 +02:00
500a5602bd
added additional TM store and send helper 2022-07-26 11:09:57 +02:00
bdf71d4e66
add new HasReturnvaluesIF features 2022-07-26 10:21:16 +02:00
c83f75c515
some more tests using TM send helper 2022-07-25 20:41:01 +02:00
586993c081
completed send helper tests 2022-07-25 20:31:06 +02:00
6d0fa36f8a
cleaning up message queue mock and subscription API 2022-07-25 19:36:56 +02:00
9ee6da47e9
improving mocks 2022-07-25 14:31:57 +02:00
1a7d7b172b
set up new internal error reporter mock 2022-07-25 14:04:06 +02:00
36e3956efb
finished tm store helper tests 2022-07-25 13:39:07 +02:00
e2ad37e3e6
more ref replacements 2022-07-25 11:26:45 +02:00
973d4ee8a5
some more ref replacements 2022-07-25 11:24:13 +02:00
899d021e00
using uint32_t as store_address requires explicit cast 2022-07-25 11:15:45 +02:00
832367fb30
replace some API components with references 2022-07-25 10:50:52 +02:00
f0c8fd2688
some renaming 2022-07-25 10:24:43 +02:00
d474c4a7ee
store helper 2022-07-23 11:43:48 +02:00
67776241de
verify successfull TM serialization 2022-07-22 16:06:31 +02:00
affde6bad5
rename namespace 2022-07-21 18:21:10 +02:00
e5ee96259d
some fixes 2022-07-21 13:48:58 +02:00
d8b6cb39ac
various bugfixes and improvements 2022-07-21 11:34:11 +02:00
be35bd53a6
switched to new tmtc stack API 2022-07-20 22:21:15 +02:00
9860061fc6
create new TmSendHelper 2022-07-20 11:45:50 +02:00
d80941514f
start refactoring PUS TM handling 2022-07-20 11:43:16 +02:00
6c636661b6
a lot of refactoring 2022-07-19 18:13:25 +02:00
5fffbd4a90
start PUS TC refactoring 2022-07-18 18:36:41 +02:00
d7a2eada94
add space packet creator class 2022-07-18 10:42:56 +02:00
0a7f2c6646
refactored space packet interface 2022-07-18 10:20:26 +02:00
76a459a02c Merge pull request 'use better type for stored limit' (#93) from mueller/tmtc-bridge-tweaks into develop
Reviewed-on: #93
Reviewed-by: Jakob.Meier <meierj@irs.uni-stuttgart.de>
2022-05-25 15:24:57 +02:00
c4fa7281ae
Merge remote-tracking branch 'upstream/development' into mueller/update-from-upstream 2022-05-25 14:44:21 +02:00
ac62443f31
use better type for stored limit 2022-05-25 14:30:58 +02:00
e60a665de4
added 3 new subservices 2022-05-24 11:52:29 +02:00
942bfafaa3
Merge remote-tracking branch 'upstream/mueller/tc-11-tweaks' into mueller/tc-11-tweaks-eive 2022-05-20 15:39:40 +02:00
7fee852dbd
re-apply updated auto-formatter 2022-05-16 14:55:15 +02:00
dafcaa6007 Merge remote-tracking branch 'origin/develop' into mueller/spi-cache-spi-dev-in-com-if 2022-05-11 15:44:45 +02:00
025e7647d3 Merge branch 'develop' into meier/sequenceCount 2022-05-11 15:43:35 +02:00
0a97077a0e
hotfix 2022-05-11 15:42:52 +02:00
Jakob Meier
bc994595da sequence count init value 2022-05-11 14:31:49 +02:00
5941c21adf
Merge remote-tracking branch 'origin/develop' into mueller/spi-speed-mode-getter 2022-05-11 10:58:13 +02:00
4e4820af05
bugfix for prepareHealthSetReply function 2022-05-09 10:47:23 +02:00
7f6c8b8b12
Merge remote-tracking branch 'upstream/development' into eive/develop 2022-05-02 16:15:27 +02:00
7d61e67d20 more macos changes 2022-04-30 19:02:41 +02:00
afcbc8be0a changes for MacOS 2022-04-30 18:40:22 +02:00
Jakob Meier
caf78835b2 added -- operator 2022-03-17 20:00:17 +01:00
Jakob Meier
1b7e0371c3 fixed merge conflict 2022-03-14 15:25:17 +01:00
Jakob Meier
d4ade5e885 sequence count operator overloading 2022-03-14 15:01:17 +01:00
701135e2a6
applied clang format 2022-02-22 10:17:56 +01:00
cf69af4e7e
passing mqArgs to all mq ctor calls 2022-02-19 16:14:02 +01:00
41614303d7
renamed variable 2022-02-02 12:11:39 +01:00
d8c5bd125e
All EIVE changes 2022-02-02 12:02:58 +01:00
ddcac2bbac
reapply clang format 2022-02-02 10:29:30 +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.
2021-12-03 15:37:49 +01:00
198fdbba62 Merge remote-tracking branch 'upstream/development' into mueller/tcp-keep-open-pr 2021-10-04 14:41:51 +02:00
bf02f14772 C++11 adaptions 2021-09-28 16:33:20 +02:00
a4d6421510
documentation and bugfixes 2021-09-28 15:30:01 +02:00
f02852d8d2
cmake lists file update 2021-09-28 15:13:46 +02:00
09299802f0
TCP refactoring
This refactoring keeps the TCP connection opened until the client closes
it. It also increased the robustness of the TCP reception.

Because TCP is stream based and usually applied to newline separated
data, a special way to handle binary space packets is required.

The new SpacePacketParser class takes care of this by taking TC packet
IDs as as optional start markers to parse for space packets in a given
buffer.

The refactored TCP server uses a ring buffer, a reception buffer and the
new parser to extract space packets from a stream in a safer way.
2021-09-28 15:01:01 +02:00
85c04dee23
increase limit of packets stored 2021-09-27 11:12:38 +02:00
d47906e833
trying to fuse header / inc 2021-07-19 16:25:51 +02:00