increased execution timeout of prepare update command
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
parent
af52b90abe
commit
e6f55ba2c1
@ -1708,11 +1708,11 @@ ReturnValue_t CoreController::timeFileHandler() {
|
|||||||
}
|
}
|
||||||
std::string fileName = currMntPrefix + TIME_FILE;
|
std::string fileName = currMntPrefix + TIME_FILE;
|
||||||
std::ofstream timeFile(fileName);
|
std::ofstream timeFile(fileName);
|
||||||
if (not timeFile.good()) {
|
// if (not timeFile.good()) {
|
||||||
sif::error << "CoreController::timeFileHandler: Error opening time file: " << strerror(errno)
|
// sif::error << "CoreController::timeFileHandler: Error opening time file: " << strerror(errno)
|
||||||
<< std::endl;
|
// << std::endl;
|
||||||
return RETURN_FAILED;
|
// return RETURN_FAILED;
|
||||||
}
|
// }
|
||||||
timeFile << "UNIX SECONDS: " << currentTime.tv_sec << std::endl;
|
timeFile << "UNIX SECONDS: " << currentTime.tv_sec << std::endl;
|
||||||
}
|
}
|
||||||
return RETURN_OK;
|
return RETURN_OK;
|
||||||
|
@ -233,7 +233,7 @@ ReturnValue_t PlocSupvHelper::performEventBufferRequest() {
|
|||||||
ReturnValue_t PlocSupvHelper::prepareUpdate() {
|
ReturnValue_t PlocSupvHelper::prepareUpdate() {
|
||||||
ReturnValue_t result = RETURN_OK;
|
ReturnValue_t result = RETURN_OK;
|
||||||
supv::ApidOnlyPacket packet(supv::APID_PREPARE_UPDATE);
|
supv::ApidOnlyPacket packet(supv::APID_PREPARE_UPDATE);
|
||||||
result = handlePacketTransmission(packet);
|
result = handlePacketTransmission(packet, PREPARE_UPDATE_EXECUTION_REPORT);
|
||||||
if (result != RETURN_OK) {
|
if (result != RETURN_OK) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -342,8 +342,8 @@ ReturnValue_t PlocSupvHelper::handleTmReception(supv::TmPacket* tmPacket, size_t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (remainingBytes != 0) {
|
if (remainingBytes != 0) {
|
||||||
sif::warning << "PlocSupvHelper::handleTmReception: Failed to read " << remainingBytes
|
sif::warning << "PlocSupvHelper::handleTmReception: Failed to read " << std::dec
|
||||||
<< " bytes" << std::endl;
|
<< remainingBytes << " bytes" << std::endl;
|
||||||
return RETURN_FAILED;
|
return RETURN_FAILED;
|
||||||
}
|
}
|
||||||
result = tmPacket->checkCrc();
|
result = tmPacket->checkCrc();
|
||||||
|
@ -128,6 +128,7 @@ class PlocSupvHelper : public SystemObject, public ExecutableObjectIF, public Ha
|
|||||||
static const size_t SIZE_EVENT_BUFFER_FULL_PACKET = 1024;
|
static const size_t SIZE_EVENT_BUFFER_FULL_PACKET = 1024;
|
||||||
static const size_t SIZE_EVENT_BUFFER_LAST_PACKET = 200;
|
static const size_t SIZE_EVENT_BUFFER_LAST_PACKET = 200;
|
||||||
static const uint32_t CRC_EXECUTION_TIMEOUT = 60000;
|
static const uint32_t CRC_EXECUTION_TIMEOUT = 60000;
|
||||||
|
static const uint32_t PREPARE_UPDATE_EXECUTION_REPORT = 2000;
|
||||||
|
|
||||||
struct Update {
|
struct Update {
|
||||||
uint8_t memoryId;
|
uint8_t memoryId;
|
||||||
|
Loading…
Reference in New Issue
Block a user