added printout in scex uart reader
This commit is contained in:
parent
8b39f65472
commit
8a23615462
@ -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() ==
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user