DTTBench (Device Testing Toolkit Bench) is a toolkit for device testing, command execution, and debugging. It helps organize repetitive test procedures, coordinate communication with multiple devices, and analyze execution results.
The application supports two operating modes:
DTTBench supports script-based execution, command processing, logging, step-by-step debugging, and visualization of numeric results. These features help make test procedures more repeatable and simplify the analysis of device behavior.
The application currently communicates with devices through serial ports.

DTTBench monitors available serial ports in real time and updates the port list when ports appear or disappear. Ports matching “com0com” are excluded from the list.
Make sure the selected port corresponds to the connected device and that the communication settings match the device requirements.
Coordinated Mode provides 4 additional port entries by default. Use the Append button to add more entries, up to a maximum of 10 additional ports. Use the Remove button to remove an entry when it is no longer needed.
Note: Removing an entry while its port is open may cause issues when closing the port.
See Port Management for details.

DTTBench provides command generators and a reusable command list to simplify command preparation during device testing.
Open Tools → Command List to access the command list and command generators.
The available command generators are organized into separate tabs:
Each tab provides controls for configuring the command. The common interface includes the following actions,
implemented in BaseTabContent:
DTTBench provides a default set of commands implemented in CommandListController in its loadDefaultCommands() method.
On the first launch, the application creates commands.json and initializes the command list with the default commands.
To insert a saved command into the active editor, select it in the list and either double-click it or press Enter.
To remove a command from the list, select it and press Delete.

DTTBench can be extended with custom command generators.
A custom generator implements the CommandTab interface,
which defines the generator’s name, user interface, command-generation logic, and description.
To add a generator:
CommandTab.CommandListController
by adding a call to registerTab() in its initialize() method.For examples, refer to the existing implementations: VoltageTab,
FrequencyTab,
and RelayTab.
DTTBench allows you to create and execute scripts containing device commands and control instructions.
Enter one command per line in the script editor.
The script engine supports instructions described in syntax.txt.
Commands can also be addressed to a specific port using a port prefix COMx: Send().
See Coordinated Mode for details.
Use the execution controls below the script editor:
When script repetition is configured using Times and Interval fields, the log displays numbered execution blocks.
Right-click the script editor to access the following actions:
Press Ctrl+S to save the script.
Find & Replace is useful when adapting an existing script for another set of ports in Coordinated Mode.
For example, replace COM1: with COM2: throughout the script to redirect its commands to another port.
Step Mode lets you execute a script one command at a time. The current command is highlighted in the editor.
The Step Mode label turns green when Step Mode is active.
Controls are available:

Coordinated Mode lets you execute a single script that sends commands to multiple serial ports.
It provides two main port panels and supports up to ten additional ports.
Unlike Separate Mode, commands in the script can target different ports by specifying the port name (prefix) before the command.
The Prefix button inserts a command template for the selected port at the current caret position in the script editor.
The template contains the selected port name COMx: and Send(), with the caret positioned inside the parentheses.
For example:
COM1: Send(01 02 03)
The COM1: prefix directs the command to the selected physical serial port.
This lets you combine commands for different ports in one script and control their execution order.

Measurement limits allow you to identify numeric values that fall outside an expected range.
Measurement limits are evaluated by response handlers that support numeric value extraction and limit checking.
Two types of limits are supported:
-l [min-max] — defines hard limits. Values outside the range are marked as errors.-lw [min-max] — defines warning limits. Values outside the range are marked as warnings.Use the appropriate limit option when configuring a command supported by a response handler.
To save error and warning messages separately from the full log, use Save Errors in the log context menu.

The Plotter visualizes numeric values extracted from device responses by response handlers.
Each plotted result can include a numeric value, its unit, and a comment identifying the measurement.
Note: In Coordinated Mode, plotting is currently available only for the port displayed in the left panel.
See Plotting and Utilities for details.
To open a graph, right-click the execution log and select Plot a graph.
DTTBench provides two plotting modes:
-c comment.The Plotter supports exporting measurement data to CSV and saving graphs as PNG images.


The execution log displays device communication, script execution events, and errors. Each entry includes a timestamp and is color-coded according to its type.
The log can contain:
In Coordinated Mode, communication entries, warnings, and errors also include the name of the target serial port.
Right-click the log to access the following actions:
Log files are saved to the location selected in the save dialog, which defaults to the configured logs directory.
Response handlers process device responses and extract useful information for display in the execution log and plotter.
Each handler defines which commands it supports, whether a response is expected, the delay before reading the response, and how the received data is processed.
DTTBench includes a default handler
and device-specific handlers for supported commands.
DTTBench can be extended with custom response handlers implemented in Java.
A custom handler implements the CommandHandler
interface and provides command matching, response processing, and the expected response delay.
The HandlerRegistry manages handler registration and selection.
To add a handler:
CommandHandler.HandlerRegistry.For examples, refer to the existing implementations in devices.
Open Tools → Config to edit the application configuration file config.txt.
The configuration file allows you to customize the names of the directories used by DTTBench:
| Property | Default value | Purpose |
|---|---|---|
LogsDIR |
Logs |
Directory for saved logs |
ScriptsDIR |
Scripts |
Directory for scripts |
UtilsDIR |
Utils |
Directory for external utilities |
For example:
LogsDIR=Logs
ScriptsDIR=Scripts
UtilsDIR=Utils
You can change these values to use different directory names. The directories are created automatically if they do not exist.