- TAG [uartscopeclean] eingefügt, über den alle Logs gelöscht werden

- Pauseknopf und Eingabezeile hinzugefügt, um Kommandos an den Pi zu schicken
This commit is contained in:
2026-09-07 14:53:54 +02:00
parent ef335f2d9e
commit 934f32a3bd
14 changed files with 763 additions and 347 deletions

View File

@@ -7,6 +7,7 @@
#include <QFile>
#include <QTextStream>
#include <QString>
#include <QByteArray>
#include <QTimer>
// SerialWorker lives in its own QThread and owns the actual data source,
@@ -44,6 +45,10 @@ public slots:
void closePort();
void setLogFile(const QString &path);
void stopLogging();
// Writes raw bytes back out to the currently open device (serial port
// or TCP socket) - used by the send bar (Pause button / input line) to
// talk back to the firmware. No-op if nothing is currently open.
void writeData(const QByteArray &data);
signals:
void newLine(const QString &line);
@@ -53,6 +58,12 @@ signals:
// history too). `filename` is whatever followed the tag, verbatim -
// the receiver is responsible for sanitizing/defaulting it.
void screenshotRequested(const QString &filename);
// Fired specifically for a [UARTSCOPECLEAR] control tag (in addition to
// the normal tagDetected() above): the firmware asks for a completely
// fresh UARTScope state, e.g. right at boot. Handled the same as an
// ANSI clear-screen - wipes Raw view, Table view, Tag Monitor and the
// video preview frame.
void uartscopeClearRequested();
void clearScreen();
void portOpened();
void portClosed();