From 534ddde9e83c5df19af3f88b46fa86e586a56daa Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 26 Oct 2023 11:19:21 +0200 Subject: [PATCH 1/3] ploc supv debug mode --- linux/payload/PlocSupervisorHandler.cpp | 232 +----------------------- linux/payload/PlocSupervisorHandler.h | 17 +- tmtc | 2 +- 3 files changed, 8 insertions(+), 243 deletions(-) diff --git a/linux/payload/PlocSupervisorHandler.cpp b/linux/payload/PlocSupervisorHandler.cpp index 0c6311de..81af2ade 100644 --- a/linux/payload/PlocSupervisorHandler.cpp +++ b/linux/payload/PlocSupervisorHandler.cpp @@ -223,6 +223,7 @@ ReturnValue_t PlocSupervisorHandler::buildCommandFromCommand(DeviceCommandId_t d break; } case RESET_MPSOC: { + sif::info << "PLOC SUPV: Resetting MPSoC" << std::endl; prepareEmptyCmd(Apid::BOOT_MAN, static_cast(tc::BootManId::RESET_MPSOC)); result = returnvalue::OK; break; @@ -320,85 +321,6 @@ ReturnValue_t PlocSupervisorHandler::buildCommandFromCommand(DeviceCommandId_t d result = prepareWipeMramCmd(commandData); break; } - // case ENABLE_NVMS: { - // result = prepareEnableNvmsCommand(commandData); - // break; - // } - // case RESTART_SUPERVISOR: { - // prepareEmptyCmd(APID_RESTART_SUPERVISOR); - // result = returnvalue::OK; - // break; - // } - // Removed command - // case START_MPSOC_QUIET: { - // prepareEmptyCmd(APID_START_MPSOC_QUIET); - // result = returnvalue::OK; - // break; - // } - // case ENABLE_AUTO_TM: { - // EnableAutoTm packet(spParams); - // result = packet.buildPacket(); - // if (result != returnvalue::OK) { - // break; - // } - // finishTcPrep(packet.getFullPacketLen()); - // break; - // } - // case DISABLE_AUTO_TM: { - // DisableAutoTm packet(spParams); - // result = packet.buildPacket(); - // if (result != returnvalue::OK) { - // break; - // } - // finishTcPrep(packet.getFullPacketLen()); - // break; - // } - // case LOGGING_REQUEST_COUNTERS: { - // RequestLoggingData packet(spParams); - // result = packet.buildPacket(RequestLoggingData::Sa::REQUEST_COUNTERS); - // if (result != returnvalue::OK) { - // break; - // } - // finishTcPrep(packet.getFullPacketLen()); - // break; - // } - // case LOGGING_CLEAR_COUNTERS: { - // RequestLoggingData packet(spParams); - // result = packet.buildPacket(RequestLoggingData::Sa::CLEAR_COUNTERS); - // if (result != returnvalue::OK) { - // break; - // } - // finishTcPrep(packet.getFullPacketLen()); - // break; - // } - // case LOGGING_SET_TOPIC: { - // if (commandData == nullptr or commandDataLen == 0) { - // return HasActionsIF::INVALID_PARAMETERS; - // } - // uint8_t tpc = *(commandData); - // RequestLoggingData packet(spParams); - // result = packet.buildPacket(RequestLoggingData::Sa::SET_LOGGING_TOPIC, tpc); - // if (result != returnvalue::OK) { - // break; - // } - // finishTcPrep(packet.getFullPacketLen()); - // break; - // } - // I think this is disabled right now according to the TC excel table - // case COPY_ADC_DATA_TO_MRAM: { - // prepareEmptyCmd(APID_COPY_ADC_DATA_TO_MRAM); - // result = returnvalue::OK; - // break; - // } - // case REQUEST_ADC_REPORT: { - // prepareEmptyCmd(APID_REQUEST_ADC_REPORT); - // result = returnvalue::OK; - // break; - // } - // case FIRST_MRAM_DUMP: - // case CONSECUTIVE_MRAM_DUMP: - // result = prepareDumpMramCmd(commandData); - // break; default: sif::debug << "PlocSupervisorHandler::buildCommandFromCommand: Command not implemented" << std::endl; @@ -550,23 +472,17 @@ ReturnValue_t PlocSupervisorHandler::enableReplyInReplyMap(DeviceCommandMap::ite case SET_ADC_ENABLED_CHANNELS: case SET_ADC_WINDOW_AND_STRIDE: case SET_ADC_THRESHOLD: - // case COPY_ADC_DATA_TO_MRAM: case RUN_AUTO_EM_TESTS: case WIPE_MRAM: case SET_GPIO: case FACTORY_RESET: case READ_GPIO: - // case RESTART_SUPERVISOR: case DISABLE_PERIOIC_HK_TRANSMISSION: - // case START_MPSOC_QUIET: case SET_SHUTDOWN_TIMEOUT: case FACTORY_FLASH: case ENABLE_AUTO_TM: case DISABLE_AUTO_TM: - // case LOGGING_CLEAR_COUNTERS: - // case LOGGING_SET_TOPIC: case RESET_PL: - // case ENABLE_NVMS: enabledReplies = 2; break; default: @@ -598,19 +514,14 @@ ReturnValue_t PlocSupervisorHandler::enableReplyInReplyMap(DeviceCommandMap::ite ReturnValue_t PlocSupervisorHandler::scanForReply(const uint8_t* start, size_t remainingSize, DeviceCommandId_t* foundId, size_t* foundLen) { using namespace supv; - // TODO: Is this still required? - // if (nextReplyId == FIRST_MRAM_DUMP) { - // *foundId = FIRST_MRAM_DUMP; - // return parseMramPackets(start, remainingSize, foundLen); - // } else if (nextReplyId == CONSECUTIVE_MRAM_DUMP) { - // *foundId = CONSECUTIVE_MRAM_DUMP; - // return parseMramPackets(start, remainingSize, foundLen); - // } tmReader.setData(start, remainingSize); - // sif::debug << "PlocSupervisorHandler::scanForReply: Received Packet" << std::endl; - // arrayprinter::print(start, remainingSize); uint16_t apid = tmReader.getModuleApid(); + if(DEBUG_PLOC_SUPV) { + sif::debug << "PlocSupervisorHandler: RECV PACKET Size " << tmReader.getFullPacketLen() << " APID " << tmReader.getApid() + << " Module APID: " << tmReader.getModuleApid() << std::endl; + arrayprinter::print(start, remainingSize); + } switch (apid) { case (Apid::TMTC_MAN): { @@ -2006,134 +1917,3 @@ ReturnValue_t PlocSupervisorHandler::checkModeCommand(Mode_t commandedMode, } return DeviceHandlerBase::checkModeCommand(commandedMode, commandedSubmode, msToReachTheMode); } - -// ReturnValue_t PlocSupervisorHandler::checkMramPacketApid() { -// uint16_t apid = (spacePacketBuffer[0] << 8 | spacePacketBuffer[1]) & supv::APID_MASK; -// TODO: Fix -// if (apid != supv::APID_MRAM_DUMP_TM) { -// return result::NO_MRAM_PACKET; -// } -// return APERIODIC_REPLY; -//} - -// ReturnValue_t PlocSupervisorHandler::parseMramPackets(const uint8_t* packet, size_t -// remainingSize, -// size_t* foundLen) { -// ReturnValue_t result = IGNORE_FULL_PACKET; -// uint16_t packetLen = 0; -// *foundLen = 0; -// -// for (size_t idx = 0; idx < remainingSize; idx++) { -// std::memcpy(spacePacketBuffer + bufferTop, packet + idx, 1); -// bufferTop += 1; -// *foundLen += 1; -// if (bufferTop >= ccsds::HEADER_LEN) { -// packetLen = readSpacePacketLength(spacePacketBuffer); -// } -// -// if (bufferTop == ccsds::HEADER_LEN + packetLen + 1) { -// packetInBuffer = true; -// bufferTop = 0; -// return checkMramPacketApid(); -// } -// -// if (bufferTop == supv::MAX_PACKET_SIZE) { -// *foundLen = remainingSize; -// disableAllReplies(); -// bufferTop = 0; -// sif::info << "PlocSupervisorHandler::parseMramPackets: Can not find MRAM packet in space " -// "packet buffer" -// << std::endl; -// return result::MRAM_PACKET_PARSING_FAILURE; -// } -// } -// -// return result; -// } - -// ReturnValue_t PlocSupervisorHandler::prepareDumpMramCmd(const uint8_t* commandData) { -// uint32_t start = 0; -// uint32_t stop = 0; -// size_t size = sizeof(start) + sizeof(stop); -// SerializeAdapter::deSerialize(&start, &commandData, &size, SerializeIF::Endianness::BIG); -// SerializeAdapter::deSerialize(&stop, &commandData, &size, SerializeIF::Endianness::BIG); -// if ((stop - start) <= 0) { -// return SupvReturnValuesIF::INVALID_MRAM_ADDRESSES; -// } -// supv::MramCmd packet(spParams); -// ReturnValue_t result = packet.buildPacket(start, stop, supv::MramCmd::MramAction::DUMP); -// if (result != returnvalue::OK) { -// return result; -// } -// expectedMramDumpPackets = (stop - start) / supv::MAX_DATA_CAPACITY; -// if ((stop - start) % supv::MAX_DATA_CAPACITY) { -// expectedMramDumpPackets++; -// } -// receivedMramDumpPackets = 0; -// -// finishTcPrep(packet.getFullPacketLen()); -// return returnvalue::OK; -// } - -// ReturnValue_t PlocSupervisorHandler::prepareLoggingRequest(const uint8_t* commandData, -// size_t commandDataLen) { -// using namespace supv; -// RequestLoggingData::Sa sa = static_cast(*commandData); -// uint8_t tpc = *(commandData + 1); -// RequestLoggingData packet(spParams); -// ReturnValue_t result = packet.buildPacket(sa, tpc); -// if (result != returnvalue::OK) { -// return result; -// } -// finishTcPrep(packet.getFullPacketLen()); -// return returnvalue::OK; -// } - -// ReturnValue_t PlocSupervisorHandler::prepareEnableNvmsCommand(const uint8_t* commandData) { -// using namespace supv; -// uint8_t nvm01 = *(commandData); -// uint8_t nvm3 = *(commandData + 1); -// EnableNvms packet(spParams); -// ReturnValue_t result = packet.buildPacket(nvm01, nvm3); -// if (result != returnvalue::OK) { -// return result; -// } -// finishTcPrep(packet.getFullPacketLen()); -// return returnvalue::OK; -// } - -// ReturnValue_t PlocSupervisorHandler::handleLoggingReport(const uint8_t* data) { -// ReturnValue_t result = returnvalue::OK; -// -// result = verifyPacket(data, supv::SIZE_LOGGING_REPORT); -// -// if (result == SupvReturnValuesIF::CRC_FAILURE) { -// sif::warning << "PlocSupervisorHandler::handleLoggingReport: Logging report has " -// << "invalid crc" << std::endl; -// return result; -// } -// -// const uint8_t* dataField = data + supv::PAYLOAD_OFFSET + sizeof(supv::RequestLoggingData::Sa); -// result = loggingReport.read(); -// if (result != returnvalue::OK) { -// return result; -// } -// loggingReport.setValidityBufferGeneration(false); -// size_t size = loggingReport.getSerializedSize(); -// result = loggingReport.deSerialize(&dataField, &size, SerializeIF::Endianness::BIG); -// if (result != returnvalue::OK) { -// sif::warning << "PlocSupervisorHandler::handleLoggingReport: Deserialization failed" -// << std::endl; -// } -// loggingReport.setValidityBufferGeneration(true); -// loggingReport.setValidity(true, true); -// result = loggingReport.commit(); -// if (result != returnvalue::OK) { -// return result; -// } -// #if OBSW_VERBOSE_LEVEL >= 1 && OBSW_DEBUG_PLOC_SUPERVISOR == 1 -// loggingReport.printSet(); -// #endif -// nextReplyId = supv::EXE_REPORT; -// return result; -// } diff --git a/linux/payload/PlocSupervisorHandler.h b/linux/payload/PlocSupervisorHandler.h index d7c5cb1e..48377a40 100644 --- a/linux/payload/PlocSupervisorHandler.h +++ b/linux/payload/PlocSupervisorHandler.h @@ -19,6 +19,7 @@ using supv::ExecutionReport; +static constexpr bool DEBUG_PLOC_SUPV = false; /** * @brief This is the device handler for the supervisor of the PLOC which is programmed by * Thales. @@ -227,7 +228,6 @@ class PlocSupervisorHandler : public DeviceHandlerBase { ReturnValue_t handleLatchupStatusReport(const uint8_t* data); void handleBadApidServiceCombination(Event result, unsigned int apid, unsigned int serviceId); - // ReturnValue_t handleLoggingReport(const uint8_t* data); ReturnValue_t handleAdcReport(const uint8_t* data); /** @@ -297,11 +297,8 @@ class PlocSupervisorHandler : public DeviceHandlerBase { ReturnValue_t prepareSetAdcThresholdCmd(const uint8_t* commandData); ReturnValue_t prepareRunAutoEmTest(const uint8_t* commandData); ReturnValue_t prepareWipeMramCmd(const uint8_t* commandData); - // ReturnValue_t prepareDumpMramCmd(const uint8_t* commandData); ReturnValue_t prepareSetGpioCmd(const uint8_t* commandData); ReturnValue_t prepareReadGpioCmd(const uint8_t* commandData); - // ReturnValue_t prepareLoggingRequest(const uint8_t* commandData, size_t commandDataLen); - // ReturnValue_t prepareEnableNvmsCommand(const uint8_t* commandData); /** * @brief Copies the content of a space packet to the command buffer. @@ -332,12 +329,6 @@ class PlocSupervisorHandler : public DeviceHandlerBase { */ void disableExeReportReply(); - /** - * @brief Function is called in scanForReply and fills the spacePacketBuffer with the read - * data until a full packet has been received. - */ - // ReturnValue_t parseMramPackets(const uint8_t* packet, size_t remainingSize, size_t* foundlen); - /** * @brief This function generates the Service 8 packets for the MRAM dump data. */ @@ -350,12 +341,6 @@ class PlocSupervisorHandler : public DeviceHandlerBase { */ void increaseExpectedMramReplies(DeviceCommandId_t id); - /** - * @brief Function checks if the packet written to the space packet buffer is really a - * MRAM dump packet. - */ - // ReturnValue_t checkMramPacketApid(); - /** * @brief Writes the data of the MRAM dump to a file. The file will be created when receiving * the first packet. diff --git a/tmtc b/tmtc index 60f7ae54..84f50bab 160000 --- a/tmtc +++ b/tmtc @@ -1 +1 @@ -Subproject commit 60f7ae5453b387ee5ebcf6a338c34284004dbce7 +Subproject commit 84f50bab83db2c783c54dcf63263fdf175445521 -- 2.43.0 From 27d6760322969202c96ac0210810884382a5d259 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 26 Oct 2023 13:41:52 +0200 Subject: [PATCH 2/3] add optional printout mode for PLOC SUPV --- linux/payload/PlocSupervisorHandler.cpp | 86 ++++++++++++++++++------- linux/payload/PlocSupervisorHandler.h | 8 ++- 2 files changed, 68 insertions(+), 26 deletions(-) diff --git a/linux/payload/PlocSupervisorHandler.cpp b/linux/payload/PlocSupervisorHandler.cpp index 81af2ade..3863caea 100644 --- a/linux/payload/PlocSupervisorHandler.cpp +++ b/linux/payload/PlocSupervisorHandler.cpp @@ -517,10 +517,8 @@ ReturnValue_t PlocSupervisorHandler::scanForReply(const uint8_t* start, size_t r tmReader.setData(start, remainingSize); uint16_t apid = tmReader.getModuleApid(); - if(DEBUG_PLOC_SUPV) { - sif::debug << "PlocSupervisorHandler: RECV PACKET Size " << tmReader.getFullPacketLen() << " APID " << tmReader.getApid() - << " Module APID: " << tmReader.getModuleApid() << std::endl; - arrayprinter::print(start, remainingSize); + if (DEBUG_PLOC_SUPV) { + handlePacketPrint(); } switch (apid) { @@ -575,6 +573,42 @@ ReturnValue_t PlocSupervisorHandler::scanForReply(const uint8_t* start, size_t r return INVALID_DATA; } +void PlocSupervisorHandler::handlePacketPrint() { + if (tmReader.getModuleApid() == Apid::TMTC_MAN) { + if ((tmReader.getServiceId() == static_cast(supv::tm::TmtcId::ACK)) or + (tmReader.getServiceId() == static_cast(supv::tm::TmtcId::NAK))) { + AcknowledgmentReport ack(tmReader); + const char* printStr = "???"; + if (tmReader.getServiceId() == static_cast(supv::tm::TmtcId::ACK)) { + printStr = "ACK"; + + } else if (tmReader.getServiceId() == static_cast(supv::tm::TmtcId::NAK)) { + printStr = "NAK"; + } + sif::debug << "PlocSupervisorHandler: RECV " << printStr << " for APID Module ID " + << (int)ack.getRefModuleApid() << " Service ID " << (int)ack.getRefServiceId() + << " Seq Count " << ack.getRefSequenceCount() << std::endl; + return; + } else if ((tmReader.getServiceId() == static_cast(supv::tm::TmtcId::EXEC_ACK)) or + (tmReader.getServiceId() == static_cast(supv::tm::TmtcId::EXEC_NAK))) { + ExecutionReport exe(tmReader); + const char* printStr = "???"; + if (tmReader.getServiceId() == static_cast(supv::tm::TmtcId::EXEC_ACK)) { + printStr = "ACK EXE"; + + } else if (tmReader.getServiceId() == static_cast(supv::tm::TmtcId::EXEC_NAK)) { + printStr = "NAK EXE"; + } + sif::debug << "PlocSupervisorHandler: RECV " << printStr << " for APID Module ID " + << (int)exe.getRefModuleApid() << " Service ID " << (int)exe.getRefServiceId() + << " Seq Count " << exe.getRefSequenceCount() << std::endl; + return; + } + } + sif::debug << "PlocSupervisorHandler: RECV PACKET Size " << tmReader.getFullPacketLen() + << " Module APID " << (int)tmReader.getModuleApid() << " Service ID " + << (int)tmReader.getServiceId() << std::endl; +} ReturnValue_t PlocSupervisorHandler::interpretDeviceReply(DeviceCommandId_t id, const uint8_t* packet) { using namespace supv; @@ -1203,7 +1237,7 @@ ReturnValue_t PlocSupervisorHandler::prepareEmptyCmd(uint16_t apid, uint8_t serv if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1214,7 +1248,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSelBootImageCmd(const uint8_t* comma if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1231,7 +1265,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetTimeRefCmd() { if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1241,7 +1275,7 @@ ReturnValue_t PlocSupervisorHandler::prepareDisableHk() { if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1253,7 +1287,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetBootTimeoutCmd(const uint8_t* com if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1264,7 +1298,7 @@ ReturnValue_t PlocSupervisorHandler::prepareRestartTriesCmd(const uint8_t* comma if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1282,7 +1316,7 @@ ReturnValue_t PlocSupervisorHandler::prepareLatchupConfigCmd(const uint8_t* comm if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); break; } case (supv::DISABLE_LATCHUP_ALERT): { @@ -1291,7 +1325,7 @@ ReturnValue_t PlocSupervisorHandler::prepareLatchupConfigCmd(const uint8_t* comm if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); break; } default: { @@ -1318,7 +1352,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetAlertLimitCmd(const uint8_t* comm if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1329,7 +1363,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetAdcEnabledChannelsCmd(const uint8 if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1343,7 +1377,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetAdcWindowAndStrideCmd(const uint8 if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1355,7 +1389,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetAdcThresholdCmd(const uint8_t* co if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1369,7 +1403,7 @@ ReturnValue_t PlocSupervisorHandler::prepareRunAutoEmTest(const uint8_t* command if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1382,7 +1416,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetGpioCmd(const uint8_t* commandDat if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1394,7 +1428,7 @@ ReturnValue_t PlocSupervisorHandler::prepareReadGpioCmd(const uint8_t* commandDa if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1408,14 +1442,18 @@ ReturnValue_t PlocSupervisorHandler::prepareFactoryResetCmd(const uint8_t* comma if (result != returnvalue::OK) { return result; } - finishTcPrep(resetCmd.getFullPacketLen()); + finishTcPrep(resetCmd); return returnvalue::OK; } -void PlocSupervisorHandler::finishTcPrep(size_t packetLen) { +void PlocSupervisorHandler::finishTcPrep(TcBase& tc) { nextReplyId = supv::ACK_REPORT; rawPacket = commandBuffer; - rawPacketLen = packetLen; + rawPacketLen = tc.getFullPacketLen(); + if (DEBUG_PLOC_SUPV) { + sif::debug << "PLOC SUPV: SEND PACKET Size " << tc.getFullPacketLen() << " Module APID " + << (int)tc.getModuleApid() << " Service ID " << (int)tc.getServiceId() << std::endl; + } } ReturnValue_t PlocSupervisorHandler::prepareSetShutdownTimeoutCmd(const uint8_t* commandData) { @@ -1434,7 +1472,7 @@ ReturnValue_t PlocSupervisorHandler::prepareSetShutdownTimeoutCmd(const uint8_t* if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } @@ -1651,7 +1689,7 @@ ReturnValue_t PlocSupervisorHandler::prepareWipeMramCmd(const uint8_t* commandDa if (result != returnvalue::OK) { return result; } - finishTcPrep(packet.getFullPacketLen()); + finishTcPrep(packet); return returnvalue::OK; } diff --git a/linux/payload/PlocSupervisorHandler.h b/linux/payload/PlocSupervisorHandler.h index 48377a40..822b1174 100644 --- a/linux/payload/PlocSupervisorHandler.h +++ b/linux/payload/PlocSupervisorHandler.h @@ -18,8 +18,10 @@ #endif using supv::ExecutionReport; +using supv::TcBase; + +static constexpr bool DEBUG_PLOC_SUPV = true; -static constexpr bool DEBUG_PLOC_SUPV = false; /** * @brief This is the device handler for the supervisor of the PLOC which is programmed by * Thales. @@ -175,6 +177,8 @@ class PlocSupervisorHandler : public DeviceHandlerBase { */ void setExecutionTimeout(DeviceCommandId_t command); + void handlePacketPrint(); + /** * @brief Handles event messages received from the supervisor helper */ @@ -303,7 +307,7 @@ class PlocSupervisorHandler : public DeviceHandlerBase { /** * @brief Copies the content of a space packet to the command buffer. */ - void finishTcPrep(size_t packetLen); + void finishTcPrep(TcBase& tc); /** * @brief In case an acknowledgment failure reply has been received this function disables -- 2.43.0 From 02fcd0c42390db8ca52d725ac2da361c9791aaa6 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 26 Oct 2023 13:42:27 +0200 Subject: [PATCH 3/3] disable printout mode --- linux/payload/PlocSupervisorHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/payload/PlocSupervisorHandler.h b/linux/payload/PlocSupervisorHandler.h index 822b1174..4514e69f 100644 --- a/linux/payload/PlocSupervisorHandler.h +++ b/linux/payload/PlocSupervisorHandler.h @@ -20,7 +20,7 @@ using supv::ExecutionReport; using supv::TcBase; -static constexpr bool DEBUG_PLOC_SUPV = true; +static constexpr bool DEBUG_PLOC_SUPV = false; /** * @brief This is the device handler for the supervisor of the PLOC which is programmed by -- 2.43.0