CFDP handler
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-08-31 15:20:19 +02:00
parent 6f2eaee50a
commit 7e9648eabf
Signed by: muellerr
GPG Key ID: FCE0B2BD2195142F
2 changed files with 8 additions and 6 deletions

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);
// 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