txp666/FluentSerialAssistant
About
A cross-platform serial port debugging tool based on C++17, Qt 6 Widgets, and FluentQtWidgets
Developer ToolsMeasured star growth
- in 24h
- +2
- in 7 days
- +5
- in 15 days
- +13
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
Original
Fluent Serial Assistant
A cross-platform serial debugging tool built with C++17, Qt 6 Widgets, and FluentQtWidgets.
English · 简体中文 · Website · Download · Changelog · Contributing · Code signing policy
Fluent Serial Assistant is a modern Fluent-style serial terminal for Windows, macOS, and Linux. It covers the everyday debugging workflow: connecting, sending and receiving, viewing, protocol parsing, plotting, automation, and export.
Preview
![]() Terminal workspace with tabbed sessions, log coloring, and traffic statistics |
![]() Plot window that extracts fields by protocol and plots them live |
![]() Frame protocol editor showing byte layout, fields, and checksum |
![]() Frame table with HEX, text, and checksum results |
![]() Protocol analysis: live fields from three device addresses and their curves on one chart |
The app supports Simplified Chinese and English, switchable in Settings or from the title bar.
Download
Download the package for your platform from Releases. Every package comes with a .sha256 checksum file.
| Platform | Package | Notes |
|---|---|---|
| Windows x64 | FluentSerialAssistant-X.Y.Z-windows-x64-setup.exe |
Installer; needs administrator rights and installs to Program Files by default |
| macOS (Apple silicon and Intel) | FluentSerialAssistant-X.Y.Z-macos-universal.dmg |
Open it and drag the app to the Applications folder |
| Linux x64 / arm64 | FluentSerialAssistant-X.Y.Z-linux-{x64,arm64}.deb |
sudo apt install ./FluentSerialAssistant-X.Y.Z-linux-x64.deb |
The macOS build is not notarized by Apple. If macOS blocks it on first launch, click Open Anyway in System Settings → Privacy & Security. Later updates install from inside the app; see In-app updates.
Features
Connecting and sending
- Serial-port discovery with port name, description, vendor, VID/PID, and serial number; common and extended baud rates, data bits, parity, stop bits, flow control, RTS, and DTR.
- Text or HEX sending with None, CR, LF, or CRLF line endings; separate UTF-8, GBK, ASCII, and Latin-1 encodings for receiving and sending.
- Loop sending at millisecond intervals, the last 20 unique sends in history, and chunked file sending with configurable chunk size and interval.
- Tabbed sessions, each with its own serial port; a new tab copies the current configuration.
- A built-in virtual serial pair: once enabled, two sessions can connect to
VIRTUAL-AandVIRTUAL-Band exchange data without installing drivers.
Viewing and analysis
- Text, HEX, and mixed terminal display with timestamps, automatic scrolling, pausing, a custom color for sent records, and live totals, rates, and connection time.
- Frame splitting by receive interval, header, trailer, or fixed length.
- Terminal search by keyword or regular expression, with case sensitivity, highlighted matches, and RX/TX filtering.
- Content coloring with ESP-IDF, log level, success/failure, and AT response presets, plus your own keyword or regex rules.
- Plot windows: open several independent windows for numbers, delimited values, key-value pairs, JSON, or binary fields; preview samples, filter fields, and pause, clear, or export CSV. A channel list shows the latest values with independent scale, offset, and visibility controls.
- A frame table showing time, direction, source, length, HEX, text, and checksum, with sorting, filtering, copying, and navigation back to the terminal.
Protocols and tools
- Frame protocol templates: define header, length, command, payload, checksum, and frame tail in a visual editor, with the checksum starting at a chosen offset, and check them against a sample or the latest received frame. Once enabled, received records show the command and checksum status.
- Protocol analysis window: define payload fields and a device address in each template, view live values, and check fields to compare devices and templates on one chart.
- Checksums: CRC16-Modbus, CRC16-CCITT, CRC32, LRC, XOR, and SUM8, calculated by hand or added when sending. Bytes at the start and end (such as a header or tail) can be skipped; the checksum goes in front of the skipped end bytes and the line ending.
- Modbus RTU: build common read and write requests with CRC and summarize responses.
Automation
- Packets with groups, notes, enable/disable, batch sending, ordering, and JSON import/export.
- Macros with multiple steps, delays, expected text or HEX responses, loops, stop on failure, and CSV result export.
- Auto-replies matched by text, HEX, or regular expression, sent immediately or after a delay and labeled in the records.
- A JavaScript runner with a controlled
serialAPI for sending, reading records, and logging. - AI control through local IPC, a CLI, and an MCP server that reuse the active GUI session; see AI, CLI, and MCP control.
Logging and export
- Export session records as TXT, CSV, or BIN.
- Automatic TXT, CSV, or BIN logs named with the time, port, and baud rate, rolled over by file size.
- Save raw received data to a file.
Appearance and settings
- Light, dark, or system theme with an accent color; UI font, monospace terminal font, font size, and custom font import.
- Mica effect on Windows 11.
- Simplified Chinese and English, switchable without restarting.
- Restores the last serial settings, send text, packets, macros, auto-reply rules, and file-send settings, with optional connection at startup; side cards remember whether they are collapsed.
- Settings are stored in the standard per-user configuration directory and never in the Windows registry; settings from older installations are migrated automatically.
Getting started
- Choose a port, set the baud rate, data bits, parity, stop bits, and flow control, and click Connect.
- Watch traffic in the terminal; turn on timestamps, frame splitting, or HEX display as needed.
- Type text or HEX in the send area, pick a line ending and encoding, and send; checksums and loop sending are optional.
- Click the plot icon in the terminal toolbar and confirm the parser settings to open a plot window. If the current protocol template defines data fields, its template and fields are filled in automatically.
- Under Protocol Template on the left, click Edit protocol to define the frame format and payload fields, save, then check Enable to open the data and plot analysis window.
- Automate repeated steps with packets, macros, auto-replies, or scripts.
- The broom button at the left of the terminal toolbar clears the terminal and the traffic counters; export records as TXT, CSV, or BIN.
Protocol analysis window
- In Edit protocol, add data fields with the 1 / 2 / 4 / 8 B or Float32 / Float64 buttons. Fields are ordered by frame position, with type, frame bytes, raw HEX, parsed value, and status on the same row. Select a row to edit its name, payload offset, type, byte order, scale, and add value in the fixed property panel on the right. Template settings stays visible on the right, with template selection, creation, save, and delete actions together. Use the field selector below it to configure the header, length, address, command, checksum, or tail.
Drag data rows up or down to reorder fields and update their payload offsets. Values use
raw × scale + add; save to apply. The byte map stays visible, with matching color swatches and HEX cell backgrounds in the field list. Selecting a byte or row opens its properties. Creating a template, selecting a template without a saved sample, or editing its configuration automatically generates enough payload bytes and recalculates length and checksum. You can also paste HEX or use Latest received frame to inspect actual data; these samples retain their original bytes when names, scaling, or other settings change. Clear the sample and continue editing to resume generation. Incomplete samples report the missing byte count. - For a bus with multiple devices, set the address size and its byte offset in the whole frame. Data is grouped by the address's HEX bytes. Choose No device address grouping to combine frames from a template. Each template supports 32 payload fields; without definitions, payload bytes appear as CH1, CH2, and so on.
- Check Enable in the sidebar to open analysis with the current template. Use Data and plot analysis to reopen the window with the same protocol and curve choices. Check additional templates in the window to parse several frame formats.
- The list shows device addresses, fields, and current values. When multiple templates are checked, it also shows each template name. Hover over a value to see when it was updated, or widen the panel to show the time column. Check Plot to draw fields on a shared time axis in seconds. Use Data panel to hide or show the left panel. Capture continues and the chart shows a legend when the panel is hidden. The window displays up to 256 fields and 32 curves at a time, retaining the latest 12,000 points per curve. Curve choices survive closing the window and restarting the app.
- Pausing, hiding, minimizing, or closing the window stops capture. Clearing keeps fields and curve choices; changing enabled templates or saving template changes clears history. Frames with invalid checksums do not update values; missing fields show “—”. Length fields or a fixed payload length let analysis reassemble raw serial reads; configure receive framing first for templates without length information. Within a completed receive block, incomplete length candidates are skipped so later frames can be decoded. Raw streams continue waiting for the declared length, preserving headers that occur inside payloads.
Plot windows
- Every confirmation opens a new window, so several fields can be plotted side by side. The button at the top left shows the current protocol and opens the parser settings.
- Preview a text or HEX sample before plotting. Binary fields take a type, byte offset, byte order, scale, and offset, read from the whole frame or from the payload of a protocol template.
- Create plot in the protocol editor carries over its current template, fields, and sample. The terminal toolbar also uses the current template when it has data fields. Template plots share field definitions, frame assembly, and checksum validation, with separate curves for each device address. Edit protocol returns to the same editor. Saving the same named template updates linked plots and clears their old data before sampling resumes.
- Click Channel data in the toolbar to show or hide the right panel. Hiding it gives the chart the full width while data and channel settings are retained. The list shows each channel's color and latest value; use the checkboxes to show or hide curves, and drag the divider to resize the list.
- Channel settings is collapsed by default; click it to expand or hide it independently. Select a channel to adjust its scale and offset using
displayed = parsed × scale + offset. Changes apply to retained curves, incoming data, and CSV exports. Parsed values are kept, so Reset selected channel restores them. Binary fields apply their parser scale and add value before these channel adjustments. - Channel settings belong to each window and are kept by channel name when data is cleared. Changing the parser configuration or payload template resets them; closing the window discards them.
- A window plots only data received while it is open; nothing is backfilled after it was hidden, minimized, or closed. A plot shows up to 32 channels.
Built-in virtual serial pair
- Open Settings and enable Built-in virtual serial pair.
- Connect one session to
VIRTUAL-Aand another toVIRTUAL-B; refresh the port list if needed. - Data sent from either end arrives at the other, which also works with auto-reply rules for request and response tests.
The pair exists only inside one running app and does not affect physical ports. It forwards bytes as they are, without simulating baud rate or flow control; data sent while the other end is disconnected is dropped.
In-app updates
- The app checks for updates at startup and stays quiet when there is nothing new or no network. Settings → App Updates checks on demand.
- A new version first shows its number and its release notes in the interface language; downloading starts only after Download and install.
- Downloads use four parallel connections, show progress, and can be cancelled; servers without range support fall back to one connection.
- After the size and SHA-256 check, the installer takes over, asking for permission if needed, and the app saves its settings and quits.
AI, CLI, and MCP control
While the app runs, fluentserial-cli and fluentserial-mcp control the active GUI session. The GUI stays the only user of the serial port; the CLI and MCP server reach it through user-private local IPC and reuse its connection, protocol parsing, records, and plot windows.
fluentserial-cli ports
fluentserial-cli status
fluentserial-cli send-hex --hex "01 03 00 00 00 02 C4 0B"
fluentserial-cli records --direction rx --limit 20
fluentserial-cli plot --plot-protocol keyValue --plot-field "free sram" --clear
Use the CLI and MCP server from the same version as the app. See AI control, CLI, and MCP for the architecture, MCP client setup, all tools, and the IPC contract.
Building from source
Getting the source
The project includes FluentQtWidgets as a Git submodule:
git clone --recursive https://github.com/txp666/FluentSerialAssistant.git
cd FluentSerialAssistant
For an existing clone without submodules:
git submodule update --init --recursive
Requirements
- CMake 3.21+ and Ninja
- Qt 6.12 with the Widgets, SerialPort, Svg, Network, Qml, and Core5Compat modules (select Qt Serial Port and Qt 5 Compatibility Module in the Qt installer), the
QT_VERSIONof the release workflow.github/workflows/release.yml - On Linux, also
libgl1-mesa-dev,libxcb-cursor0, andlibxkbcommon-x11-0
Windows (MinGW)
CMakePresets.json expects C:/Qt/6.12.0/mingw_64 and C:/Qt/Tools/mingw1310_64; adjust the presets if yours differ.
cmake --preset mingw-release
cmake --build --preset mingw-release --parallel
.\build\mingw-release\FluentSerialAssistant.exe
Use the mingw-debug preset for a debug build. If linking reports cannot open output file FluentSerialAssistant.exe: Permission denied, the previous build is usually still running.
macOS and Linux
pip install aqtinstall
aqt install-qt mac desktop 6.12.0 clang_64 -O ~/Qt -m qtserialport qt5compat
cmake -S . -B build/release -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build/release --parallel
The example installs Qt with aqtinstall on macOS; on Linux, use linux desktop 6.12.0 linux_gcc_64. CMake uses the newest Qt 6.12 or later from the default folder of the Qt installer or aqtinstall (~/Qt, C:\Qt) by itself. For a Qt anywhere else, add -DCMAKE_PREFIX_PATH=<qt-dir>.
Running the tests
ctest --test-dir build/release --output-on-failure
Tests are built with the project by default and run on Qt's offscreen platform, so they need neither a display nor a real serial port.
VS Code
The repository includes .vscode/tasks.json: Ctrl+Shift+B / Cmd+Shift+B runs the debug build and F5 builds and starts debugging. Windows reuses the MinGW presets; macOS and Linux build in build/vscode-debug or build/vscode-release.
Releasing
GitHub Actions runs only when a GitHub Release is published.
- Update the version in
CMakeLists.txt,CHANGELOG.md, anddocs/release-notes/vX.Y.Z.md, and push them to main. The release notes start with their text, without a level-1 heading (the release page and the in-app update dialog already show the version). Chinese comes first and English follows a## Englishline; the app shows only the part in the interface language. - Publish a GitHub Release with
vX.Y.Zas both tag and title. - The workflow first marks the release as a prerelease, then runs the tests and builds the packages on all three platforms, and starts the app from the macOS package once on an Intel Mac. Once everything is verified and uploaded, it becomes a full release and is marked as the latest. If a build fails, it stays a prerelease and in-app updates never see it.
The assets are the Windows x64 installer, the universal macOS DMG (Apple silicon and Intel in one app), the Linux x64/arm64 DEB packages, and a .sha256 file for each. The same DMG is also published as macos-arm64.dmg, the only name that in-app updates of 0.1.24 and earlier look for. Windows releases support free open-source Authenticode signing from SignPath Foundation: once configured, FluentSerialAssistant.exe is signed first, then the installer is built and signed. See the SignPath setup guide.
For local packaging, scripts/package_release.ps1 builds a portable Windows package; the platform installers come from scripts/package_windows.ps1, scripts/package_unix.sh, and scripts/create_deb_package.sh.
Repository layout
.
├── .github/workflows/ # Release tests and packaging
├── docs/
│ ├── ai-control.md # AI, CLI, and MCP control
│ ├── images/ # README screenshots
│ ├── release-notes/ # Release notes for each version
│ └── signing/ # Code signing setup
├── packaging/
│ ├── linux/ # Linux desktop entry
│ └── windows/ # Inno Setup definition and translations
├── scripts/ # Packaging scripts
├── signing/signpath/ # SignPath artifact configurations
├── src/
│ ├── app/control/ # Session control boundary and local IPC
│ ├── app/core/ # Protocols, checksums, plot parsing, encodings, updates, and other shared logic
│ ├── app/resources/ # Qt resources, icons, and translations
│ ├── app/serial/ # Serial port wrapper and the built-in virtual pair
│ ├── app/view/ # Main window, settings, plots, protocol editor, and other UI
│ │ └── workbench/ # Terminal workspace, split by feature: connection, terminal, sending, macros, scripts, and more
│ ├── cli/ # Command-line tool
│ └── mcp/ # MCP stdio server
├── tests/ # Qt Test suites
└── third_party/FluentQtWidgets/
License
This project is licensed under the GNU General Public License v3.0 or later; see LICENSE. FluentQtWidgets, which it depends on, is also GPL-3.0-or-later, so distributing this project or a derivative must follow the GPL's source and redistribution terms.
Related project
Code signing policy
Free code signing is provided by SignPath.io, with a certificate from SignPath Foundation, after the project's open-source application is approved. Team roles, release controls, signed artifact scope, and the privacy statement are documented in the code signing policy and privacy policy.
Explore related projects
Loading…




