added printout in scex uart reader

This commit is contained in:
Robin Müller 2022-07-13 12:02:32 +02:00
parent 8b39f65472
commit 8a23615462
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@ UartTestClass::UartTestClass(object_id_t objectId, ScexUartReader* reader)
: TestTask(objectId), reader(reader) {
mode = TestModes::SCEX;
scexMode = ScexModes::READER_TASK;
// No one-cell and all-cell support implemented yet
currCmd = scex::Cmds::FRAM;
if (scexMode == ScexModes::SIMPLE) {
auto encodingBuf = new std::array<uint8_t, 4096>;
@ -213,7 +214,7 @@ void UartTestClass::scexPeriodic() {
out << helper;
}
// fram
// packetcounter eins höher, wenn mehr packet verloren -> merkt sich welches packet fehlt
// packetcounter eins h<EFBFBD>her, wenn mehr packet verloren -> merkt sich welches packet fehlt
// was wenn erstes packet fehlt; mit boolean var (firstpacketarrived=false) die immer mit
// finish false wird?
// countdown (max 2min), wenn nicht if (helper.getPacketCounter() ==

View File

@ -133,6 +133,7 @@ ReturnValue_t ScexUartReader::sendMessage(CookieIF *cookie, const uint8_t *sendD
sif::warning << "ScexUartReader::sendMessage: Encoding failed" << std::endl;
return RETURN_FAILED;
}
arrayprinter::print(cmdbuf.data(), encodedLen);
size_t bytesWritten = write(serialPort, cmdbuf.data(), encodedLen);
if (bytesWritten != encodedLen) {
sif::warning << "ScexUartReader::sendMessage: Sending ping command to solar experiment failed"