CFDP source handler #776

Merged
muellerr merged 96 commits from cfdp-source-handler into main 2023-10-19 11:11:31 +02:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit 7e9648eabf - Show all commits

View File

@ -168,12 +168,14 @@ ReturnValue_t CfdpHandler::handleCfdpRequest(CommandMessage& msg) {
RemoteEntityCfg* remoteCfg; RemoteEntityCfg* remoteCfg;
remoteCfgProvider.getRemoteCfg(putRequest.getDestId(), &remoteCfg); remoteCfgProvider.getRemoteCfg(putRequest.getDestId(), &remoteCfg);
if (remoteCfg == nullptr) { if (remoteCfg == nullptr) {
sif::error << "CfdpHandler: No remote configuration found for destination ID " << sif::error << "CfdpHandler: No remote configuration found for destination ID "
putRequest.getDestId() << std::endl; << putRequest.getDestId() << std::endl;
// TODO: Trigger event // TODO: Trigger event
return FAILED; return FAILED;
} }
sif::info << "starting transfer" << std::endl; sif::info << "Starting file copy operation for source file "
<< putRequest.getSourceName().getString() << " and dest file "
<< putRequest.getDestName().getString() << std::endl;
return srcHandler.transactionStart(putRequest, *remoteCfg); return srcHandler.transactionStart(putRequest, *remoteCfg);
} }
} }
@ -203,8 +205,8 @@ ReturnValue_t CfdpHandler::handleCfdpMessages() {
status = cfdpRequestQueue.receiveMessage(&cfdpMsg)) { status = cfdpRequestQueue.receiveMessage(&cfdpMsg)) {
result = handleCfdpRequest(cfdpMsg); result = handleCfdpRequest(cfdpMsg);
if (result != OK) { if (result != OK) {
sif::warning << "Handling CFDP request failed with code 0x" << std::setw(4) << std::hex << sif::warning << "Handling CFDP request failed with code 0x" << std::setw(4) << std::hex
result << std::dec << std::endl; << result << std::dec << std::endl;
triggerEvent(cfdp::events::HANDLING_CFDP_REQUEST_FAILED, 0, result); triggerEvent(cfdp::events::HANDLING_CFDP_REQUEST_FAILED, 0, result);
Review

das

das
// TODO: Maybe add printout with context specific information? // TODO: Maybe add printout with context specific information?
status = result; status = result;

2
tmtc

@ -1 +1 @@
Subproject commit d72b7d9d663013ac75350728edffa15f7a379039 Subproject commit 7f79ef6c12604fcf827890c7f47aec823f7d3efc