MPSoC robustness tweaks and debug mode #805
@ -91,6 +91,8 @@ ReturnValue_t PlocMpsocHandler::initialize() {
|
|||||||
|
|
||||||
void PlocMpsocHandler::performOperationHook() {
|
void PlocMpsocHandler::performOperationHook() {
|
||||||
if (commandIsPending and cmdCountdown.hasTimedOut()) {
|
if (commandIsPending and cmdCountdown.hasTimedOut()) {
|
||||||
|
sif::warning << "PlocMpsocHandler: Command " << getPendingCommand() << " has timed out"
|
||||||
|
<< std::endl;
|
||||||
commandIsPending = false;
|
commandIsPending = false;
|
||||||
// TODO: Better returnvalue?
|
// TODO: Better returnvalue?
|
||||||
cmdDoneHandler(false, returnvalue::FAILED);
|
cmdDoneHandler(false, returnvalue::FAILED);
|
||||||
@ -215,7 +217,6 @@ ReturnValue_t PlocMpsocHandler::buildNormalDeviceCommand(DeviceCommandId_t* id)
|
|||||||
if (not commandIsPending and not specialComHelperExecuting) {
|
if (not commandIsPending and not specialComHelperExecuting) {
|
||||||
*id = mpsoc::TC_GET_HK_REPORT;
|
*id = mpsoc::TC_GET_HK_REPORT;
|
||||||
commandIsPending = true;
|
commandIsPending = true;
|
||||||
cmdCountdown.resetTimer();
|
|
||||||
return buildCommandFromCommand(*id, nullptr, 0);
|
return buildCommandFromCommand(*id, nullptr, 0);
|
||||||
}
|
}
|
||||||
return NOTHING_TO_SEND;
|
return NOTHING_TO_SEND;
|
||||||
@ -713,6 +714,7 @@ ReturnValue_t PlocMpsocHandler::finishTcPrep(mpsoc::TcBase& tcBase) {
|
|||||||
<< " Size " << std::dec << tcBase.getFullPacketLen() << " SSC "
|
<< " Size " << std::dec << tcBase.getFullPacketLen() << " SSC "
|
||||||
<< tcBase.getSeqCount() << std::endl;
|
<< tcBase.getSeqCount() << std::endl;
|
||||||
}
|
}
|
||||||
|
cmdCountdown.resetTimer();
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ class PlocMpsocHandler : public DeviceHandlerBase, public CommandsActionsIF {
|
|||||||
};
|
};
|
||||||
|
|
||||||
TmMemReadReport tmMemReadReport;
|
TmMemReadReport tmMemReadReport;
|
||||||
Countdown cmdCountdown = Countdown(10000);
|
Countdown cmdCountdown = Countdown(12000);
|
||||||
|
|
||||||
struct TelemetryBuffer {
|
struct TelemetryBuffer {
|
||||||
uint16_t length = 0;
|
uint16_t length = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user