Compare commits

...

669 Commits

Author SHA1 Message Date
Ulrich Mohr e73b9ff72c Merge pull request 'v6.0.0' (#729) from development into master
fsfw/fsfw/pipeline/head There was a failure building this commit Details
Reviewed-on: #729
2023-02-23 13:42:48 +01:00
Ulrich Mohr dc7afc5415 Version bump, CHANGELOG update, format
fsfw/fsfw/pipeline/pr-master This commit looks good Details
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2023-02-23 13:38:24 +01:00
Ulrich Mohr 9bf3ff95b7 Merge pull request 'Add Health Service Announce All Health Info' (#725) from eive/fsfw:add_health_service_announce_all into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #725
2023-02-23 13:13:56 +01:00
Ulrich Mohr 61562b18ab Merge branch 'development' into add_health_service_announce_all
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-23 12:56:12 +01:00
Ulrich Mohr d76d97a36b changed health table parameter to objectId
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-23 12:44:42 +01:00
Ulrich Mohr 76b377c4c0 Merge pull request 'Mode Service: Add allowed subservice' (#739) from eive/fsfw:small_mode_service_fix into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #739
2023-02-20 13:40:53 +01:00
Ulrich Mohr 3562bf11b9 CHANGELOG update
fsfw/fsfw/pipeline/pr-master This commit looks good Details
2023-02-10 11:06:46 +01:00
Ulrich Mohr fffb2b61e5 release check helper 2023-02-10 11:06:30 +01:00
Robin Müller 94e5f62331
add allowed subservice
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-09 18:30:08 +01:00
Ulrich Mohr 0a9c563bbc format 2023-02-09 15:58:48 +01:00
Ulrich Mohr fa7675897d Merge pull request 'Mode Service Bugfixes' (#736) from eive/fsfw:mode_service_fixes into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #736
2023-02-09 15:56:26 +01:00
Ulrich Mohr 3a2393885f more style
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-09 15:44:39 +01:00
Ulrich Mohr c752b6d143 Merge pull request 'Generic TMTC Bridge Update' (#734) from eive/fsfw:tmtcbridge_tweaks into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #734
2023-02-09 15:37:35 +01:00
Ulrich Mohr b676040c7c Merge pull request 'CMakeLists file updates' (#731) from eive/fsfw:cmakelists_update into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #731
2023-02-09 15:29:46 +01:00
Ulrich Mohr 010509efb4 removed unneeded find_package parameter for etl
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-09 13:50:16 +01:00
Ulrich Mohr dfb1633f00 Merge branch 'development' into mode_service_fixes
fsfw/fsfw/pipeline/pr-development Something is wrong with the build of this commit Details
2023-02-09 13:46:19 +01:00
Ulrich Mohr 5f7172e130 Merge pull request 'TCP/IP TMTC bridge memory leak fixes' (#737) from eive/fsfw:possible_tcpip_bridge_fixes into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #737
2023-02-09 12:15:45 +01:00
Ulrich Mohr 0c6465cd95 Merge pull request 'time stamper empty ctor' (#730) from eive/fsfw:empty_cds_short_ctor into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #730
2023-02-09 11:45:49 +01:00
Ulrich Mohr f94987c46d Merge pull request 'RM3100 important bugfix' (#733) from eive/fsfw:rm3100_fixes into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #733
2023-02-09 11:41:53 +01:00
Ulrich Mohr 1809ce359b Merge pull request 'comment tweak to event parser can read everything' (#732) from eive/fsfw:health_if_update into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #732
2023-02-09 11:39:53 +01:00
Ulrich Mohr 8c712441ab Making fetch Catch2 quiet as well.
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-09 11:34:58 +01:00
Robin Müller f1b0ca7cff
add PR link
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-08 21:26:37 +01:00
Robin Müller 000df85556
bump changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-08 21:24:00 +01:00
Robin Müller 1fffcc2229 possiible leak fixes 2023-02-08 21:23:21 +01:00
Robin Müller a419806a05
Merge remote-tracking branch 'upstream/development' into mode_service_fixes
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-08 09:33:13 +01:00
Robin Müller 6445debfa1
bump changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-08 09:24:55 +01:00
Robin Müller 8014e4adf9
mode service fixes 2023-02-08 09:23:48 +01:00
Robin Müller 134d908f26
that stuff is not in upstream yet..
fsfw/fsfw/pipeline/pr-development Build started... Details
2023-02-07 12:52:18 +01:00
Robin Müller 40a9e12416
1000 is a bit much
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-07 12:47:40 +01:00
Robin Müller f39054edd4
introduce warning switch 2023-02-07 12:45:29 +01:00
Robin Müller 5adf89b911
changelog update
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-07 12:41:42 +01:00
Robin Müller c2e6a22dec
important bugfix for RM3100 2023-02-07 12:39:43 +01:00
Robin Müller c8e065a713
comment tweak to event parser can read everything
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-07 12:36:42 +01:00
Robin Müller 3ed49dbae3
Merge remote-tracking branch 'upstream/development' into empty_cds_short_ctor
fsfw/fsfw/pipeline/pr-development Build started... Details
2023-02-07 12:24:02 +01:00
Robin Müller 4cf52d5dfe Merge pull request 'Time Service 9 update' (#726) from eive/fsfw:updates_fixes_pus_time_service into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #726
2023-02-07 12:19:45 +01:00
Robin Müller 539d7aac9e
suppress error if ETL is not found
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-07 12:17:03 +01:00
Robin Müller 0a23f2c85a
correction for printout, add prefix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-07 12:15:44 +01:00
Robin Müller 46230e6c6d
Merge remote-tracking branch 'upstream/development' into updates_fixes_pus_time_service
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-07 12:11:29 +01:00
Robin Müller b22d439300
bump changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-07 12:10:11 +01:00
Robin Müller 7e7b3bbbc9
time stamper empty ctor
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-07 12:07:41 +01:00
Steffen Gaisser 5b92247fbd Merge branch 'development' into add_health_service_announce_all
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-06 16:31:05 +01:00
Steffen Gaisser e2b66df72e Merge pull request 'various fixes related to linux Unittests and memory leaks' (#715) from eive/fsfw:unittest_fix_semaphore into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #715
2023-02-06 16:30:37 +01:00
Steffen Gaisser d9da55fdab Merge branch 'development' into add_health_service_announce_all
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-06 15:03:52 +01:00
Steffen Gaisser 7b828f233a Merge pull request 'I2C Linux: remove duplicate printout' (#718) from eive/fsfw:i2c_remove_duplicate_printout into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #718
2023-02-06 14:54:58 +01:00
Steffen Gaisser c3d1000cd5 Merge branch 'development' into unittest_fix_semaphore
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-06 14:46:45 +01:00
Steffen Gaisser 8e0e57714d Merge pull request 'allow using SO_REUSEADDR and SO_REUSEPORT on TCP server' (#722) from eive/fsfw:tcp_server_reuseaddr_reusesocket into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #722
2023-02-06 14:45:40 +01:00
Robin Müller 066f7a6f9b
remove unreachable code
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-06 14:41:14 +01:00
Steffen Gaisser cc9e54ea6b Merge pull request 'improve srv20 error messages' (#723) from eive/fsfw:srv20_error_msgs into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #723
2023-02-06 14:37:26 +01:00
Steffen Gaisser 31465a4e0f Merge pull request 'MGM: small tweak, gain factor was always them same' (#724) from eive/fsfw:mgm_handler_small_fix into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #724
2023-02-06 14:36:34 +01:00
Steffen Gaisser c0e5d1eb99 Merge branch 'development' into tcp_server_reuseaddr_reusesocket
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-06 14:34:52 +01:00
Robin Müller 3bc5d4a2e0
Merge remote-tracking branch 'upstream/development' into mgm_handler_small_fix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-06 14:25:33 +01:00
Robin Müller b1e9dd9e4a
Merge remote-tracking branch 'upstream/development' into updates_fixes_pus_time_service
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-06 14:24:38 +01:00
Steffen Gaisser ab86599db3 Merge pull request 'Bugfix DHB setNormalDatapoolEntriesInvalid' (#728) from eive/fsfw:bugfix_dhb_set_datapool_entries_invalid into development
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #728
2023-02-06 14:20:34 +01:00
Robin Müller 034eb34c2e
small tweak
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-03 16:05:50 +01:00
Robin Müller 4374c7c4f4
changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-03 16:01:56 +01:00
Robin Müller 5343844be5 bugfix in setNormalDataPoolEntriesInvalid
Do not forget to call read and write to actually update the
validity state
2023-02-03 16:00:55 +01:00
Steffen Gaisser e300490b93 Merge pull request 'Bugfix PUS packet creators Sequence flags' (#727) from eive/fsfw:bugfix_pus_packets_seq_flags into development
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-master This commit looks good Details
Reviewed-on: #727
2023-02-02 17:22:29 +01:00
Robin Müller 0f811777a7
changelog update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-01 20:49:53 +01:00
Robin Müller e93137939e set sequence flags for PUS TMTC to unsegmented 2023-02-01 20:48:26 +01:00
Robin Müller c1f42618db small but important bugfix for health service
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-01 19:59:32 +01:00
Robin Müller 1f88c006d9
update changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-02-01 18:42:09 +01:00
Robin Müller 7e94baceef
service 9 update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
- fix time info event
- add time dump subservice
2023-02-01 18:39:23 +01:00
Robin Müller 61df451dd8
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-02-01 17:41:47 +01:00
Robin Müller 29ea89044e beatufil 2023-02-01 17:35:49 +01:00
Robin Müller e487f5be87
proper announce all impl 2023-02-01 17:35:32 +01:00
Robin Müller 9b05e8f274 re-order fields in TcpConfig
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-30 14:24:48 +01:00
Robin Müller eb223dae88
bump changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2023-01-30 14:20:28 +01:00
Robin Müller 3656662d88 small tweak, gain factory was always them same
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-30 14:18:03 +01:00
Robin Müller fe71978467 improve srv20 error messages
fsfw/fsfw/pipeline/pr-development Build started... Details
2023-01-30 14:15:37 +01:00
Robin Müller b646717a76
bump changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-30 14:11:00 +01:00
Robin Müller 99d8c845f2 allow using SO_REUSEADDR and SO_REUSEPORT on TCP server
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-30 14:07:41 +01:00
Robin Müller 0e7c6b117f Merge pull request 'Service 11 TC Scheduler Robustness Improvements' (#720) from service_11_bugfixes into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #720
2023-01-13 13:33:19 +01:00
Robin Müller d16c5024dc
small include improvement
fsfw/fsfw/pipeline/pr-development This commit looks good Details
fsfw/fsfw/pipeline/head Build queued... Details
2023-01-13 11:15:36 +01:00
Robin Müller a4531e4ced
typo
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-13 10:59:39 +01:00
Robin Müller 97c629ad84
update changelog
fsfw/fsfw/pipeline/head This commit looks good Details
2023-01-13 10:53:36 +01:00
Robin Müller bf12f284fa
add size and crc check for contained TC 2023-01-13 10:53:04 +01:00
Ulrich Mohr ba62c28b64 adding linux ci and fixing problems
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-12 15:40:52 +01:00
Robin Müller 7adb47aecb remove duplicate printout
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2023-01-11 08:45:37 +01:00
Steffen Gaisser 8589f4d63a Merge pull request 'updates for source sequence counter' (#714) from eive/fsfw:source_seq_counter_update into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #714
2022-12-19 15:00:28 +01:00
Robin Müller ca80589233
make get const
fsfw/fsfw/pipeline/pr-development Build queued... Details
2022-12-19 14:58:08 +01:00
Steffen Gaisser f2ebaed092 Merge pull request 'vec getter, reset for content' (#716) from eive/fsfw:get_cmd_exec_read_buf into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #716
2022-12-19 14:56:11 +01:00
Steffen Gaisser f0b89e98df Merge pull request 'printout handling improvements' (#717) from eive/fsfw:i2c_printout_improvements into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #717
2022-12-19 14:45:04 +01:00
Steffen Gaisser 5557d95994 Merge branch 'development' into i2c_printout_improvements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-12-05 14:20:58 +01:00
Steffen Gaisser fc24c9b5d8 Merge branch 'development' into get_cmd_exec_read_buf
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-12-05 14:20:52 +01:00
Ulrich Mohr 7ef69c839c Merge pull request 'small fix to allow teardown handling' (#713) from eive/fsfw:mueller/shutdown_for_failed_to_on_transition into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #713
2022-11-28 14:30:15 +01:00
Steffen Gaisser 9b798d798e Merge pull request 'DLE parser' (#711) from eive/fsfw:mueller/dle_parser into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #711
2022-11-28 14:13:18 +01:00
Robin Müller b13453f46b
vec getter, reset for content
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-28 08:43:54 +01:00
Robin Müller d0e322d7e2
printout handling improvements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-28 08:42:08 +01:00
Robin Müller ecde164f68
updates for source sequence counter
fsfw/fsfw/pipeline/pr-development Build started... Details
2022-11-28 08:30:45 +01:00
Robin Müller 50930b41ba
Merge remote-tracking branch 'upstream/development' into mueller/dle_parser
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-28 08:27:24 +01:00
Steffen Gaisser d6ee2ed400 Merge pull request 'AcceptsTelemetryIF tweaks' (#712) from eive/fsfw:mueller/accepts_tm_if_adaptions into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #712
2022-11-21 16:30:43 +01:00
Steffen Gaisser f2150ff9c2 Merge pull request 'only delete table entry if not nullptr' (#710) from eive/fsfw:mueller/health_helper_bugfix into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #710
2022-11-21 16:24:13 +01:00
Steffen Gaisser 1b9c98f3fe Merge pull request 'uio able to resolve symlinks now' (#709) from eive/fsfw:mueller/uio_mapper_handle_symlinks into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #709
2022-11-21 16:14:36 +01:00
Steffen Gaisser 742152b28e Merge branch 'development' into mueller/accepts_tm_if_adaptions
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:29:35 +01:00
Steffen Gaisser bf4ca56658 Merge branch 'development' into mueller/shutdown_for_failed_to_on_transition
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:29:11 +01:00
Steffen Gaisser 16ffa00155 Merge branch 'development' into mueller/dle_parser
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-11-21 15:28:34 +01:00
Steffen Gaisser 14c681c93a Merge branch 'development' into mueller/uio_mapper_handle_symlinks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:27:06 +01:00
Steffen Gaisser 0958c3a00e Merge branch 'development' into mueller/health_helper_bugfix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:24:51 +01:00
Steffen Gaisser d699d16307 Merge pull request 'SP reader getPacketData is const now' (#708) from eive/fsfw:mueller/sp_reader_const_get_data into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #708
2022-11-21 15:23:39 +01:00
Steffen Gaisser 3b0fed733f Merge branch 'development' into mueller/uio_mapper_handle_symlinks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:23:15 +01:00
Robin Müller 23d3812fe3
this is actually important
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:22:25 +01:00
Robin Müller dec7db3ae2
Merge remote-tracking branch 'upstream/development' into mueller/accepts_tm_if_adaptions
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 15:00:06 +01:00
Robin Müller 65a5abab49
move free call
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 14:56:08 +01:00
Steffen Gaisser 0129783e34 Merge branch 'development' into mueller/sp_reader_const_get_data
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-21 14:50:44 +01:00
Steffen Gaisser cabe0868ec Merge pull request 'move container returnvalues to namespace' (#707) from eive/fsfw:mueller/update_containers_retval into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #707
2022-11-21 14:49:44 +01:00
Robin Müller f05295bada small fix to allow teardown handling
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-17 15:16:29 +01:00
Robin Müller b85ca64690
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:48:28 +01:00
Robin Müller 3bc3da5a8d
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:47:26 +01:00
Robin Müller f8c07ec9cf
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:46:43 +01:00
Robin Müller 8199b8f359
bump changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:45:39 +01:00
Robin Müller cbc8dbcdd4
update changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-11-15 11:44:45 +01:00
Robin Müller d31a5306f0
fix mock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:41:03 +01:00
Robin Müller a236a5ec50
adaptions for AcceptsTelemetryIF 2022-11-15 11:40:26 +01:00
Robin Müller 03620970e2
function to get queue is const now 2022-11-15 11:38:32 +01:00
Robin Müller 8fe8d810e9
only delete table if not nullptr
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:27:31 +01:00
Robin Müller 9483c2809d
DLE parser
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 11:26:53 +01:00
Robin Müller fe3d6bd432
uio able to resolve symlinks now
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 10:56:46 +01:00
Robin Müller 2a842666d5
SP reader getPacketData is const now
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 10:46:46 +01:00
Robin Müller c013fcc1f5
move container retvals to namespace
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-15 10:01:37 +01:00
Steffen Gaisser 1b8fc2af19 Merge pull request 'CFDP Update' (#682) from mueller/cfdp-update-without-handlers into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #682
2022-11-14 15:04:43 +01:00
Robin Müller 72d7c43445
updates for storage manager mock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:57:37 +01:00
Robin Müller ab9b6c8c89
Merge remote-tracking branch 'origin/development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-11-14 14:51:33 +01:00
Steffen Gaisser 69d338f9bb Merge pull request 'Local Pool Update Remove Add Data Ignore Fault Argument' (#701) from eive/fsfw:mueller/local-pool-update-remove-ignore-fault-arg into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #701
2022-11-14 14:49:34 +01:00
Steffen Gaisser 68223869d5 Merge branch 'development' into mueller/local-pool-update-remove-ignore-fault-arg
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:47:07 +01:00
Steffen Gaisser 93fda71989 Merge pull request 'refactoring of serial drivers for linux' (#705) from eive/fsfw:mueller/refactor_serial_linux into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #705
2022-11-14 14:39:41 +01:00
Steffen Gaisser 7b0db08962 Merge branch 'development' into mueller/refactor_serial_linux
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:36:31 +01:00
Steffen Gaisser 0956fbc740 Merge pull request 'fix compiler warning for fixed array list copy ctor' (#704) from eive/fsfw:mueller/fixed_array_list_copy_ctor into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #704
2022-11-14 14:28:46 +01:00
Robin Müller b48e0fdc0d
Merge remote-tracking branch 'origin/development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-11-14 14:25:36 +01:00
Steffen Gaisser 1d084ee22f Merge branch 'development' into mueller/fixed_array_list_copy_ctor
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:21:04 +01:00
Robin Müller 1bea2344f6
remove using declaraction
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:21:00 +01:00
Steffen Gaisser d7e16a67a7 Merge pull request 'Windows Tweaks' (#691) from eive/fsfw:windows-tweaks-upstream into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #691
2022-11-14 14:18:47 +01:00
Steffen Gaisser 6021d897b8 Merge branch 'development' into windows-tweaks-upstream
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:13:57 +01:00
Robin Müller 83a6f0b5f8
reenable setup function call
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:12:26 +01:00
Robin Müller a9c6c088f2
remove leftover debugging code
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-14 14:08:38 +01:00
Robin Müller b6a3c206cc
smaller include tweaks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-11 11:34:58 +01:00
Robin Müller 5b352978c5
rename cookie class
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-11 11:33:35 +01:00
Robin Müller 819a298b19
refactoring of serial drivers for linux
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-10 17:50:21 +01:00
Robin Müller 16246d6ece
replace other memcpy
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-10 16:18:36 +01:00
Robin Müller 5c84f12440 this not crash
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-10 16:15:52 +01:00
Robin Müller 83c2c4825c fix compiler error for fixed array list copy ctor
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-11-10 15:54:03 +01:00
Robin Müller c913fe40bf tweaks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-09 17:54:08 +01:00
Steffen Gaisser 70ec08bf1d Merge pull request 'missing include' (#703) from KSat/fsfw:mueller/time_reader_include into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #703
2022-11-09 16:59:25 +01:00
Steffen Gaisser ef23665d9c Merge branch 'development' into mueller/time_reader_include 2022-11-09 16:39:55 +01:00
Robin Müller eefc122292 Merge pull request 'defaultconfig did not build anymore' (#702) from mohr/fix_defaultconfig into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #702
2022-11-09 14:12:41 +01:00
Robin Müller bee33526a1
missing include
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-11-09 13:49:40 +01:00
Robin Müller f715b65d6e
Merge remote-tracking branch 'upstream/development' into mueller/local-pool-update-remove-ignore-fault-arg
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-28 10:06:04 +02:00
Robin Müller c11af63015
Merge remote-tracking branch 'origin/development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-10-28 10:04:21 +02:00
Ulrich Mohr 11a22577be defaultconfig did not build anymore
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-25 11:28:13 +02:00
Steffen Gaisser dc1583c932 Merge branch 'development' into windows-tweaks-upstream
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 17:10:44 +02:00
Steffen Gaisser 94f1f1f908 Merge pull request 'Refactor TM and TC acceptor interfaces' (#684) from mueller/refactor-accepts-tc-tm-if into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #684
2022-10-24 17:10:03 +02:00
Robin Müller 81a7de2814
make dtor virtual
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-10-24 16:39:32 +02:00
Robin Müller d26f230bee
builds
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 15:43:20 +02:00
Robin Müller 4db124c680
ignore fault 2022-10-24 15:41:29 +02:00
Steffen Gaisser 955579c856 Merge branch 'development' into mueller/refactor-accepts-tc-tm-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 14:57:38 +02:00
Robin Müller 2df66c9304 Merge branch 'mueller/local-pool-update' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/local-pool-update
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-10-24 14:39:11 +02:00
Robin Müller 54ad6b3016
add some docs 2022-10-24 14:39:05 +02:00
Steffen Gaisser 73e313c35b Merge branch 'development' into mueller/local-pool-update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 14:35:24 +02:00
Steffen Gaisser c6585c8645 Merge pull request 'important bugfix for linux i2c device com IF' (#700) from eive/fsfw:mueller/i2c-com-if-bugfix into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #700
2022-10-24 14:35:01 +02:00
Robin Müller dd2f42d22b Merge branch 'development' into mueller/local-pool-update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 14:34:56 +02:00
Robin Müller d8a4675842
bump changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 14:30:14 +02:00
Robin Müller 1164c21ddd
iter not a member anymore, more bugfixes
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-24 14:23:43 +02:00
Robin Müller 77b1a85b47 important bugfix for i2c device com IF
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-20 14:24:40 +02:00
Robin Müller 652c31a683 missing validity check
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-10-17 17:25:27 +02:00
Robin Müller bfe120636c
this should have the same effect
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-17 15:08:46 +02:00
Steffen Gaisser a8041f220f Merge branch 'development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-17 14:44:28 +02:00
Robin Müller dd636b186b size check bugfix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-17 14:30:27 +02:00
Steffen Gaisser 3349fc36f8 Merge branch 'development' into windows-tweaks-upstream
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-17 14:20:48 +02:00
Steffen Gaisser f3e9277e59 Merge branch 'development' into mueller/refactor-accepts-tc-tm-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-10 15:45:05 +02:00
Steffen Gaisser d592f1ecbc Merge pull request 'Minor API tweak' (#689) from eive/fsfw:mueller/smaller-tweaks into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #689
2022-10-10 15:10:57 +02:00
Ulrich Mohr 6ec18171a8 Merge pull request 'now that doc server is up, remove markdown files' (#688) from mueller/remove-markdown-docs into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #688
2022-10-10 15:04:11 +02:00
Steffen Gaisser 518dcdef4b Merge branch 'development' into mueller/smaller-tweaks
fsfw/fsfw/pipeline/pr-development Build started... Details
2022-10-10 15:03:04 +02:00
Ulrich Mohr d9730032fd Merge pull request 'DHB Countdown Bug' (#693) from eive/fsfw:mueller/dhb-countdown-bug into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #693
2022-10-10 14:55:43 +02:00
Steffen Gaisser b3ac72b7db Merge pull request 'missing retval conv' (#697) from mueller/missing-retval-conversion into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #697
2022-10-10 14:54:26 +02:00
Steffen Gaisser cd0cb43412 Merge branch 'development' into mueller/missing-retval-conversion
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-10 14:46:10 +02:00
Steffen Gaisser 32c12b3dbf Merge pull request 'small fix for helper' (#698) from mueller/small-helper-script-fix into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #698
2022-10-10 14:43:59 +02:00
Steffen Gaisser 3e9acf476e Merge branch 'development' into mueller/small-helper-script-fix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-10 14:25:49 +02:00
Steffen Gaisser 99101ce2bf Merge pull request 'hotfix' (#699) from eive/fsfw:mueller/dhb-some-more-fixes into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #699
2022-10-10 14:22:30 +02:00
Robin Müller 6b991045f7 Merge branch 'development' into mueller/smaller-tweaks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-10 13:41:47 +02:00
Robin Müller df06064df0 Merge branch 'development' into windows-tweaks-upstream
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-10 13:41:09 +02:00
Robin Müller 337cb0d6c9
hotfix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-10 10:21:17 +02:00
Robin Müller c283e0c988
okay this is correct
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-04 11:02:08 +02:00
Robin Müller 448d20f3bd
small fix for helper
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-04 10:55:46 +02:00
Robin Müller 2316728d74 Merge branch 'development' into mueller/dhb-countdown-bug
fsfw/fsfw/pipeline/pr-development Build started... Details
2022-10-04 10:53:26 +02:00
Robin Müller 6f562e5f3e
missing retval conv
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-10-04 10:25:58 +02:00
Ulrich Mohr 176f243194 Merge pull request 'Switch to new documentation server' (#694) from mohr/documentation_ci into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #694
2022-09-30 15:05:16 +02:00
Ulrich Mohr d964fa2107 Merge branch 'development' into mohr/documentation_ci
fsfw/fsfw/pipeline/pr-development This commit looks good Details
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-30 14:50:20 +02:00
Ulrich Mohr 7b5ae6a445 done?
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-30 14:40:59 +02:00
Ulrich Mohr 8e362a000c Revert "one last check"
fsfw/fsfw/pipeline/head This commit looks good Details
This reverts commit 7877776e24.
2022-09-30 14:36:25 +02:00
Ulrich Mohr 7877776e24 one last check
fsfw/fsfw/pipeline/head Something is wrong with the build of this commit Details
2022-09-30 14:34:25 +02:00
Robin Müller 3de0ae5a48 DHB bug
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-29 17:22:44 +02:00
Robin Müller e0c780f21c better comment
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-28 09:59:31 +02:00
Robin Müller 876815b1c9 another small windows tweak 2022-09-28 09:59:22 +02:00
Robin Müller b0ecf87580 last windows tweak 2022-09-28 09:59:12 +02:00
Robin Müller 68ce8b5b08 tweaks to make windows build again 2022-09-28 09:59:02 +02:00
Robin Müller fe03da6def
Merge remote-tracking branch 'origin/development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 15:38:45 +02:00
Steffen Gaisser 95ac53c417 Merge branch 'development' into mueller/smaller-tweaks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:40:29 +02:00
Steffen Gaisser 62f638a3d2 Merge pull request 'doc corrections' (#687) from mueller/doc-corrections into development
fsfw/fsfw/pipeline/head There was a failure building this commit Details
Reviewed-on: #687
2022-09-26 14:38:39 +02:00
Steffen Gaisser bd64591f30 Merge branch 'development' into mueller/smaller-tweaks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:34:38 +02:00
Steffen Gaisser e6a877f048 Merge branch 'development' into mueller/doc-corrections
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:26:48 +02:00
Steffen Gaisser ea8c557ee8 Merge pull request 'better error printout' (#686) from eive/fsfw:mueller/local-pool-obj-base-better-warning into development
fsfw/fsfw/pipeline/head There was a failure building this commit Details
Reviewed-on: #686
2022-09-26 14:26:20 +02:00
Steffen Gaisser 0bdd780f82 Merge branch 'development' into mueller/doc-corrections
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:17:24 +02:00
Steffen Gaisser 9ec397c8b7 Merge branch 'development' into mueller/local-pool-obj-base-better-warning
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:17:19 +02:00
Robin Müller c54d9d7ba6
add some tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:15:11 +02:00
Steffen Gaisser 30c03c110c Merge pull request 'include correction' (#683) from mueller/service-interface-include-correction into development
fsfw/fsfw/pipeline/head There was a failure building this commit Details
Reviewed-on: #683
2022-09-26 14:14:57 +02:00
Steffen Gaisser 69f1be263a Merge branch 'development' into mueller/local-pool-obj-base-better-warning
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:10:21 +02:00
Robin Müller c7b5309dcb Merge branch 'development' into mueller/service-interface-include-correction
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-26 14:08:38 +02:00
Ulrich Mohr 775d5632de update to ssh connection to doc server
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-23 20:26:45 +02:00
Ulrich Mohr 4f3361eb2b another ci check
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-23 18:33:47 +02:00
Ulrich Mohr 9e6c1d60e5 another ci check
fsfw/fsfw/pipeline/pr-development This commit looks good Details
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-23 17:54:41 +02:00
Ulrich Mohr 12d0c23c13 Revert "testing deployment of documentation"
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
This reverts commit 5488ee715f.
2022-09-23 17:31:17 +02:00
Ulrich Mohr 5c3bb13834 Revert "testing deployment of both development and master doc"
This reverts commit c0000a8635.
2022-09-23 17:31:07 +02:00
Ulrich Mohr 292fe3e5e4 forgot epilog file
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-23 17:11:57 +02:00
Ulrich Mohr 33530f2819 adding Impressum and Datenschutz to lcov output
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-23 17:04:35 +02:00
Ulrich Mohr c0000a8635 testing deployment of both development and master doc
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-23 14:14:10 +02:00
Ulrich Mohr 5488ee715f testing deployment of documentation
fsfw/fsfw/pipeline/head Something is wrong with the build of this commit Details
2022-09-23 14:07:12 +02:00
Ulrich Mohr 0fea22d031 switching to rsync and deploying to web documentation 2022-09-23 14:06:28 +02:00
Ulrich Mohr 3b8ca09299 prepared docker for documentation rsync
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-23 13:46:03 +02:00
Ulrich Mohr 9a2146fa2d added impressum and datenschutz in sphinx documentation
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-23 11:36:29 +02:00
Robin Müller 558550ecb9 Merge branch 'development' into mueller/smaller-tweaks
fsfw/fsfw/pipeline/pr-development Build queued... Details
2022-09-16 18:37:39 +02:00
Robin Müller 72172a972b
update changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-16 18:24:23 +02:00
Robin Müller b4b11ebd3b fixes and tweaks 2022-09-16 18:20:42 +02:00
Robin Müller 6f8ccf83e7
use singular enum names
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 18:41:15 +02:00
Robin Müller 67f1cd0b5f Merge branch 'development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 18:35:22 +02:00
Robin Müller 54762232a4
refactoring and condition code to strin converter
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 16:46:09 +02:00
Robin Müller 2fee2fdff5
unittest which would have caught this
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 16:20:52 +02:00
Robin Müller 954c749de0
additional docs
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 16:02:46 +02:00
Robin Müller bcbbc9763a
markdown update not required, will be removed
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 14:00:01 +02:00
Robin Müller 0042372cb6
now that doc server is up, remove markdown files
fsfw/fsfw/pipeline/head Build queued... Details
fsfw/fsfw/pipeline/pr-development Build started... Details
2022-09-15 13:58:13 +02:00
Robin Müller 8dea13742f
update rst file
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 13:57:39 +02:00
Robin Müller 0f027d29d2 doc corrections
fsfw/fsfw/pipeline/head Build queued... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 13:53:42 +02:00
Robin Müller 131e3ff1e3 Revert "doc corrections"
fsfw/fsfw/pipeline/head This commit looks good Details
This reverts commit 423a9540ed.
2022-09-15 13:52:28 +02:00
Robin Müller 423a9540ed
doc corrections
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 13:51:59 +02:00
Robin Müller ce7146e468
printout tweak
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 13:40:12 +02:00
Robin Müller a681a4a797 better error printout
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 13:38:38 +02:00
Robin Müller e585c1d84a
Merge remote-tracking branch 'origin/development' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 11:02:04 +02:00
Robin Müller 83b7b8707c
Merge remote-tracking branch 'origin/development' into mueller/refactor-accepts-tc-tm-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 11:01:19 +02:00
Robin Müller 4002b74ea2 Merge branch 'development' into mueller/service-interface-include-correction
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 11:01:06 +02:00
Robin Müller 4f7f8310c9
Merge remote-tracking branch 'origin/development' into mueller/local-pool-update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 11:00:43 +02:00
Robin Müller 1a833e2d45
another missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:59:10 +02:00
Robin Müller 8df6d934d7
another missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:56:52 +02:00
Robin Müller 5363868120
added another missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:54:45 +02:00
Robin Müller 36cf59cc8e
Merge branch 'mueller/refactor-accepts-tc-tm-if' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 10:52:13 +02:00
Robin Müller 97fec909f2
Merge branch 'mueller/local-pool-update' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 10:50:35 +02:00
Robin Müller 1db77753e3
Merge remote-tracking branch 'origin/development' into mueller/local-pool-update
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 10:49:24 +02:00
Robin Müller 8501477a78
Merge remote-tracking branch 'origin/development' into mueller/refactor-accepts-tc-tm-if
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 10:48:42 +02:00
Robin Müller 6eea711d9f Merge branch 'development' into mueller/service-interface-include-correction
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 10:48:28 +02:00
Robin Müller 9a181aa6a8
another missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:47:50 +02:00
Robin Müller 655c944c0e
another missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:45:35 +02:00
Robin Müller 2e310fca8d
add another missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:43:45 +02:00
Robin Müller 37390dfc74
add missing changelog entry
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-15 10:42:35 +02:00
Robin Müller 75ddfdc65d
Merge branch 'mueller/refactor-accepts-tc-tm-if' into mueller/cfdp-update-without-handlers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 10:41:16 +02:00
Robin Müller 1efc0d2855
update changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 10:38:40 +02:00
Robin Müller e063b44899
add link to PR
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-15 10:32:38 +02:00
Robin Müller b3c0e24611
bump changelog
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-15 10:31:55 +02:00
Robin Müller ab7c3480f5
storage manager update 2022-09-15 10:30:22 +02:00
Robin Müller 237e29cc59
all necessary modifications
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-14 20:21:03 +02:00
Robin Müller 0849c8a08d
adding files manually 2022-09-14 20:10:41 +02:00
Robin Müller 9d626e0a5d
include correction
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-14 19:59:02 +02:00
Robin Müller 723f8749d4
bump changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-14 19:52:33 +02:00
Robin Müller 2e27a85c95
finished renaming operation
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-14 19:48:11 +02:00
Robin Müller 73f1917c81
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-14 19:26:07 +02:00
Robin Müller 3a52454949
removed handlers
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-14 19:15:52 +02:00
Robin Müller ac7dc55fc1
fix unittest
fsfw/fsfw/pipeline/pr-development This commit looks good Details
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-14 19:07:17 +02:00
Robin Müller 389d804735 Merge remote-tracking branch 'origin/development' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-14 19:05:59 +02:00
Robin Müller 44615c150b
add printout capabilities
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-14 14:00:20 +02:00
Robin Müller 0ce568ad26 Merge pull request 'publish documentation for development and master branch' (#681) from mohr/documentation_ci into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #681
2022-09-14 11:22:35 +02:00
Ulrich Mohr 6970068d56 small fix in README
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-13 18:19:35 +02:00
Ulrich Mohr af282c7d3e reverting to only publish development
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 18:17:56 +02:00
Ulrich Mohr 21a9d89fb3 pushing code coverage report to documentation server
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 18:14:26 +02:00
Ulrich Mohr 3257935150 fixing scp yet again again
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 18:06:16 +02:00
Ulrich Mohr f34cf9095d fixing scp yet again
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 18:02:38 +02:00
Ulrich Mohr 24ecf125a3 fixing scp command again
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 17:55:12 +02:00
Ulrich Mohr 6451a16888 fixing scp command
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-13 17:51:01 +02:00
Robin Müller 4dadef34fd Merge remote-tracking branch 'origin/development' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-13 15:35:59 +02:00
Robin Müller 382543fc59
important bugfix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-13 15:26:14 +02:00
Ulrich Mohr fa5605c959 testing Jenkinsfile
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-13 14:50:37 +02:00
Robin Müller a1ea671e2f
header include update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-13 14:46:41 +02:00
Ulrich Mohr 8e835be55f testing Jenkinsfile
fsfw/fsfw/pipeline/head Something is wrong with the build of this commit Details
2022-09-13 14:46:12 +02:00
Ulrich Mohr 9bd600c488 testing Jenkinsfile
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-13 14:32:10 +02:00
Ulrich Mohr 9c7248e78e typo in Dockerfile
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 14:20:30 +02:00
Ulrich Mohr ecf51b2913 testing Jenkinsfile
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-13 14:09:08 +02:00
Ulrich Mohr 8bbde05413 add jenkins user in docker so that ssh will work
fsfw/fsfw/pipeline/head Something is wrong with the build of this commit Details
2022-09-13 14:08:04 +02:00
Ulrich Mohr d79b5348d8 testing Jenkinsfile
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-13 14:00:36 +02:00
Ulrich Mohr 92e3ab04f3 testing Jenkinsfile
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-09-13 13:54:23 +02:00
Ulrich Mohr 003a6d00fa Documentation build tools in docker
fsfw/fsfw/pipeline/head This commit looks good Details
2022-09-13 13:13:18 +02:00
Robin Müller 26b3e5a013
fix misc def config
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-12 15:14:42 +02:00
Robin Müller 3e9b47d3a2
update docs release in conf.py
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-12 15:12:26 +02:00
Ulrich Mohr 9ee1896553 Merge pull request 'Refactor Local Pool API' (#667) from mueller/refactor-local-pool-api into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #667
2022-09-12 14:32:08 +02:00
Ulrich Mohr a5b5523111 Merge pull request 'Refactor TMTC Stack, improve test framework' (#655) from mueller/refactor-tmtc-stack into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #655
2022-09-12 14:31:22 +02:00
Ulrich Mohr 62cd39e573 Merge pull request 'SerialBufferAdapter refactoring' (#677) from mueller/refactor-serial-buffer-adapter into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #677
2022-09-12 14:30:51 +02:00
Ulrich Mohr 278ed36db8 Merge pull request 'bump catch2 version' (#678) from mueller/bump-catch2 into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #678
2022-09-12 14:24:28 +02:00
Ulrich Mohr aed30d54ef Merge pull request 'remove bsp specific code' (#679) from mueller/remove-bsp-specific-code into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #679
2022-09-12 14:23:48 +02:00
Ulrich Mohr 1126db2c8a Merge pull request 'remove user includes' (#675) from mueller/remove-user-includes into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #675
2022-09-12 14:15:18 +02:00
Ulrich Mohr a64a04d7fe Merge branch 'development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development Build queued... Details
2022-09-12 14:14:49 +02:00
Robin Müller 80467bf097 Merge pull request 'sif::buffer: if disabeld do not print' (#680) from mohr/enableDisable into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #680
2022-09-12 14:12:13 +02:00
Robin Müller 6a6aa7fdd6 Merge branch 'development' into mohr/enableDisable
fsfw/fsfw/pipeline/pr-development Build queued... Details
2022-09-12 14:11:38 +02:00
Ulrich Mohr 7e379d2159 Merge pull request 'provide a weak print char impl' (#674) from mueller/provide-weak-print-char into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #674
2022-09-12 14:10:31 +02:00
Robin Müller 6ae709acc3 Merge branch 'development' into mueller/remove-user-includes
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-12 14:07:09 +02:00
Robin Müller 34dd478848
helper class OneRemoteConfigProvider
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-08 16:25:19 +02:00
Robin Müller b73754dfd6
implemented basic PDU forwarding
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-08 12:07:16 +02:00
Robin Müller ec1e07b466
some more returncodes
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-08 11:53:06 +02:00
Ulrich Mohr d52f335455 sif::buffer: if disabeld do not print
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development Build started... Details
2022-09-08 11:47:40 +02:00
Robin Müller c87667c03f
some API improvements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-08 11:26:17 +02:00
Robin Müller 683cf8a047
some additional tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-08 11:08:40 +02:00
Robin Müller 11a4b27642
allow deferred init
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-07 18:20:38 +02:00
Robin Müller 770463e618
remove old code
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-07 18:04:46 +02:00
Robin Müller 04b619a15c
update header as well
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-07 17:58:49 +02:00
Robin Müller 282704e0fd
remove bsp specific code
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-07 17:54:04 +02:00
Robin Müller 8971eb386e
retval replacement
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-07 17:40:22 +02:00
Robin Müller c54caf134a
segmented file transfer working
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 16:33:38 +02:00
Robin Müller aebd401d5b
start segmentes file unittest
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 16:14:39 +02:00
Robin Müller 67439b4285
refactor away some duplication
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 16:03:26 +02:00
Robin Müller 07ef9a0ec3
bump catch2 version
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development Build queued... Details
2022-09-06 15:47:04 +02:00
Robin Müller af851165b4
continue basic small file transfer unittest
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 15:45:51 +02:00
Robin Müller 94c9800fae
refactored out generic metadata part
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 14:33:01 +02:00
Robin Müller ba046cebd9
empty file unittest complete
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 14:06:22 +02:00
Robin Müller 428da017ba
empty file transfer unittest almost done
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 13:45:43 +02:00
Robin Müller 806ae9b41a
check that indication was called
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 13:16:00 +02:00
Robin Müller 7b97c8a182
continue tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-06 11:56:05 +02:00
Robin Müller 2e4cdb7366
additional filesystem abstractions
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 17:42:56 +02:00
Robin Müller 5a3f05fa79
return struct ref instead of code
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 17:20:29 +02:00
Robin Müller 80464f2a81
Merge branch 'mueller/refactor-serial-buffer-adapter' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:38:58 +02:00
Robin Müller 16688316a8
rename setBuffer to setConstBuffer
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development Build started... Details
2022-09-05 16:31:56 +02:00
Robin Müller ead22c8bd6
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:29:10 +02:00
Robin Müller 3583e30ee6
rename const buf setter
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:27:20 +02:00
Robin Müller 61db018a74
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:26:29 +02:00
Robin Müller 1e395dc402
set buffer expects const pointer now
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:25:02 +02:00
Robin Müller afc48726b9
comment out check
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:23:13 +02:00
Robin Müller ece5ae59e4
compile fixes 2022-09-05 16:22:41 +02:00
Robin Müller a5d1c38b22
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-05 16:19:34 +02:00
Robin Müller f5421e9abd
refactor tm helper
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 16:10:06 +02:00
Robin Müller 4c3f9feb93
explicit include
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-05 16:06:24 +02:00
Robin Müller b7ed8ff390 Merge branch 'mueller/refactor-tmtc-stack' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-05 16:02:41 +02:00
Robin Müller 75dc7a405d
del data wrapper 2022-09-05 16:02:32 +02:00
Robin Müller b7a1f79d5b
update FSFWCnfig.h
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 15:36:12 +02:00
Robin Müller f0b7a103d4
refactor ctors 2022-09-05 15:30:53 +02:00
Robin Müller fb96250e36
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-05 14:50:43 +02:00
Robin Müller ee93f4a4ca Merge branch 'development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 14:46:51 +02:00
Robin Müller d64ad71529
Some improvements for time stamper API
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 14:44:35 +02:00
Robin Müller 5ce1e76723
init dest handler unittests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-05 14:20:01 +02:00
Robin Müller 26bc80964e Merge branch 'development' into mueller/provide-weak-print-char
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 14:14:06 +02:00
Steffen Gaisser eb03bf52a6 Merge pull request 'better warning for missing include paths' (#676) from mueller/better-missing-inc-path-warning into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #676
2022-09-05 14:13:19 +02:00
Robin Müller 52802f127b
basic test stubs
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 11:40:22 +02:00
Robin Müller d2c4d546c3
first dest handler unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
- Add new mock class for event reporting proxies
- Add basic setup for unittesting the CFDP destination handler
2022-09-05 11:37:41 +02:00
Robin Müller 0dd2b5ddd4
need an event reporter proxy
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 11:19:23 +02:00
Robin Müller 3dfc882226
impl finish PDU sending
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 11:03:25 +02:00
Robin Müller b984128de5
stub for creating finished PDU
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 10:30:55 +02:00
Robin Müller 134d5a1411
basic impl which allows naked no closure file transfer
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-05 10:26:35 +02:00
Robin Müller 3147f67fbd
basic dest handler framework almost complete
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 18:03:52 +02:00
Robin Müller 108e7737e2
continued dest handler
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 17:54:25 +02:00
Robin Müller c90d1c8071
continue dest handler impl
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 14:39:53 +02:00
Robin Müller eae75b29e7
start file data pdu processing
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 11:58:16 +02:00
Robin Müller dc79b7ba00
delete metadata after processing
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 11:38:46 +02:00
Robin Müller db84dcd3ce
afmt
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 11:12:16 +02:00
Robin Müller 80355910ee
better warning
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 09:05:10 +02:00
Robin Müller 04800df31e
another user-level-include
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 09:04:37 +02:00
Robin Müller 1e85cdadfd
remove user includes
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 08:55:33 +02:00
Robin Müller ebc02673dd
provide a weak print char impl
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-02 08:50:39 +02:00
Robin Müller 935f35a40d Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 17:52:17 +02:00
Robin Müller 348af0124b Merge remote-tracking branch 'origin/development' into mueller/cfdp-routers 2022-09-01 17:52:11 +02:00
Robin Müller 9202c6c17f Merge branch 'mueller/refactor-tmtc-stack' into mueller/refactor-local-pool-api
fsfw/fsfw/pipeline/pr-development Build queued... Details
2022-09-01 17:51:50 +02:00
Robin Müller 5f8c549993 Merge remote-tracking branch 'origin/development' into mueller/refactor-local-pool-api 2022-09-01 17:51:44 +02:00
Robin Müller 04bff7a522
test fix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 17:51:09 +02:00
Robin Müller 5c20cc804e Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-09-01 17:48:40 +02:00
Ulrich Mohr eb8e236cd4 Merge pull request 'Bugfix for Space Packet Parser' (#673) from eive/fsfw:mueller/fixes-tmtc-server-sp-parser into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #673
2022-09-01 14:12:16 +02:00
Ulrich Mohr 7dec45ccf2 Merge pull request 'Service 11 regression' (#670) from eive/fsfw:mueller/service-11-issues into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #670
2022-09-01 11:59:18 +02:00
Ulrich Mohr 2b01e86f9c one small additional precaution
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 11:56:07 +02:00
Ulrich Mohr 60fd3d43c0 Merge pull request 'DHB TM handler alternative API raw buffer' (#671) from mueller/dhb-handle-device-tm-2 into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #671
2022-09-01 11:22:17 +02:00
Robin Müller 67980cb592 Merge branch 'development' into mueller/fixes-tmtc-server-sp-parser
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 11:21:02 +02:00
Ulrich Mohr 3010f2f925 Merge pull request 'DHB set action commander before buildCommandFromCommand' (#672) from eive/fsfw:mueller/dhb-set-action-commander-before-building-cmd into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #672
2022-09-01 11:18:32 +02:00
Robin Müller 01651f0521 more simplfications
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 10:52:48 +02:00
Robin Müller c7f300671f
update header
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 10:45:10 +02:00
Robin Müller 7d3223d766
add comment blocks 2022-09-01 10:44:57 +02:00
Robin Müller 7ae82a5cb4
do not cache previous recipient
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 08:58:18 +02:00
Robin Müller 28ecd0e5c6
bugfix for SP parser
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-09-01 08:51:12 +02:00
Robin Müller 7345c18b04 small fix which allows sending action reply immediately
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-31 16:50:48 +02:00
Robin Müller 0de7b66218
new retval for permission errors
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-31 13:26:44 +02:00
Robin Müller 158007fa7f
const correct API
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-31 00:02:25 +02:00
Robin Müller ab719a3e59
alternative solution
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 23:38:55 +02:00
Robin Müller 64a7fde301 this is annoying
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 15:19:01 +02:00
Robin Müller 9131ca688b
make two helper functions protected
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-30 15:01:10 +02:00
Robin Müller 8e6cee7761
Merge branch 'mueller/data-wrapper' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-30 13:46:03 +02:00
Robin Müller c756297e5c
data wrapper update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 13:39:44 +02:00
Robin Müller 0f27c7e7e7
extend data wrapper
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 13:24:29 +02:00
Robin Müller 20d42add03
add new data wrapper helper type
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 12:07:09 +02:00
Robin Müller a9277622ce
move data wrapper
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 12:04:15 +02:00
Robin Müller 80e8511a43 Merge branch 'mueller/cfdp-routers' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 11:21:12 +02:00
Robin Müller 4a06f11582 Merge branch 'mueller/refactor-local-pool-api' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 11:12:59 +02:00
Robin Müller 32c53b932d
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers 2022-08-30 11:12:53 +02:00
Robin Müller aea9db75cb
better name
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 11:12:06 +02:00
Robin Müller 9fedd03ed8
use cfg struct for local pool API
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 11:02:21 +02:00
Robin Müller 10fc4dd89d Merge branch 'mueller/refactor-tmtc-stack' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-30 10:58:06 +02:00
Robin Müller 0cc8af5eb0
afmt 2022-08-30 10:57:17 +02:00
Robin Müller 92d65aa3a5
use old lpm api 2022-08-30 10:57:02 +02:00
Robin Müller 342a56410c
delete commented function 2022-08-30 10:28:55 +02:00
Robin Müller 2cab73d972 avoid duplicate code
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 20:09:28 +02:00
Robin Müller 9a9085b9e6
avoid duplicate code 2022-08-29 20:08:59 +02:00
Robin Müller cb23911ccd
default initialization of CDS short struct
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 15:30:45 +02:00
Robin Müller b499dedd76
remove TODO
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 15:27:53 +02:00
Robin Müller 1bb487373d Merge branch 'mueller/refactor-tmtc-stack' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 15:20:51 +02:00
Robin Müller 3bffb4f968
fix for static fw obj setter 2022-08-29 15:20:33 +02:00
Steffen Gaisser 6bcb208968 Merge branch 'development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 15:11:50 +02:00
Steffen Gaisser 6c2b5ab39e Merge pull request 'improvements for auto-formatter script' (#665) from eive/fsfw:mueller/update-afmt-script into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #665
2022-08-29 15:06:56 +02:00
Steffen Gaisser a7039bad41 Merge pull request 'PUS Service 11: Additional Safety Check' (#666) from eive/fsfw:mueller/service-11-tweak into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #666
2022-08-29 14:59:24 +02:00
Ulrich Mohr 6605ffb6b1 Fixing check in Srv 11 Filer
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 14:55:50 +02:00
Ulrich Mohr e2e0190cae Revert "additional safety check"
This reverts commit fd278e410b.
2022-08-29 14:51:14 +02:00
Robin Müller fd278e410b additional safety check
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-29 13:18:54 +02:00
Robin Müller ff4cbea571
improvements for auto-formatter script
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-24 17:44:55 +02:00
Robin Müller 81a7c21cd1
continued router component
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-24 17:31:26 +02:00
Robin Müller 267466be9d
pass const references to user handler now
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-24 15:43:58 +02:00
Robin Müller 2c730c8632
use const struct ref instead
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-24 12:11:03 +02:00
Robin Müller eb29b79467
some more docs
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-24 08:44:20 +02:00
Robin Müller 26ea6606bf
metadata recvd indication
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-23 20:56:09 +02:00
Robin Müller b1bd631322
implemented metadata handler
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-23 20:30:41 +02:00
Robin Müller 9441b4a70e
continue dest handler
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-23 19:37:30 +02:00
Robin Müller 95457b1760 Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-22 16:38:41 +02:00
Robin Müller a46d8c34d9
small changelog update
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-22 16:37:53 +02:00
Robin Müller d12c59c8ac
all retval replacements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-22 16:35:53 +02:00
Robin Müller 9e5dddf79c
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-22 16:24:20 +02:00
Robin Müller ba5c6410d6
tests running again
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-22 16:23:36 +02:00
Robin Müller 52f8c5038b
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-22 16:21:41 +02:00
Robin Müller 10f34e5a48
Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack-with-retval-refactoring
fsfw/fsfw/pipeline/head There was a failure building this commit Details
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-22 15:57:22 +02:00
Robin Müller dab1b1d067
apply auto-formatter
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-08-22 15:02:53 +02:00
Robin Müller 8c8d1cfa84
apply auto-formatter
fsfw/fsfw/pipeline/head This commit looks good Details
2022-08-22 15:02:16 +02:00
Robin Müller 2a4ab0af7b
Merge branch 'mueller/refactor-tmtc-stack' into mueller/refactor-tmtc-stack-with-retval-refactoring
fsfw/fsfw/pipeline/head There was a failure building this commit Details
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-22 14:17:24 +02:00
Steffen Gaisser 7c59df3f1c Merge pull request 'returnvalue namespace' (#659) from mueller/expand-retval-if into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #659
2022-08-22 14:14:06 +02:00
Robin Müller 3b33b429e6 Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-18 11:21:16 +02:00
Robin Müller ff6de8e378 important bugfix for verif reporter
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-18 11:20:27 +02:00
Robin Müller 11a699c3ce
a list should do the job
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-17 18:49:51 +02:00
Robin Müller 6930656d4e
added some more basic tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-17 17:09:39 +02:00
Robin Müller 0bb82e0da2
add fs mock feed function
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-17 16:47:46 +02:00
Robin Müller 12c452e7ce
finished host FS unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-17 16:10:52 +02:00
Robin Müller 23f514039a
host filesystem continued
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-17 11:39:15 +02:00
Robin Müller 2e52d7a31d Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 17:23:52 +02:00
Robin Müller 239d053562
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 17:23:10 +02:00
Robin Müller 875174c4ad
better name for global object
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 17:17:45 +02:00
Robin Müller 8fd8a37f59
flip verif reporter ctor arguments
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 17:10:48 +02:00
Ulrich Mohr 217276d50c renamed returnvalue header
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 12:48:22 +02:00
Ulrich Mohr d2ac3603a5 some more occurences
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 12:29:53 +02:00
Ulrich Mohr f63f3fa564 more occurences in comments
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 12:12:21 +02:00
Robin Müller fc34d56239
cicd fix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-16 01:12:50 +02:00
Robin Müller 1037102349
merge retval refactoring
fsfw/fsfw/pipeline/head This commit looks good Details
2022-08-16 01:08:26 +02:00
Robin Müller 221361eb9c
Merge remote-tracking branch 'origin/development' into mueller/expand-retval-if
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-15 20:32:38 +02:00
Robin Müller 7f9269b387
fix for def cfg
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-15 20:30:59 +02:00
Robin Müller 4224c3d009
bump changelog
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-15 20:29:23 +02:00
Robin Müller 62fe75ee40
perform renaming 2022-08-15 20:28:16 +02:00
Robin Müller e76e109bdb Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 19:17:15 +02:00
Robin Müller 9e064fe800
fix unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 19:16:31 +02:00
Robin Müller 2339c48756
Merge branch 'mueller/refactor-tmtc-stack' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-15 19:07:22 +02:00
Robin Müller d7ec04bf4b
Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-15 19:05:50 +02:00
Ulrich Mohr adcc375f25 Merge pull request 'New UnsignedByte Field class' (#660) from mueller/new-object-id-class into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #660
2022-08-15 15:22:30 +02:00
Robin Müller 94a718ff19 Merge remote-tracking branch 'origin/development' into mueller/expand-retval-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 15:15:51 +02:00
Robin Müller 4a10f76784 Merge remote-tracking branch 'origin/development' into mueller/new-object-id-class
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 15:15:00 +02:00
Ulrich Mohr 57ce5d1f34 Merge pull request 'Expand SerializeIF' (#656) from mueller/expand-serialize-if into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #656
2022-08-15 15:13:50 +02:00
Ulrich Mohr 90963b3940 Merge pull request 'group MGM data in local pool vectors' (#664) from eive/fsfw:mueller/group-mgm-data into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #664
2022-08-15 15:07:16 +02:00
Robin Müller 71ed95b09a Merge branch 'development' into mueller/group-mgm-data
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 15:03:35 +02:00
Robin Müller 7ac4f1c64d Merge branch 'development' into mueller/new-object-id-class
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 15:03:11 +02:00
Robin Müller 9d64b96e9a
update changelog
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 15:02:39 +02:00
Robin Müller 5de2c6af66 Merge branch 'mueller/new-object-id-class' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/new-object-id-class
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 15:02:12 +02:00
Robin Müller ca2efb6021
remove object ID 2022-08-15 15:02:05 +02:00
Robin Müller 3b000d924a Merge branch 'development' into mueller/expand-retval-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 14:36:04 +02:00
Robin Müller deeeef553b
remove implicit machine endianness variants
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 14:34:04 +02:00
Ulrich Mohr 0e7ec79af9 Merge pull request 'Add Linux HAL options' (#663) from eive/fsfw:mueller/cmake-linux-hal-options into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #663
2022-08-15 13:58:09 +02:00
Robin Müller d3cabd8984
afmt
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 11:26:29 +02:00
Robin Müller 8efe85cb15 Merge branch 'development' into mueller/new-object-id-class
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 11:25:51 +02:00
Robin Müller b28c26b288
group MGM data in local pool vectors
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-15 10:49:00 +02:00
Robin Müller 8b4253bc46
update cmakelists.txt
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-12 13:02:30 +02:00
Robin Müller c12492df03
continued host FS test
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-11 10:19:25 +02:00
Robin Müller 8aaabc5d73
basic host FS unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-11 10:10:05 +02:00
Robin Müller e796e025b6
continue host fs unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-11 09:59:14 +02:00
Robin Müller 20eee2c469
finished host FS impl
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-11 09:32:18 +02:00
Robin Müller aca8b53a59
start host FS impl
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-10 17:03:23 +02:00
Robin Müller 3df1161560
this should do the job
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-10 15:03:53 +02:00
Robin Müller ea6e5d9971 Merge branch 'mueller/cfdp-routers' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-10 13:36:51 +02:00
Robin Müller 46a4203d00
testLvs fix 2022-08-10 13:36:41 +02:00
Robin Müller c86adf8e10 Merge branch 'development' into mueller/cfdp-routers
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-10 13:10:09 +02:00
Robin Müller a2e0646ed4
fix duplicate naming error
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-10 13:05:07 +02:00
Robin Müller 28c8248f26
add FS mock and improve HasFilesystemIF
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-10 11:09:07 +02:00
Robin Müller 3e1fd15613
completed all indication parameters
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-10 10:34:02 +02:00
Robin Müller e45a99143c
added const char* test
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-10 09:45:24 +02:00
Robin Müller 96dfe46e25
added string LV tests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-10 09:39:57 +02:00
Robin Müller 507c6ddff1
added some param structs
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-09 21:03:56 +02:00
Robin Müller 0cb15e901e
new cfdp mock folder, added additional cfdp mocks
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 19:00:47 +02:00
Robin Müller d45108e3c2
add remote config table provider class
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 18:51:44 +02:00
Robin Müller 8c059f8f32
new filesystem module
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 16:36:35 +02:00
Robin Müller 5bea92d2a4
some doc updates
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 16:26:37 +02:00
Robin Müller bba2d883b6
added some documentation
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-09 16:18:45 +02:00
Robin Müller 7a20412305
add user base documentation
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-09 15:51:01 +02:00
Robin Müller dce1ebcf65
add CFDP user base
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-09 15:46:42 +02:00
Robin Müller 4ee01e395b
finished fault handler unit tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 15:29:22 +02:00
Robin Müller 7f9401cf63
some bugfixes
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 15:09:43 +02:00
Robin Müller dba3f9960e
add CFDP fault handler mock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 14:55:08 +02:00
Robin Müller eccb629ba8
fnished fault handler base
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 14:39:03 +02:00
Robin Müller 7fb906a0ac
add first fault handler base class
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-09 14:05:43 +02:00
Robin Müller 9796abfc7d Merge branch 'development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-09 13:06:08 +02:00
Robin Müller 0d26a0f54b
fnish CFDP distributor unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 13:04:23 +02:00
Robin Müller 192956c2c7
use new storage manager mock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 12:50:50 +02:00
Robin Müller 22e1555f50
basic storage manager mock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 12:45:05 +02:00
Robin Müller bddf5bded1
move some storage manager impl to IF
fsfw/fsfw/pipeline/pr-development This commit looks good Details
- Add StorageManagerMock
2022-08-09 12:36:29 +02:00
Robin Müller 1c0b778848
continue CFDP distrib unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 12:13:10 +02:00
Robin Müller c832bffdb0
clean up header test
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 11:17:57 +02:00
Robin Müller 2f8020baac
move parsing steps into parse function
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 11:03:22 +02:00
Robin Müller 06bea2f621
test inNull and bool operator
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-09 10:59:24 +02:00
Robin Müller 4f1fe39182
fix unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-08 18:36:10 +02:00
Robin Müller 904abfba28
clean up CFDP stack a bit
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-08 18:29:32 +02:00
Robin Müller 202d9341d8
add CFDP unit tests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-08-08 17:53:42 +02:00
Robin Müller 37c60d1dd0
add source and dest test stubs
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-08 12:41:05 +02:00
Robin Müller 43fb6ef5cb
some tag replacements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-08 12:35:58 +02:00
Robin Müller 65a47c7c57
add distributor test stub
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-08 12:34:54 +02:00
Robin Müller fdb0cc0e44
tweaks for CFDP distributor
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-08 12:31:19 +02:00
Robin Müller e6957de166 Merge branch 'development' into mueller/expand-retval-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-05 14:02:50 +02:00
Robin Müller cc56b00df3 Merge branch 'development' into mueller/expand-serialize-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-05 14:02:31 +02:00
Robin Müller 269a3052ca
added stubs for source and dest handler
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 18:18:01 +02:00
Robin Müller c6a7a0fec8
use distributor instead of router
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 18:14:49 +02:00
Robin Müller acf5c2a56d
better names
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 16:00:48 +02:00
Robin Müller 7fb9e14555
better names for CFDP components
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 15:22:39 +02:00
Robin Müller b20e8a9679
continue new cfdp router
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 15:12:29 +02:00
Robin Müller 29bcaee196
some tests for new var len field
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 13:34:49 +02:00
Robin Müller cc98512caf
use tags properly
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 13:23:49 +02:00
Robin Müller 60ea9a9a7c
clean up a few tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 13:15:49 +02:00
Robin Müller df690b9628
some re-ordering
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 11:36:56 +02:00
Robin Müller b0c479cab9
remove some shadowing warnings
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 11:34:30 +02:00
Robin Müller a426aef7c7
add some more tests for CCSDS distributor
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-03 11:33:10 +02:00
Robin Müller 43048c852a Merge pull request 'Fixed cmake variable for tests in README.md' (#661) from gaisser/fsfw:gaisser_readme_fix into development
fsfw/fsfw/pipeline/head This commit looks good Details
Reviewed-on: #661
2022-08-01 20:55:26 +02:00
Robin Müller 19817bd3a5 Update 'docs/getting_started.rst'
fsfw/fsfw/pipeline/pr-development This commit looks good Details
Actually, this version still uses old folder names
2022-08-01 20:47:53 +02:00
Robin Müller 1db04cf20c Update 'docs/getting_started.rst'
Update for new recommended build folder and cmake define name
2022-08-01 20:45:39 +02:00
Robin Müller 902a4bfa9c
unittests for TC and CCSDS distributor
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-01 17:16:37 +02:00
Steffen Gaisser 52ee50ba8c Fixed cmake variable for tests in README.md
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-08-01 16:21:07 +02:00
Robin Müller bf540ebb49
use sanitized include file 2022-08-01 14:23:52 +02:00
Robin Müller aa978205d8
Merge branch 'mueller/cfdp-routers' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/cfdp-routers
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-08-01 13:05:56 +02:00
Robin Müller 4334106ad1
applied auto-formatter
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-08-01 11:05:46 +02:00
Robin Müller 458fe460eb
TMTC Routing Refactoring
fsfw/fsfw/pipeline/head There was a failure building this commit Details
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
Robin Müller 83d71548ec
CCSDS unpacker implementation 2022-07-29 16:32:50 +02:00
Robin Müller f4beef8c9f
run auto-formatter
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-29 15:54:17 +02:00
Robin Müller c7b4dc349a
using uint32_t for getIdentifier of AcceptsTcIF 2022-07-29 15:53:39 +02:00
Robin Müller 96f092ef75
type correction
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-29 14:30:58 +02:00
Robin Müller f75379fceb Merge branch 'mueller/new-object-id-class' into mueller/cfdp-routers
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-29 14:27:59 +02:00
Robin Müller 4a4d23573d
verify correct key behaviour
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-29 14:24:16 +02:00
Robin Müller cd4d92b12c Merge branch 'mueller/new-object-id-class' into mueller/cfdp-routers
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-29 14:22:52 +02:00
Robin Müller 47e148af8f
decoupling
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-29 14:19:10 +02:00
Robin Müller c9bec03f00 Merge branch 'mueller/expand-serialize-if' into mueller/new-object-id-type
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-29 14:16:22 +02:00
Robin Müller 6c5c59cad8 Merge branch 'mueller/expand-serialize-if' into mueller/new-object-id-type 2022-07-29 14:15:14 +02:00
Robin Müller 03e12a2388
new object ID type 2022-07-29 14:15:05 +02:00
Robin Müller 6c5bbfa080
some renaming
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-29 12:03:14 +02:00
Robin Müller da106fd96f
do not use TC info for failed TC retrieval
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-29 10:23:59 +02:00
Robin Müller fc3412fa35
set sec header flag and add unit test for it
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-28 15:13:27 +02:00
Robin Müller 8f6f0e1d45
some more fail tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-28 13:42:34 +02:00
Robin Müller 1b5fa2a8fa
test no crc generation
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-28 13:37:07 +02:00
Robin Müller cb118176a0
completed ZcWriter unittests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-28 13:24:50 +02:00
Robin Müller 30ba9ab916
some more fixes
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-28 13:00:53 +02:00
Robin Müller fb4ba487b5
Merge remote-tracking branch 'origin/mueller/expand-retval-if' into mueller/refactor-tmtc-stack 2022-07-28 12:55:42 +02:00
Robin Müller 72bc5d4d60
add tm zc test 2022-07-28 12:52:20 +02:00
Robin Müller 5355e63711
use result instead of retval
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-27 21:43:32 +02:00
Robin Müller b11cdf6184
update unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-27 21:32:22 +02:00
Robin Müller dc31358d52
adaption for SerializeIF
- Returns serialized and deserialized size now
2022-07-27 21:31:09 +02:00
Robin Müller b485afea57
Simple SerializeIF adaptions
fsfw/fsfw/pipeline/pr-development This commit looks good Details
- Returns serialized or deserialized size
2022-07-27 21:29:05 +02:00
Robin Müller 5bb7023ff3
improvements for creator API
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-27 21:11:12 +02:00
Robin Müller 85dbef20b0
update serialize IF
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-27 21:07:34 +02:00
Robin Müller 93acac02f5
tests running again
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-27 21:06:23 +02:00
Robin Müller 7e8afcc12f
remove nullptr check
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 20:37:21 +02:00
Robin Müller f03b7cd660
another bugfix in CSB
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 20:10:15 +02:00
Robin Müller d641d63531
set queue of tm send helper
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 19:56:11 +02:00
Robin Müller 4e571e5082
some more minor fixes
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 19:40:54 +02:00
Robin Müller 356d778743
afmt
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 18:03:17 +02:00
Robin Müller 0a38d2e22d
small bugfix
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 17:56:16 +02:00
Robin Müller 234ccdf764
send time stampers properly now
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 17:48:59 +02:00
Robin Müller f591b9793c
pass timeReader to Pus ZC writer
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 17:33:39 +02:00
Robin Müller c5ad9b5fa9
switch off debugging switches
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 17:13:42 +02:00
Robin Müller 083d08ae2a
various bugs and improvements 2022-07-27 17:00:43 +02:00
Robin Müller 740644f2c8
updates for PusDistributor
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 14:40:51 +02:00
Robin Müller 059fb10558
add helper methods to disable crc calculation
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 11:41:06 +02:00
Robin Müller 86692e202d
this gets rid of some warnings
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 11:35:35 +02:00
Robin Müller 064b195c75
some of the deprecation warnings run amok
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 11:33:19 +02:00
Robin Müller 18ee2ab903
example compiles again
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-27 11:26:47 +02:00
Robin Müller 9eb652e585
some printout fixes
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-27 10:49:49 +02:00
Robin Müller e7d9979078 Merge branch 'development' into mueller/expand-serialize-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 19:09:06 +02:00
Robin Müller 681738dcc6
PSB unittests complete
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 19:08:12 +02:00
Robin Müller 152c01b2ec
psb unittests almost complete
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 18:58:36 +02:00
Robin Müller 8bf0fb9885
test auto-initializers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 18:46:28 +02:00
Robin Müller 1954ce0ea4
default PUS receiver set automatically now
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 17:41:10 +02:00
Robin Müller d98b79cf5e
adapt PSB so it can be unittested properly
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-26 16:49:46 +02:00
Robin Müller f14c812aff
removed some obsolete code
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 14:14:00 +02:00
Robin Müller 146a0e3828
created PSB mock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 14:10:24 +02:00
Robin Müller 75c824ec80
add new VerificationReporterIF
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 13:59:09 +02:00
Robin Müller 332e9dbfd5
add new tests 2022-07-26 11:19:36 +02:00
Robin Müller f1c37203a4
some more API improvements and replacements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 11:14:40 +02:00
Robin Müller 500a5602bd
added additional TM store and send helper
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 11:09:57 +02:00
Robin Müller 4ed028000d Merge branch 'mueller/expand-retval-if' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-26 10:29:51 +02:00
Robin Müller 88ebb67c8d
fix deprecation warnings
fsfw/fsfw/pipeline/head Build started... Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-26 10:27:44 +02:00
Robin Müller b827bd8370
update HasReturnvaluesIF
fsfw/fsfw/pipeline/head There was a failure building this commit Details
1. Add new retval namespace which contains OK and FAIL returnvalue
2. Also contains makeCode constexpr function
3. Mark HasReturnvaluesIF::makeReturnCode deprecated

This prevents from having to implement an interface just to use a shorter
version of the general returnvalues. A namespace is better suited for this
I think
2022-07-26 10:22:05 +02:00
Robin Müller bdf71d4e66
add new HasReturnvaluesIF features
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-26 10:21:16 +02:00
Robin Müller e48b6f1432
possible double delete
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 22:36:53 +02:00
Robin Müller 747243684d
more leaks
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 22:29:18 +02:00
Robin Müller db33f9cc7e
maybe this teardown fixes the leak
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 22:22:08 +02:00
Robin Müller c12669fe50
this should fix the mmeory leak
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 22:10:20 +02:00
Robin Müller 6d00fc65c0
fix memory leak
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 21:08:04 +02:00
Robin Müller 7d87274844
add old api but mark it deprecated
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 20:53:18 +02:00
Robin Müller c83f75c515
some more tests using TM send helper
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 20:41:01 +02:00
Robin Müller 586993c081
completed send helper tests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 20:31:06 +02:00
Robin Müller a88f767cca
all tests running again
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 19:49:19 +02:00
Robin Müller 935e135f1c
normal queue sufficient
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 19:42:05 +02:00
Robin Müller 6d0fa36f8a
cleaning up message queue mock and subscription API
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 19:36:56 +02:00
Robin Müller 8f07133e2c Merge branch 'development' into mueller/expand-serialize-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 15:08:04 +02:00
Robin Müller 5fd5d488ff
Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 14:57:28 +02:00
Robin Müller f80be9e9fa
run afmt
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 14:44:49 +02:00
Robin Müller f3af88ae40
add [[nodiscard]] and const specifiers
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 14:44:19 +02:00
Robin Müller 380f1d0206
remove obsolete returns
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 14:40:10 +02:00
Robin Müller 9ee6da47e9
improving mocks 2022-07-25 14:31:57 +02:00
Robin Müller 1a7d7b172b
set up new internal error reporter mock
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-25 14:04:06 +02:00
Robin Müller 36e3956efb
finished tm store helper tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 13:39:07 +02:00
Robin Müller 180210dc38 Merge branch 'development' into mueller/expand-serialize-if
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 11:39:19 +02:00
Robin Müller ca1e921b94
Merge branch 'mueller/expand-serialize-if' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 11:35:32 +02:00
Robin Müller 2a34c831b1
use Be instead of Ne, which could be confused
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 11:33:12 +02:00
Robin Müller e2ad37e3e6
more ref replacements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 11:26:45 +02:00
Robin Müller 973d4ee8a5
some more ref replacements
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 11:24:13 +02:00
Robin Müller 899d021e00
using uint32_t as store_address requires explicit cast
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 11:15:45 +02:00
Robin Müller 4989bd0f02
fixes for Linux OSAL clock
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 10:56:19 +02:00
Robin Müller 832367fb30
replace some API components with references
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 10:50:52 +02:00
Robin Müller 63ee88af17
added base for tm store test
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 10:38:44 +02:00
Robin Müller 4921527022
replace c include
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 10:31:49 +02:00
Robin Müller f0c8fd2688
some renaming
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-25 10:24:43 +02:00
Robin Müller d474c4a7ee
store helper 2022-07-23 11:43:48 +02:00
Robin Müller 3708df2423
small fix 2022-07-23 11:15:55 +02:00
Robin Müller f629d60aaf
Merge branch 'mueller/expand-serialize-if' into mueller/refactor-tmtc-stack 2022-07-23 11:15:20 +02:00
Robin Müller b809f90e72
added unittests for new helpers 2022-07-23 11:10:44 +02:00
Robin Müller f2bf4b463e
expand serializeIF tests 2022-07-23 10:34:19 +02:00
Robin Müller b66fd63cb4
remove doubly defines 2022-07-23 10:29:19 +02:00
Robin Müller fd55de9e95 Merge branch 'mueller/expand-serialize-if' into mueller/refactor-tmtc-stack 2022-07-23 10:28:13 +02:00
Robin Müller 8e05fc0417
added a few more methods 2022-07-23 10:28:01 +02:00
Robin Müller 55a238d553
extended serialize if further 2022-07-23 10:24:56 +02:00
Robin Müller 9ccd9fd775
Merge branch 'mueller/expand-serialize-if' into mueller/refactor-tmtc-stack 2022-07-23 10:07:10 +02:00
Robin Müller ddad97033d
expand serialize IF further 2022-07-23 10:06:42 +02:00
Robin Müller 99aaf7068d
some tests 2022-07-23 10:05:57 +02:00
Robin Müller c9d37e8d62 Merge branch 'mueller/expand-serialize-if' into mueller/refactor-tmtc-stack 2022-07-23 10:05:14 +02:00
Robin Müller 42a1d6cccd
default implementation of simple serialize/deserialize 2022-07-23 10:03:42 +02:00
Robin Müller 133894f4ba
add basic CCSDS tests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 18:46:58 +02:00
Robin Müller cb05329dd9
completed baseline PUS TM unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 18:31:00 +02:00
Robin Müller b350018cad
completed basic test set
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 18:22:35 +02:00
Robin Müller 2dfbce6174
start TM reader unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 17:11:55 +02:00
Robin Müller cecaec6007
PUS TM creator tests done
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 17:09:44 +02:00
Robin Müller f28b9ea61b
APID getter bugfix
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 16:41:32 +02:00
Robin Müller 9275ccb79b
added some missing implementations
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 16:09:18 +02:00
Robin Müller 67776241de
verify successfull TM serialization
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-22 16:06:31 +02:00
Robin Müller bfee4fd90a
add empty test files
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-21 19:16:44 +02:00
Robin Müller 0dfaba81f9
finished basic TC unittests
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-21 19:10:15 +02:00
Robin Müller affde6bad5
rename namespace
fsfw/fsfw/pipeline/pr-development This commit looks good Details
2022-07-21 18:21:10 +02:00
Robin Müller 0981ee6f7e
minor changes, virtual dtors added
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-21 18:17:37 +02:00
Robin Müller 61bc867bed
delete code which is not used anymore
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-21 17:57:31 +02:00
Robin Müller 5af3138e81
fnished PUS TC creator unittests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-21 17:48:11 +02:00
Robin Müller 08e0b0f1a0
added sp reader unittests
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-21 14:40:00 +02:00
Robin Müller 23f264096c
delete a few old classes
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-21 14:05:31 +02:00
Robin Müller e5ee96259d
some fixes
fsfw/fsfw/pipeline/head There was a failure building this commit Details
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details
2022-07-21 13:48:58 +02:00
Robin Müller d8b6cb39ac
various bugfixes and improvements
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-21 11:34:11 +02:00
Robin Müller be35bd53a6
switched to new tmtc stack API
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-20 22:21:15 +02:00
Robin Müller 9860061fc6
create new TmSendHelper
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-20 11:45:50 +02:00
Robin Müller d80941514f
start refactoring PUS TM handling
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-20 11:43:16 +02:00
Robin Müller 6c636661b6
a lot of refactoring
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-19 18:13:25 +02:00
Robin Müller 5fffbd4a90
start PUS TC refactoring
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-18 18:36:41 +02:00
Robin Müller 95b476d4bd
start ccsds reader unittests 2022-07-18 16:21:00 +02:00
Robin Müller 3d2af203f2
finished creator unittests
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-18 16:18:04 +02:00
Robin Müller ddf38b65c3
apply auto-formatter
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-18 16:07:26 +02:00
Robin Müller 490a80e49f
Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-18 15:26:31 +02:00
Robin Müller e4d7182d93
update changelog
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-18 14:58:47 +02:00
Robin Müller 7e2fdc06cd
hmm this is problematic
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-18 14:05:43 +02:00
Robin Müller 3c72a42ce1
added basic sp creator test
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-18 13:51:02 +02:00
Robin Müller 0c5f623780
additional ctor for space packet creator
fsfw/fsfw/pipeline/head This commit looks good Details
2022-07-18 10:53:55 +02:00
Robin Müller d7a2eada94
add space packet creator class
fsfw/fsfw/pipeline/head There was a failure building this commit Details
2022-07-18 10:42:56 +02:00
Robin Müller 546e173cef
add new PUS TC IF 2022-07-18 10:29:39 +02:00
Robin Müller 0a7f2c6646
refactored space packet interface 2022-07-18 10:20:26 +02:00
816 changed files with 17292 additions and 11876 deletions

View File

@ -8,7 +8,207 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
# [unreleased]
# [v5.0.0] 25.07.2022
# [v6.0.0] 2023-02-10
## Fixes
- Mode Service: Add allowed subservice
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/739
- `CService200ModeManagement`: Various bugfixes which lead to now execution complete being generated
on mode announcements, duplicate mode reply generated on announce commands, and the mode read
subservice not working properly.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/736
- Memory leak fixes for the TCP/IP TMTC bridge.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/737
- `Service9TimeManagement`: Fix the time dump at the `SET_TIME` subservice: Include clock timeval
seconds instead of uptime.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/726
- HAL MGM3100 Handler: Use axis specific gain/scaling factors. Previously,
only the X scaling factor was used.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/724
- HAL MGM3100 Handler: Z value was previously calculated with bytes of the X value.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/733
- DHB `setNormalDatapoolEntriesInvalid`: The default implementation did not set the validity
to false correctly because the `read` and `write` calls were missing.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/728
- PUS TMTC creator module: Sequence flags were set to continuation segment (0b00) instead
of the correct unsegmented flags (0b11) as specified in the standard.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/727
- TC Scheduler Service 11: Add size and CRC check for contained TC.
Bug: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/issues/719
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/720
- Only delete health table entry in `HealthHelper` destructor if
health table was set.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/710
- I2C Bugfixes: Do not keep iterator as member and fix some incorrect handling with the iterator.
Also properly reset the reply size for successfull transfers and erroneous transfers.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/700
- Bugfix for Serial Buffer Stream: Setting `doActive` to false now
actually fully disables printing.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/680
- `TcpTmTcServer.cpp`: The server was actually not able to handle
CCSDS packets which were clumped together. This has been fixed now.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/673
- `CServiceHealthCommanding`: Add announce all health info implementation
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/725
- various fixes related to linux Unittests and memory leaks
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/715
- small fix to allow teardown handling
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/713
- fix compiler warning for fixed array list copy ctor
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/704
- missing include
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/703
- defaultconfig did not build anymore
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/702
- hotfix
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/699
- small fix for helper
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/698
- missing retval conv
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/697
- DHB Countdown Bug
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/693
- doc corrections
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/687
- better error printout
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/686
- include correction
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/683
- better warning for missing include paths
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/676
- Service 11 regression
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/670
## Added
- Empty constructor for `CdsShortTimeStamper` which does not do an object manager registration.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/730
- `Service9TimeManagement`: Add `DUMP_TIME` (129) subservice.
- `TcpTmTcServer`: Allow setting the `SO_REUSEADDR` and `SO_REUSEPORT`
option on the TCP server. CTOR prototype has changed and expects an explicit
TCP configuration struct to be passed.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/722
- `DleParser` helper class to parse DLE encoded packets from a byte stream.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/711
- `UioMapper` is able to resolve symlinks now.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/709
- Add new `UnsignedByteField` class
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/660
- publish documentation for development and master branch
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/681
- Add Linux HAL options
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/663
- Expand SerializeIF
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/656
- PUS Service 11: Additional Safety Check
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/666
- improvements for auto-formatter script
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/665
- provide a weak print char impl
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/674
## Removed
- now that doc server is up, remove markdown files
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/688
- remove bsp specific code
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/679
## Changes
- `CService201HealthCommanding` renamed to `CServiceHealthCommanding`,
service ID customizable now. `CServiceHealthCommanding` expects configuration struct
`HealthServiceCfg` now
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/725
- `AcceptsTelemetryIF`: `getReportReceptionQueue` is const now
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/712
- Moved some container returnvalues to dedicated header and namespace
so they can be used without template specification.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/707
- Remove default secondary header argument for
`uint16_t getTcSpacePacketIdFromApid(uint16_t apid, bool secondaryHeaderFlag)` and
`uint16_t getTmSpacePacketIdFromApid(uint16_t apid, bool secondaryHeaderFlag)`
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/689
- Removed `HasReturnvaluesIF` class in favor of `returnvalue` namespace with `OK` and `FAILED`
constants.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/659
- Overhaul of the TMTC stack, including various changes and improvements
for other modules
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/655
which also includes a migration guide
- Bump Catch2 dependency to regular version `v3.1.0`
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/678
- `SerialBufferAdapter`: Rename `setBuffer` to `setConstBuffer` and update
API to expect `const uint8_t*` accordingly.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/677
- Remove the following user includes from `fsfw/events/Event.h` and
`fsfw/returnvalues/returnvalue.h`:
- `#include "events/subsystemIdRanges.h"`
- `#include "returnvalues/classIds.h"`
The user has to include those themselves now
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/675
- `DeviceHandlerBase`: Set command sender before calling `buildCommandFromCommand`.
This allows finishing action commands immediately inside the function.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/672
- `DeviceHandlerBase`: New signature of `handleDeviceTm` which expects
a `const SerializeIF&` and additional helper variant which expects `const uint8_t*`
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/671
- Improvements for `AcceptsTelemetryIF` and `AcceptsTelecommandsIF`:
- Make functions `const` where it makes sense
- Add `const char* getName const` abstract function
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/684
- Generic TMTC Bridge Update
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/734
- comment tweak to event parser can read everything
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/732
- CMakeLists file updates
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/731
- improve srv20 error messages
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/723
- I2C Linux: remove duplicate printout
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/718
- printout handling improvements
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/717
- vec getter, reset for content
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/716
- updates for source sequence counter
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/714
- SP reader getPacketData is const now
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/708
- refactoring of serial drivers for linux
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/705
- Local Pool Update Remove Add Data Ignore Fault Argument
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/701
- Switch to new documentation server
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/694
- Windows Tweaks
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/691
- Refactor Local Pool API
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/667
- group MGM data in local pool vectors
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/664
## CFDP
- Refactoring of CFDP stack which was done during implementation of the CFDP source and destination
handlers.
- New filesystem module, changes for filesystem abstraction `HasFileSystemIF` to better
fit requirements of CFDP
- New `HostFilesystem` implementation of the `HasFileSystemIF`
- New `cfdp::UserBase` class which is the abstraction for the CFDP user in an OBSW context.
- mib module for the CFDP stack
- PDU classes renamed from `...Serializer`/`...Deserializer` to `...Creator`/`...Reader`
respetively
- Renamed `TcDistributor` to `TcDistributorBase` to prevent confusion
- Refactored `TcDisitributorBase` to be more flexible and usable for CFDP distribution
- Renamed `CCSDSDistributor` to `CcsdsDistributor` and add feature which allows it
to remove the CCSDS header when routing a packet. This allows CCSDS agnostic receiver
implementation without an extra component
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/682
# [v5.0.0] 2022-07-25
## Changes
@ -24,7 +224,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- HAL Devicehandlers: Periodic printout is run-time configurable now
- `oneShotAction` flag in the `TestTask` class is not static anymore
- `SimpleRingBuffer::writeData` now checks if the amount is larger than the total size of the
Buffer and rejects such writeData calls with `HasReturnvaluesIF::RETURN_FAILED`
Buffer and rejects such writeData calls with `returnvalue::FAILED`
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/586
- Major update for version handling, using `git describe` to fetch version information with git.
PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/601

View File

@ -13,7 +13,7 @@ list(APPEND CMAKE_MODULE_PATH
# Version file handling #
# ##############################################################################
set(FSFW_VERSION_IF_GIT_FAILS 5)
set(FSFW_VERSION_IF_GIT_FAILS 6)
set(FSFW_SUBVERSION_IF_GIT_FAILS 0)
set(FSFW_REVISION_IF_GIT_FAILS 0)
@ -80,7 +80,7 @@ set(FSFW_CATCH2_LIB_MAJOR_VERSION
3
CACHE STRING "Catch2 library major version requirement")
set(FSFW_CATCH2_LIB_VERSION
v${FSFW_CATCH2_LIB_MAJOR_VERSION}.0.0-preview5
v${FSFW_CATCH2_LIB_MAJOR_VERSION}.1.0
CACHE STRING "Catch2 library exact version requirement")
# Keep this off by default for now. See PR:
@ -104,7 +104,8 @@ if(FSFW_GENERATE_SECTIONS)
option(FSFW_REMOVE_UNUSED_CODE "Remove unused code" ON)
endif()
option(FSFW_BUILD_TESTS "Build unittest binary in addition to static library"
option(FSFW_BUILD_TESTS
"Build unittest binary in addition to static library. Requires Catch2"
OFF)
option(FSFW_CICD_BUILD "Build for CI/CD. This can disable problematic test" OFF)
option(FSFW_BUILD_DOCS "Build documentation with Sphinx and Doxygen" OFF)
@ -115,9 +116,15 @@ endif()
option(FSFW_WARNING_SHADOW_LOCAL_GCC "Enable -Wshadow=local warning in GCC" ON)
# Options to exclude parts of the FSFW from compilation.
option(FSFW_ADD_INTERNAL_TESTS "Add internal unit tests" ON)
option(FSFW_ADD_UNITTESTS "Add regular unittests. Requires Catch2" OFF)
option(FSFW_ADD_HAL "Add Hardware Abstraction Layer" ON)
if(UNIX)
option(FSFW_HAL_LINUX_ADD_PERIPHERAL_DRIVERS "Add Linux peripheral drivers"
OFF)
option(FSFW_HAL_LINUX_ADD_LIBGPIOD "Attempt to add Linux GPIOD drivers" OFF)
option(FSFW_HAL_LINUX_ADD_SERIAL_DRIVERS "Add serial drivers" ON)
endif()
# Optional sources
option(FSFW_ADD_PUS "Compile with PUS sources" ON)
option(FSFW_ADD_MONITORING "Compile with monitoring components" ON)
@ -146,12 +153,12 @@ if(FSFW_BUILD_TESTS)
"${MSG_PREFIX} Building the FSFW unittests in addition to the static library"
)
# Check whether the user has already installed Catch2 first
find_package(Catch2 ${FSFW_CATCH2_LIB_MAJOR_VERSION})
find_package(Catch2 ${FSFW_CATCH2_LIB_MAJOR_VERSION} QUIET)
# Not installed, so use FetchContent to download and provide Catch2
if(NOT Catch2_FOUND)
message(
STATUS
"${MSG_PREFIX} Catch2 installation not found. Downloading Catch2 library with FetchContent"
"${MSG_PREFIX} Catch2 installation not found. Downloading Catch2 library with FetchContent."
)
include(FetchContent)
@ -183,7 +190,10 @@ if(FSFW_BUILD_TESTS)
endif()
endif()
message(STATUS "${MSG_PREFIX} Finding and/or providing ETL library")
message(
STATUS
"${MSG_PREFIX} Finding and/or providing etl library with version ${FSFW_ETL_LIB_MAJOR_VERSION}"
)
# Check whether the user has already installed ETL first
find_package(${FSFW_ETL_LIB_NAME} ${FSFW_ETL_LIB_MAJOR_VERSION} QUIET)
@ -191,8 +201,8 @@ find_package(${FSFW_ETL_LIB_NAME} ${FSFW_ETL_LIB_MAJOR_VERSION} QUIET)
if(NOT ${FSFW_ETL_LIB_NAME}_FOUND)
message(
STATUS
"No ETL installation was found with find_package. Installing and providing "
"etl with FindPackage")
"${MSG_PREFIX} ETL installation not found. Downloading ETL with FetchContent."
)
include(FetchContent)
FetchContent_Declare(
@ -317,7 +327,8 @@ if(FSFW_BUILD_TESTS)
"/usr/local/include/*"
"*/fsfw_tests/*"
"*/catch2-src/*"
"*/fsfw_hal/*")
"*/fsfw_hal/*"
"unittests/*")
endif()
target_link_options(${FSFW_TEST_TGT} PRIVATE -fprofile-arcs
@ -335,8 +346,15 @@ if(FSFW_BUILD_TESTS)
DEPENDENCIES ${FSFW_TEST_TGT})
else()
setup_target_for_coverage_lcov(
NAME ${FSFW_TEST_TGT}_coverage EXECUTABLE ${FSFW_TEST_TGT}
DEPENDENCIES ${FSFW_TEST_TGT})
NAME
${FSFW_TEST_TGT}_coverage
EXECUTABLE
${FSFW_TEST_TGT}
DEPENDENCIES
${FSFW_TEST_TGT}
GENHTML_ARGS
--html-epilog
${CMAKE_SOURCE_DIR}/unittests/lcov_epilog.html)
endif()
endif()
endif()
@ -351,7 +369,8 @@ if(NOT FSFW_CONFIG_PATH)
if(NOT FSFW_BUILD_DOCS)
message(
WARNING
"${MSG_PREFIX} Flight Software Framework configuration path not set")
"${MSG_PREFIX} Flight Software Framework configuration path FSFW_CONFIG_PATH not set"
)
message(
WARNING
"${MSG_PREFIX} Setting default configuration from ${DEF_CONF_PATH} ..")

View File

@ -132,7 +132,7 @@ You can use the following commands inside the `fsfw` folder to set up the build
```sh
mkdir build-tests && cd build-tests
cmake -DFSFW_BUILD_UNITTESTS=ON -DFSFW_OSAL=host -DCMAKE_BUILD_TYPE=Debug ..
cmake -DFSFW_BUILD_TESTS=ON -DFSFW_OSAL=host -DCMAKE_BUILD_TYPE=Debug ..
```
You can also use `-DFSFW_OSAL=linux` on Linux systems.
@ -175,7 +175,7 @@ cmake -DFSFW_BUILD_DOCS=ON -DFSFW_OSAL=host ..
Then you can generate the documentation using
```sh
cmake --build . -j
cmake --build . -- Sphinx -j
```
You can find the generated documentation inside the `docs/sphinx` folder inside the build

View File

@ -5,16 +5,25 @@ RUN apt-get --yes upgrade
#tzdata is a dependency, won't install otherwise
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get --yes install gcc g++ cmake make lcov git valgrind nano iputils-ping
RUN apt-get --yes install gcc g++ cmake make lcov git valgrind nano iputils-ping python3 pip doxygen graphviz rsync
RUN python3 -m pip install sphinx breathe
RUN git clone https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
git checkout v3.0.0-preview5 && \
cmake -Bbuild -H. -DBUILD_TESTING=OFF && \
cmake --build build/ --target install
cd Catch2 && \
git checkout v3.1.0 && \
cmake -Bbuild -H. -DBUILD_TESTING=OFF && \
cmake --build build/ --target install
RUN git clone https://github.com/ETLCPP/etl.git && \
cd etl && \
git checkout 20.28.0 && \
cmake -B build . && \
cmake --install build/
cd etl && \
git checkout 20.28.0 && \
cmake -B build . && \
cmake --install build/
#ssh needs a valid user to work
RUN adduser --uid 114 jenkins
#add documentation server to known hosts
RUN echo "|1|/LzCV4BuTmTb2wKnD146l9fTKgQ=|NJJtVjvWbtRt8OYqFgcYRnMQyVw= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNL8ssTonYtgiR/6RRlSIK9WU1ywOcJmxFTLcEblAwH7oifZzmYq3XRfwXrgfMpylEfMFYfCU8JRqtmi19xc21A=" >> /etc/ssh/ssh_known_hosts
RUN echo "|1|CcBvBc3EG03G+XM5rqRHs6gK/Gg=|oGeJQ+1I8NGI2THIkJsW92DpTzs= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNL8ssTonYtgiR/6RRlSIK9WU1ywOcJmxFTLcEblAwH7oifZzmYq3XRfwXrgfMpylEfMFYfCU8JRqtmi19xc21A=" >> /etc/ssh/ssh_known_hosts

122
automation/Jenkinsfile vendored
View File

@ -1,41 +1,125 @@
pipeline {
environment {
BUILDDIR = 'build-tests'
BUILDDIR_HOST = 'cmake-build-tests-host'
BUILDDIR_LINUX = 'cmake-build-tests-linux'
DOCDDIR = 'cmake-build-documentation'
}
agent {
docker { image 'fsfw-ci:d3'}
docker {
image 'fsfw-ci:d6'
args '--network host --sysctl fs.mqueue.msg_max=100'
}
}
stages {
stage('Clean') {
steps {
sh 'rm -rf $BUILDDIR'
}
}
stage('Configure') {
steps {
dir(BUILDDIR) {
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..'
stage('Host') {
stages{
stage('Clean') {
steps {
sh 'rm -rf $BUILDDIR_HOST'
}
}
stage('Configure') {
steps {
dir(BUILDDIR_HOST) {
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..'
}
}
}
stage('Build') {
steps {
dir(BUILDDIR_HOST) {
sh 'cmake --build . -j4'
}
}
}
stage('Unittests') {
steps {
dir(BUILDDIR_HOST) {
sh 'cmake --build . -- fsfw-tests_coverage -j4'
}
}
}
stage('Valgrind') {
steps {
dir(BUILDDIR_HOST) {
sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests'
}
}
}
}
}
stage('Build') {
steps {
dir(BUILDDIR) {
sh 'cmake --build . -j4'
stage('Linux') {
stages{
stage('Clean') {
steps {
sh 'rm -rf $BUILDDIR_LINUX'
}
}
stage('Configure') {
steps {
dir(BUILDDIR_LINUX) {
sh 'cmake -DFSFW_OSAL=linux -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..'
}
}
}
stage('Build') {
steps {
dir(BUILDDIR_LINUX) {
sh 'cmake --build . -j4'
}
}
}
stage('Unittests') {
steps {
dir(BUILDDIR_LINUX) {
sh 'cmake --build . -- fsfw-tests_coverage -j4'
}
}
}
stage('Valgrind') {
steps {
dir(BUILDDIR_LINUX) {
sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests'
}
}
}
}
}
stage('Unittests') {
stage('Documentation') {
when {
branch 'development'
}
steps {
dir(DOCDDIR) {
sh 'cmake -DFSFW_BUILD_DOCS=ON -DFSFW_OSAL=host ..'
sh 'make Sphinx'
sshagent(credentials: ['documentation-buildfix']) {
sh 'rsync -r --delete docs/sphinx/* buildfix@documentation.irs.uni-stuttgart.de:/fsfw/development'
}
}
dir(BUILDDIR) {
sh 'cmake --build . -- fsfw-tests_coverage -j4'
sshagent(credentials: ['documentation-buildfix']) {
sh 'rsync -r --delete fsfw-tests_coverage/* buildfix@documentation.irs.uni-stuttgart.de:/fsfw/coverage/development'
}
}
}
}
stage('Valgrind') {
stage('Master Documentation') {
when {
branch 'master'
}
steps {
dir(DOCDDIR) {
sh 'cmake -DFSFW_BUILD_DOCS=ON -DFSFW_OSAL=host ..'
sh 'make Sphinx'
sshagent(credentials: ['documentation-buildfix']) {
sh 'rsync -r --delete docs/sphinx/* buildfix@documentation.irs.uni-stuttgart.de:/fsfw/master'
}
}
dir(BUILDDIR) {
sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests'
sshagent(credentials: ['documentation-buildfix']) {
sh 'rsync -r --delete fsfw-tests_coverage/* buildfix@documentation.irs.uni-stuttgart.de:/fsfw/coverage/master'
}
}
}
}

View File

@ -140,7 +140,7 @@ find_program( GCOV_PATH gcov )
find_program( LCOV_PATH NAMES lcov lcov.bat lcov.exe lcov.perl)
find_program( FASTCOV_PATH NAMES fastcov fastcov.py )
find_program( GENHTML_PATH NAMES genhtml genhtml.perl genhtml.bat )
find_program( GCOVR_PATH gcovr PATHS ${CMAKE_SOURCE_DIR}/scripts/test)
find_program( GCOVR_PATH gcovr )
find_program( CPPFILT_PATH NAMES c++filt )
if(NOT GCOV_PATH)

View File

@ -1,40 +0,0 @@
Configuring the FSFW
======
The FSFW can be configured via the `fsfwconfig` folder. A template folder has
been provided to have a starting point for this. The folder should be added
to the include path. The primary configuration file is the `FSFWConfig.h` folder. Some
of the available options will be explained in more detail here.
# Auto-Translation of Events
The FSFW allows the automatic translation of events, which allows developers to track triggered
events directly via console output. Using this feature requires:
1. `FSFW_OBJ_EVENT_TRANSLATION` set to 1 in the configuration file.
2. Special auto-generated translation files which translate event IDs and object IDs into
human readable strings. These files can be generated using the
[modgen Python scripts](https://git.ksat-stuttgart.de/source/modgen.git).
3. The generated translation files for the object IDs should be named `translatesObjects.cpp`
and `translateObjects.h` and should be copied to the `fsfwconfig/objects` folder
4. The generated translation files for the event IDs should be named `translateEvents.cpp` and
`translateEvents.h` and should be copied to the `fsfwconfig/events` folder
An example implementations of these translation file generators can be found as part
of the [SOURCE project here](https://git.ksat-stuttgart.de/source/sourceobsw/-/tree/development/generators)
or the [FSFW example](https://egit.irs.uni-stuttgart.de/fsfw/fsfw_example_public/src/branch/master/generators)
## Configuring the Event Manager
The number of allowed subscriptions can be modified with the following
parameters:
``` c++
namespace fsfwconfig {
//! Configure the allocated pool sizes for the event manager.
static constexpr size_t FSFW_EVENTMGMR_MATCHTREE_NODES = 240;
static constexpr size_t FSFW_EVENTMGMT_EVENTIDMATCHERS = 120;
static constexpr size_t FSFW_EVENTMGMR_RANGEMATCHERS = 120;
}
```

View File

@ -1 +0,0 @@
## Controllers

View File

@ -1,55 +0,0 @@
## FSFW Core Modules
These core modules provide the most important functionalities of the
Flight Software Framework
### Clock
* This is a class of static functions that can be used at anytime
* Leap Seconds must be set if any time conversions from UTC to other times is used
### ObjectManager
* Must be created during program startup
* The component which handles all references. All SystemObjects register at this component.
* Any SystemObject needs to have a unique ObjectId. Those can be managed like objects::framework_objects.
* A reference to an object can be get by calling the following function. T must be the specific Interface you want to call.
A nullptr check of the returning Pointer must be done. This function is based on Run-time type information.
```cpp
template <typename T> T* ObjectManagerIF::get( object_id_t id )
```
* A typical way to create all objects on startup is a handing a static produce function to the
ObjectManager on creation. By calling objectManager->initialize() the produce function will be
called and all SystemObjects will be initialized afterwards.
### Event Manager
* Component which allows routing of events
* Other objects can subscribe to specific events, ranges of events or all events of an object.
* Subscriptions can be done during runtime but should be done during initialization
* Amounts of allowed subscriptions can be configured in `FSFWConfig.h`
### Health Table
* A component which holds every health state
* Provides a thread safe way to access all health states without the need of message exchanges
### Stores
* The message based communication can only exchange a few bytes of information inside the message
itself. Therefore, additional information can be exchanged with Stores. With this, only the
store address must be exchanged in the message.
* Internally, the FSFW uses an IPC Store to exchange data between processes. For incoming TCs a TC
Store is used. For outgoing TM a TM store is used.
* All of them should use the Thread Safe Class storagemanager/PoolManager
### Tasks
There are two different types of tasks:
* The PeriodicTask just executes objects that are of type ExecutableObjectIF in the order of the
insertion to the Tasks.
* FixedTimeslotTask executes a list of calls in the order of the given list. This is intended for
DeviceHandlers, where polling should be in a defined order. An example can be found in
`defaultcfg/fsfwconfig/pollingSequence` folder

View File

@ -1 +0,0 @@
## Device Handlers

View File

@ -1,135 +0,0 @@
High-level overview
======
# Structure
The general structure is driven by the usage of interfaces provided by objects.
The FSFW uses C++11 as baseline. The intention behind this is that this C++ Standard should be
widely available, even with older compilers.
The FSFW uses dynamic allocation during the initialization but provides static containers during runtime.
This simplifies the instantiation of objects and allows the usage of some standard containers.
Dynamic Allocation after initialization is discouraged and different solutions are provided in the
FSFW to achieve that. The fsfw uses run-time type information but exceptions are not allowed.
# Failure Handling
Functions should return a defined `ReturnValue_t` to signal to the caller that something has
gone wrong. Returnvalues must be unique. For this the function `HasReturnvaluesIF::makeReturnCode`
or the macro `MAKE_RETURN` can be used. The `CLASS_ID` is a unique id for that type of object.
See `returnvalues/FwClassIds` folder. The user can add custom `CLASS_ID`s via the
`fsfwconfig` folder.
# OSAL
The FSFW provides operation system abstraction layers for Linux, FreeRTOS and RTEMS.
The OSAL provides periodic tasks, message queues, clocks and semaphores as well as mutexes.
The [OSAL README](doc/README-osal.md#top) provides more detailed information on provided components
and how to use them.
# Core Components
The FSFW has following core components. More detailed informations can be found in the
[core component section](doc/README-core.md#top):
1. Tasks: Abstraction for different (periodic) task types like periodic tasks or tasks
with fixed timeslots
2. ObjectManager: This module stores all `SystemObjects` by mapping a provided unique object ID
to the object handles.
3. Static Stores: Different stores are provided to store data of variable size (like telecommands
or small telemetry) in a pool structure without using dynamic memory allocation.
These pools are allocated up front.
3. Clock: This module provided common time related functions
4. EventManager: This module allows routing of events generated by `SystemObjects`
5. HealthTable: A component which stores the health states of objects
# Static IDs in the framework
Some parts of the framework use a static routing address for communication.
An example setup of ids can be found in the example config in `defaultcft/fsfwconfig/objects`
inside the function `Factory::setStaticFrameworkObjectIds()`.
# Events
Events are tied to objects. EventIds can be generated by calling the Macro MAKE_EVENT.
This works analog to the returnvalues. Every object that needs own EventIds has to get a
unique SUBSYSTEM_ID. Every SystemObject can call triggerEvent from the parent class.
Therefore, event messages contain the specific EventId and the objectId of the object that
has triggered.
# Internal Communication
Components communicate mostly via Messages through Queues.
Those queues are created by calling the singleton `QueueFactory::instance()->create()` which
will create `MessageQueue` instances for the used OSAL.
# External Communication
The external communication with the mission control system is mostly up to the user implementation.
The FSFW provides PUS Services which can be used to but don't need to be used.
The services can be seen as a conversion from a TC to a message based communication and back.
## TMTC Communication
The FSFW provides some components to facilitate TMTC handling via the PUS commands.
For example, a UDP or TCP PUS server socket can be opened on a specific port using the
files located in `osal/common`. The FSFW example uses this functionality to allow sending telecommands
and receiving telemetry using the [TMTC commander application](https://github.com/spacefisch/tmtccmd).
Simple commands like the PUS Service 17 ping service can be tested by simply running the
`tmtc_client_cli.py` or `tmtc_client_gui.py` utility in
the [example tmtc folder](https://egit.irs.uni-stuttgart.de/fsfw/fsfw_example_public/src/branch/master/tmtc)
while the `fsfw_example` application is running.
More generally, any class responsible for handling incoming telecommands and sending telemetry
can implement the generic `TmTcBridge` class located in `tmtcservices`. Many applications
also use a dedicated polling task for reading telecommands which passes telecommands
to the `TmTcBridge` implementation.
## CCSDS Frames, CCSDS Space Packets and PUS
If the communication is based on CCSDS Frames and Space Packets, several classes can be used to
distributed the packets to the corresponding services. Those can be found in `tcdistribution`.
If Space Packets are used, a timestamper has to be provided by the user.
An example can be found in the `timemanager` folder, which uses `CCSDSTime::CDS_short`.
# Device Handlers
DeviceHandlers are another important component of the FSFW.
The idea is, to have a software counterpart of every physical device to provide a simple mode,
health and commanding interface. By separating the underlying Communication Interface with
`DeviceCommunicationIF`, a device handler (DH) can be tested on different hardware.
The DH has mechanisms to monitor the communication with the physical device which allow
for FDIR reaction. Device Handlers can be created by implementing `DeviceHandlerBase`.
A standard FDIR component for the DH will be created automatically but can
be overwritten by the user. More information on DeviceHandlers can be found in the
related [documentation section](doc/README-devicehandlers.md#top).
# Modes and Health
The two interfaces `HasModesIF` and `HasHealthIF` provide access for commanding and monitoring
of components. On-board Mode Management is implement in hierarchy system.
DeviceHandlers and Controllers are the lowest part of the hierarchy.
The next layer are Assemblies. Those assemblies act as a component which handle
redundancies of handlers. Assemblies share a common core with the next level which
are the Subsystems.
Those Assemblies are intended to act as auto-generated components from a database which describes
the subsystem modes. The definitions contain transition and target tables which contain the DH,
Assembly and Controller Modes to be commanded.
Transition tables contain as many steps as needed to reach the mode from any other mode, e.g. a
switch into any higher AOCS mode might first turn on the sensors, than the actuators and the
controller as last component.
The target table is used to describe the state that is checked continuously by the subsystem.
All of this allows System Modes to be generated as Subsystem object as well from the same database.
This System contains list of subsystem modes in the transition and target tables.
Therefore, it allows a modular system to create system modes and easy commanding of those, because
only the highest components must be commanded.
The health state represents if the component is able to perform its tasks.
This can be used to signal the system to avoid using this component instead of a redundant one.
The on-board FDIR uses the health state for isolation and recovery.
# Unit Tests
Unit Tests are provided in the unittest folder. Those use the catch2 framework but do not include
catch2 itself. More information on how to run these tests can be found in the separate
[`fsfw_tests` reposoitory](https://egit.irs.uni-stuttgart.de/fsfw/fsfw_tests)

View File

@ -1,174 +0,0 @@
## Local Data Pools Developer Information
The following text is targeted towards mission software developers which would like
to use the local data pools provided by the FSFW to store data like sensor values so they can be
used by other software objects like controllers as well. If a custom class should have a local
pool which can be used by other software objects as well, following steps have to be performed:
1. Create a `LocalDataPoolManager` member object in the custom class
2. Implement the `HasLocalDataPoolIF` with specifies the interface between the local pool manager
and the class owning the local pool.
The local data pool manager is also able to process housekeeping service requests in form
of messages, generate periodic housekeeping packet, generate notification and snapshots of changed
variables and datasets and process notifications and snapshots coming from other objects.
The two former tasks are related to the external interface using telemetry and telecommands (TMTC)
while the later two are related to data consumers like controllers only acting on data change
detected by the data creator instead of checking the data manually each cycle. Two important
framework classes `DeviceHandlerBase` and `ExtendedControllerBase` already perform the two steps
shown above so the steps required are altered slightly.
### Storing and Accessing pool data
The pool manager is responsible for thread-safe access of the pool data, but the actual
access to the pool data from the point of view of a mission software developer happens via proxy
classes like pool variable classes. These classes store a copy
of the pool variable with the matching datatype and copy the actual data from the local pool
on a `read` call. Changed variables can then be written to the local pool with a `commit` call.
The `read` and `commit` calls are thread-safe and can be called concurrently from data creators
and data consumers. Generally, a user will create a dataset class which in turn groups all
cohesive pool variables. These sets simply iterator over the list of variables and call the
`read` and `commit` functions of each variable. The following diagram shows the
high-level architecture of the local data pools.
.. image:: ../misc/logo/FSFW_Logo_V3_bw.png
:alt: FSFW Logo
An example is shown for using the local data pools with a Gyroscope.
For example, the following code shows an implementation to access data from a Gyroscope taken
from the SOURCE CubeSat project:
```cpp
class GyroPrimaryDataset: public StaticLocalDataSet<3 * sizeof(float)> {
public:
/**
* Constructor for data users
* @param gyroId
*/
GyroPrimaryDataset(object_id_t gyroId):
StaticLocalDataSet(sid_t(gyroId, gyrodefs::GYRO_DATA_SET_ID)) {
setAllVariablesReadOnly();
}
lp_var_t<float> angVelocityX = lp_var_t<float>(sid.objectId,
gyrodefs::ANGULAR_VELOCITY_X, this);
lp_var_t<float> angVelocityY = lp_var_t<float>(sid.objectId,
gyrodefs::ANGULAR_VELOCITY_Y, this);
lp_var_t<float> angVelocityZ = lp_var_t<float>(sid.objectId,
gyrodefs::ANGULAR_VELOCITY_Z, this);
private:
friend class GyroHandler;
/**
* Constructor for data creator
* @param hkOwner
*/
GyroPrimaryDataset(HasLocalDataPoolIF* hkOwner):
StaticLocalDataSet(hkOwner, gyrodefs::GYRO_DATA_SET_ID) {}
};
```
There is a public constructor for users which sets all variables to read-only and there is a
constructor for the GyroHandler data creator by marking it private and declaring the `GyroHandler`
as a friend class. Both the atittude controller and the `GyroHandler` can now
use the same class definition to access the pool variables with `read` and `commit` semantics
in a thread-safe way. Generally, each class requiring access will have the set class as a member
class. The data creator will also be generally a `DeviceHandlerBase` subclass and some additional
steps are necessary to expose the set for housekeeping purposes.
### Using the local data pools in a `DeviceHandlerBase` subclass
It is very common to store data generated by devices like a sensor into a pool which can
then be used by other objects. Therefore, the `DeviceHandlerBase` already has a
local pool. Using the aforementioned example, our `GyroHandler` will now have the set class
as a member:
```cpp
class GyroHandler: ... {
public:
...
private:
...
GyroPrimaryDataset gyroData;
...
};
```
The constructor used for the creators expects the owner class as a parameter, so we initialize
the object in the `GyroHandler` constructor like this:
```cpp
GyroHandler::GyroHandler(object_id_t objectId, object_id_t comIF,
CookieIF *comCookie, uint8_t switchId):
DeviceHandlerBase(objectId, comIF, comCookie), switchId(switchId),
gyroData(this) {}
```
We need to assign the set to a reply ID used in the `DeviceHandlerBase`.
The combination of the `GyroHandler` object ID and the reply ID will be the 64-bit structure ID
`sid_t` and is used to globally identify the set, for example when requesting housekeeping data or
generating update messages. We need to assign our custom set class in some way so that the local
pool manager can access the custom data sets as well.
By default, the `getDataSetHandle` will take care of this tasks. The default implementation for a
`DeviceHandlerBase` subclass will use the internal command map to retrieve
a handle to a dataset from a given reply ID. Therefore,
we assign the set in the `fillCommandAndReplyMap` function:
```cpp
void GyroHandler::fillCommandAndReplyMap() {
...
this->insertInCommandAndReplyMap(gyrodefs::GYRO_DATA, 3, &gyroData);
...
}
```
Now, we need to create the actual pool entries as well, using the `initializeLocalDataPool`
function. Here, we also immediately subscribe for periodic housekeeping packets
with an interval of 4 seconds. They are still disabled in this example and can be enabled
with a housekeeping service command.
```cpp
ReturnValue_t GyroHandler::initializeLocalDataPool(localpool::DataPool &localDataPoolMap,
LocalDataPoolManager &poolManager) {
localDataPoolMap.emplace(gyrodefs::ANGULAR_VELOCITY_X,
new PoolEntry<float>({0.0}));
localDataPoolMap.emplace(gyrodefs::ANGULAR_VELOCITY_Y,
new PoolEntry<float>({0.0}));
localDataPoolMap.emplace(gyrodefs::ANGULAR_VELOCITY_Z,
new PoolEntry<float>({0.0}));
localDataPoolMap.emplace(gyrodefs::GENERAL_CONFIG_REG42,
new PoolEntry<uint8_t>({0}));
localDataPoolMap.emplace(gyrodefs::RANGE_CONFIG_REG43,
new PoolEntry<uint8_t>({0}));
poolManager.subscribeForPeriodicPacket(gyroData.getSid(), false, 4.0, false);
return HasReturnvaluesIF::RETURN_OK;
}
```
Now, if we receive some sensor data and converted them into the right format,
we can write it into the pool like this, using a guard class to ensure the set is commited back
in any case:
```cpp
PoolReadGuard readHelper(&gyroData);
if(readHelper.getReadResult() == HasReturnvaluesIF::RETURN_OK) {
if(not gyroData.isValid()) {
gyroData.setValidity(true, true);
}
gyroData.angVelocityX = angularVelocityX;
gyroData.angVelocityY = angularVelocityY;
gyroData.angVelocityZ = angularVelocityZ;
}
```
The guard class will commit the changed data on destruction automatically.
### Using the local data pools in a `ExtendedControllerBase` subclass
Coming soon

View File

@ -1,32 +0,0 @@
# Operating System Abstraction Layer (OSAL)
Some specific information on the provided OSALs are provided.
## Linux OSAL
This OSAL can be used to compile for Linux host systems like Ubuntu 20.04 or for
embedded Linux targets like the Raspberry Pi. This OSAL generally requires threading support
and real-time functionalities. For most UNIX systems, this is done by adding `-lrt` and `-lpthread` to the linked libraries in the compilation process. The CMake build support provided will do this automatically for the `fsfw` target. It should be noted that most UNIX systems need to be configured specifically to allow the real-time functionalities required by the FSFW.
More information on how to set up a Linux system accordingly can be found in the
[Linux README of the FSFW example application](https://egit.irs.uni-stuttgart.de/fsfw/fsfw_example/src/branch/master/doc/README-linux.md#top)
## Hosted OSAL
This is the newest OSAL. Support for Semaphores has not been implemented yet and will propably be implemented as soon as C++20 with Semaphore support has matured. This OSAL can be used to run the FSFW on any host system, but currently has only been tested on Windows 10 and Ubuntu 20.04. Unlike the other OSALs, it uses dynamic memory allocation (e.g. for the message queue implementation). Cross-platform serial port (USB) support might be added soon.
## FreeRTOS OSAL
FreeRTOS is not included and the developer needs to take care of compiling the FreeRTOS sources and adding the `FreeRTOSConfig.h` file location to the include path. This OSAL has only been tested extensively with the pre-emptive scheduler configuration so far but it should in principle also be possible to use a cooperative scheduler. It is recommended to use the `heap_4` allocation scheme. When using newlib (nano), it is also recommended to add `#define configUSE_NEWLIB_REENTRANT` to the FreeRTOS configuration file to ensure thread-safety.
When using this OSAL, developers also need to provide an implementation for the `vRequestContextSwitchFromISR` function. This has been done because the call to request a context switch from an ISR is generally located in the `portmacro.h` header and is different depending on the target architecture or device.
## RTEMS OSAL
The RTEMS OSAL was the first implemented OSAL which is also used on the active satellite Flying Laptop.
## TCP/IP socket abstraction
The Linux and Host OSAL provide abstraction layers for the socket API. Currently, only UDP sockets have been imlemented. This is very useful to test TMTC handling either on the host computer directly (targeting localhost with a TMTC application) or on embedded Linux devices, sending TMTC packets via Ethernet.

View File

@ -1 +0,0 @@
## PUS Services

View File

@ -4,6 +4,7 @@ API
.. toctree::
:maxdepth: 4
api/cfdp
api/objectmanager
api/task
api/ipc

8
docs/api/cfdp.rst Normal file
View File

@ -0,0 +1,8 @@
CFDP API
=================
``UserBase``
-----------------
.. doxygenclass:: cfdp::UserBase
:members:

View File

@ -3,7 +3,7 @@
Returnvalue API
==================
.. doxygenfile:: HasReturnvaluesIF.h
.. doxygenfile:: returnvalue.h
.. _fwclassids:

View File

@ -17,12 +17,12 @@
# -- Project information -----------------------------------------------------
project = 'Flight Software Framework'
copyright = '2021, Institute of Space Systems (IRS)'
author = 'Institute of Space Systems (IRS)'
project = "Flight Software Framework"
copyright = "2021, Institute of Space Systems (IRS)"
author = "Institute of Space Systems (IRS)"
# The full version, including alpha/beta/rc tags
release = '2.0.1'
release = "5.0.0"
# -- General configuration ---------------------------------------------------
@ -30,17 +30,17 @@ release = '2.0.1'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [ "breathe" ]
extensions = ["breathe"]
breathe_default_project = "fsfw"
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
@ -48,9 +48,14 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
html_theme = "alabaster"
html_theme_options = {
"extra_nav_links": {"Impressum" : "https://www.uni-stuttgart.de/impressum", "Datenschutz": "https://info.irs.uni-stuttgart.de/datenschutz/datenschutzWebmit.html"}
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
html_static_path = []

View File

@ -75,11 +75,11 @@ and the respective source file with sensible default return values:
void TestDeviceHandler::doShutDown() {}
ReturnValue_t TestDeviceHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
ReturnValue_t TestDeviceHandler::buildTransitionDeviceCommand(DeviceCommandId_t* id) {
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
void TestDeviceHandler::fillCommandAndReplyMap() {}
@ -87,17 +87,17 @@ and the respective source file with sensible default return values:
ReturnValue_t TestDeviceHandler::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
const uint8_t* commandData,
size_t commandDataLen) {
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
ReturnValue_t TestDeviceHandler::scanForReply(const uint8_t* start, size_t remainingSize,
DeviceCommandId_t* foundId, size_t* foundLen) {
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
ReturnValue_t TestDeviceHandler::interpretDeviceReply(DeviceCommandId_t id,
const uint8_t* packet) {
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
uint32_t TestDeviceHandler::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) {
@ -106,5 +106,5 @@ and the respective source file with sensible default return values:
ReturnValue_t TestDeviceHandler::initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
LocalDataPoolManager& poolManager) {
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}

View File

@ -106,7 +106,7 @@ You can use the following commands inside the ``fsfw`` folder to set up the buil
.. code-block:: console
mkdir build-tests && cd build-tests
cmake -DFSFW_BUILD_UNITTESTS=ON -DFSFW_OSAL=host ..
cmake -DFSFW_BUILD_TESTS=ON -DFSFW_OSAL=host ..
You can also use ``-DFSFW_OSAL=linux`` on Linux systems.

View File

@ -6,19 +6,20 @@ High-level overview
Structure
----------
The general structure is driven by the usage of interfaces provided by objects.
The FSFW uses C++11 as baseline. The intention behind this is that this C++ Standard should be
widely available, even with older compilers.
The FSFW uses dynamic allocation during the initialization but provides static containers during runtime.
This simplifies the instantiation of objects and allows the usage of some standard containers.
Dynamic Allocation after initialization is discouraged and different solutions are provided in the
FSFW to achieve that. The fsfw uses run-time type information but exceptions are not allowed.
The general structure is driven by the usage of interfaces provided by objects.
The FSFW uses C++17 as baseline. Most modern compilers like GCC should have support for this
standard, even for micocontrollers.
The FSFW might use dynamic allocation during program initialization but not during runtime.
It offers pool objects, static containers and it also exposes the
`Embedded Template Library <https://www.etlcpp.com/>`_ to allow writing code which does not perform
allocation during runtime. The fsfw uses run-time type information but will not throw exceptions.
Failure Handling
-----------------
Functions should return a defined :cpp:type:`ReturnValue_t` to signal to the caller that something has
gone wrong. Returnvalues must be unique. For this the function :cpp:func:`HasReturnvaluesIF::makeReturnCode`
gone wrong. Returnvalues must be unique. For this the function :cpp:func:`returnvalue::makeCode`
or the :ref:`macro MAKE_RETURN_CODE <retvalapi>` can be used. The ``CLASS_ID`` is a unique ID for that type of object.
See the :ref:`FSFW Class IDs file <fwclassids>`. The user can add custom ``CLASS_ID``\s via the
``fsfwconfig`` folder.

View File

@ -150,7 +150,7 @@ with a housekeeping service command.
new PoolEntry<uint8_t>({0}));
poolManager.subscribeForPeriodicPacket(gyroData.getSid(), false, 4.0, false);
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
Now, if we receive some sensor data and converted them into the right format,
@ -160,7 +160,7 @@ in any case:
.. code-block:: cpp
PoolReadGuard readHelper(&gyroData);
if(readHelper.getReadResult() == HasReturnvaluesIF::RETURN_OK) {
if(readHelper.getReadResult() == returnvalue::OK) {
if(not gyroData.isValid()) {
gyroData.setValidity(true, true);
}

View File

@ -4,6 +4,10 @@
#include <cstddef>
#include <cstdint>
// It is assumed the user has a subsystem and class ID list in some user header files.
// #include "events/subsystemIdRanges.h"
// #include "returnvalues/classIds.h"
//! Used to determine whether C++ ostreams are used which can increase
//! the binary size significantly. If this is disabled,
//! the C stdio functions can be used alternatively

View File

@ -4,7 +4,6 @@
#include <fsfw/devicehandlers/DeviceHandlerBase.h>
#include <fsfw/events/EventManager.h>
#include <fsfw/health/HealthTable.h>
#include <fsfw/tmtcpacket/pus/tm/TmPacketStored.h>
#include <fsfw/tmtcservices/CommandingServiceBase.h>
#include <fsfw/tmtcservices/PusServiceBase.h>
#include <fsfw/internalerror/InternalErrorReporter.h>
@ -35,19 +34,15 @@ void Factory::produceFsfwObjects(void) {
}
void Factory::setStaticFrameworkObjectIds() {
PusServiceBase::packetSource = objects::NO_OBJECT;
PusServiceBase::packetDestination = objects::NO_OBJECT;
PusServiceBase::PUS_DISTRIBUTOR = objects::NO_OBJECT;
PusServiceBase::PACKET_DESTINATION = objects::NO_OBJECT;
CommandingServiceBase::defaultPacketSource = objects::NO_OBJECT;
CommandingServiceBase::defaultPacketDestination = objects::NO_OBJECT;
VerificationReporter::messageReceiver = objects::PUS_SERVICE_1_VERIFICATION;
DeviceHandlerBase::powerSwitcherId = objects::NO_OBJECT;
DeviceHandlerBase::rawDataReceiverId = objects::PUS_SERVICE_2_DEVICE_ACCESS;
DeviceHandlerFailureIsolation::powerConfirmationId = objects::NO_OBJECT;
TmPacketBase::timeStamperId = objects::NO_OBJECT;
}

View File

@ -11,15 +11,15 @@ ReturnValue_t pst::pollingSequenceInitDefault(
/* Add polling sequence table here */
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
return HasReturnvaluesIF::RETURN_OK;
if (thisSequence->checkSequence() == returnvalue::OK) {
return returnvalue::OK;
}
else {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << "pst::pollingSequenceInitDefault: Sequence invalid!"
<< std::endl;
#endif
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
}

View File

@ -1,7 +1,7 @@
#ifndef POLLINGSEQUENCEFACTORY_H_
#define POLLINGSEQUENCEFACTORY_H_
#include <fsfw/returnvalues/HasReturnvaluesIF.h>
#include <fsfw/returnvalues/returnvalue.h>
class FixedTimeslotTaskIF;

View File

@ -3,11 +3,17 @@ if [[ ! -f README.md ]]; then
cd ..
fi
folder_list=(
"./src"
"./unittests"
)
cmake_fmt="cmake-format"
file_selectors="-iname CMakeLists.txt"
if command -v ${cmake_fmt} &> /dev/null; then
${cmake_fmt} -i CMakeLists.txt
find ./src ${file_selectors} | xargs ${cmake_fmt} -i
find ./src ${file_selectors} | xargs ${cmake_fmt} -i
find ./unittests ${file_selectors} | xargs ${cmake_fmt} -i
else
echo "No ${cmake_fmt} tool found, not formatting CMake files"
fi
@ -15,8 +21,10 @@ fi
cpp_format="clang-format"
file_selectors="-iname *.h -o -iname *.cpp -o -iname *.c -o -iname *.tpp"
if command -v ${cpp_format} &> /dev/null; then
find ./src ${file_selectors} | xargs ${cpp_format} --style=file -i
find ./unittests ${file_selectors} | xargs ${cpp_format} --style=file -i
for dir in ${folder_list[@]}; do
echo "Auto-formatting ${dir} recursively"
find ${dir} ${file_selectors} | xargs clang-format --style=file -i
done
else
echo "No ${cpp_format} tool found, not formatting C++/C files"
fi

110
scripts/check_release.py Executable file
View File

@ -0,0 +1,110 @@
#! /bin/python
import argparse
import json
import urllib.request
import re
from pathlib import Path
def main() -> None:
parser = argparse.ArgumentParser(
description="List undocumented PRs"
)
parser.add_argument("-v", "--version", type=str, required=True)
args = parser.parse_args()
match = re.search("([0-9]+\.[0-9]+\.[0-9]+)", args.version)
if not match:
print("invalid version")
exit(1)
version = "v" + match.group(1)
print("looking for milestone for " + version + " ...")
with urllib.request.urlopen("https://egit.irs.uni-stuttgart.de/api/v1/repos/fsfw/fsfw/milestones?name=" + version) as milestone_json:
milestones = json.load(milestone_json)
if (len(milestones) == 0):
print("did not find any milestone")
exit(1)
if (len(milestones) > 1):
print("found multiple milestons")
milestone_title = milestones[0]['title']
milestone = str(milestones[0]['id'])
print("Using Milestone \""+ milestone_title + "\" with id " + milestone)
milestone_prs = []
page = 1
last_count = 1;
while last_count != 0:
with urllib.request.urlopen("https://egit.irs.uni-stuttgart.de/api/v1/repos/fsfw/fsfw/pulls?state=closed&milestone=" + str(milestone) + "&limit=100&page=" + str(page)) as pull_requests_json:
pull_requests = json.load(pull_requests_json)
for pr in pull_requests:
milestone_prs.append({'number': str(pr['number']), 'title' : pr['title']})
page += 1
last_count = len(pull_requests)
print("Found " + str(len(milestone_prs)) + " closed PRs in Milestone")
print("looking for CHANGELOG.md ...")
path = Path(".")
files = list(path.glob("CHANGELOG.md"))
if (len(files) != 1):
files = list(path.glob("../CHANGELOG.md"))
if (len(files) != 1):
print("did not find CHANGELOG.md. Run script in either root directory or scripts subfolder.")
exit(1)
print("Scanning CHANGELOG.md ...")
changelog_prs = []
with open(files[0]) as changelog:
line = changelog.readline()
while (line):
#print("line: " + line)
match = re.search("\#.+(v[0-9]+\.[0-9]+\.[0-9]+)", line)
if (match):
if match.group(1) == version:
#print("found version")
line = changelog.readline()
continue
else:
#print("done with " + match.group(1))
break
match = re.search("PR: https://egit\.irs\.uni-stuttgart\.de/fsfw/fsfw/pulls/([0-9]+)", line)
if match:
changelog_prs.append(match.group(1))
line = changelog.readline()
print("Found " + str(len(changelog_prs)) + " PRs in CHANGELOG.md")
print("")
copy_array = changelog_prs.copy()
print("PRs in CHANGELOG.md that are not in Milestone:")
for pr in milestone_prs:
if pr['number'] in copy_array:
copy_array.remove(pr['number'])
for pr in copy_array:
print("https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/" + pr)
print("")
print("PRs in milestone that are not in CHANGELOG.md:")
for pr in milestone_prs:
if pr['number'] not in changelog_prs:
print("- " + pr['title'] + "\n PR: https://egit.irs.uni-stuttgart.de/fsfw/fsfw/pulls/" + pr['number'])
main()

View File

@ -13,7 +13,7 @@ from shutil import which
from typing import List
UNITTEST_FOLDER_NAME = "build-tests"
UNITTEST_FOLDER_NAME = "cmake-build-tests"
DOCS_FOLDER_NAME = "build-docs"
@ -51,7 +51,7 @@ def main():
parser.add_argument(
"-g",
"--generators",
default = "Ninja",
default="Ninja",
action="store",
help="CMake generators",
)
@ -165,10 +165,18 @@ def create_tests_build_cfg(args):
os.mkdir(UNITTEST_FOLDER_NAME)
os.chdir(UNITTEST_FOLDER_NAME)
if args.windows:
cmake_cmd = 'cmake -G "' + args.generators + '" -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON \
cmake_cmd = (
'cmake -G "'
+ args.generators
+ '" -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON \
-DGCOVR_PATH="py -m gcovr" ..'
)
else:
cmake_cmd = 'cmake -G "' + args.generators + '" -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON ..'
cmake_cmd = (
'cmake -G "'
+ args.generators
+ '" -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON ..'
)
cmd_runner(cmake_cmd)
os.chdir("..")
@ -199,7 +207,7 @@ def check_for_cmake_build_dir(build_dir_list: list) -> list:
def perform_lcov_operation(directory: str, chdir: bool):
if chdir:
os.chdir(directory)
cmd_runner("cmake --build . -- fsfw-tests_coverage -j")
cmd_runner("cmake --build . -j -- fsfw-tests_coverage")
def determine_build_dir(build_dir_list: List[str]):

View File

@ -31,6 +31,7 @@ add_subdirectory(thermal)
add_subdirectory(timemanager)
add_subdirectory(tmtcpacket)
add_subdirectory(tmtcservices)
add_subdirectory(filesystem)
# Optional

View File

@ -12,7 +12,7 @@ ReturnValue_t ActionHelper::handleActionMessage(CommandMessage* command) {
if (command->getCommand() == ActionMessage::EXECUTE_ACTION) {
ActionId_t currentAction = ActionMessage::getActionId(command);
prepareExecution(command->getSender(), currentAction, ActionMessage::getStoreId(command));
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
} else {
return CommandMessage::UNKNOWN_COMMAND;
}
@ -21,7 +21,7 @@ ReturnValue_t ActionHelper::handleActionMessage(CommandMessage* command) {
ReturnValue_t ActionHelper::initialize(MessageQueueIF* queueToUse_) {
ipcStore = ObjectManager::instance()->get<StorageManagerIF>(objects::IPC_STORE);
if (ipcStore == nullptr) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
if (queueToUse_ != nullptr) {
setQueueToUse(queueToUse_);
@ -35,10 +35,10 @@ ReturnValue_t ActionHelper::initialize(MessageQueueIF* queueToUse_) {
sif::printWarning("ActionHelper::initialize: No queue set\n");
#endif
#endif /* FSFW_VERBOSE_LEVEL >= 1 */
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
void ActionHelper::step(uint8_t step, MessageQueueId_t reportTo, ActionId_t commandId,
@ -62,7 +62,7 @@ void ActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId_t act
const uint8_t* dataPtr = nullptr;
size_t size = 0;
ReturnValue_t result = ipcStore->getData(dataAddress, &dataPtr, &size);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
CommandMessage reply;
ActionMessage::setStepReply(&reply, actionId, 0, result);
queueToUse->sendMessage(commandedBy, &reply);
@ -75,7 +75,7 @@ void ActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId_t act
ActionMessage::setCompletionReply(&reply, actionId, true, result);
queueToUse->sendMessage(commandedBy, &reply);
}
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
CommandMessage reply;
ActionMessage::setStepReply(&reply, actionId, 0, result);
queueToUse->sendMessage(commandedBy, &reply);
@ -91,11 +91,11 @@ ReturnValue_t ActionHelper::reportData(MessageQueueId_t reportTo, ActionId_t rep
size_t maxSize = data->getSerializedSize();
if (maxSize == 0) {
/* No error, there's simply nothing to report. */
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
size_t size = 0;
ReturnValue_t result = ipcStore->getFreeElement(&storeAddress, maxSize, &dataPtr);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::warning << "ActionHelper::reportData: Getting free element from IPC store failed!"
<< std::endl;
@ -107,7 +107,7 @@ ReturnValue_t ActionHelper::reportData(MessageQueueId_t reportTo, ActionId_t rep
return result;
}
result = data->serialize(&dataPtr, &size, maxSize, SerializeIF::Endianness::BIG);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
ipcStore->deleteData(storeAddress);
return result;
}
@ -124,7 +124,7 @@ ReturnValue_t ActionHelper::reportData(MessageQueueId_t reportTo, ActionId_t rep
result = queueToUse->sendMessage(reportTo, &reply);
}
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
ipcStore->deleteData(storeAddress);
}
return result;
@ -137,7 +137,7 @@ ReturnValue_t ActionHelper::reportData(MessageQueueId_t reportTo, ActionId_t rep
CommandMessage reply;
store_address_t storeAddress;
ReturnValue_t result = ipcStore->addData(&storeAddress, data, dataSize);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::warning << "ActionHelper::reportData: Adding data to IPC store failed!" << std::endl;
#else
@ -158,7 +158,7 @@ ReturnValue_t ActionHelper::reportData(MessageQueueId_t reportTo, ActionId_t rep
result = queueToUse->sendMessage(reportTo, &reply);
}
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
ipcStore->deleteData(storeAddress);
}
return result;

View File

@ -36,7 +36,7 @@ class ActionHelper {
* send to the sender of the message automatically.
*
* @param command Pointer to a command message received by the owner
* @return HasReturnvaluesIF::RETURN_OK if the message is a action message,
* @return returnvalue::OK if the message is a action message,
* CommandMessage::UNKNOW_COMMAND if this message ID is unkown
*/
ReturnValue_t handleActionMessage(CommandMessage* command);
@ -45,7 +45,7 @@ class ActionHelper {
* helper function
* @param queueToUse_ Pointer to the messageQueue to be used, optional
* if queue was set in constructor
* @return Returns RETURN_OK if successful
* @return Returns returnvalue::OK if successful
*/
ReturnValue_t initialize(MessageQueueIF* queueToUse_ = nullptr);
/**
@ -58,7 +58,7 @@ class ActionHelper {
* @param result Result of the execution
*/
void step(uint8_t step, MessageQueueId_t reportTo, ActionId_t commandId,
ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
ReturnValue_t result = returnvalue::OK);
/**
* Function to be called by the owner to send a action completion message
* @param success Specify whether action was completed successfully or not.
@ -67,7 +67,7 @@ class ActionHelper {
* @param result Result of the execution
*/
void finish(bool success, MessageQueueId_t reportTo, ActionId_t commandId,
ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
ReturnValue_t result = returnvalue::OK);
/**
* Function to be called by the owner if an action does report data.
* Takes a SerializeIF* pointer and serializes it into the IPC store.
@ -75,7 +75,7 @@ class ActionHelper {
* message to
* @param replyId ID of the executed command
* @param data Pointer to the data
* @return Returns RETURN_OK if successful, otherwise failure code
* @return Returns returnvalue::OK if successful, otherwise failure code
*/
ReturnValue_t reportData(MessageQueueId_t reportTo, ActionId_t replyId, SerializeIF* data,
bool hideSender = false);
@ -86,7 +86,7 @@ class ActionHelper {
* message to
* @param replyId ID of the executed command
* @param data Pointer to the data
* @return Returns RETURN_OK if successful, otherwise failure code
* @return Returns returnvalue::OK if successful, otherwise failure code
*/
ReturnValue_t reportData(MessageQueueId_t reportTo, ActionId_t replyId, const uint8_t* data,
size_t dataSize, bool hideSender = false);

View File

@ -25,7 +25,7 @@ store_address_t ActionMessage::getStoreId(const CommandMessage* message) {
void ActionMessage::setStepReply(CommandMessage* message, ActionId_t fid, uint8_t step,
ReturnValue_t result) {
if (result == HasReturnvaluesIF::RETURN_OK) {
if (result == returnvalue::OK) {
message->setCommand(STEP_SUCCESS);
} else {
message->setCommand(STEP_FAILED);

View File

@ -33,12 +33,12 @@ class ActionMessage {
static store_address_t getStoreId(const CommandMessage* message);
static void setStepReply(CommandMessage* message, ActionId_t fid, uint8_t step,
ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
ReturnValue_t result = returnvalue::OK);
static uint8_t getStep(const CommandMessage* message);
static ReturnValue_t getReturnCode(const CommandMessage* message);
static void setDataReply(CommandMessage* message, ActionId_t actionId, store_address_t data);
static void setCompletionReply(CommandMessage* message, ActionId_t fid, bool success,
ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
ReturnValue_t result = returnvalue::OK);
static void clear(CommandMessage* message);
};

View File

@ -16,12 +16,12 @@ ReturnValue_t CommandActionHelper::commandAction(object_id_t commandTo, ActionId
uint8_t *storePointer;
size_t maxSize = data->getSerializedSize();
ReturnValue_t result = ipcStore->getFreeElement(&storeId, maxSize, &storePointer);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
size_t size = 0;
result = data->serialize(&storePointer, &size, maxSize, SerializeIF::Endianness::BIG);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
return sendCommand(receiver->getCommandQueue(), actionId, storeId);
@ -35,7 +35,7 @@ ReturnValue_t CommandActionHelper::commandAction(object_id_t commandTo, ActionId
}
store_address_t storeId;
ReturnValue_t result = ipcStore->addData(&storeId, data, size);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
return sendCommand(receiver->getCommandQueue(), actionId, storeId);
@ -46,7 +46,7 @@ ReturnValue_t CommandActionHelper::sendCommand(MessageQueueId_t queueId, ActionI
CommandMessage command;
ActionMessage::setCommand(&command, actionId, storeId);
ReturnValue_t result = queueToUse->sendMessage(queueId, &command);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
ipcStore->deleteData(storeId);
}
lastTarget = queueId;
@ -57,44 +57,44 @@ ReturnValue_t CommandActionHelper::sendCommand(MessageQueueId_t queueId, ActionI
ReturnValue_t CommandActionHelper::initialize() {
ipcStore = ObjectManager::instance()->get<StorageManagerIF>(objects::IPC_STORE);
if (ipcStore == nullptr) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
queueToUse = owner->getCommandQueuePtr();
if (queueToUse == nullptr) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
ReturnValue_t CommandActionHelper::handleReply(CommandMessage *reply) {
if (reply->getSender() != lastTarget) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
switch (reply->getCommand()) {
case ActionMessage::COMPLETION_SUCCESS:
commandCount--;
owner->completionSuccessfulReceived(ActionMessage::getActionId(reply));
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
case ActionMessage::COMPLETION_FAILED:
commandCount--;
owner->completionFailedReceived(ActionMessage::getActionId(reply),
ActionMessage::getReturnCode(reply));
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
case ActionMessage::STEP_SUCCESS:
owner->stepSuccessfulReceived(ActionMessage::getActionId(reply),
ActionMessage::getStep(reply));
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
case ActionMessage::STEP_FAILED:
commandCount--;
owner->stepFailedReceived(ActionMessage::getActionId(reply), ActionMessage::getStep(reply),
ActionMessage::getReturnCode(reply));
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
case ActionMessage::DATA_REPLY:
extractDataForOwner(ActionMessage::getActionId(reply), ActionMessage::getStoreId(reply));
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
default:
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
}
@ -104,7 +104,7 @@ void CommandActionHelper::extractDataForOwner(ActionId_t actionId, store_address
const uint8_t *data = nullptr;
size_t size = 0;
ReturnValue_t result = ipcStore->getData(storeId, &data, &size);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return;
}
owner->dataReceived(actionId, data, size);

View File

@ -4,7 +4,7 @@
#include "ActionMessage.h"
#include "fsfw/ipc/MessageQueueIF.h"
#include "fsfw/objectmanager/ObjectManagerIF.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include "fsfw/returnvalues/returnvalue.h"
#include "fsfw/serialize/SerializeIF.h"
#include "fsfw/storagemanager/StorageManagerIF.h"

View File

@ -3,7 +3,7 @@
#include "CommandActionHelper.h"
#include "fsfw/ipc/MessageQueueIF.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include "fsfw/returnvalues/returnvalue.h"
/**
* Interface to separate commanding actions of other objects.

View File

@ -5,7 +5,7 @@
#include "ActionMessage.h"
#include "SimpleActionHelper.h"
#include "fsfw/ipc/MessageQueueIF.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include "fsfw/returnvalues/returnvalue.h"
/**
* @brief
@ -53,7 +53,7 @@ class HasActionsIF {
*
* @return
* -@c EXECUTION_FINISHED Finish reply will be generated
* -@c Not RETURN_OK Step failure reply will be generated
* -@c Not returnvalue::OK Step failure reply will be generated
*/
virtual ReturnValue_t executeAction(ActionId_t actionId, MessageQueueId_t commandedBy,
const uint8_t* data, size_t size) = 0;

View File

@ -9,7 +9,7 @@ void SimpleActionHelper::step(ReturnValue_t result) {
// STEP_OFFESET is subtracted to compensate for adding offset in base
// method, which is not necessary here.
ActionHelper::step(stepCount - STEP_OFFSET, lastCommander, lastAction, result);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
resetHelper();
}
}
@ -41,7 +41,7 @@ void SimpleActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId
const uint8_t* dataPtr = nullptr;
size_t size = 0;
ReturnValue_t result = ipcStore->getData(dataAddress, &dataPtr, &size);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
ActionMessage::setStepReply(&reply, actionId, 0, result);
queueToUse->sendMessage(commandedBy, &reply);
return;
@ -51,12 +51,12 @@ void SimpleActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId
result = owner->executeAction(actionId, commandedBy, dataPtr, size);
ipcStore->deleteData(dataAddress);
switch (result) {
case HasReturnvaluesIF::RETURN_OK:
case returnvalue::OK:
isExecuting = true;
stepCount++;
break;
case HasActionsIF::EXECUTION_FINISHED:
ActionMessage::setCompletionReply(&reply, actionId, true, HasReturnvaluesIF::RETURN_OK);
ActionMessage::setCompletionReply(&reply, actionId, true, returnvalue::OK);
queueToUse->sendMessage(commandedBy, &reply);
break;
default:

View File

@ -12,8 +12,8 @@ class SimpleActionHelper : public ActionHelper {
public:
SimpleActionHelper(HasActionsIF* setOwner, MessageQueueIF* useThisQueue);
~SimpleActionHelper() override;
void step(ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
void finish(ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
void step(ReturnValue_t result = returnvalue::OK);
void finish(ReturnValue_t result = returnvalue::OK);
ReturnValue_t reportData(SerializeIF* data);
protected:

10
src/fsfw/cfdp.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef FSFW_CFDP_H
#define FSFW_CFDP_H
#include "cfdp/definitions.h"
#include "cfdp/handler/FaultHandlerBase.h"
#include "cfdp/tlv/Lv.h"
#include "cfdp/tlv/StringLv.h"
#include "cfdp/tlv/Tlv.h"
#endif // FSFW_CFDP_H

View File

@ -1,57 +0,0 @@
#include "fsfw/cfdp/CFDPHandler.h"
#include "fsfw/cfdp/CFDPMessage.h"
#include "fsfw/ipc/CommandMessage.h"
#include "fsfw/ipc/QueueFactory.h"
#include "fsfw/objectmanager/ObjectManager.h"
#include "fsfw/storagemanager/storeAddress.h"
#include "fsfw/tmtcservices/AcceptsTelemetryIF.h"
object_id_t CFDPHandler::packetSource = 0;
object_id_t CFDPHandler::packetDestination = 0;
CFDPHandler::CFDPHandler(object_id_t setObjectId, CFDPDistributor* dist)
: SystemObject(setObjectId) {
requestQueue = QueueFactory::instance()->createMessageQueue(CFDP_HANDLER_MAX_RECEPTION);
distributor = dist;
}
CFDPHandler::~CFDPHandler() {}
ReturnValue_t CFDPHandler::initialize() {
ReturnValue_t result = SystemObject::initialize();
if (result != RETURN_OK) {
return result;
}
this->distributor->registerHandler(this);
return HasReturnvaluesIF::RETURN_OK;
}
ReturnValue_t CFDPHandler::handleRequest(store_address_t storeId) {
#if FSFW_VERBOSE_LEVEL >= 1
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::debug << "CFDPHandler::handleRequest" << std::endl;
#else
sif::printDebug("CFDPHandler::handleRequest\n");
#endif /* !FSFW_CPP_OSTREAM_ENABLED == 1 */
#endif
// TODO read out packet from store using storeId
return RETURN_OK;
}
ReturnValue_t CFDPHandler::performOperation(uint8_t opCode) {
ReturnValue_t status = RETURN_OK;
CommandMessage currentMessage;
for (status = this->requestQueue->receiveMessage(&currentMessage); status == RETURN_OK;
status = this->requestQueue->receiveMessage(&currentMessage)) {
store_address_t storeId = CFDPMessage::getStoreId(&currentMessage);
this->handleRequest(storeId);
}
return RETURN_OK;
}
uint16_t CFDPHandler::getIdentifier() { return 0; }
MessageQueueId_t CFDPHandler::getRequestQueue() { return this->requestQueue->getId(); }

View File

@ -1,63 +0,0 @@
#ifndef FSFW_CFDP_CFDPHANDLER_H_
#define FSFW_CFDP_CFDPHANDLER_H_
#include "fsfw/ipc/MessageQueueIF.h"
#include "fsfw/objectmanager/SystemObject.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include "fsfw/tasks/ExecutableObjectIF.h"
#include "fsfw/tcdistribution/CFDPDistributor.h"
#include "fsfw/tmtcservices/AcceptsTelecommandsIF.h"
namespace Factory {
void setStaticFrameworkObjectIds();
}
class CFDPHandler : public ExecutableObjectIF,
public AcceptsTelecommandsIF,
public SystemObject,
public HasReturnvaluesIF {
friend void(Factory::setStaticFrameworkObjectIds)();
public:
CFDPHandler(object_id_t setObjectId, CFDPDistributor* distributor);
/**
* The destructor is empty.
*/
virtual ~CFDPHandler();
virtual ReturnValue_t handleRequest(store_address_t storeId);
virtual ReturnValue_t initialize() override;
virtual uint16_t getIdentifier() override;
MessageQueueId_t getRequestQueue() override;
ReturnValue_t performOperation(uint8_t opCode) override;
protected:
/**
* This is a complete instance of the telecommand reception queue
* of the class. It is initialized on construction of the class.
*/
MessageQueueIF* requestQueue = nullptr;
CFDPDistributor* distributor = nullptr;
/**
* The current CFDP packet to be processed.
* It is deleted after handleRequest was executed.
*/
CFDPPacketStored currentPacket;
static object_id_t packetSource;
static object_id_t packetDestination;
private:
/**
* This constant sets the maximum number of packets accepted per call.
* Remember that one packet must be completely handled in one
* #handleRequest call.
*/
static const uint8_t CFDP_HANDLER_MAX_RECEPTION = 100;
};
#endif /* FSFW_CFDP_CFDPHANDLER_H_ */

View File

@ -1,17 +0,0 @@
#include "CFDPMessage.h"
CFDPMessage::CFDPMessage() {}
CFDPMessage::~CFDPMessage() {}
void CFDPMessage::setCommand(CommandMessage *message, store_address_t cfdpPacket) {
message->setParameter(cfdpPacket.raw);
}
store_address_t CFDPMessage::getStoreId(const CommandMessage *message) {
store_address_t storeAddressCFDPPacket;
storeAddressCFDPPacket = message->getParameter();
return storeAddressCFDPPacket;
}
void CFDPMessage::clear(CommandMessage *message) {}

View File

@ -1,4 +1,6 @@
target_sources(${LIB_FSFW_NAME} PRIVATE CFDPHandler.cpp CFDPMessage.cpp)
target_sources(${LIB_FSFW_NAME} PRIVATE CfdpMessage.cpp CfdpDistributor.cpp
VarLenFields.cpp helpers.cpp)
add_subdirectory(pdu)
add_subdirectory(tlv)
add_subdirectory(handler)

View File

@ -0,0 +1,55 @@
#include "CfdpDistributor.h"
#include "fsfw/tcdistribution/definitions.h"
CfdpDistributor::CfdpDistributor(CfdpDistribCfg cfg)
: TcDistributorBase(cfg.objectId, cfg.tcQueue), cfg(cfg) {}
ReturnValue_t CfdpDistributor::registerTcDestination(const cfdp::EntityId& address,
AcceptsTelecommandsIF& tcDest) {
for (const auto& dest : tcDestinations) {
if (dest.id == address) {
return returnvalue::FAILED;
}
}
tcDestinations.emplace_back(address, tcDest.getName(), tcDest.getRequestQueue());
return returnvalue::OK;
}
ReturnValue_t CfdpDistributor::selectDestination(MessageQueueId_t& destId) {
auto accessorPair = cfg.tcStore.getData(currentMessage.getStorageId());
if (accessorPair.first != returnvalue::OK) {
return accessorPair.first;
}
ReturnValue_t result =
pduReader.setReadOnlyData(accessorPair.second.data(), accessorPair.second.size());
if (result != returnvalue::OK) {
return result;
}
result = pduReader.parseData();
if (result != returnvalue::OK) {
return result;
}
cfdp::EntityId foundId;
pduReader.getDestId(foundId);
bool destFound = false;
for (const auto& dest : tcDestinations) {
if (dest.id == foundId) {
destId = dest.queueId;
destFound = true;
}
}
if (not destFound) {
// TODO: Warning and event?
return tmtcdistrib::NO_DESTINATION_FOUND;
}
// Packet was forwarded successfully, so do not delete it.
accessorPair.second.release();
return returnvalue::OK;
}
const char* CfdpDistributor::getName() const { return "CFDP Distributor"; }
uint32_t CfdpDistributor::getIdentifier() const { return 0; }
MessageQueueId_t CfdpDistributor::getRequestQueue() const { return tcQueue->getId(); }

View File

@ -0,0 +1,76 @@
#ifndef FSFW_TCDISTRIBUTION_CFDPDISTRIBUTOR_H_
#define FSFW_TCDISTRIBUTION_CFDPDISTRIBUTOR_H_
#include <utility>
#include <vector>
#include "fsfw/cfdp/pdu/PduHeaderReader.h"
#include "fsfw/returnvalues/returnvalue.h"
#include "fsfw/tcdistribution/CfdpPacketChecker.h"
#include "fsfw/tcdistribution/TcDistributorBase.h"
#include "fsfw/tmtcpacket/cfdp/CfdpPacketStored.h"
#include "fsfw/tmtcservices/AcceptsTelecommandsIF.h"
#include "fsfw/tmtcservices/VerificationReporter.h"
struct CfdpDistribCfg {
CfdpDistribCfg(object_id_t objectId, StorageManagerIF& tcStore, MessageQueueIF* tcQueue)
: objectId(objectId), tcStore(tcStore), tcQueue(tcQueue) {}
object_id_t objectId;
StorageManagerIF& tcStore;
MessageQueueIF* tcQueue;
};
/**
* This will be the primary component to perform PDU forwading procedures. This includes forwarding
* CFDP TC packets to registered source or destination handlers, and forwarding all telemetry
* generated by them to registered TM sinks.
* @ingroup tc_distribution
*/
class CfdpDistributor : public TcDistributorBase, public AcceptsTelecommandsIF {
public:
/**
* The ctor passes @c set_apid to the checker class and calls the
* TcDistribution ctor with a certain object id.
* @param setApid The APID of this receiving Application.
* @param setObjectId Object ID of the distributor itself
* @param setPacketSource Object ID of the source of TC packets.
* Must implement CcsdsDistributorIF.
*/
explicit CfdpDistributor(CfdpDistribCfg cfg);
[[nodiscard]] const char* getName() const override;
[[nodiscard]] uint32_t getIdentifier() const override;
[[nodiscard]] MessageQueueId_t getRequestQueue() const override;
/**
* Register a new CFDP entity which can receive PDUs.
* @param address
* @param tcDest
* @return
* - @c RETURN_FAILED: Entry already exists for the given address
*/
ReturnValue_t registerTcDestination(const cfdp::EntityId& address, AcceptsTelecommandsIF& tcDest);
protected:
struct EntityInfo {
EntityInfo(cfdp::EntityId id, const char* name, MessageQueueId_t queueId)
: id(std::move(id)), name(name), queueId(queueId) {}
cfdp::EntityId id;
const char* name;
MessageQueueId_t queueId;
};
PduHeaderReader pduReader;
ReturnValue_t lastTcError = returnvalue::OK;
ReturnValue_t lastTmError = returnvalue::OK;
// I don't think a regular OBSW will have more than 1 or 2 of these destinations, so I think
// it is okay to accept the overhead here
std::vector<EntityInfo> tcDestinations;
CfdpDistribCfg cfg;
ReturnValue_t selectDestination(MessageQueueId_t& destId) override;
private:
};
#endif /* FSFW_TCDISTRIBUTION_CFDPDISTRIBUTOR_H_ */

View File

@ -0,0 +1,17 @@
#include "CfdpMessage.h"
CfdpMessage::CfdpMessage() = default;
CfdpMessage::~CfdpMessage() = default;
void CfdpMessage::setCommand(CommandMessage *message, store_address_t cfdpPacket) {
message->setParameter(cfdpPacket.raw);
}
store_address_t CfdpMessage::getStoreId(const CommandMessage *message) {
store_address_t storeId;
storeId = static_cast<store_address_t>(message->getParameter());
return storeId;
}
void CfdpMessage::clear(CommandMessage *message) {}

View File

@ -5,14 +5,14 @@
#include "fsfw/objectmanager/ObjectManagerIF.h"
#include "fsfw/storagemanager/StorageManagerIF.h"
class CFDPMessage {
class CfdpMessage {
private:
CFDPMessage();
CfdpMessage();
public:
static const uint8_t MESSAGE_ID = messagetypes::CFDP;
virtual ~CFDPMessage();
virtual ~CfdpMessage();
static void setCommand(CommandMessage* message, store_address_t cfdpPacket);
static store_address_t getStoreId(const CommandMessage* message);

View File

@ -1,5 +1,7 @@
#ifndef FSFW_SRC_FSFW_CFDP_FILESIZE_H_
#define FSFW_SRC_FSFW_CFDP_FILESIZE_H_
#ifndef FSFW_CFDP_FILESIZE_H_
#define FSFW_CFDP_FILESIZE_H_
#include <optional>
#include "fsfw/serialize/SerializeAdapter.h"
#include "fsfw/serialize/SerializeIF.h"
@ -8,9 +10,11 @@ namespace cfdp {
struct FileSize : public SerializeIF {
public:
FileSize() : largeFile(false){};
FileSize() = default;
FileSize(uint64_t fileSize, bool isLarge = false) { setFileSize(fileSize, isLarge); };
explicit FileSize(uint64_t fileSize, bool isLarge = false) { setFileSize(fileSize, isLarge); };
[[nodiscard]] uint64_t value() const { return fileSize; }
ReturnValue_t serialize(bool isLarge, uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) {
@ -27,7 +31,7 @@ struct FileSize : public SerializeIF {
return SerializeAdapter::serialize(&fileSize, buffer, size, maxSize, streamEndianness);
}
size_t getSerializedSize() const override {
[[nodiscard]] size_t getSerializedSize() const override {
if (largeFile) {
return 8;
} else {
@ -43,27 +47,29 @@ struct FileSize : public SerializeIF {
uint32_t sizeTmp = 0;
ReturnValue_t result =
SerializeAdapter::deSerialize(&sizeTmp, buffer, size, streamEndianness);
if (result == HasReturnvaluesIF::RETURN_OK) {
if (result == returnvalue::OK) {
fileSize = sizeTmp;
}
return result;
}
}
ReturnValue_t setFileSize(uint64_t fileSize, bool largeFile) {
ReturnValue_t setFileSize(uint64_t fileSize_, std::optional<bool> largeFile_) {
if (largeFile_) {
largeFile = largeFile_.value();
}
if (not largeFile and fileSize > UINT32_MAX) {
// TODO: emit warning here
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
this->fileSize = fileSize;
this->largeFile = largeFile;
return HasReturnvaluesIF::RETURN_OK;
this->fileSize = fileSize_;
return returnvalue::OK;
}
bool isLargeFile() const { return largeFile; }
uint64_t getSize(bool *largeFile = nullptr) const {
if (largeFile != nullptr) {
*largeFile = this->largeFile;
[[nodiscard]] bool isLargeFile() const { return largeFile; }
uint64_t getSize(bool *largeFile_ = nullptr) const {
if (largeFile_ != nullptr) {
*largeFile_ = this->largeFile;
}
return fileSize;
}
@ -75,4 +81,4 @@ struct FileSize : public SerializeIF {
} // namespace cfdp
#endif /* FSFW_SRC_FSFW_CFDP_FILESIZE_H_ */
#endif /* FSFW_CFDP_FILESIZE_H_ */

View File

@ -1,12 +1,11 @@
#include "VarLenField.h"
#include "VarLenFields.h"
#include "fsfw/FSFW.h"
#include "fsfw/serialize/SerializeAdapter.h"
#include "fsfw/serviceinterface.h"
cfdp::VarLenField::VarLenField(cfdp::WidthInBytes width, size_t value) : VarLenField() {
ReturnValue_t result = this->setValue(width, value);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
#if FSFW_DISABLE_PRINTOUT == 0
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::warning << "cfdp::VarLenField: Setting value failed" << std::endl;
@ -21,27 +20,27 @@ cfdp::VarLenField::VarLenField() : width(cfdp::WidthInBytes::ONE_BYTE) { value.o
cfdp::WidthInBytes cfdp::VarLenField::getWidth() const { return width; }
ReturnValue_t cfdp::VarLenField::setValue(cfdp::WidthInBytes widthInBytes, size_t value) {
ReturnValue_t cfdp::VarLenField::setValue(cfdp::WidthInBytes widthInBytes, size_t value_) {
switch (widthInBytes) {
case (cfdp::WidthInBytes::ONE_BYTE): {
if (value > UINT8_MAX) {
return HasReturnvaluesIF::RETURN_FAILED;
if (value_ > UINT8_MAX) {
return returnvalue::FAILED;
}
this->value.oneByte = value;
this->value.oneByte = value_;
break;
}
case (cfdp::WidthInBytes::TWO_BYTES): {
if (value > UINT16_MAX) {
return HasReturnvaluesIF::RETURN_FAILED;
if (value_ > UINT16_MAX) {
return returnvalue::FAILED;
}
this->value.twoBytes = value;
this->value.twoBytes = value_;
break;
}
case (cfdp::WidthInBytes::FOUR_BYTES): {
if (value > UINT32_MAX) {
return HasReturnvaluesIF::RETURN_FAILED;
if (value_ > UINT32_MAX) {
return returnvalue::FAILED;
}
this->value.fourBytes = value;
this->value.fourBytes = value_;
break;
}
default: {
@ -49,7 +48,7 @@ ReturnValue_t cfdp::VarLenField::setValue(cfdp::WidthInBytes widthInBytes, size_
}
}
this->width = widthInBytes;
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
size_t cfdp::VarLenField::getValue() const {
@ -77,7 +76,7 @@ ReturnValue_t cfdp::VarLenField::serialize(uint8_t **buffer, size_t *size, size_
**buffer = value.oneByte;
*size += 1;
*buffer += 1;
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
case (cfdp::WidthInBytes::TWO_BYTES): {
return SerializeAdapter::serialize(&value.twoBytes, buffer, size, maxSize, streamEndianness);
@ -86,16 +85,16 @@ ReturnValue_t cfdp::VarLenField::serialize(uint8_t **buffer, size_t *size, size_
return SerializeAdapter::serialize(&value.fourBytes, buffer, size, maxSize, streamEndianness);
}
default: {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
}
}
size_t cfdp::VarLenField::getSerializedSize() const { return width; }
ReturnValue_t cfdp::VarLenField::deSerialize(cfdp::WidthInBytes width, const uint8_t **buffer,
ReturnValue_t cfdp::VarLenField::deSerialize(cfdp::WidthInBytes width_, const uint8_t **buffer,
size_t *size, Endianness streamEndianness) {
this->width = width;
this->width = width_;
return deSerialize(buffer, size, streamEndianness);
}
@ -105,7 +104,7 @@ ReturnValue_t cfdp::VarLenField::deSerialize(const uint8_t **buffer, size_t *siz
case (cfdp::WidthInBytes::ONE_BYTE): {
value.oneByte = **buffer;
*size += 1;
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
case (cfdp::WidthInBytes::TWO_BYTES): {
return SerializeAdapter::deSerialize(&value.twoBytes, buffer, size, streamEndianness);
@ -114,7 +113,25 @@ ReturnValue_t cfdp::VarLenField::deSerialize(const uint8_t **buffer, size_t *siz
return SerializeAdapter::deSerialize(&value.fourBytes, buffer, size, streamEndianness);
}
default: {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
}
}
bool cfdp::VarLenField::operator<(const cfdp::VarLenField &other) const {
if (getWidth() < other.getWidth()) {
return true;
} else if (getWidth() == other.getWidth()) {
return getValue() < other.getValue();
} else {
return false;
}
}
bool cfdp::VarLenField::operator==(const cfdp::VarLenField &other) const {
return getWidth() == other.getWidth() and getValue() == other.getValue();
}
bool cfdp::VarLenField::operator!=(const cfdp::VarLenField &other) const {
return not(*this == other);
}

View File

@ -0,0 +1,107 @@
#ifndef FSFW_CFDP_PDU_VARLENFIELD_H_
#define FSFW_CFDP_PDU_VARLENFIELD_H_
#include <cstddef>
#include <cstdint>
#include <utility>
#include "fsfw/cfdp/definitions.h"
#include "fsfw/serialize/SerializeIF.h"
#include "fsfw/serviceinterface.h"
#include "fsfw/util/UnsignedByteField.h"
namespace cfdp {
class VarLenField : public SerializeIF {
public:
union LengthFieldLen {
uint8_t oneByte;
uint16_t twoBytes;
uint32_t fourBytes;
uint64_t eightBytes;
};
VarLenField();
template <typename T>
explicit VarLenField(UnsignedByteField<T> byteField);
VarLenField(cfdp::WidthInBytes width, size_t value);
bool operator==(const VarLenField &other) const;
bool operator!=(const VarLenField &other) const;
bool operator<(const VarLenField &other) const;
ReturnValue_t setValue(cfdp::WidthInBytes, size_t value);
ReturnValue_t serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const override;
[[nodiscard]] size_t getSerializedSize() const override;
ReturnValue_t deSerialize(cfdp::WidthInBytes width, const uint8_t **buffer, size_t *size,
Endianness streamEndianness);
[[nodiscard]] cfdp::WidthInBytes getWidth() const;
[[nodiscard]] size_t getValue() const;
#if FSFW_CPP_OSTREAM_ENABLED == 1
friend std::ostream &operator<<(std::ostream &os, const VarLenField &id) {
os << "dec: " << id.getValue() << ", hex: " << std::hex << std::setw(id.getWidth())
<< std::setfill('0') << id.getValue() << std::dec << std::setfill('0');
return os;
}
#endif
private:
ReturnValue_t deSerialize(const uint8_t **buffer, size_t *size,
Endianness streamEndianness) override;
cfdp::WidthInBytes width;
LengthFieldLen value{};
};
template <typename T>
cfdp::VarLenField::VarLenField(UnsignedByteField<T> byteField)
: width(static_cast<cfdp::WidthInBytes>(sizeof(T))) {
static_assert((sizeof(T) % 2) == 0);
setValue(width, byteField.getValue());
}
struct EntityId : public VarLenField {
public:
EntityId() : VarLenField() {}
template <typename T>
explicit EntityId(UnsignedByteField<T> byteField) : VarLenField(byteField) {}
EntityId(cfdp::WidthInBytes width, size_t entityId) : VarLenField(width, entityId) {}
};
struct TransactionSeqNum : public VarLenField {
public:
TransactionSeqNum() : VarLenField() {}
template <typename T>
explicit TransactionSeqNum(UnsignedByteField<T> byteField) : VarLenField(byteField) {}
TransactionSeqNum(cfdp::WidthInBytes width, size_t seqNum) : VarLenField(width, seqNum) {}
};
struct TransactionId {
TransactionId() = default;
TransactionId(EntityId entityId, TransactionSeqNum seqNum)
: entityId(std::move(entityId)), seqNum(std::move(seqNum)) {}
bool operator==(const TransactionId &other) const {
return entityId == other.entityId and seqNum == other.seqNum;
}
#if FSFW_CPP_OSTREAM_ENABLED == 1
friend std::ostream &operator<<(std::ostream &os, const TransactionId &id) {
os << "Source ID { " << id.entityId << " }, Sequence Number " << id.seqNum.getValue();
return os;
}
#endif
EntityId entityId;
TransactionSeqNum seqNum;
};
} // namespace cfdp
#endif /* FSFW_CFDP_PDU_VARLENFIELD_H_ */

View File

@ -7,36 +7,37 @@
#include <cstdint>
#include "fsfw/returnvalues/FwClassIds.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include "fsfw/returnvalues/returnvalue.h"
namespace cfdp {
static constexpr uint8_t VERSION_BITS = 0b00100000;
static constexpr char CFDP_VERSION_2_NAME[] = "CCSDS 727.0-B-5";
// Second version of the protocol, only this one is supported here
static constexpr uint8_t CFDP_VERSION_2 = 0b001;
static constexpr uint8_t VERSION_BITS = CFDP_VERSION_2 << 5;
static constexpr uint8_t CFDP_CLASS_ID = CLASS_ID::CFDP;
static constexpr ReturnValue_t INVALID_TLV_TYPE =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 1);
static constexpr ReturnValue_t INVALID_DIRECTIVE_FIELDS =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 2);
static constexpr ReturnValue_t INVALID_PDU_DATAFIELD_LEN =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 3);
static constexpr ReturnValue_t INVALID_TLV_TYPE = returnvalue::makeCode(CFDP_CLASS_ID, 1);
static constexpr ReturnValue_t INVALID_DIRECTIVE_FIELD = returnvalue::makeCode(CFDP_CLASS_ID, 2);
static constexpr ReturnValue_t INVALID_PDU_DATAFIELD_LEN = returnvalue::makeCode(CFDP_CLASS_ID, 3);
static constexpr ReturnValue_t INVALID_ACK_DIRECTIVE_FIELDS =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 4);
returnvalue::makeCode(CFDP_CLASS_ID, 4);
//! Can not parse options. This can also occur because there are options
//! available but the user did not pass a valid options array
static constexpr ReturnValue_t METADATA_CANT_PARSE_OPTIONS =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 5);
static constexpr ReturnValue_t NAK_CANT_PARSE_OPTIONS =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 6);
returnvalue::makeCode(CFDP_CLASS_ID, 5);
static constexpr ReturnValue_t NAK_CANT_PARSE_OPTIONS = returnvalue::makeCode(CFDP_CLASS_ID, 6);
static constexpr ReturnValue_t FINISHED_CANT_PARSE_FS_RESPONSES =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 6);
returnvalue::makeCode(CFDP_CLASS_ID, 7);
static constexpr ReturnValue_t FILESTORE_REQUIRES_SECOND_FILE =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 8);
returnvalue::makeCode(CFDP_CLASS_ID, 8);
//! Can not parse filestore response because user did not pass a valid instance
//! or remaining size is invalid
static constexpr ReturnValue_t FILESTORE_RESPONSE_CANT_PARSE_FS_MESSAGE =
HasReturnvaluesIF::makeReturnCode(CFDP_CLASS_ID, 9);
returnvalue::makeCode(CFDP_CLASS_ID, 9);
static constexpr ReturnValue_t INVALID_PDU_FORMAT = returnvalue::makeCode(CFDP_CLASS_ID, 10);
//! Checksum types according to the SANA Checksum Types registry
//! https://sanaregistry.org/r/checksum_identifiers/
@ -49,17 +50,17 @@ enum ChecksumType {
NULL_CHECKSUM = 15
};
enum PduType : bool { FILE_DIRECTIVE = 0, FILE_DATA = 1 };
enum PduType : uint8_t { FILE_DIRECTIVE = 0, FILE_DATA = 1 };
enum TransmissionModes : bool { ACKNOWLEDGED = 0, UNACKNOWLEDGED = 1 };
enum TransmissionMode : uint8_t { ACKNOWLEDGED = 0, UNACKNOWLEDGED = 1 };
enum SegmentMetadataFlag : bool { NOT_PRESENT = 0, PRESENT = 1 };
enum SegmentMetadataFlag : bool { NOT_PRESENT = false, PRESENT = true };
enum Direction : bool { TOWARDS_RECEIVER = 0, TOWARDS_SENDER = 1 };
enum Direction : uint8_t { TOWARDS_RECEIVER = 0, TOWARDS_SENDER = 1 };
enum SegmentationControl : bool {
NO_RECORD_BOUNDARIES_PRESERVATION = 0,
RECORD_BOUNDARIES_PRESERVATION = 1
NO_RECORD_BOUNDARIES_PRESERVATION = false,
RECORD_BOUNDARIES_PRESERVATION = true
};
enum WidthInBytes : uint8_t {
@ -69,8 +70,9 @@ enum WidthInBytes : uint8_t {
FOUR_BYTES = 4,
};
enum FileDirectives : uint8_t {
enum FileDirective : uint8_t {
INVALID_DIRECTIVE = 0x0f,
// The _DIRECTIVE suffix is mandatory here because of some nameclash!
EOF_DIRECTIVE = 0x04,
FINISH = 0x05,
ACK = 0x06,
@ -97,6 +99,14 @@ enum ConditionCode : uint8_t {
CANCEL_REQUEST_RECEIVED = 0b1111
};
enum FaultHandlerCode {
RESERVED = 0b0000,
NOTICE_OF_CANCELLATION = 0b0001,
NOTICE_OF_SUSPENSION = 0b0010,
IGNORE_ERROR = 0b0011,
ABANDON_TRANSACTION = 0b0100
};
enum AckTransactionStatus {
UNDEFINED = 0b00,
ACTIVE = 0b01,
@ -104,18 +114,18 @@ enum AckTransactionStatus {
UNRECOGNIZED = 0b11
};
enum FinishedDeliveryCode { DATA_COMPLETE = 0, DATA_INCOMPLETE = 1 };
enum FileDeliveryCode { DATA_COMPLETE = 0, DATA_INCOMPLETE = 1 };
enum FinishedFileStatus {
enum FileDeliveryStatus {
DISCARDED_DELIBERATELY = 0,
DISCARDED_FILESTORE_REJECTION = 1,
RETAINED_IN_FILESTORE = 2,
FILE_STATUS_UNREPORTED = 3
};
enum PromptResponseRequired : bool { PROMPT_NAK = 0, PROMPT_KEEP_ALIVE = 1 };
enum PromptResponseRequired : uint8_t { PROMPT_NAK = 0, PROMPT_KEEP_ALIVE = 1 };
enum TlvTypes : uint8_t {
enum TlvType : uint8_t {
FILESTORE_REQUEST = 0x00,
FILESTORE_RESPONSE = 0x01,
MSG_TO_USER = 0x02,

View File

@ -0,0 +1 @@
target_sources(${LIB_FSFW_NAME} PRIVATE FaultHandlerBase.cpp UserBase.cpp)

View File

@ -0,0 +1,51 @@
#include "FaultHandlerBase.h"
namespace cfdp {
FaultHandlerBase::FaultHandlerBase() = default;
FaultHandlerBase::~FaultHandlerBase() = default;
bool FaultHandlerBase::getFaultHandler(cfdp::ConditionCode code,
cfdp::FaultHandlerCode& handler) const {
auto iter = faultHandlerMap.find(code);
if (iter == faultHandlerMap.end()) {
return false;
}
handler = iter->second;
return true;
}
bool FaultHandlerBase::setFaultHandler(cfdp::ConditionCode code, cfdp::FaultHandlerCode handler) {
if (not faultHandlerMap.contains(code)) {
return false;
}
if (handler != FaultHandlerCode::NOTICE_OF_SUSPENSION and
handler != FaultHandlerCode::ABANDON_TRANSACTION and
handler != FaultHandlerCode::NOTICE_OF_CANCELLATION and
handler != FaultHandlerCode::IGNORE_ERROR) {
return false;
}
faultHandlerMap[code] = handler;
return true;
}
bool FaultHandlerBase::reportFault(cfdp::TransactionId& id, cfdp::ConditionCode code) {
if (not faultHandlerMap.contains(code)) {
return false;
}
cfdp::FaultHandlerCode fh = faultHandlerMap[code];
if (fh == cfdp::FaultHandlerCode::IGNORE_ERROR) {
ignoreCb(id, code);
} else if (fh == cfdp::FaultHandlerCode::ABANDON_TRANSACTION) {
abandonCb(id, code);
} else if (fh == cfdp::FaultHandlerCode::NOTICE_OF_CANCELLATION) {
noticeOfCancellationCb(id, code);
} else if (fh == cfdp::FaultHandlerCode::NOTICE_OF_SUSPENSION) {
noticeOfSuspensionCb(id, code);
} else {
// Should never happen, but use defensive programming
return false;
}
return true;
}
} // namespace cfdp

View File

@ -0,0 +1,77 @@
#ifndef FSFW_CFDP_FAULTHANDLERBASE_H
#define FSFW_CFDP_FAULTHANDLERBASE_H
#include <etl/flat_map.h>
#include "fsfw/cfdp/VarLenFields.h"
#include "fsfw/cfdp/definitions.h"
namespace cfdp {
/**
* @brief Provides a way to implement the fault handling procedures as specified
* in chapter 4.8 of the CFDP standard.
*
* @details
* It is passed into the CFDP handlers as part of the local entity configuration and provides
* a way to specify custom user error handlers.
*
* It does so by mapping each applicable CFDP condition code to a fault handler which
* is denoted by the four @cfdp::FaultHandlerCodes. This code is used to dispatch
* to a user-provided callback function:
*
* 1. @FaultHandlerCodes::IGNORE_ERROR -> @ignore_cb
* 2. @FaultHandlerCodes::NOTICE_OF_CANCELLATION` -> @notice_of_cancellation_cb
* 3. @FaultHandlerCodes::NOTICE_OF_SUSPENSION` -> @notice_of_suspension_cb
* 4. @FaultHandlerCodes::ABANDON_TRANSACTION` -> @abandon_transaction_cb
*
* For each error reported by @reportError, the appropriate fault handler callback
* will be called. The user provides the callbacks by providing a custom class which implements
* these base class and all abstract fault handler callbacks.
*/
class FaultHandlerBase {
public:
virtual ~FaultHandlerBase();
FaultHandlerBase();
/**
* Get the fault handler code for the given condition code
* @param code
* @param handler [out] Will be set to the approrpiate handler for the condition code if
* it is valid
* @return
* - true if the condition code is valid
* - false otherwise
*/
bool getFaultHandler(cfdp::ConditionCode code, cfdp::FaultHandlerCode& handler) const;
bool setFaultHandler(cfdp::ConditionCode code, cfdp::FaultHandlerCode handler);
bool reportFault(cfdp::TransactionId& id, cfdp::ConditionCode code);
virtual void noticeOfSuspensionCb(cfdp::TransactionId& id, cfdp::ConditionCode code) = 0;
virtual void noticeOfCancellationCb(cfdp::TransactionId& id, cfdp::ConditionCode code) = 0;
virtual void abandonCb(cfdp::TransactionId& id, cfdp::ConditionCode code) = 0;
virtual void ignoreCb(cfdp::TransactionId& id, cfdp::ConditionCode code) = 0;
private:
etl::flat_map<cfdp::ConditionCode, cfdp::FaultHandlerCode, 10> faultHandlerMap = {
etl::pair{cfdp::ConditionCode::POSITIVE_ACK_LIMIT_REACHED,
cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::KEEP_ALIVE_LIMIT_REACHED,
cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::INVALID_TRANSMISSION_MODE,
cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::FILE_CHECKSUM_FAILURE, cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::FILE_SIZE_ERROR, cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::NAK_LIMIT_REACHED, cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::INACTIVITY_DETECTED, cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::UNSUPPORTED_CHECKSUM_TYPE,
cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::FILESTORE_REJECTION, cfdp::FaultHandlerCode::IGNORE_ERROR},
etl::pair{cfdp::ConditionCode::CHECK_LIMIT_REACHED, cfdp::FaultHandlerCode::IGNORE_ERROR}};
};
} // namespace cfdp
#endif // FSFW_CFDP_FAULTHANDLERBASE_H

View File

@ -0,0 +1,35 @@
#ifndef FSFW_CFDP_HANDLER_REMOTECONFIGTABLEIF_H
#define FSFW_CFDP_HANDLER_REMOTECONFIGTABLEIF_H
#include "fsfw/cfdp/handler/mib.h"
namespace cfdp {
class RemoteConfigTableIF {
public:
virtual ~RemoteConfigTableIF() = default;
virtual bool getRemoteCfg(const cfdp::EntityId& remoteId, cfdp::RemoteEntityCfg** cfg) = 0;
};
/**
* Helper class for the common case that there is exactly one remote entity
*/
class OneRemoteConfigProvider : public RemoteConfigTableIF {
public:
explicit OneRemoteConfigProvider(RemoteEntityCfg cfg) : cfg(std::move(cfg)) {}
bool getRemoteCfg(const EntityId& remoteId, cfdp::RemoteEntityCfg** cfg_) override {
if (remoteId != cfg.remoteId) {
return false;
}
*cfg_ = &cfg;
return true;
}
private:
RemoteEntityCfg cfg;
};
} // namespace cfdp
#endif // FSFW_CFDP_HANDLER_REMOTECONFIGTABLEIF_H

View File

@ -0,0 +1,12 @@
#ifndef FSFW_CFDP_HANDLER_STATUSREPORTIF_H
#define FSFW_CFDP_HANDLER_STATUSREPORTIF_H
namespace cfdp {
class StatusReportIF {
virtual ~StatusReportIF() = default;
};
} // namespace cfdp
#endif // FSFW_CFDP_HANDLER_STATUSREPORTIF_H

View File

@ -0,0 +1,3 @@
#include "UserBase.h"
cfdp::UserBase::UserBase(HasFileSystemIF& vfs) : vfs(vfs) {}

View File

@ -0,0 +1,101 @@
#ifndef FSFW_CFDP_USERBASE_H
#define FSFW_CFDP_USERBASE_H
#include <optional>
#include <utility>
#include <vector>
#include "StatusReportIF.h"
#include "fsfw/cfdp/VarLenFields.h"
#include "fsfw/cfdp/tlv/FilestoreResponseTlv.h"
#include "fsfw/cfdp/tlv/MessageToUserTlv.h"
#include "fsfw/filesystem/HasFileSystemIF.h"
namespace cfdp {
struct TransactionFinishedParams {
TransactionFinishedParams(const TransactionId& id, ConditionCode code, FileDeliveryCode delivCode,
FileDeliveryStatus status)
: id(id), condCode(code), status(status), deliveryCode(delivCode) {}
const TransactionId& id;
ConditionCode condCode;
FileDeliveryStatus status;
FileDeliveryCode deliveryCode;
std::vector<FilestoreResponseTlv*> fsResponses;
StatusReportIF* statusReport = nullptr;
};
struct MetadataRecvdParams {
MetadataRecvdParams(const TransactionId& id, const EntityId& sourceId)
: id(id), sourceId(sourceId) {}
const TransactionId& id;
const EntityId& sourceId;
uint64_t fileSize = 0;
const char* sourceFileName = "";
const char* destFileName = "";
size_t msgsToUserLen = 0;
const MessageToUserTlv* msgsToUserArray = nullptr;
};
struct FileSegmentRecvdParams {
TransactionId id;
size_t offset;
size_t length;
std::optional<RecordContinuationState> recContState = std::nullopt;
std::pair<const uint8_t*, size_t> segmentMetadata;
};
/**
* @brief Base class which provides a user interface to interact with CFDP handlers.
*
* @details
* This class is also used to pass the Virtual Filestore (VFS) Implementation to the CFDP
* handlers so the filestore operations can be mapped to the underlying filestore.
*
* It is used by implementing it in a child class and then passing it to the CFDP
* handler objects. The base class provides default implementation for the user indication
* primitives specified in the CFDP standard. The user can override these implementations
* to provide custom indication handlers.
*
* Please note that for all indication callbacks, the passed transaction ID reference will
* become invalid shortly after the function has been executed. If the transaction ID is to be
* cached or used, create an own copy of it.
* @param vfs Virtual Filestore Object. Will be used for all file operations
*/
class UserBase {
friend class DestHandler;
public:
explicit UserBase(HasFileSystemIF& vfs);
virtual void transactionIndication(const TransactionId& id) = 0;
virtual void eofSentIndication(const TransactionId& id) = 0;
virtual void transactionFinishedIndication(const TransactionFinishedParams& params) = 0;
/**
* Will be called if metadata was received.
*
* IMPORTANT: The passed struct contains the messages to the user in form of a raw C array.
* The TLVs in these arrays are zero-copy types, which means that they point to the raw data
* inside the metadata packet directly. The metadata packet will be deleted from the TC store
* shortly after it was processed. If some of the data is to be cached and/or used after the
* function call, it needs to be copied into another user-provided buffer.
* @param params
*/
virtual void metadataRecvdIndication(const MetadataRecvdParams& params) = 0;
virtual void fileSegmentRecvdIndication(const FileSegmentRecvdParams& params) = 0;
virtual void reportIndication(const TransactionId& id, StatusReportIF& report) = 0;
virtual void suspendedIndication(const TransactionId& id, ConditionCode code) = 0;
virtual void resumedIndication(const TransactionId& id, size_t progress) = 0;
virtual void faultIndication(const TransactionId& id, ConditionCode code, size_t progress) = 0;
virtual void abandonedIndication(const TransactionId& id, ConditionCode code,
size_t progress) = 0;
virtual void eofRecvIndication(const TransactionId& id) = 0;
private:
HasFileSystemIF& vfs;
};
} // namespace cfdp
#endif // FSFW_CFDP_USERBASE_H

View File

@ -0,0 +1,9 @@
#ifndef FSFW_CFDP_HANDLER_DEFS_H
#define FSFW_CFDP_HANDLER_DEFS_H
namespace cfdp {
enum class CfdpStates { IDLE, BUSY_CLASS_1_NACKED, BUSY_CLASS_2_ACKED, SUSPENDED };
}
#endif // FSFW_CFDP_HANDLER_DEFS_H

View File

@ -0,0 +1,42 @@
#ifndef FSFW_CFDP_MIB_H
#define FSFW_CFDP_MIB_H
#include <utility>
#include "FaultHandlerBase.h"
#include "fsfw/cfdp/pdu/PduConfig.h"
namespace cfdp {
struct IndicationCfg {
bool eofSentIndicRequired = true;
bool eofRecvIndicRequired = true;
bool fileSegmentRecvIndicRequired = true;
bool transactionFinishedIndicRequired = true;
bool suspendedIndicRequired = true;
bool resumedIndicRequired = true;
};
struct LocalEntityCfg {
LocalEntityCfg(EntityId localId, IndicationCfg indicationCfg, FaultHandlerBase& fhBase)
: localId(std::move(localId)), indicCfg(indicationCfg), fhBase(fhBase) {}
EntityId localId;
IndicationCfg indicCfg;
FaultHandlerBase& fhBase;
};
struct RemoteEntityCfg {
explicit RemoteEntityCfg(EntityId id) : remoteId(std::move(id)) {}
EntityId remoteId;
size_t maxFileSegmentLen = 2048;
bool closureRequested = false;
bool crcOnTransmission = false;
TransmissionMode defaultTransmissionMode = TransmissionMode::UNACKNOWLEDGED;
ChecksumType defaultChecksum = ChecksumType::NULL_CHECKSUM;
const uint8_t version = CFDP_VERSION_2;
};
} // namespace cfdp
#endif // FSFW_CFDP_MIB_H

50
src/fsfw/cfdp/helpers.cpp Normal file
View File

@ -0,0 +1,50 @@
#include "helpers.h"
const char* COND_CODE_STRINGS[14] = {"Unknown",
"No Error",
"Positive ACK Limit Reached",
"Keep Alive Limit Reached",
"Invalid Transmission Mode",
"Filestore Rejection",
"File Checksum Failure",
"File Size Error",
"NAK limit reached",
"Inactivity Detected",
"Check Limit Reached",
"Unsupported Checksum Type",
"Suspend Request Received",
"Cancel Request Received"};
const char* cfdp::getConditionCodeString(cfdp::ConditionCode code) {
switch (code) {
case NO_CONDITION_FIELD:
return COND_CODE_STRINGS[0];
case NO_ERROR:
return COND_CODE_STRINGS[1];
case POSITIVE_ACK_LIMIT_REACHED:
return COND_CODE_STRINGS[2];
case KEEP_ALIVE_LIMIT_REACHED:
return COND_CODE_STRINGS[3];
case INVALID_TRANSMISSION_MODE:
return COND_CODE_STRINGS[4];
case FILESTORE_REJECTION:
return COND_CODE_STRINGS[5];
case FILE_CHECKSUM_FAILURE:
return COND_CODE_STRINGS[6];
case FILE_SIZE_ERROR:
return COND_CODE_STRINGS[7];
case NAK_LIMIT_REACHED:
return COND_CODE_STRINGS[8];
case INACTIVITY_DETECTED:
return COND_CODE_STRINGS[9];
case CHECK_LIMIT_REACHED:
return COND_CODE_STRINGS[10];
case UNSUPPORTED_CHECKSUM_TYPE:
return COND_CODE_STRINGS[11];
case SUSPEND_REQUEST_RECEIVED:
return COND_CODE_STRINGS[12];
case CANCEL_REQUEST_RECEIVED:
return COND_CODE_STRINGS[13];
}
return "Unknown";
}

11
src/fsfw/cfdp/helpers.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef FSFW_EXAMPLE_HOSTED_HELPER_H
#define FSFW_EXAMPLE_HOSTED_HELPER_H
#include "definitions.h"
namespace cfdp {
const char* getConditionCodeString(cfdp::ConditionCode code);
}
#endif // FSFW_EXAMPLE_HOSTED_HELPER_H

View File

@ -1,12 +1,12 @@
#include "AckInfo.h"
AckInfo::AckInfo(cfdp::FileDirectives ackedDirective, cfdp::ConditionCode ackedConditionCode,
AckInfo::AckInfo(cfdp::FileDirective ackedDirective, cfdp::ConditionCode ackedConditionCode,
cfdp::AckTransactionStatus transactionStatus, uint8_t directiveSubtypeCode)
: ackedDirective(ackedDirective),
ackedConditionCode(ackedConditionCode),
transactionStatus(transactionStatus),
directiveSubtypeCode(directiveSubtypeCode) {
if (ackedDirective == cfdp::FileDirectives::FINISH) {
if (ackedDirective == cfdp::FileDirective::FINISH) {
this->directiveSubtypeCode = 0b0001;
} else {
this->directiveSubtypeCode = 0b0000;
@ -17,16 +17,16 @@ cfdp::ConditionCode AckInfo::getAckedConditionCode() const { return ackedConditi
void AckInfo::setAckedConditionCode(cfdp::ConditionCode ackedConditionCode) {
this->ackedConditionCode = ackedConditionCode;
if (ackedDirective == cfdp::FileDirectives::FINISH) {
if (ackedDirective == cfdp::FileDirective::FINISH) {
this->directiveSubtypeCode = 0b0001;
} else {
this->directiveSubtypeCode = 0b0000;
}
}
cfdp::FileDirectives AckInfo::getAckedDirective() const { return ackedDirective; }
cfdp::FileDirective AckInfo::getAckedDirective() const { return ackedDirective; }
void AckInfo::setAckedDirective(cfdp::FileDirectives ackedDirective) {
void AckInfo::setAckedDirective(cfdp::FileDirective ackedDirective) {
this->ackedDirective = ackedDirective;
}

View File

@ -6,14 +6,14 @@
class AckInfo {
public:
AckInfo();
AckInfo(cfdp::FileDirectives ackedDirective, cfdp::ConditionCode ackedConditionCode,
AckInfo(cfdp::FileDirective ackedDirective, cfdp::ConditionCode ackedConditionCode,
cfdp::AckTransactionStatus transactionStatus, uint8_t directiveSubtypeCode = 0);
cfdp::ConditionCode getAckedConditionCode() const;
void setAckedConditionCode(cfdp::ConditionCode ackedConditionCode);
cfdp::FileDirectives getAckedDirective() const;
void setAckedDirective(cfdp::FileDirectives ackedDirective);
cfdp::FileDirective getAckedDirective() const;
void setAckedDirective(cfdp::FileDirective ackedDirective);
uint8_t getDirectiveSubtypeCode() const;
void setDirectiveSubtypeCode(uint8_t directiveSubtypeCode);
@ -22,7 +22,7 @@ class AckInfo {
void setTransactionStatus(cfdp::AckTransactionStatus transactionStatus);
private:
cfdp::FileDirectives ackedDirective = cfdp::FileDirectives::INVALID_DIRECTIVE;
cfdp::FileDirective ackedDirective = cfdp::FileDirective::INVALID_DIRECTIVE;
cfdp::ConditionCode ackedConditionCode = cfdp::ConditionCode::NO_CONDITION_FIELD;
cfdp::AckTransactionStatus transactionStatus = cfdp::AckTransactionStatus::UNDEFINED;
uint8_t directiveSubtypeCode = 0;

View File

@ -0,0 +1,33 @@
#include "AckPduCreator.h"
AckPduCreator::AckPduCreator(AckInfo &ackInfo, PduConfig &pduConf)
: FileDirectiveCreator(pduConf, cfdp::FileDirective::ACK, 2), ackInfo(ackInfo) {}
size_t AckPduCreator::getSerializedSize() const { return FileDirectiveCreator::getWholePduSize(); }
ReturnValue_t AckPduCreator::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
ReturnValue_t result = FileDirectiveCreator::serialize(buffer, size, maxSize, streamEndianness);
if (result != returnvalue::OK) {
return result;
}
cfdp::FileDirective ackedDirective = ackInfo.getAckedDirective();
uint8_t directiveSubtypeCode = ackInfo.getDirectiveSubtypeCode();
cfdp::ConditionCode ackedConditionCode = ackInfo.getAckedConditionCode();
cfdp::AckTransactionStatus transactionStatus = ackInfo.getTransactionStatus();
if (ackedDirective != cfdp::FileDirective::FINISH and
ackedDirective != cfdp::FileDirective::EOF_DIRECTIVE) {
// TODO: better returncode
return returnvalue::FAILED;
}
if (*size + 2 > maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
**buffer = ackedDirective << 4 | directiveSubtypeCode;
*buffer += 1;
*size += 1;
**buffer = ackedConditionCode << 4 | transactionStatus;
*buffer += 1;
*size += 1;
return returnvalue::OK;
}

View File

@ -1,11 +1,11 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_
#ifndef FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_
#define FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_
#include "AckInfo.h"
#include "FileDirectiveDeserializer.h"
#include "FileDirectiveSerializer.h"
#include "FileDirectiveCreator.h"
#include "FileDirectiveReader.h"
class AckPduSerializer : public FileDirectiveSerializer {
class AckPduCreator : public FileDirectiveCreator {
public:
/**
* @brief Serializer to pack ACK PDUs
@ -16,9 +16,9 @@ class AckPduSerializer : public FileDirectiveSerializer {
* @param transactionStatus
* @param pduConf
*/
AckPduSerializer(AckInfo& ackInfo, PduConfig& pduConf);
AckPduCreator(AckInfo& ackInfo, PduConfig& pduConf);
size_t getSerializedSize() const override;
[[nodiscard]] size_t getSerializedSize() const override;
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
@ -27,4 +27,4 @@ class AckPduSerializer : public FileDirectiveSerializer {
AckInfo& ackInfo;
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_ */
#endif /* FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_ */

View File

@ -1,37 +0,0 @@
#include "AckPduDeserializer.h"
AckPduDeserializer::AckPduDeserializer(const uint8_t* pduBuf, size_t maxSize, AckInfo& info)
: FileDirectiveDeserializer(pduBuf, maxSize), info(info) {}
ReturnValue_t AckPduDeserializer::parseData() {
ReturnValue_t result = FileDirectiveDeserializer::parseData();
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
size_t currentIdx = FileDirectiveDeserializer::getHeaderSize();
if (currentIdx + 2 > this->maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
if (not checkAndSetCodes(rawPtr[currentIdx], rawPtr[currentIdx + 1])) {
return cfdp::INVALID_ACK_DIRECTIVE_FIELDS;
}
return HasReturnvaluesIF::RETURN_OK;
}
bool AckPduDeserializer::checkAndSetCodes(uint8_t firstByte, uint8_t secondByte) {
uint8_t ackedDirective = static_cast<cfdp::FileDirectives>(firstByte >> 4);
if (ackedDirective != cfdp::FileDirectives::EOF_DIRECTIVE and
ackedDirective != cfdp::FileDirectives::FINISH) {
return false;
}
this->info.setAckedDirective(static_cast<cfdp::FileDirectives>(ackedDirective));
uint8_t directiveSubtypeCode = firstByte & 0x0f;
if (directiveSubtypeCode != 0b0000 and directiveSubtypeCode != 0b0001) {
return false;
}
this->info.setDirectiveSubtypeCode(directiveSubtypeCode);
this->info.setAckedConditionCode(static_cast<cfdp::ConditionCode>(secondByte >> 4));
this->info.setTransactionStatus(static_cast<cfdp::AckTransactionStatus>(secondByte & 0x0f));
return true;
}

View File

@ -0,0 +1,45 @@
#include "AckPduReader.h"
AckPduReader::AckPduReader(const uint8_t* pduBuf, size_t maxSize, AckInfo& info)
: FileDirectiveReader(pduBuf, maxSize), info(info) {}
ReturnValue_t AckPduReader::parseData() {
ReturnValue_t result = FileDirectiveReader::parseData();
if (result != returnvalue::OK) {
return result;
}
size_t currentIdx = FileDirectiveReader::getHeaderSize();
if (currentIdx + 2 > this->maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
if (not checkAndSetCodes(pointers.rawPtr[currentIdx], pointers.rawPtr[currentIdx + 1])) {
return cfdp::INVALID_ACK_DIRECTIVE_FIELDS;
}
return returnvalue::OK;
}
bool AckPduReader::checkAndSetCodes(uint8_t firstByte, uint8_t secondByte) {
cfdp::FileDirective directive;
if (not checkAckedDirectiveField(firstByte, directive)) {
return false;
}
this->info.setAckedDirective(directive);
uint8_t directiveSubtypeCode = firstByte & 0x0f;
if (directiveSubtypeCode != 0b0000 and directiveSubtypeCode != 0b0001) {
return false;
}
this->info.setDirectiveSubtypeCode(directiveSubtypeCode);
this->info.setAckedConditionCode(static_cast<cfdp::ConditionCode>(secondByte >> 4));
this->info.setTransactionStatus(static_cast<cfdp::AckTransactionStatus>(secondByte & 0x0f));
return true;
}
bool AckPduReader::checkAckedDirectiveField(uint8_t firstPduDataByte,
cfdp::FileDirective& ackedDirective) {
uint8_t ackedDirectiveRaw = static_cast<cfdp::FileDirective>(firstPduDataByte >> 4);
if (ackedDirectiveRaw != cfdp::FileDirective::EOF_DIRECTIVE and
ackedDirectiveRaw != cfdp::FileDirective::FINISH) {
return false;
}
ackedDirective = (static_cast<cfdp::FileDirective>(ackedDirectiveRaw));
return true;
}

View File

@ -2,18 +2,21 @@
#define FSFW_SRC_FSFW_CFDP_PDU_ACKPDUDESERIALIZER_H_
#include "AckInfo.h"
#include "fsfw/cfdp/pdu/FileDirectiveDeserializer.h"
#include "fsfw/cfdp/pdu/FileDirectiveReader.h"
class AckPduDeserializer : public FileDirectiveDeserializer {
class AckPduReader : public FileDirectiveReader {
public:
AckPduDeserializer(const uint8_t* pduBuf, size_t maxSize, AckInfo& info);
AckPduReader(const uint8_t* pduBuf, size_t maxSize, AckInfo& info);
/**
*
* @return
* - cfdp::INVALID_DIRECTIVE_FIELDS: Invalid fields
*/
ReturnValue_t parseData();
ReturnValue_t parseData() override;
static bool checkAckedDirectiveField(uint8_t firstPduDataByte,
cfdp::FileDirective& ackedDirective);
private:
bool checkAndSetCodes(uint8_t rawAckedByte, uint8_t rawAckedConditionCode);

View File

@ -1,36 +0,0 @@
#include "AckPduSerializer.h"
AckPduSerializer::AckPduSerializer(AckInfo &ackInfo, PduConfig &pduConf)
: FileDirectiveSerializer(pduConf, cfdp::FileDirectives::ACK, 2), ackInfo(ackInfo) {}
size_t AckPduSerializer::getSerializedSize() const {
return FileDirectiveSerializer::getWholePduSize();
}
ReturnValue_t AckPduSerializer::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
ReturnValue_t result =
FileDirectiveSerializer::serialize(buffer, size, maxSize, streamEndianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
cfdp::FileDirectives ackedDirective = ackInfo.getAckedDirective();
uint8_t directiveSubtypeCode = ackInfo.getDirectiveSubtypeCode();
cfdp::ConditionCode ackedConditionCode = ackInfo.getAckedConditionCode();
cfdp::AckTransactionStatus transactionStatus = ackInfo.getTransactionStatus();
if (ackedDirective != cfdp::FileDirectives::FINISH and
ackedDirective != cfdp::FileDirectives::EOF_DIRECTIVE) {
// TODO: better returncode
return HasReturnvaluesIF::RETURN_FAILED;
}
if (*size + 2 > maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
**buffer = ackedDirective << 4 | directiveSubtypeCode;
*buffer += 1;
*size += 1;
**buffer = ackedConditionCode << 4 | transactionStatus;
*buffer += 1;
*size += 1;
return HasReturnvaluesIF::RETURN_OK;
}

View File

@ -1,30 +1,29 @@
target_sources(
${LIB_FSFW_NAME}
PRIVATE PduConfig.cpp
VarLenField.cpp
HeaderSerializer.cpp
HeaderDeserializer.cpp
FileDirectiveDeserializer.cpp
FileDirectiveSerializer.cpp
HeaderCreator.cpp
HeaderReader.cpp
FileDirectiveReader.cpp
FileDirectiveCreator.cpp
AckInfo.cpp
AckPduSerializer.cpp
AckPduDeserializer.cpp
AckPduCreator.cpp
AckPduReader.cpp
EofInfo.cpp
EofPduSerializer.cpp
EofPduDeserializer.cpp
EofPduCreator.cpp
EofPduReader.cpp
NakInfo.cpp
NakPduSerializer.cpp
NakPduDeserializer.cpp
NakPduCreator.cpp
NakPduReader.cpp
FinishedInfo.cpp
FinishedPduSerializer.cpp
FinishedPduDeserializer.cpp
FinishedPduCreator.cpp
FinishedPduReader.cpp
MetadataInfo.cpp
MetadataPduSerializer.cpp
MetadataPduDeserializer.cpp
KeepAlivePduSerializer.cpp
KeepAlivePduDeserializer.cpp
PromptPduSerializer.cpp
PromptPduDeserializer.cpp
FileDataSerializer.cpp
FileDataDeserializer.cpp
MetadataPduCreator.cpp
MetadataPduReader.cpp
KeepAlivePduCreator.cpp
KeepAlivePduReader.cpp
PromptPduCreator.cpp
PromptPduReader.cpp
FileDataCreator.cpp
FileDataReader.cpp
FileDataInfo.cpp)

View File

@ -7,16 +7,16 @@
struct EofInfo {
public:
EofInfo(EntityIdTlv* faultLoc = nullptr);
explicit EofInfo(EntityIdTlv* faultLoc = nullptr);
EofInfo(cfdp::ConditionCode conditionCode, uint32_t checksum, cfdp::FileSize fileSize,
EntityIdTlv* faultLoc = nullptr);
size_t getSerializedSize(bool fssLarge = false);
uint32_t getChecksum() const;
cfdp::ConditionCode getConditionCode() const;
[[nodiscard]] uint32_t getChecksum() const;
[[nodiscard]] cfdp::ConditionCode getConditionCode() const;
EntityIdTlv* getFaultLoc() const;
[[nodiscard]] EntityIdTlv* getFaultLoc() const;
cfdp::FileSize& getFileSize();
void setChecksum(uint32_t checksum);
void setConditionCode(cfdp::ConditionCode conditionCode);

View File

@ -1,22 +1,18 @@
#include "EofPduSerializer.h"
#include "EofPduCreator.h"
#include "fsfw/FSFW.h"
#include "fsfw/serviceinterface.h"
EofPduSerializer::EofPduSerializer(PduConfig &conf, EofInfo &info)
: FileDirectiveSerializer(conf, cfdp::FileDirectives::EOF_DIRECTIVE, 9), info(info) {
setDirectiveDataFieldLen(info.getSerializedSize(getLargeFileFlag()));
EofPduCreator::EofPduCreator(PduConfig &conf, EofInfo &info)
: FileDirectiveCreator(conf, cfdp::FileDirective::EOF_DIRECTIVE, 9), info(info) {
setDirectiveDataFieldLen(info.getSerializedSize(HeaderCreator::getLargeFileFlag()));
}
size_t EofPduSerializer::getSerializedSize() const {
return FileDirectiveSerializer::getWholePduSize();
}
size_t EofPduCreator::getSerializedSize() const { return FileDirectiveCreator::getWholePduSize(); }
ReturnValue_t EofPduSerializer::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
ReturnValue_t result =
FileDirectiveSerializer::serialize(buffer, size, maxSize, streamEndianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
ReturnValue_t EofPduCreator::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
ReturnValue_t result = FileDirectiveCreator::serialize(buffer, size, maxSize, streamEndianness);
if (result != returnvalue::OK) {
return result;
}
if (*size + 1 > maxSize) {
@ -27,7 +23,7 @@ ReturnValue_t EofPduSerializer::serialize(uint8_t **buffer, size_t *size, size_t
*size += 1;
uint32_t checksum = info.getChecksum();
result = SerializeAdapter::serialize(&checksum, buffer, size, maxSize, streamEndianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
if (info.getFileSize().isLargeFile()) {

View File

@ -2,18 +2,20 @@
#define FSFW_SRC_FSFW_CFDP_PDU_EOFPDUSERIALIZER_H_
#include "EofInfo.h"
#include "fsfw/cfdp/pdu/FileDirectiveSerializer.h"
#include "fsfw/cfdp/pdu/FileDirectiveCreator.h"
#include "fsfw/cfdp/tlv/EntityIdTlv.h"
class EofPduSerializer : public FileDirectiveSerializer {
class EofPduCreator : public FileDirectiveCreator {
public:
EofPduSerializer(PduConfig& conf, EofInfo& info);
EofPduCreator(PduConfig& conf, EofInfo& info);
size_t getSerializedSize() const override;
[[nodiscard]] size_t getSerializedSize() const override;
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
using FileDirectiveCreator::serialize;
private:
EofInfo& info;
};

View File

@ -1,17 +0,0 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_EOFPDUDESERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_EOFPDUDESERIALIZER_H_
#include "EofInfo.h"
#include "fsfw/cfdp/pdu/FileDirectiveDeserializer.h"
class EofPduDeserializer : public FileDirectiveDeserializer {
public:
EofPduDeserializer(const uint8_t* pduBuf, size_t maxSize, EofInfo& eofInfo);
virtual ReturnValue_t parseData() override;
private:
EofInfo& info;
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_EOFPDUDESERIALIZER_H_ */

View File

@ -1,23 +1,23 @@
#include "EofPduDeserializer.h"
#include "EofPduReader.h"
#include "fsfw/FSFW.h"
#include "fsfw/serviceinterface.h"
EofPduDeserializer::EofPduDeserializer(const uint8_t* pduBuf, size_t maxSize, EofInfo& eofInfo)
: FileDirectiveDeserializer(pduBuf, maxSize), info(eofInfo) {}
EofPduReader::EofPduReader(const uint8_t* pduBuf, size_t maxSize, EofInfo& eofInfo)
: FileDirectiveReader(pduBuf, maxSize), info(eofInfo) {}
ReturnValue_t EofPduDeserializer::parseData() {
ReturnValue_t result = FileDirectiveDeserializer::parseData();
if (result != HasReturnvaluesIF::RETURN_OK) {
ReturnValue_t EofPduReader::parseData() {
ReturnValue_t result = FileDirectiveReader::parseData();
if (result != returnvalue::OK) {
return result;
}
const uint8_t* bufPtr = rawPtr;
const uint8_t* bufPtr = pointers.rawPtr;
size_t expectedFileFieldLen = 4;
if (this->getLargeFileFlag()) {
expectedFileFieldLen = 8;
}
size_t currentIdx = FileDirectiveDeserializer::getHeaderSize();
size_t currentIdx = FileDirectiveReader::getHeaderSize();
size_t deserLen = maxSize;
if (maxSize < currentIdx + 5 + expectedFileFieldLen) {
return SerializeIF::STREAM_TOO_SHORT;
@ -31,7 +31,7 @@ ReturnValue_t EofPduDeserializer::parseData() {
uint32_t checksum = 0;
auto endianness = getEndianness();
result = SerializeAdapter::deSerialize(&checksum, &bufPtr, &deserLen, endianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
info.setChecksum(checksum);
@ -44,7 +44,7 @@ ReturnValue_t EofPduDeserializer::parseData() {
result = SerializeAdapter::deSerialize(&fileSizeValue, &bufPtr, &deserLen, endianness);
info.setFileSize(fileSizeValue, false);
}
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
if (info.getConditionCode() != cfdp::ConditionCode::NO_ERROR) {
@ -61,7 +61,7 @@ ReturnValue_t EofPduDeserializer::parseData() {
" given TLV pointer invalid");
#endif
#endif /* FSFW_VERBOSE_LEVEL >= 1 */
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
result = tlvPtr->deSerialize(&bufPtr, &deserLen, endianness);
}

View File

@ -0,0 +1,17 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_EOFPDUDESERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_EOFPDUDESERIALIZER_H_
#include "EofInfo.h"
#include "fsfw/cfdp/pdu/FileDirectiveReader.h"
class EofPduReader : public FileDirectiveReader {
public:
EofPduReader(const uint8_t* pduBuf, size_t maxSize, EofInfo& eofInfo);
ReturnValue_t parseData() override;
private:
EofInfo& info;
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_EOFPDUDESERIALIZER_H_ */

View File

@ -1,28 +1,31 @@
#include "FileDataSerializer.h"
#include "FileDataCreator.h"
#include <cstring>
FileDataSerializer::FileDataSerializer(PduConfig& conf, FileDataInfo& info)
: HeaderSerializer(conf, cfdp::PduType::FILE_DATA, 0, info.getSegmentMetadataFlag()),
info(info) {
FileDataCreator::FileDataCreator(PduConfig& conf, FileDataInfo& info)
: HeaderCreator(conf, cfdp::PduType::FILE_DATA, 0, info.getSegmentMetadataFlag()), info(info) {
update();
}
void FileDataSerializer::update() {
void FileDataCreator::update() {
this->setSegmentMetadataFlag(info.getSegmentMetadataFlag());
this->setSegmentationControl(info.getSegmentationControl());
setPduDataFieldLen(info.getSerializedSize(this->getLargeFileFlag()));
}
ReturnValue_t FileDataSerializer::serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const {
ReturnValue_t result = HeaderSerializer::serialize(buffer, size, maxSize, streamEndianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
ReturnValue_t FileDataCreator::serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const {
if (buffer == nullptr or size == nullptr) {
return returnvalue::FAILED;
}
if (*size + this->getSerializedSize() > maxSize) {
if (*size + getSerializedSize() > maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
ReturnValue_t result = HeaderCreator::serialize(buffer, size, maxSize, streamEndianness);
if (result != returnvalue::OK) {
return result;
}
const uint8_t* readOnlyPtr = nullptr;
if (this->hasSegmentMetadataFlag()) {
size_t segmentMetadataLen = info.getSegmentMetadataLen();
@ -36,7 +39,7 @@ ReturnValue_t FileDataSerializer::serialize(uint8_t** buffer, size_t* size, size
}
cfdp::FileSize& offset = info.getOffset();
result = offset.serialize(this->getLargeFileFlag(), buffer, size, maxSize, streamEndianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
size_t fileSize = 0;
@ -47,9 +50,9 @@ ReturnValue_t FileDataSerializer::serialize(uint8_t** buffer, size_t* size, size
std::memcpy(*buffer, readOnlyPtr, fileSize);
*buffer += fileSize;
*size += fileSize;
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
size_t FileDataSerializer::getSerializedSize() const {
return HeaderSerializer::getSerializedSize() + info.getSerializedSize(this->getLargeFileFlag());
size_t FileDataCreator::getSerializedSize() const {
return HeaderCreator::getSerializedSize() + info.getSerializedSize(this->getLargeFileFlag());
}

View File

@ -0,0 +1,27 @@
#ifndef FSFW_CFDP_PDU_FILEDATASERIALIZER_H_
#define FSFW_CFDP_PDU_FILEDATASERIALIZER_H_
#include "../definitions.h"
#include "FileDataInfo.h"
#include "HeaderCreator.h"
class FileDataCreator : public HeaderCreator {
public:
FileDataCreator(PduConfig& conf, FileDataInfo& info);
void update();
ReturnValue_t serialize(uint8_t* buf, size_t& serLen, size_t maxSize) const {
return SerializeIF::serialize(buf, serLen, maxSize, SerializeIF::Endianness::NETWORK);
}
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
[[nodiscard]] size_t getSerializedSize() const override;
private:
FileDataInfo& info;
};
#endif /* FSFW_CFDP_PDU_FILEDATASERIALIZER_H_ */

View File

@ -1,48 +0,0 @@
#include "FileDataDeserializer.h"
FileDataDeserializer::FileDataDeserializer(const uint8_t* pduBuf, size_t maxSize,
FileDataInfo& info)
: HeaderDeserializer(pduBuf, maxSize), info(info) {}
ReturnValue_t FileDataDeserializer::parseData() {
ReturnValue_t result = HeaderDeserializer::parseData();
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
size_t currentIdx = HeaderDeserializer::getHeaderSize();
const uint8_t* buf = rawPtr + currentIdx;
size_t remSize = HeaderDeserializer::getWholePduSize() - currentIdx;
if (remSize < 1) {
return SerializeIF::STREAM_TOO_SHORT;
}
if (hasSegmentMetadataFlag()) {
info.setSegmentMetadataFlag(true);
info.setRecordContinuationState(static_cast<cfdp::RecordContinuationState>((*buf >> 6) & 0b11));
size_t segmentMetadataLen = *buf & 0b00111111;
info.setSegmentMetadataLen(segmentMetadataLen);
if (remSize < segmentMetadataLen + 1) {
return SerializeIF::STREAM_TOO_SHORT;
}
if (segmentMetadataLen > 0) {
buf += 1;
remSize -= 1;
info.setSegmentMetadata(buf);
buf += segmentMetadataLen;
remSize -= segmentMetadataLen;
}
}
result = info.getOffset().deSerialize(&buf, &remSize, this->getEndianness());
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
if (remSize > 0) {
info.setFileData(buf, remSize);
}
return HasReturnvaluesIF::RETURN_OK;
}
SerializeIF::Endianness FileDataDeserializer::getEndianness() const { return endianness; }
void FileDataDeserializer::setEndianness(SerializeIF::Endianness endianness) {
this->endianness = endianness;
}

View File

@ -50,23 +50,23 @@ ReturnValue_t FileDataInfo::addSegmentMetadataInfo(cfdp::RecordContinuationState
this->segmentMetadataFlag = cfdp::SegmentMetadataFlag::PRESENT;
this->recContState = recContState;
if (segmentMetadataLen > 63) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
this->segmentMetadata = segmentMetadata;
this->segmentMetadataLen = segmentMetadataLen;
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
const uint8_t *FileDataInfo::getFileData(size_t *fileSize) const {
if (fileSize != nullptr) {
*fileSize = this->fileSize;
const uint8_t *FileDataInfo::getFileData(size_t *fileSize_) const {
if (fileSize_ != nullptr) {
*fileSize_ = this->fileSize;
}
return fileData;
}
const uint8_t *FileDataInfo::getSegmentMetadata(size_t *segmentMetadataLen) {
if (segmentMetadataLen != nullptr) {
*segmentMetadataLen = this->segmentMetadataLen;
const uint8_t *FileDataInfo::getSegmentMetadata(size_t *segmentMetadataLen_) {
if (segmentMetadataLen_ != nullptr) {
*segmentMetadataLen_ = this->segmentMetadataLen;
}
return segmentMetadata;
}

View File

@ -6,25 +6,25 @@
class FileDataInfo {
public:
FileDataInfo(cfdp::FileSize& offset);
explicit FileDataInfo(cfdp::FileSize& offset);
FileDataInfo(cfdp::FileSize& offset, const uint8_t* fileData, size_t fileSize);
size_t getSerializedSize(bool largeFile = false) const;
[[nodiscard]] size_t getSerializedSize(bool largeFile = false) const;
cfdp::FileSize& getOffset();
const uint8_t* getFileData(size_t* fileSize = nullptr) const;
void setFileData(const uint8_t* fileData, size_t fileSize);
cfdp::SegmentMetadataFlag getSegmentMetadataFlag() const;
cfdp::SegmentationControl getSegmentationControl() const;
cfdp::RecordContinuationState getRecordContinuationState() const;
[[nodiscard]] cfdp::SegmentMetadataFlag getSegmentMetadataFlag() const;
[[nodiscard]] cfdp::SegmentationControl getSegmentationControl() const;
[[nodiscard]] cfdp::RecordContinuationState getRecordContinuationState() const;
void setRecordContinuationState(cfdp::RecordContinuationState recContState);
void setSegmentationControl(cfdp::SegmentationControl segCtrl);
size_t getSegmentMetadataLen() const;
[[nodiscard]] size_t getSegmentMetadataLen() const;
void setSegmentMetadataLen(size_t len);
void setSegmentMetadata(const uint8_t* ptr);
bool hasSegmentMetadata() const;
[[nodiscard]] bool hasSegmentMetadata() const;
void setSegmentMetadataFlag(bool enable);
ReturnValue_t addSegmentMetadataInfo(cfdp::RecordContinuationState recContState,
const uint8_t* segmentMetadata, size_t segmentMetadataLen);

View File

@ -0,0 +1,47 @@
#include "FileDataReader.h"
FileDataReader::FileDataReader(const uint8_t* pduBuf, size_t maxSize, FileDataInfo& info)
: PduHeaderReader(pduBuf, maxSize), info(info) {}
ReturnValue_t FileDataReader::parseData() {
ReturnValue_t result = PduHeaderReader::parseData();
if (result != returnvalue::OK) {
return result;
}
size_t currentIdx = PduHeaderReader::getHeaderSize();
const uint8_t* buf = pointers.rawPtr + currentIdx;
size_t remSize = PduHeaderReader::getWholePduSize() - currentIdx;
if (remSize < 1) {
return SerializeIF::STREAM_TOO_SHORT;
}
if (hasSegmentMetadataFlag()) {
info.setSegmentMetadataFlag(true);
info.setRecordContinuationState(static_cast<cfdp::RecordContinuationState>((*buf >> 6) & 0b11));
size_t segmentMetadataLen = *buf & 0b00111111;
info.setSegmentMetadataLen(segmentMetadataLen);
if (remSize < segmentMetadataLen + 1) {
return SerializeIF::STREAM_TOO_SHORT;
}
if (segmentMetadataLen > 0) {
buf += 1;
remSize -= 1;
info.setSegmentMetadata(buf);
buf += segmentMetadataLen;
remSize -= segmentMetadataLen;
}
}
result = info.getOffset().deSerialize(&buf, &remSize, this->getEndianness());
if (result != returnvalue::OK) {
return result;
}
if (remSize > 0) {
info.setFileData(buf, remSize);
}
return returnvalue::OK;
}
SerializeIF::Endianness FileDataReader::getEndianness() const { return endianness; }
void FileDataReader::setEndianness(SerializeIF::Endianness endianness_) {
endianness = endianness_;
}

View File

@ -3,14 +3,14 @@
#include "../definitions.h"
#include "FileDataInfo.h"
#include "HeaderDeserializer.h"
#include "PduHeaderReader.h"
class FileDataDeserializer : public HeaderDeserializer {
class FileDataReader : public PduHeaderReader {
public:
FileDataDeserializer(const uint8_t* pduBuf, size_t maxSize, FileDataInfo& info);
FileDataReader(const uint8_t* pduBuf, size_t maxSize, FileDataInfo& info);
ReturnValue_t parseData();
SerializeIF::Endianness getEndianness() const;
ReturnValue_t parseData() override;
[[nodiscard]] SerializeIF::Endianness getEndianness() const;
void setEndianness(SerializeIF::Endianness endianness = SerializeIF::Endianness::NETWORK);
private:

View File

@ -1,23 +0,0 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_FILEDATASERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_FILEDATASERIALIZER_H_
#include "../definitions.h"
#include "FileDataInfo.h"
#include "HeaderSerializer.h"
class FileDataSerializer : public HeaderSerializer {
public:
FileDataSerializer(PduConfig& conf, FileDataInfo& info);
void update();
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
size_t getSerializedSize() const override;
private:
FileDataInfo& info;
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_FILEDATADESERIALIZER_H_ */

View File

@ -0,0 +1,39 @@
#include "FileDirectiveCreator.h"
FileDirectiveCreator::FileDirectiveCreator(PduConfig &pduConf, cfdp::FileDirective directiveCode,
size_t directiveParamFieldLen)
: HeaderCreator(pduConf, cfdp::PduType::FILE_DIRECTIVE, directiveParamFieldLen + 1),
directiveCode(directiveCode) {}
size_t FileDirectiveCreator::getSerializedSize() const {
return HeaderCreator::getSerializedSize() + 1;
}
ReturnValue_t FileDirectiveCreator::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
if (buffer == nullptr or size == nullptr) {
return returnvalue::FAILED;
}
if (FileDirectiveCreator::getWholePduSize() > maxSize) {
return BUFFER_TOO_SHORT;
}
ReturnValue_t result = HeaderCreator::serialize(buffer, size, maxSize, streamEndianness);
if (result != returnvalue::OK) {
return result;
}
if (*size >= maxSize) {
return BUFFER_TOO_SHORT;
}
**buffer = directiveCode;
*buffer += 1;
*size += 1;
return returnvalue::OK;
}
void FileDirectiveCreator::setDirectiveDataFieldLen(size_t len) {
// Set length of data field plus 1 byte for the directive octet
HeaderCreator::setPduDataFieldLen(len + 1);
}
cfdp::FileDirective FileDirectiveCreator::getDirectiveCode() const { return directiveCode; }

View File

@ -0,0 +1,34 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVESERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVESERIALIZER_H_
#include "fsfw/cfdp/pdu/HeaderCreator.h"
class FileDirectiveCreator : public HeaderCreator {
public:
FileDirectiveCreator(PduConfig& pduConf, cfdp::FileDirective directiveCode,
size_t directiveParamFieldLen);
[[nodiscard]] cfdp::FileDirective getDirectiveCode() const;
/**
* This only returns the size of the PDU header + 1 for the directive code octet.
* Use FileDirectiveCreator::getWholePduSize to get the full packet length, assuming
* the length fields was set correctly
* @return
*/
[[nodiscard]] size_t getSerializedSize() const override;
[[nodiscard]] ReturnValue_t serialize(uint8_t* buffer, size_t& serLen, size_t maxSize) const {
return SerializeIF::serialize(buffer, serLen, maxSize, SerializeIF::Endianness::NETWORK);
}
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
void setDirectiveDataFieldLen(size_t len);
private:
cfdp::FileDirective directiveCode = cfdp::FileDirective::INVALID_DIRECTIVE;
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVESERIALIZER_H_ */

View File

@ -1,49 +0,0 @@
#include "FileDirectiveDeserializer.h"
FileDirectiveDeserializer::FileDirectiveDeserializer(const uint8_t *pduBuf, size_t maxSize)
: HeaderDeserializer(pduBuf, maxSize) {}
cfdp::FileDirectives FileDirectiveDeserializer::getFileDirective() const { return fileDirective; }
ReturnValue_t FileDirectiveDeserializer::parseData() {
ReturnValue_t result = HeaderDeserializer::parseData();
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
if (this->getPduDataFieldLen() < 1) {
return cfdp::INVALID_PDU_DATAFIELD_LEN;
}
if (FileDirectiveDeserializer::getWholePduSize() > maxSize) {
return SerializeIF::STREAM_TOO_SHORT;
}
size_t currentIdx = HeaderDeserializer::getHeaderSize();
if (not checkFileDirective(rawPtr[currentIdx])) {
return cfdp::INVALID_DIRECTIVE_FIELDS;
}
setFileDirective(static_cast<cfdp::FileDirectives>(rawPtr[currentIdx]));
return HasReturnvaluesIF::RETURN_OK;
}
size_t FileDirectiveDeserializer::getHeaderSize() const {
// return size of header plus the directive byte
return HeaderDeserializer::getHeaderSize() + 1;
}
bool FileDirectiveDeserializer::checkFileDirective(uint8_t rawByte) {
if (rawByte < cfdp::FileDirectives::EOF_DIRECTIVE or
(rawByte > cfdp::FileDirectives::PROMPT and rawByte != cfdp::FileDirectives::KEEP_ALIVE)) {
// Invalid directive field. TODO: Custom returnvalue
return false;
}
return true;
}
void FileDirectiveDeserializer::setFileDirective(cfdp::FileDirectives fileDirective) {
this->fileDirective = fileDirective;
}
void FileDirectiveDeserializer::setEndianness(SerializeIF::Endianness endianness) {
this->endianness = endianness;
}
SerializeIF::Endianness FileDirectiveDeserializer::getEndianness() const { return endianness; }

View File

@ -0,0 +1,49 @@
#include "FileDirectiveReader.h"
FileDirectiveReader::FileDirectiveReader(const uint8_t *pduBuf, size_t maxSize)
: PduHeaderReader(pduBuf, maxSize) {}
cfdp::FileDirective FileDirectiveReader::getFileDirective() const { return fileDirective; }
ReturnValue_t FileDirectiveReader::parseData() {
ReturnValue_t result = PduHeaderReader::parseData();
if (result != returnvalue::OK) {
return result;
}
if (this->getPduDataFieldLen() < 1) {
return cfdp::INVALID_PDU_DATAFIELD_LEN;
}
if (FileDirectiveReader::getWholePduSize() > maxSize) {
return SerializeIF::STREAM_TOO_SHORT;
}
size_t currentIdx = PduHeaderReader::getHeaderSize();
if (not checkFileDirective(pointers.rawPtr[currentIdx])) {
return cfdp::INVALID_DIRECTIVE_FIELD;
}
setFileDirective(static_cast<cfdp::FileDirective>(pointers.rawPtr[currentIdx]));
return returnvalue::OK;
}
size_t FileDirectiveReader::getHeaderSize() const {
// return size of header plus the directive byte
return PduHeaderReader::getHeaderSize() + 1;
}
bool FileDirectiveReader::checkFileDirective(uint8_t rawByte) {
if (rawByte < cfdp::FileDirective::EOF_DIRECTIVE or
(rawByte > cfdp::FileDirective::PROMPT and rawByte != cfdp::FileDirective::KEEP_ALIVE)) {
// Invalid directive field
return false;
}
return true;
}
void FileDirectiveReader::setFileDirective(cfdp::FileDirective fileDirective_) {
fileDirective = fileDirective_;
}
void FileDirectiveReader::setEndianness(SerializeIF::Endianness endianness_) {
endianness = endianness_;
}
SerializeIF::Endianness FileDirectiveReader::getEndianness() const { return endianness; }

View File

@ -2,7 +2,7 @@
#define FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVEDESERIALIZER_H_
#include "../definitions.h"
#include "fsfw/cfdp/pdu/HeaderDeserializer.h"
#include "fsfw/cfdp/pdu/PduHeaderReader.h"
/**
* @brief This class is used to deserialize a PDU file directive header from raw memory.
@ -11,28 +11,27 @@
* This is a zero-copy implementation and #parseData needs to be called to ensure the data is
* valid.
*/
class FileDirectiveDeserializer : public HeaderDeserializer {
class FileDirectiveReader : public PduHeaderReader {
public:
FileDirectiveDeserializer(const uint8_t* pduBuf, size_t maxSize);
FileDirectiveReader(const uint8_t* pduBuf, size_t maxSize);
/**
* This needs to be called before accessing the PDU fields to avoid segmentation faults.
* @return
*/
virtual ReturnValue_t parseData();
size_t getHeaderSize() const;
ReturnValue_t parseData() override;
[[nodiscard]] size_t getHeaderSize() const override;
cfdp::FileDirectives getFileDirective() const;
[[nodiscard]] cfdp::FileDirective getFileDirective() const;
void setEndianness(SerializeIF::Endianness endianness);
SerializeIF::Endianness getEndianness() const;
[[nodiscard]] SerializeIF::Endianness getEndianness() const;
static bool checkFileDirective(uint8_t rawByte);
protected:
bool checkFileDirective(uint8_t rawByte);
private:
void setFileDirective(cfdp::FileDirectives fileDirective);
cfdp::FileDirectives fileDirective = cfdp::FileDirectives::INVALID_DIRECTIVE;
void setFileDirective(cfdp::FileDirective fileDirective);
cfdp::FileDirective fileDirective = cfdp::FileDirective::INVALID_DIRECTIVE;
SerializeIF::Endianness endianness = SerializeIF::Endianness::NETWORK;
};

View File

@ -1,38 +0,0 @@
#include "FileDirectiveSerializer.h"
FileDirectiveSerializer::FileDirectiveSerializer(PduConfig &pduConf,
cfdp::FileDirectives directiveCode,
size_t directiveParamFieldLen)
: HeaderSerializer(pduConf, cfdp::PduType::FILE_DIRECTIVE, directiveParamFieldLen + 1),
directiveCode(directiveCode) {}
size_t FileDirectiveSerializer::getSerializedSize() const {
return HeaderSerializer::getSerializedSize() + 1;
}
ReturnValue_t FileDirectiveSerializer::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
if (buffer == nullptr or size == nullptr) {
return HasReturnvaluesIF::RETURN_FAILED;
}
if (FileDirectiveSerializer::getWholePduSize() > maxSize) {
return BUFFER_TOO_SHORT;
}
ReturnValue_t result = HeaderSerializer::serialize(buffer, size, maxSize, streamEndianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
if (*size >= maxSize) {
return BUFFER_TOO_SHORT;
}
**buffer = directiveCode;
*buffer += 1;
*size += 1;
return HasReturnvaluesIF::RETURN_OK;
}
void FileDirectiveSerializer::setDirectiveDataFieldLen(size_t len) {
// Set length of data field plus 1 byte for the directive octet
HeaderSerializer::setPduDataFieldLen(len + 1);
}

View File

@ -1,28 +0,0 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVESERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVESERIALIZER_H_
#include "fsfw/cfdp/pdu/HeaderSerializer.h"
class FileDirectiveSerializer : public HeaderSerializer {
public:
FileDirectiveSerializer(PduConfig& pduConf, cfdp::FileDirectives directiveCode,
size_t directiveParamFieldLen);
/**
* This only returns the size of the PDU header + 1 for the directive code octet.
* Use FileDirectiveSerializer::getWholePduSize to get the full packet length, assuming
* the length fields was set correctly
* @return
*/
size_t getSerializedSize() const override;
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
void setDirectiveDataFieldLen(size_t len);
private:
cfdp::FileDirectives directiveCode = cfdp::FileDirectives::INVALID_DIRECTIVE;
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_FILEDIRECTIVESERIALIZER_H_ */

View File

@ -2,9 +2,8 @@
FinishedInfo::FinishedInfo() {}
FinishedInfo::FinishedInfo(cfdp::ConditionCode conditionCode,
cfdp::FinishedDeliveryCode deliveryCode,
cfdp::FinishedFileStatus fileStatus)
FinishedInfo::FinishedInfo(cfdp::ConditionCode conditionCode, cfdp::FileDeliveryCode deliveryCode,
cfdp::FileDeliveryStatus fileStatus)
: conditionCode(conditionCode), deliveryCode(deliveryCode), fileStatus(fileStatus) {}
size_t FinishedInfo::getSerializedSize() const {
@ -46,14 +45,14 @@ ReturnValue_t FinishedInfo::setFilestoreResponsesArray(FilestoreResponseTlv** fs
if (maxFsResponsesLen != nullptr) {
this->fsResponsesMaxLen = *maxFsResponsesLen;
}
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
ReturnValue_t FinishedInfo::getFilestoreResonses(FilestoreResponseTlv*** fsResponses,
size_t* fsResponsesLen,
size_t* fsResponsesMaxLen) {
if (fsResponses == nullptr) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
*fsResponses = this->fsResponses;
if (fsResponsesLen != nullptr) {
@ -62,7 +61,7 @@ ReturnValue_t FinishedInfo::getFilestoreResonses(FilestoreResponseTlv*** fsRespo
if (fsResponsesMaxLen != nullptr) {
*fsResponsesMaxLen = this->fsResponsesMaxLen;
}
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
void FinishedInfo::setFaultLocation(EntityIdTlv* faultLocation) {
@ -71,10 +70,10 @@ void FinishedInfo::setFaultLocation(EntityIdTlv* faultLocation) {
ReturnValue_t FinishedInfo::getFaultLocation(EntityIdTlv** faultLocation) {
if (this->faultLocation == nullptr) {
return HasReturnvaluesIF::RETURN_FAILED;
return returnvalue::FAILED;
}
*faultLocation = this->faultLocation;
return HasReturnvaluesIF::RETURN_OK;
return returnvalue::OK;
}
cfdp::ConditionCode FinishedInfo::getConditionCode() const { return conditionCode; }
@ -83,13 +82,13 @@ void FinishedInfo::setConditionCode(cfdp::ConditionCode conditionCode) {
this->conditionCode = conditionCode;
}
cfdp::FinishedDeliveryCode FinishedInfo::getDeliveryCode() const { return deliveryCode; }
cfdp::FileDeliveryCode FinishedInfo::getDeliveryCode() const { return deliveryCode; }
void FinishedInfo::setDeliveryCode(cfdp::FinishedDeliveryCode deliveryCode) {
void FinishedInfo::setDeliveryCode(cfdp::FileDeliveryCode deliveryCode) {
this->deliveryCode = deliveryCode;
}
cfdp::FinishedFileStatus FinishedInfo::getFileStatus() const { return fileStatus; }
cfdp::FileDeliveryStatus FinishedInfo::getFileStatus() const { return fileStatus; }
void FinishedInfo::setFilestoreResponsesArrayLen(size_t fsResponsesLen) {
this->fsResponsesLen = fsResponsesLen;
@ -97,6 +96,6 @@ void FinishedInfo::setFilestoreResponsesArrayLen(size_t fsResponsesLen) {
size_t FinishedInfo::getFsResponsesLen() const { return fsResponsesLen; }
void FinishedInfo::setFileStatus(cfdp::FinishedFileStatus fileStatus) {
void FinishedInfo::setFileStatus(cfdp::FileDeliveryStatus fileStatus) {
this->fileStatus = fileStatus;
}

View File

@ -8,13 +8,13 @@
class FinishedInfo {
public:
FinishedInfo();
FinishedInfo(cfdp::ConditionCode conditionCode, cfdp::FinishedDeliveryCode deliveryCode,
cfdp::FinishedFileStatus fileStatus);
FinishedInfo(cfdp::ConditionCode conditionCode, cfdp::FileDeliveryCode deliveryCode,
cfdp::FileDeliveryStatus fileStatus);
size_t getSerializedSize() const;
[[nodiscard]] size_t getSerializedSize() const;
bool hasFsResponses() const;
bool canHoldFsResponses() const;
[[nodiscard]] bool hasFsResponses() const;
[[nodiscard]] bool canHoldFsResponses() const;
ReturnValue_t setFilestoreResponsesArray(FilestoreResponseTlv** fsResponses,
size_t* fsResponsesLen, const size_t* maxFsResponseLen);
@ -22,20 +22,20 @@ class FinishedInfo {
ReturnValue_t getFilestoreResonses(FilestoreResponseTlv*** fsResponses, size_t* fsResponsesLen,
size_t* fsResponsesMaxLen);
size_t getFsResponsesLen() const;
[[nodiscard]] size_t getFsResponsesLen() const;
void setFilestoreResponsesArrayLen(size_t fsResponsesLen);
ReturnValue_t getFaultLocation(EntityIdTlv** entityId);
cfdp::ConditionCode getConditionCode() const;
[[nodiscard]] cfdp::ConditionCode getConditionCode() const;
void setConditionCode(cfdp::ConditionCode conditionCode);
cfdp::FinishedDeliveryCode getDeliveryCode() const;
void setDeliveryCode(cfdp::FinishedDeliveryCode deliveryCode);
cfdp::FinishedFileStatus getFileStatus() const;
void setFileStatus(cfdp::FinishedFileStatus fileStatus);
[[nodiscard]] cfdp::FileDeliveryCode getDeliveryCode() const;
void setDeliveryCode(cfdp::FileDeliveryCode deliveryCode);
[[nodiscard]] cfdp::FileDeliveryStatus getFileStatus() const;
void setFileStatus(cfdp::FileDeliveryStatus fileStatus);
private:
cfdp::ConditionCode conditionCode = cfdp::ConditionCode::NO_CONDITION_FIELD;
cfdp::FinishedDeliveryCode deliveryCode = cfdp::FinishedDeliveryCode::DATA_COMPLETE;
cfdp::FinishedFileStatus fileStatus = cfdp::FinishedFileStatus::DISCARDED_DELIBERATELY;
cfdp::FileDeliveryCode deliveryCode = cfdp::FileDeliveryCode::DATA_COMPLETE;
cfdp::FileDeliveryStatus fileStatus = cfdp::FileDeliveryStatus::DISCARDED_DELIBERATELY;
FilestoreResponseTlv** fsResponses = nullptr;
size_t fsResponsesLen = 0;
size_t fsResponsesMaxLen = 0;

View File

@ -0,0 +1,44 @@
#include "FinishedPduCreator.h"
FinishPduCreator::FinishPduCreator(PduConfig &conf, FinishedInfo &finishInfo)
: FileDirectiveCreator(conf, cfdp::FileDirective::FINISH, 0), finishInfo(finishInfo) {
updateDirectiveFieldLen();
}
size_t FinishPduCreator::getSerializedSize() const { return FinishPduCreator::getWholePduSize(); }
void FinishPduCreator::updateDirectiveFieldLen() {
setDirectiveDataFieldLen(finishInfo.getSerializedSize());
}
ReturnValue_t FinishPduCreator::serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const {
ReturnValue_t result = FileDirectiveCreator::serialize(buffer, size, maxSize, streamEndianness);
if (result != returnvalue::OK) {
return result;
}
if (*size + 1 > maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
**buffer = finishInfo.getConditionCode() << 4 | finishInfo.getDeliveryCode() << 2 |
finishInfo.getFileStatus();
*size += 1;
*buffer += 1;
if (finishInfo.hasFsResponses()) {
FilestoreResponseTlv **fsResponsesArray = nullptr;
size_t fsResponsesArrayLen = 0;
finishInfo.getFilestoreResonses(&fsResponsesArray, &fsResponsesArrayLen, nullptr);
for (size_t idx = 0; idx < fsResponsesArrayLen; idx++) {
result = fsResponsesArray[idx]->serialize(buffer, size, maxSize, streamEndianness);
if (result != returnvalue::OK) {
return result;
}
}
}
EntityIdTlv *entityId = nullptr;
if (finishInfo.getFaultLocation(&entityId) == returnvalue::OK) {
result = entityId->serialize(buffer, size, maxSize, streamEndianness);
}
return result;
}

View File

@ -0,0 +1,24 @@
#ifndef FSFW_CFDP_PDU_FINISHEDPDUSERIALIZER_H_
#define FSFW_CFDP_PDU_FINISHEDPDUSERIALIZER_H_
#include "FinishedInfo.h"
#include "fsfw/cfdp/pdu/FileDataCreator.h"
#include "fsfw/cfdp/pdu/FileDirectiveCreator.h"
class FinishPduCreator : public FileDirectiveCreator {
public:
FinishPduCreator(PduConfig& pduConf, FinishedInfo& finishInfo);
void updateDirectiveFieldLen();
[[nodiscard]] size_t getSerializedSize() const override;
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
Endianness streamEndianness) const override;
using FileDirectiveCreator::serialize;
private:
FinishedInfo& finishInfo;
};
#endif /* FSFW_CFDP_PDU_FINISHEDPDUSERIALIZER_H_ */

View File

@ -1,22 +0,0 @@
#ifndef FSFW_SRC_FSFW_CFDP_PDU_FINISHEDPDUDESERIALIZER_H_
#define FSFW_SRC_FSFW_CFDP_PDU_FINISHEDPDUDESERIALIZER_H_
#include "fsfw/cfdp/pdu/FileDirectiveDeserializer.h"
#include "fsfw/cfdp/pdu/FinishedInfo.h"
class FinishPduDeserializer : public FileDirectiveDeserializer {
public:
FinishPduDeserializer(const uint8_t* pduBuf, size_t maxSize, FinishedInfo& info);
ReturnValue_t parseData() override;
FinishedInfo& getInfo();
private:
FinishedInfo& finishedInfo;
ReturnValue_t parseTlvs(size_t remLen, size_t currentIdx, const uint8_t* buf,
cfdp::ConditionCode conditionCode);
};
#endif /* FSFW_SRC_FSFW_CFDP_PDU_FINISHEDPDUDESERIALIZER_H_ */

View File

@ -1,25 +1,24 @@
#include "FinishedPduDeserializer.h"
#include "FinishedPduReader.h"
FinishPduDeserializer::FinishPduDeserializer(const uint8_t* pduBuf, size_t maxSize,
FinishedInfo& info)
: FileDirectiveDeserializer(pduBuf, maxSize), finishedInfo(info) {}
FinishPduReader::FinishPduReader(const uint8_t* pduBuf, size_t maxSize, FinishedInfo& info)
: FileDirectiveReader(pduBuf, maxSize), finishedInfo(info) {}
ReturnValue_t FinishPduDeserializer::parseData() {
ReturnValue_t result = FileDirectiveDeserializer::parseData();
if (result != HasReturnvaluesIF::RETURN_OK) {
ReturnValue_t FinishPduReader::parseData() {
ReturnValue_t result = FileDirectiveReader::parseData();
if (result != returnvalue::OK) {
return result;
}
size_t currentIdx = FileDirectiveDeserializer::getHeaderSize();
const uint8_t* buf = rawPtr + currentIdx;
size_t remSize = FileDirectiveDeserializer::getWholePduSize() - currentIdx;
size_t currentIdx = FileDirectiveReader::getHeaderSize();
const uint8_t* buf = pointers.rawPtr + currentIdx;
size_t remSize = FileDirectiveReader::getWholePduSize() - currentIdx;
if (remSize < 1) {
return SerializeIF::STREAM_TOO_SHORT;
}
uint8_t firstByte = *buf;
cfdp::ConditionCode condCode = static_cast<cfdp::ConditionCode>((firstByte >> 4) & 0x0f);
auto condCode = static_cast<cfdp::ConditionCode>((firstByte >> 4) & 0x0f);
finishedInfo.setConditionCode(condCode);
finishedInfo.setDeliveryCode(static_cast<cfdp::FinishedDeliveryCode>(firstByte >> 2 & 0b1));
finishedInfo.setFileStatus(static_cast<cfdp::FinishedFileStatus>(firstByte & 0b11));
finishedInfo.setDeliveryCode(static_cast<cfdp::FileDeliveryCode>(firstByte >> 2 & 0b1));
finishedInfo.setFileStatus(static_cast<cfdp::FileDeliveryStatus>(firstByte & 0b11));
buf += 1;
remSize -= 1;
currentIdx += 1;
@ -29,17 +28,17 @@ ReturnValue_t FinishPduDeserializer::parseData() {
return result;
}
FinishedInfo& FinishPduDeserializer::getInfo() { return finishedInfo; }
FinishedInfo& FinishPduReader::getInfo() { return finishedInfo; }
ReturnValue_t FinishPduDeserializer::parseTlvs(size_t remLen, size_t currentIdx, const uint8_t* buf,
cfdp::ConditionCode conditionCode) {
ReturnValue_t result = HasReturnvaluesIF::RETURN_OK;
ReturnValue_t FinishPduReader::parseTlvs(size_t remLen, size_t currentIdx, const uint8_t* buf,
cfdp::ConditionCode conditionCode) {
ReturnValue_t result = returnvalue::OK;
size_t fsResponsesIdx = 0;
auto endianness = getEndianness();
FilestoreResponseTlv** fsResponseArray = nullptr;
size_t fsResponseMaxArrayLen = 0;
EntityIdTlv* faultLocation = nullptr;
cfdp::TlvTypes nextTlv = cfdp::TlvTypes::INVALID_TLV;
cfdp::TlvType nextTlv = cfdp::TlvType::INVALID_TLV;
while (remLen > 0) {
// Simply forward parse the TLV type. Every TLV type except the last one must be a Filestore
// Response TLV, and even the last one can be a Filestore Response TLV if the fault
@ -47,8 +46,8 @@ ReturnValue_t FinishPduDeserializer::parseTlvs(size_t remLen, size_t currentIdx,
if (currentIdx + 2 > maxSize) {
return SerializeIF::STREAM_TOO_SHORT;
}
nextTlv = static_cast<cfdp::TlvTypes>(*buf);
if (nextTlv == cfdp::TlvTypes::FILESTORE_RESPONSE) {
nextTlv = static_cast<cfdp::TlvType>(*buf);
if (nextTlv == cfdp::TlvType::FILESTORE_RESPONSE) {
if (fsResponseArray == nullptr) {
if (not finishedInfo.canHoldFsResponses()) {
return cfdp::FINISHED_CANT_PARSE_FS_RESPONSES;
@ -60,11 +59,11 @@ ReturnValue_t FinishPduDeserializer::parseTlvs(size_t remLen, size_t currentIdx,
return cfdp::FINISHED_CANT_PARSE_FS_RESPONSES;
}
result = fsResponseArray[fsResponsesIdx]->deSerialize(&buf, &remLen, endianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
fsResponsesIdx += 1;
} else if (nextTlv == cfdp::TlvTypes::ENTITY_ID) {
} else if (nextTlv == cfdp::TlvType::ENTITY_ID) {
// This needs to be the last TLV and it should not be here if the condition code
// is "No Error" or "Unsupported Checksum Type"
if (conditionCode == cfdp::ConditionCode::NO_ERROR or
@ -72,11 +71,11 @@ ReturnValue_t FinishPduDeserializer::parseTlvs(size_t remLen, size_t currentIdx,
return cfdp::INVALID_TLV_TYPE;
}
result = finishedInfo.getFaultLocation(&faultLocation);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
result = faultLocation->deSerialize(&buf, &remLen, endianness);
if (result != HasReturnvaluesIF::RETURN_OK) {
if (result != returnvalue::OK) {
return result;
}
} else {

Some files were not shown because too many files have changed in this diff Show More