Connect · Observe · Simulate · Diagnose

What would you like to do?

Choose a task below, or search for the wording you see in the simulator. Each chapter brings its setup, settings, examples, and window controls together.

Bundled offline help · No internet required · Examples use fictional commands unless stated otherwise. Read a workflow first; its detailed settings and controls follow in the same chapter. Printing includes the complete guide.

Getting started

Getting started

Start with a local conversation, choose a mode, and find your way around the simulator.

In this chapter · 7 guides
Get started

Your first conversation

Prove the configuration with a controlled peer before adding the complexity of a physical device.

Choose the simulator’s role

The simulator can act as the missing endpoint, observe two existing endpoints, or sit between them. A successful connection is only the beginning: the peer must receive the right bytes, framing, and replies.

Older simulator files and saved scripts using TCP_Connect or TCP_Listen remain supported. These roles now appear as TCP_Client and TCP_Server; saving writes the current names.

A two-instance TCP exercise

  1. Open two instances. In the first, choose TCP_Server, port 10000. In the second, choose TCP_Client, IP 127.0.0.1, port 10000.
  2. For a line-based exercise, choose compatible receive termination using CR/LF on both sides and set Send ETX Bytes to <13><10> with decimal whitespace codes. Use ASCII conversion.
  3. Connect the listener first, then the client. Send HELLO from the client. The listener should display one complete message.
  4. On the listener, add an Exact Auto Response row: received pattern HELLO, response WORLD. Apply the table and enable Auto Respond.
  5. Send again. The client should display WORLD. Save each configuration under a different filename.

Do not put CR/LF into the response cell as well as Send ETX Bytes: that would add the terminator twice. These are example messages, not commands for real equipment.

Common use cases · Why start with loopback?

Separate protocol errors from hardware errors

If the example works locally but fails on equipment, compare baud/framing, IP/ports, wiring, firewall rules, and the device's actual command language. If it fails locally, fix the table or receive framing before investigating cables.

Develop while the instrument is unavailable

Make the listener return the instrument's documented replies. Your client application can then develop against stable, repeatable behavior before the hardware arrives.

Back to Getting started · All chapters

Pick your role

Choose the right mode

Decide whether you are replacing an endpoint, watching an existing link, or becoming part of the link.

GoalModeWhat changes?
Talk directly to a serial deviceSerialSimulator is an endpoint; one COM port.
Observe both serial directionsSerial_SnifferDedicated passive tap preserves the serial path and connects to the PC over USB.
Relay between serial endpointsSerial_MITMSimulator is inline through two COM ports; software forwards traffic.
Connect to a TCP serverTCP_ClientSimulator initiates a session.
Replace a TCP serverTCP_ServerSimulator waits for a client.
Relay between a TCP client and serverTCP_MITMClient points at simulator; simulator connects onward.
Observe TCP/UDP packetsEthernet_Sniffer / RawCapture adapter receives visible traffic, typically through a mirror port or tap.
Send/receive datagramsUDPLocal receive endpoint and remote destination are configured separately.
Exchange classic CAN framesCANVendor adapter, bitrate, enabled channels, and bus wiring are required.
Common use cases · Sniffer or MITM?

Use a sniffer when you want evidence from an existing conversation while leaving the endpoints connected normally. The simulator suppresses its Auto Response replies in serial/LAN sniffer modes.

Use MITM when you need the simulator to carry the conversation between endpoints. Closing the simulator interrupts that route. Forwarding adds software processing and can affect timing. Establish a plain forwarding baseline before enabling scripts, heartbeat, or additional responses.

Timing-sensitive troubleshooting: prefer passive observation

A passive tap or mirrored network feed leaves the original endpoints exchanging traffic along their normal path. The observing PC is not responsible for receiving and retransmitting each message, so its scheduling, receive framing, buffering, and scripts do not add forwarding delay to the conversation. This makes passive observation the better starting point when investigating intermittent timeouts, inter-byte gaps, response deadlines, or a fault that disappears when the setup changes.

MITM changes the path being investigated. The simulator receives traffic and forwards it through another port or socket; buffering, message boundaries, operating-system scheduling, and application processing can change latency and spacing. An inline setup can therefore mask an original timing problem or introduce a new one. Compare against a direct-link or passive baseline before attributing a delay to the device.

Field troubleshooting: MITM offers flexibility

A dedicated passive serial tap or network mirror/tap may not be available at a customer site. Serial MITM lets you observe both directions using two available COM ports or ordinary compatible USB-to-serial adapters, without a specialized sniffing device. TCP MITM can use an ordinary network interface when you can point the client at the simulator and reach the real server. You can also inject a controlled query during an investigation. This flexibility is valuable, provided the test can tolerate the altered path and timing.

Preserving timing is different from measuring timing. A passive connection avoids software forwarding in the live path, but this program's displayed timestamps and status-bar calculation still have host-clock, capture, and buffering limits. Hardware timestamp capabilities do not automatically become available through a generic COM interface. Use appropriate hardware/software measurement support when you need precise inter-byte or wire-level timing.

A TCP MITM proxy is not an automatic transparent interception system: configure the client to use the simulator's address. Ethernet sniffing is not a promise to see every packet on a switched network.

Back to Getting started · All chapters

Main window reference

Main window toolbar

Find each main-window control by its label or icon tooltip, and understand what action it starts.

Find controls and check availability

Many controls are image-only: hover to see the tooltip. Availability depends on mode and connection state. Separators and blank spacing have no user operation. The bottom status bar is documented separately under Timing and status bar; send-box and script/sequence editor toolbars belong to their own workflow guides.

Main toolbar, left to right

GUI label / tooltipFunction and practical use
New FileStart a blank simulator configuration. The handler offers to save dirty changes, clears live variables/tracer data, resets settings, and hides supporting test windows. Use for a separate experiment; save the current scenario first.
Open File...Load a saved .Simulator configuration. Use to restore a protocol scenario rather than rebuilding its settings. A simulator file is separate from a .Desktop window layout.
SaveSave the current configuration to its existing file, or choose a filename for a new configuration. Ctrl+S is the shortcut. Save applied tables, scripts, commands, and settings for repeatability; credentials are excluded.
Save As...Save to a chosen filename. Use to make a baseline and a separate fault-test variant without replacing the original scenario.
Open / Connect / Start ListeningStart communications according to Communication Type: open the serial adapter, initiate TCP, listen for a client, or start the configured UDP/capture/CAN operation. Ctrl+Alt+C. A TCP listener still needs a client; successful opening does not prove a correctly parsed exchange.
Close / Disconnect / Stop ListeningStop the configured communications/listener. Ctrl+Alt+D. Use before changing connection settings or applying AI edits; closing an MITM path interrupts the route between endpoints.
Sequence BuilderShow the ordered client-test editor. Use for requests, reply waits, captures, retries, and bounded loops. Opening it does not run a sequence; use its own Apply Changes and Play/Stop controls.
Start / Stop Heartbeat MessageToggle the configured heartbeat and its timer, linked to Heartbeat Enabled. Use a device’s documented keepalive with the Heartbeat Settings interval/message/response wait. This generates traffic and can affect timing; it is different from Ping.
PingToggle repeated ICMP reachability checks, initially and then every two seconds. Targets the TCP_Client peer, UDP destination, both LAN-sniffer participant IPs, or TCP_MITM Device 2 as applicable. Results appear as SYSTEM output. Ping generates traffic; success does not prove an application port or protocol is working.
Enable Auto ResponsesToggle Auto Respond, linked to the property-grid setting. Use when acting as the responding device/server. Applying a table does not enable this switch, and passive-sniffer replies remain suppressed. State-only matching rows also need Auto Respond.
Edit Auto ResponsesShow/hide the Auto Response table editor. Use to add match rules, capture destinations, state assignments, replies, and delays; finish edits and apply them. Opening the editor is separate from enabling automatic processing.
WindowsOpen the menu of docked views and supporting tools described below. Use to recover a hidden panel rather than changing protocol configuration.
Device CommandsToggle the generated command-button panel. Use as a client for deliberate one-click requests. Showing the panel sends nothing; pressing an individual command button expands its current variables and sends its configured text.
Edit Device CommandsShow the command-table editor used to define names and send text for generated buttons. Use to turn known working requests into reusable controls; finish edits before testing the buttons. This editor updates its bound list without an Apply button.
Variable WindowToggle the live shared-variable panel, docked at the right when shown. Inspect captured values and state changes here. Current runtime values are different from the saved initial-default definitions.
Edit Variable WindowToggle the initial-variable editor. Use to establish saved defaults so a status query works before any capture occurs. This control is labelled Edit Variable Window in the GUI; it is distinct from the live Variable Window.
Open Deskop LayoutChoose a .Desktop file to restore docked window arrangements. Use to switch between a compact client workspace and a multi-panel troubleshooting workspace. The GUI currently spells this Deskop; it does not load a simulator protocol file.
Save Deskop LayoutSave the current docking arrangement to a .Desktop file. Use alongside a separately saved simulator configuration; saving layout alone does not save protocol settings.
Create Current State ShortcutCreate a .bat launch file referencing the saved simulator/layout paths and current main-window position/size. It sets auto-connect false. Save those files first: this is a launcher for their saved contents, not a snapshot of unsaved edits or a Windows .lnk shortcut.
Tile all instances of Communication SimulatorUse the dropdown’s Tile on Screen 1, 2, etc. to arrange running simulator windows on that monitor. One instance is maximized; multiple instances are tiled. Useful for client/server comparisons. The last selected screen becomes the default split-button action; screen choices are regenerated as monitors change.
About Communication SimulatorOpen the About window for version/product identity, logo, terms of use, and third-party notice access. Use when recording the software involved in a test or reviewing permitted use.
DATA IN BUFFER (n)Conditional flashing indicator: bytes arrived and remain unhandled after the buffer check. Often receive termination does not match the protocol. In non-MITM modes, click to print Buffer Dump :> and clear the primary receive buffer. In Serial MITM, TCP MITM and UDP MITM, independent Device 1 and Device 2 indicators show each side's nickname and byte count. Click the desired side to dump and clear only its receive buffer; the other warning remains active. Dumps identify the side and nickname. Other modes retain this single primary-buffer dump. Inspect Hex/whitespace, correct detection, and repeat the exchange.
DEVICE 2 DATA IN BUFFERMITM only: Click to dump Device 2 buffer to window. The live label includes Device 2's nickname and count. Prints and clears only Device 2's message-detection buffer, leaving Device 1 intact. This is a diagnostic discard of incomplete received data, not a send/forward action; it does not run Auto Response. Nickname changes update the indicator; disconnect clears both warnings. On a narrow window, use the toolbar overflow menu to reach indicators that do not fit.
HelpOpen offline help home directly in the default browser. Use the help page navigation or search to find a topic. F1 opens help for the current communication mode.

Windows menu and its submenus

GUI label / tooltipFunction and practical use
Message WindowShow the main communication/output document. Use to inspect traffic and access its send controls; reopening this view does not restart a connection.
Message TracerShow the command/response tracer. Use to study recurring exchanges; pairings are an interpretation aid, not proof that every request and reply belongs together.
Script EditorShow the script document for callbacks and converters. Use for behavior beyond tables. Its compile/apply and Play/Stop actions are separate from main-window connect controls and Sequence Builder.
AI AgentShow the modern-build AI chat document. Configure API credentials, sharing, MCP, and permissions under the AI Agent property-grid section. Opening the panel does not grant edit or device-control permission.
Settings PanelShow the property grid docked at the right. Sections/items vary by communication mode and CAN channel capability. Use the identically named Property grid reference entries in this help.
Web ClientOpen the separate HTTP client tool. Use for HTTP requests; a generic simulator TCP connection is not an HTTP request editor.
Network Statistics (NetStat)Show the network-port/statistics tool. Use when investigating local sockets/listeners or a port conflict; socket presence alone does not prove the application protocol works.
CAN WindowsOpen the submenu for CAN-specific views below. Configure provider/channel/bitrate in CAN Settings separately; showing a CAN window is not an adapter connection or transmission.
CAN Windows → Open AllShow Receive, Transmit, Signal Watch, and Bus Statistics together and activate Receive. Useful when correlating raw frames, decoded signals, and traffic rates.
CAN Windows → ReceiveShow/activate received CAN frames. Use raw identifiers, channel, and payloads to verify traffic independently of DBC interpretation.
CAN Windows → TransmitShow/activate the CAN transmit editor. Use for configured test frames; opening the view does not send a frame. Observe the documented adapter/channel scope and acknowledgement behavior.
CAN Windows → Signal WatchShow/activate watched decoded signals. Use a matching DBC and check the raw payload when a value looks wrong.
CAN Windows → Bus StatisticsShow/activate live bus statistics. Use rates/counters to compare controlled runs; reset at a known point. Rates do not prove payload correctness or full hardware qualification.
CAN Windows → Reset Window LayoutsBring the four CAN views into the main dock pane. Use to recover scattered CAN windows; it rearranges views rather than resetting the bus or counters.
ReferencesOpen the reference submenu, containing ASCII Table.
References → Ascii TableOpen the character/code table. Use to look up CR, LF, space, and other bytes when configuring delimiters or interpreting bracket notation.
CalculatorsOpen the calculator submenu. The current menu includes Gain and Offset.
Open the Gain and Offset CalculatorCommunity Simulators to derive and test linear scaling between two numeric ranges. Results update as you type; copy them into your configuration when needed.
Reset Window LayoutRegroup the main Message Window, Script Editor, modern AI Agent, and currently visible supporting documents into the main document pane; activate Message Window. Use when floating/docked documents become difficult to find. It does not reset protocol settings.
Common use case · Set up a two-instance client/server workspace

Open a server configuration in one instance and a client configuration in another. Show Settings Panel and Message Window in each; open Edit Auto Responses on the server and Device Commands or Sequence Builder on the client. Start the listener, then connect the client. Enable Auto Responses on the server only when its table is ready. Use Tile on Screen to compare both conversations.

Save each simulator file to preserve its scenario, and save a .Desktop layout when you want to reuse its window arrangement. Create Current State Shortcut can launch the saved files and window bounds later, with auto-connect disabled. Use Reset Window Layout to recover documents without rebuilding the protocol settings.

Strip Chart

The leftmost dropdown selects Live or File. Live disables recording-file Open and Inspect controls. All named variables in the Variable Window are available in the channel browser while connected or disconnected; click Add channels, select variables, and enable Capture (the record button) to plot each value assignment against elapsed time. File pauses live charting and enables Open; Inspect becomes available after loading. Returning to Live clears the file view and starts live capture. CSV export is available for either source.

Strip Chart: plot local variable assignments over time. Open it from the Windows dropdown, immediately after Message Tracer. Closing it hides the view while capture continues.

Back to Getting started · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • About Communication Simulator
  • Available CAN channels:
  • Browse, download and share community simulator configurations.
  • Buy me a coffee
  • Calculate gain and offset between two numeric ranges
  • Click to dump buffer to window.
  • Click to dump Device 2 buffer to window.
  • Close / Disconnect / Stop Listening
  • Close / Disconnect / Stop Listening (Ctrl + Alt + D)
  • Create Current State Shortcut
  • DATA IN BUFFER
  • DEVICE 2 DATA IN BUFFER
  • Device Commands
  • Edit Auto Responses
  • Edit Device Commands
  • Edit Variable Window
  • Enable Auto Responses
  • Jitter may occure due to processor speed stepping.
  • Main output window
  • Message Tracer
  • Message Window
  • New File
  • Open / Connect / Start Listening
  • Open / Connect / Start Listening (Ctrl + Alt + C)
  • Open Deskop Layout
  • Open File...
  • Open the dockable EtherCAT Sniffer to capture frames, monitor signals and record sessions.
  • Open the folder containing this running executable
  • Open Web Sniffer to inspect local HTTP and HTTPS traffic with explicit debugging trust.
  • Ping
  • Save
  • Save (Ctrl + S)
  • Save As...
  • Save Deskop Layout
  • Script Editor
  • Select FDX Client mode and open its data groups and cyclic requests window.
  • Select FDX Server mode and open its simulated measurement and data groups window.
  • Select Modbus Client mode and open its request and polling window.
  • Select Modbus Server mode and open its coils, inputs and registers window.
  • Select OPC UA Client mode and open its browsing, read/write and subscriptions window.
  • Select OPC UA Server mode and open its typed simulation variables window.
  • Select PROFINET Client mode and open its beta discovery window.
  • Select PROFINET Server mode and open its beta discovery identity window.
  • Sequence Builder
  • Settings Panel
  • Start / Stop Heartbeat Message
  • Strip Chart: plot local variable assignments over time.
  • Tile all instances of Communication Simulator
  • toolStripButton1
  • toolStripSplitButton_Grid
  • Variable Window
  • Windows
Window guide

Settings Panel

Configure the simulator in the property grid; the help uses the same category names as the GUI.

ControlHow and why to use it
Category expand/collapseExpand a category to see its settings. See the property-grid reference and subsequent category sections for every property.
Categorized / alphabetical buttonsUse the standard property-grid sorting buttons to group related settings or locate a name alphabetically.
Value cells and editorsType a value, choose a drop-down entry, or use the ellipsis editor when supplied. The description area explains the selected property. There is no general Apply button for this panel; table/script editors have their own apply workflows.
AI Model drop-downWait for model choices to load, then click a model or press Enter. You may type a model ID directly when needed. Loading failures do not prove a provider/model is available.
Close / dockingClose hides the panel; reopen Settings Panel from the toolbar. Save the simulator file to retain configuration changes.
Common use case

When bytes arrive but no complete message appears, expand Message Termination and compare the boundary settings with the actual device output before changing the transport. See message detection and framing.

Help for group headings and properties

Select a group heading to read its overview below the grid, including which TCP MITM endpoint listens and which makes an outgoing connection. Select an individual property to restore its specific description. Drag the horizontal divider to resize this area; long descriptions wrap and scroll.

Grid columns

Column / inputFunction and practical example
Property nameLeft-hand property-grid label under its category, for example Communication Type. Select a property to read its help below the grid.
Property valueRight-hand editable value, checkbox, dropdown or specialized editor. Example: select TCP_Client for Communication Type, then set the TCP endpoint. Available choices depend on the property; see the settings reference below.

The Settings property grid is distinct from row-based message tables. See the complete settings reference for individual properties and supported modes.

Back to Getting started · All chapters

Property grid reference

Simulator Settings

When you select this group: Choose the communication mode and general simulator behavior. The selected mode determines which connection groups are shown. Local Nickname labels this simulator in the Message Window; Notes describe the simulator file.

Establish the scenario, readable labels, logging, and shared-state policy.

Shown in: All communication modes.

GUI itemMeaning, use, and interactions
Communication TypeChoose the role before connecting: direct serial/TCP/UDP endpoint, passive sniffer, inline MITM, or CAN. Use the mode guide to choose by wiring and purpose; changing the label alone does not reroute the physical conversation.
Log to FileEnable a text record when comparing runs or handing a fault to a colleague. Preserve the log with the simulator XML and test notes; display formatting and filters matter when interpreting it.
Recording FolderChoose a folder for Message Window text recordings. Empty keeps the program Logs folder. Set it while disconnected; new recordings and Show Log Folder use it. The setting is saved in simulator XML.
Recording Files to KeepZero preserves every recording. A positive count deletes oldest closed matching text recordings for this simulator name in the selected folder at recording start and file rotation. Open files and other simulator names are retained; open files can temporarily exceed the count. This setting is saved in simulator XML.
NotesRecord the protocol, wiring, expected replies, and test procedure. Notes appear when the file loads, making a saved scenario understandable to its next user. Keep credentials out of notes.
Local NicknameReplace LOCAL with a meaningful name such as TestController so direction is easy to read. This is a log label, not a network hostname or device address.
Extra Blank Line AfterChoose where extra blank lines separate messages. Use for readable request/reply groups; it changes presentation rather than bytes sent on the link.
Whitespace Code TypeSelect decimal or hexadecimal interpretation for byte codes inside angle brackets. For CR/LF, decimal uses <13><10>; hexadecimal uses <0D><0A>. Changing between Decimal and Hex in this property grid automatically converts valid angle-bracket byte codes in Send STX Bytes, Send ETX Bytes, Receive STX Bytes, Receive ETX Bytes, and Heartbeat Message, preserving the same bytes. For example, <13><10> becomes <0D><0A>, and switching back restores <13><10>. Suggested STX/ETX dropdown values and property-grid help examples also follow the selected mode. Text outside the brackets stays unchanged. SkipSpaces affects whether ordinary spaces are exposed in the display; switching only SkipSpaces does not convert stored codes. Send-box text, command/response tables, sequences, scripts, regex patterns, notes, and names are not automatically rewritten; review their bracket codes when changing the numeric base. Saved XML retains the selected mode and converted values without converting them again on reload. This is separate from selecting Hex conversion for the whole outgoing message.
Variable MulticastingShare variable updates through multicast UDP 224.0.0.200:20000 between cooperating instances. Useful when separate scenarios share state. Leave off for independent tests to avoid unexpected cross-instance changes; multicast delivery is not durable state storage. See Variable multicast setup and examples.
Common use case · Put these settings together

For a reproducible test, select the role, name the local participant, write Notes, and enable logging before running the procedure.

See the related workflow guide for the surrounding procedure and examples.

Back to Getting started · All chapters

Window guide

Find a window and its controls

Follow the GUI window name to its purpose, buttons, limitations, and a practical use case.

Getting started

TCP, UDP & network capture

CAN buses & signals

Message boundaries & conversion

Auto Responses

Variables, state & random values

Commands, polling & sequences

Scripting & converters

Logs, timing & tracing

AI Agent & MCP

Files & supporting tools

Calculators

The main toolbar reference covers every toolbar entry and nested menu, including actions that do not open a window. Standard confirmation/error prompts explain the immediate operation; they are not persistent tool windows.

Common use case · Restore a hidden tool

Use the Windows menu to reopen a dockable tool, then consult its guide here. The Message Window, Script Editor, CAN Receive, CAN Transmit, CAN Watch, and CAN Statistics each have separate control references.

Back to Getting started · All chapters

Window guide

Help window

At startup, a separate Starting window stays responsive while the main workspace loads. The original green and blue logo is displayed as a static image with its aspect ratio preserved. There is no animation or startup waiting period. It does not stay above other applications or take focus. Use the upper-right X button or Escape to dismiss the borderless splash while startup continues; it closes automatically when the main window appears. It starts after the bundled .NET runtime reaches the application entry point, so runtime loading itself can still cause an initial delay.

Find practical workflows, feature explanations, and window-control references in the offline HTML guide.

ControlHow and why to use it
Search / Clear searchFilter guides by feature, setting, or exact tooltip wording. All search words must occur in a guide, including its collapsed text. Clear search or press Escape to restore all chapters.
Contents linksOpen a task chapter in the contents list, then jump to its workflow, settings, or control guide. Matching chapters open during search. The contents also remain available on narrow screens.
Expandable use casesOpen the common-use-case disclosures for worked explanations. Use Expand examples & tooltips for the visible guides, or Collapse examples & tooltips to close their disclosures. Chapter navigation stays separate.
Print / browser controlsPrint the guide using its print action or browser printing. Print includes all topics and expanded use cases. Browser Back and in-page anchors support navigation.
Toolbar Help / F1Click Help on the main toolbar to open help home directly. Press F1 in the simulator to open the current communication-mode guide.
Common use case

Search for the GUI window name first, then follow its workflow link to understand when to use it. API/MCP agents can request the current build scripting and Auto Response references for precise API/token definitions.

Back to Getting started · All chapters

Check for portable updates

The modern x64 toolbar has an Updates button beside Help. It opens a separate window; choose Check for updates to contact the permanent HTTPS update address. There is no startup check. Simulator context, chat and credentials are not sent. Cancel check cancels a pending request; closing the window cancels it too.

For a newer compatible version, Release notes and Open ZIP download open checked HTTPS links in your browser. The window shows the offered version, byte size, SHA-256 and destinations. It does not download, authenticate, install or replace files. Extract into a new writable folder, preserve simulator files/scripts/settings/recordings and keep the old folder as a backup.

Download page always opens the permanent manual-upgrade page. An unavailable/offline service, invalid metadata or an unsupported future process leaves the application usable. Preview endpoints advertise no update; older offered versions do not request a downgrade. The public service may be unavailable until website deployment is complete.

Portable automatic updates

Use the Help dropdown and choose Check for update to launch the separate Communication Simulator updater. It checks a signed release before offering Install. The updater stages downloads, backups and recovery state inside the portable application folder under .updates. Cancel stops a check or download; file replacement cannot be cancelled midway. The simulator closes normally, including save prompts, device disconnects and recording drains, before replacement. After installation the updater restarts the simulator and waits for its main window to report startup. Download page opens the permanent manual-upgrade page when a compatible signed update is unavailable.

Automatic updates require an installed application inventory. Older packages need a manual upgrade first. Root configuration, simulator XML, scripts, layouts, recordings and unknown files are preserved. Modified application files or new package paths that conflict with existing user files stop the update. Previous program files remain in .updates backups. Interrupted replacement blocks normal startup until the separate updater restores the previous files. These backups do not undo user-data migrations or global driver changes.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Cancel the current update check
  • Cancel the download or close the updater; replacement cannot be cancelled midway
  • Check for a signed Windows x64 update, or install the checked version
  • Check the permanent update address for a newer Windows x64 ZIP
  • Close splash screen; startup continues.
  • Launch the separate portable updater to check, download and install a signed update
  • Open the checked release notes in your browser
  • Open the checked ZIP download in your browser; extract into a new folder
  • Open the permanent download page for a manual upgrade
  • Practical guides and common use cases (F1)
  • Select timestamped messages to calculate elapsed time. Right-click for help.

Serial connections

Serial connections

The Windows dropdown starts with Message Window, then Settings Panel. Related launchers are grouped under CAN Windows, EtherCAT Windows, Modbus Windows, OPC UA Windows, FDX Windows, PROFINET Windows and Web Windows, each with an icon. Sniffer windows share their protocol group with client/server windows.

Keep serial setup, passive observation, proxy wiring, and both port references together.

In this chapter · 5 guides
Serial

One PC, one serial device

Use Serial mode to exercise a device directly or replace the controller that normally talks to it.

Simulator PC with one COM port connected directly to one serial device.
Direct serial: the simulator is one endpoint. Conceptual topology, not an electrical pinout.
  1. Choose Serial in Communication Type while disconnected.
  2. Choose the COM Port Name under Primary Serial Port Settings. Match the device's Baud Rate, Data Bits, Parity, Stop Bits, and Handshake.
  3. Configure receive boundaries and outgoing terminators from the device manual. Start with ASCII for a text protocol; use Hex when the bytes are the protocol.
  4. Connect, send one documented harmless query, and compare the reply with the manual. Use meaningful nicknames in the log.

Choose compatible wiring

Use adapters and wiring compatible with the device's electrical interface. RS-232, TTL UART, and RS-485 are not interchangeable. The drawings do not specify connector pins, voltage levels, grounding, isolation, or handshake wiring.

Common use cases · Query a device or replace its controller

Verify a documented command

A controller reports that a sensor is unresponsive. Send the same query directly from the simulator with the documented terminator. A valid reply suggests the device and cable work; compare what the controller actually sends next.

Stand in for a missing device

Connect the controller to the simulator using appropriate serial adapters/cabling and add Auto Responses for the requests the controller makes. A deterministic table is easier to debug than random behavior, so add variation only after the basic exchange works.

No response or unreadable text?

Check that no other program owns the COM port, match the serial format exactly, and inspect bytes in Hex. Wrong baud/parity often looks like garbage; wrong termination often looks like silence or a partial buffered message.

Back to Serial connections · All chapters

Observe serial

Serial sniffer: listen to both directions

Learn what the real controller and device say to each other without making the simulator responsible for forwarding.

Controller and device connected through a dedicated passive RS-232 tap. One USB cable carries observed traffic to the simulator PC.
Passive serial observation: dedicated tap hardware preserves the original path; one USB connection reaches the PC. Conceptual topology, not an electrical pinout.

Configure the two capture ports

Select Serial_Sniffer. The host opens both the primary and secondary COM ports and labels received traffic by the port that saw it. Use dedicated passive USB-to-serial sniffing hardware, such as the EZ-Tap-style arrangement mentioned in the application's settings. The serial link passes through the hardware; one USB cable connects it to the observing PC. The PC does not forward the original link.

  1. Connect the controller and device through the dedicated tap's pass-through connectors according to the manufacturer's instructions, then connect the tap to the PC using its USB cable.
  2. Install the supported tap driver. For an EZ-Tap dual-virtual-port interface, select the two Windows virtual COM ports it exposes as Primary and Secondary. These come from one USB device, rather than two separate serial links. This implementation shares baud, data bits, parity, stop bits, and handshake settings between them.
  3. Give the two sources recognizable nicknames. Configure framing to reflect the messages being observed.
  4. Connect and make the real controller perform one action. Look for a request on one source and a reply on the other.

Passive tap wiring

The illustration above shows the dedicated passive tap arrangement. One USB connection does not necessarily mean one Windows COM port. The EZ-Tap quick-start guide specifies two virtual COM ports. The current simulator uses that dual-port interface; a different tap offering only one combined COM stream or a proprietary API would need separately verified integration. This mode does not forward data between ports. Do not replace an inline MITM setup with sniffer mode and expect the link to continue working.

Common use cases · Capture the truth before writing a simulator

Discover the startup sequence

Watch a controller start up against a working device. Record the identification query, configuration commands, acknowledgements, and polling order. Use that evidence to build a small Auto Response table instead of guessing from button labels.

Find which side stopped talking

If controller requests continue but device replies stop, investigate the device side. If both go silent, inspect the controller's state and physical link. Confirm both tap inputs were working before interpreting a missing direction.

Avoid an electrical shortcut

Two normal transmit outputs must not be tied together as a substitute for proper tapping hardware. Use the tap's supported wiring and electrical interface; the diagram is a topology guide only.

Back to Serial connections · All chapters

Relay serial

Serial MITM: put the simulator in the middle

Carry traffic between a controller and device while observing both sides in one workspace.

Controller connected through a simulator PC with two COM ports to a device. Software forwards both directions.
Serial MITM: two serial links, with software forwarding through the PC. Conceptual topology, not an electrical pinout.

Configure the relay

Choose Serial_MITM. Connect the controller to the simulator's primary COM port and the device to its secondary COM port. Unlike passive tapping, there is no direct controller-to-device bypass in this arrangement. The host forwards received traffic to the other port when both ports are open. Connect checks both serial ports even if the first cannot open or has invalid settings.

The Message Window labels each error as Device 1 or Device 2 and includes the configured COM name. If either side fails, both sides close and the simulator remains ready to retry; it announces a usable paired connection only after both ports open. Serial sniffer mode uses the same two-port checks. Access denied may mean another program owns the port or access is restricted.

  1. Disconnect the original cable route and establish two compatible links: controller ↔ primary port; secondary port ↔ device.
  2. Choose two different COM ports. Set the shared serial parameters to match both endpoints. Different baud rates on the two sides are not exposed by this implementation.
  3. Start with Auto Respond, heartbeat, and modifying scripts disabled. Connect both ports and exercise one normal request/reply.
  4. Check both directions and compare payloads with the direct-link baseline. Then add one controlled behavior at a time.

Send to either device

The illustration above shows the two separate serial links. Normal manual sends target Device 2; holding Ctrl while sending targets Device 1. Verify direction using nicknames before injecting a message. Closing a port interrupts forwarding.

Common use cases · Diagnose a real integration failure

Observe the command that triggers a failure

Let the normal controller drive the device through the simulator. Compare the last successful exchange with the first failed one. Preserve the initial forwarding-only capture so later injected traffic is distinguishable.

Try a query without replacing the controller

Once forwarding is stable, send a documented query toward Device 2 and watch the reply. An unsolicited reply can confuse the real controller, so use a controlled test state. Avoid simultaneously enabling automatic replies that would duplicate the device's own response.

Field flexibility without a dedicated sniffer

Two normal, electrically compatible serial ports/adapters can make this setup practical when a specialist passive tap is not in your field kit. The PC becomes part of the data path, so establish that the equipment tolerates the added forwarding delay before relying on the capture.

Timing-sensitive links

Software forwarding is not an electrical wire. Receive buffering and processing can change latency; handshake and modem-control behavior should be checked against the equipment's requirements. Use passive tapping when preserving the original path matters more than injecting traffic.

Send from a script to either MITM device

Helpers.SendMessageToDevice(1, Helpers.StringToByteArray("STATUS?"), true);
Helpers.SendMessageToDevice(2, new byte[] { 0x01, 0x02 }, false);

Device 1 and Device 2 correspond to the MITM settings. This helper works only in Serial MITM, TCP MITM or UDP MITM and requires the selected side to be open/connected. true adds that side's send terminators; false uses the supplied bytes without adding terminators. Normal outgoing-byte manipulation still runs. Invalid device numbers, null bytes, another mode or a closed endpoint throw an error. Helpers.SendMessage keeps its existing primary-handler route; use SendMessageToDevice to select a side explicitly.

A command-button function can accept typed arguments:

public void Inject(int device, string text) {
    Helpers.SendMessageToDevice(device, Helpers.StringToByteArray(text), true);
}
// Command Send Text: Script.Inject(1, "STATUS?")
// Command Send Text: Script.Inject(2, "START")

Prevent recursive sends

SendMessage, SendMessageToDevice, SendCanMessage and RepeatCurrentSendBoxValue reject synchronous nested calls and calls made inside SendBoxConverter, SendingBytesManipulationScript or MessageWindowConverter. A raw Script send blocked diagnostic appears in the Message Window and InvalidOperationException is raised. Converter callbacks should return converted bytes/text instead of starting a new send. An uncaught blocked call follows the callback's normal fallback; catch the exception inside the converter if you need to finish your conversion. Ordinary command functions and receive callbacks may send. Keep them short.

The guard resets after exceptions so later legitimate sends work. It protects simulator send re-entry, not arbitrary recursion within user code, delayed/background sends or device-response feedback loops. For response-driven scripts, match only intended requests and bound retries/rates; do not blindly send on every received message.

Back to Serial connections · All chapters

Property grid reference

Primary Serial Port Settings

When you select this group: Configure the first local COM port and its baud rate, data bits, parity, stop bits and flow control to match the attached device. In Serial MITM this is Device 1's side; the secondary port is Device 2's side. Serial ports have no TCP-style listener/client roles: the simulator opens both local ports and forwards traffic between them.

Configure the primary COM connection and shared serial format.

Shown in: Serial, Serial_Sniffer, Serial_MITM.

GUI itemMeaning, use, and interactions
NicknameName the primary serial peer so its traffic is identifiable. In a tap/MITM setup use a role such as Controller rather than an ambiguous REMOTE label.
Port NameSelect the Windows COM port for the primary connection. Use the port assigned to your adapter, and ensure another application does not own it. This is the only port needed for a direct endpoint.
Baud RateMatch the peer’s signalling rate, for example 9600 or 115200 baud. A mismatch commonly produces unreadable bytes rather than a clean connection error. In two-port serial modes this shared rate configures both sides.
Data BitsMatch the payload bits per serial character, commonly 8. A 7-bit protocol configured as 8-bit can corrupt interpretation; follow the device specification rather than guessing from readable text.
ParityMatch None, Even, Odd, or the protocol’s required parity. Use the same setting at both ends; parity is serial character checking, not application checksum validation.
Stop BitsMatch the stop-bit format required by the peer. Use with baud, data bits, and parity as one complete serial format, such as 9600 8N1.
HandshakeSelect the peer’s flow-control scheme. Hardware flow control needs correctly wired control lines; software flow control uses control characters. Wrong handshake can prevent transmission even when the port opens.
Common use case · Put these settings together

For unreadable or missing data, verify the Windows port and all five serial-format/flow-control settings before changing message detection.

See the related workflow guide for the surrounding procedure and examples.

Back to Serial connections · All chapters

Property grid reference

Secondary Serial Port Settings

When you select this group: Configure the second local COM port for Serial MITM or Serial Sniffer. In MITM this is Device 2's side, paired with Device 1 on the primary port; each port must match its attached device. Both local COM ports must open successfully. Serial Sniffer requires the appropriate passive monitoring hardware.

Identify the second serial stream/participant. Serial format comes from Primary Serial Port Settings.

Shown in: Serial_Sniffer and Serial_MITM.

GUI itemMeaning, use, and interactions
NicknameLabel the other serial participant, for example Device. Distinct primary/secondary labels help identify requests and replies during observation or forwarding.
Port NameChoose the second Windows COM port in serial sniffing/MITM modes. Serial MITM requires two available ports on the PC. A dedicated passive USB tap can use one USB cable while exposing two virtual COM streams; this implementation opens the two streams, rather than assuming one combined COM stream.
Common use case · Put these settings together

Use different participant names and ports for each direction. A passive tap preserves the original link; serial MITM instead forwards through the PC.

See the related workflow guide for the surrounding procedure and examples.

Back to Serial connections · All chapters

TCP, UDP & network capture

TCP, UDP & network capture

Choose your network workflow, then use its adjacent settings reference.

In this chapter · 22 guides

FDX Client and Server

Beta: This recently added I/O subsystem is under active testing. Independent vendor interoperability, hardware and full conformance acceptance remain incomplete.

Independent FDX 1.0 endpoints require no Vector tools, libraries or hardware. Select the role in Communication Type or the Windows menu. Client and server each have a separate dockable window; use two simulator copies to communicate.

Connect and exchange data

Configure connection settings in the main property grid. Server: use the main toolbar Connect, then local Start measurement. Client: use main Connect, then Status, then select a group and Request, Write or Cyclic. Add group / Remove group changes saved definitions while disconnected. Match group IDs and byte sizes. Edit HEX bytes to set saved initial values; received bytes remain separate and transient. Write and cyclic control have no protocol acknowledgment. Status and Request use the configured response timeout. Cancel cyclic ends updates for the selected group. Stop clears server cyclic requests. Disconnect closes the endpoint; window close also disconnects. Connection control is exclusively on the main toolbar, and connection settings are exclusively in the main property grid. All FDX status and activity are sent to the main Communications Output window. The dedicated windows have no connection/settings buttons or bottom status/activity area. Help opens this guide.

Import XML replaces disconnected definitions using FDX description group IDs, names and sizes with zero initial bytes; save existing work first. Typed signal/variable mappings are not imported. Maximum 256 groups, 1400 bytes per group, 32 server peers and 64 cyclic requests. Requests expire after five minutes without incoming peer activity. Supported FDX 1.0 only; Key/vendor extensions are not implemented. Independent CANoe interoperability remains pending.

FDX has no authentication/encryption here. Loopback binding is the default; use trusted test networks for LAN access. Remote Start/Stop is off by default. Local Start affects only the simulated measurement. No hard real-time guarantee. Protocol licensing remains unresolved; the owner accepted that risk before implementation. No Vector components are bundled.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add a saved FDX group while disconnected.
  • Cancel cyclic updates for the selected FDX group.
  • Import group IDs, names and sizes from an FDX description XML while disconnected.
  • Open the FDX client and server help guide.
  • Remove the selected saved FDX group while disconnected.
  • Request cyclic updates for the selected group using the saved FDX cycle.
  • Request remote FDX measurement status or show the local server state.
  • Request the selected FDX data group from the server.
  • Send the selected group's HEX bytes to the remote FDX server.
  • Start the simulated measurement locally or send an FDX Start command to the remote server.
  • Stop the simulated measurement locally or send an FDX Stop command to the remote server.

FDX Settings

Connection and role settings

Simulator Settings appears first. FDX host / bind IP is the client remote host or server local IPv4 bind address. Default 127.0.0.1 is local only; 0.0.0.0 listens on all interfaces. FDX UDP port defaults to 2809. FDX timeout (ms) is client-only, 50–60000 ms. FDX cycle (ms) is client-only, 10–4000 ms, converted to unsigned 32-bit nanoseconds on the wire. FDX allow remote start / stop is server-only and defaults off. Both roles save their own connections, groups and initial values in simulator XML. Disconnect before changing settings; New/Open resets live endpoints. Runtime received values and measurement state are never persisted.

OPC UA Client and Server

Beta: This recently added I/O subsystem is under active testing. Independent vendor interoperability, hardware and full conformance acceptance remain incomplete. See this guide for the supported scope.

Open the independent OPC UA Client or OPC UA Server window from the main toolbar Windows menu; each has its own icon. One simulator instance runs one selected role. Run two copies from separate program folders for a client/server conversation; the existing per-folder guard permits one running instance per folder. All connection settings are in the main Settings Panel, below Simulator Settings. Select OPC_UA_Client or OPC_UA_Server as Communication Type. Disconnect before switching roles. Saved files retain configuration, server initial definitions and client watches; they never start a connection automatically.

Test two simulator copies

Choose Server in the first copy, add a Double variable named Temperature with initial value 20, and Listen at opc.tcp://localhost:4840/CommunicationSimulator. Choose Client in the second copy, configure the same endpoint, and Connect. Browse Simulator, select Temperature, Read, enter a matching Double value and Write value. Watch node subscribes to changes; Remove watch updates the saved list and active subscription. Local server edits change runtime values without replacing saved initial values. Stop both with their main toolbar Disconnect. All connection control is on the main toolbar; connection settings are in the main property grid. OPC UA status and activity are written to the main Communications Output window. The dedicated windows have no connection/settings buttons or bottom status/activity area. Numeric text uses an invariant decimal point; Boolean true/false, dates ISO 8601, Guid standard notation and ByteString Base64.

Establish certificate trust

SignAndEncrypt with Basic256Sha256 is the default. The OPC UA security policy client setting selects Basic256Sha256, Aes128Sha256RsaOaep or Aes256Sha256RsaPss exactly; the server settings Enable Basic256Sha256, Enable Aes128Sha256RsaOaep and Enable Aes256Sha256RsaPss can offer any combination of those policies together. Policies select cryptographic algorithms; the separate OPC UA security setting selects SignAndEncrypt, Sign or None. Sign authenticates messages without encrypting application data. None offers only an unsecured endpoint and ignores the policy selections. At least one server policy must be enabled for Sign or SignAndEncrypt. Existing files retain the Basic256Sha256 default. Unsupported client policy/mode combinations fail without fallback. Attempt Listen/Connect once to create each role's application certificate, then disconnect. In Certificates export each role's public certificate and import it into the other profile's trusted store after checking its SHA-256 fingerprint independently. Alternatively review and explicitly trust the correct rejected peer. Remove selected trust revokes local trust. Private keys remain in the local profile store under %LOCALAPPDATA%/CommunicationSimulatorSuite/OpcUa; they are never exported by this dialog or saved in simulator XML. Copying a simulator file to another machine requires establishing trust there. None is an explicit insecure option for isolated tests; no automatic acceptance or security downgrade occurs.

Call a method with arguments and returned values

Client: connect from the main toolbar, browse the owning object, expand it and select a Method node. The Methods tab fills Object ID and Method ID from the browser. For a known method you can enter both NodeIds directly. Load arguments reads the server signature and executable permissions without calling. Enter each input Value in declared order, then Call method sends exactly one request. Methods may have zero or multiple inputs and outputs. Returned output arguments appear in the read-only lower table, with names, types and ranks. Overall and per-input statuses and returned values go to the main Communications Output window.

Supported input values: Boolean, numeric, String, DateTime, Guid, ByteString, NodeId, ExpandedNodeId and StatusCode scalars and one-dimensional arrays. Use an invariant decimal point, ISO 8601 dates, Base64 ByteStrings and numeric StatusCodes. Arrays use JSON, for example [1,2,3] or ["first","second"]; ByteString arrays contain Base64 strings. Custom structures, unresolved custom data types and other array ranks are rejected before Call. Custom enums depend on server base-type metadata being available. Names, Type (built-in and data type NodeId), Rank and Description come from the server; Value is editable only for inputs, and Status reports per-input results.

Changing either NodeId or disconnecting clears the loaded signature and returned results. Arguments/results are transient and are not saved to simulator XML. A timeout, cancellation or disconnect can happen after the method executed on the server; calls are never retried automatically. Reload metadata after server changes. The server controls method permissions, argument validation and owning-object relationships. This client feature does not create custom methods in the simulator server.

Scope and limits

Client supports browse continuation, typed scalar writes, reads and subscriptions with value/status/timestamps. Watches preserve namespace URIs where available. Server supports typed scalar variables and client read/write permissions; saved initial values remain separate from runtime changes. Username client login prompts for an unsaved password and requires SignAndEncrypt; the built-in server accepts anonymous identity only. After interrupted connections disconnect/reconnect explicitly; automatic reconnect, history, alarms, PubSub, custom server Methods editor, companion models and automatic simulator-variable mapping are not implemented. Existing AI raw-send/connect actions do not perform typed OPC UA operations. MIT-licensed OPC Foundation libraries permit proprietary/freeware distribution with notices. Reference-stack certification does not certify this application; loopback testing does not qualify physical PLCs.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add a typed server variable and its saved initial value while disconnected.
  • Browse the selected address-space node, or the Objects folder when nothing is selected.
  • Call the loaded method once with the entered typed inputs. A timeout or cancellation may occur after server execution; calls are never retried automatically.
  • Cancel this OPC UA connection attempt without using the entered password.
  • Client: OPC UA NodeId such as i=2258 or nsu=urn:example;s=Temperature. Server: configured variable identifier.
  • Enter input values in declared order. Scalars use invariant text; one-dimensional arrays use JSON. Strings in arrays must be quoted; ByteStrings use Base64.
  • Enter the OPC UA client password for this connection only; it is never saved in the simulator file.
  • Exact scalar OPC UA type for an explicit write. ByteString values use Base64; dates use ISO 8601.
  • Export this profile's public application certificate to exchange with a peer. The private key stays in the local profile store.
  • Import a peer's public DER certificate into this profile's trusted store. Private keys are never imported here.
  • Method NodeId to invoke on the owning object. Load its argument signature before calling.
  • Owning object NodeId for the method call. Selecting a browsed method fills this from its parent.
  • Read returned output values and declared types. Overall and per-input method status are also written to Communications Output.
  • Read the entered OPC UA node, including its status and timestamps.
  • Read the method input and output argument definitions and check executable permissions without invoking it.
  • Refresh the trusted and rejected public certificate lists.
  • Remove the selected certificate from this profile's trusted peer store.
  • Remove the selected saved watch and update the active subscription.
  • Remove the selected server variable definition while disconnected.
  • Review and explicitly trust or remove peer certificates for this saved OPC UA profile while disconnected.
  • Save the entered node in the client watch list and monitor its value while connected.
  • Select a node to copy its stable namespace URI identifier; expand a node to browse children.
  • Select a rejected or trusted public peer certificate to inspect its subject, issuer, validity and thumbprint.
  • Server definitions are editable only while disconnected. Current values, quality and timestamps are transient.
  • Trust only the selected rejected peer after verifying its identity and SHA-256 fingerprint through a separate channel.
  • Use the entered password to connect to the configured OPC UA server.
  • Value for an explicit write. Numeric values use an invariant decimal point.
  • Write the entered typed value once. Server local edits change runtime values, not saved initial values.

OPC UA Settings

Simulator Settings stays topmost. OPC UA connection properties appear below it only for the selected OPC UA role. Server shows namespace URI; Client shows username and publishing interval. The dedicated operating windows contain no separate property grids.

PropertyUse
OPC UA endpointClient remote endpoint or server listening address, for example opc.tcp://localhost:4840/CommunicationSimulator. Use a local hostname/IP for the server; localhost is local only.
OPC UA securitySignAndEncrypt is recommended. Sign uses the selected security policy without encrypting application data. None explicitly disables channel security for isolated testing. No automatic security downgrade.
OPC UA usernameClient username; leave empty for anonymous. Password is requested at Connect, used only in memory and never saved in XML. Username login requires SignAndEncrypt.
OPC UA timeout (ms)Service operation timeout, 1000–60000 milliseconds.
OPC UA publishing interval (ms)Requested client subscription sampling/publishing interval, 100–60000 milliseconds. The server may revise it.
OPC UA security policyExact client security policy: Basic256Sha256, Aes128Sha256RsaOaep or Aes256Sha256RsaPss. Ignored for security mode None. No automatic policy fallback.
Enable Basic256Sha256Offer Basic256Sha256 on this server with the selected Sign or SignAndEncrypt mode. Ignored for None. Enable at least one policy for secured operation.
Enable Aes128Sha256RsaOaepOffer Aes128Sha256RsaOaep on this server with the selected Sign or SignAndEncrypt mode. Ignored for None. Multiple server security policies can be enabled together.
Enable Aes256Sha256RsaPssOffer Aes256Sha256RsaPss on this server with the selected Sign or SignAndEncrypt mode. Ignored for None. Multiple server security policies can be enabled together.
OPC UA namespace URIStable absolute URI identifying this server's Simulator variables. Saved client watches use namespace URIs rather than transient namespace indexes.
Save and lock settings

Disconnect before editing settings. Server/client configurations persist independently in simulator XML. Passwords, pending work, live values and certificate private keys are excluded. A saved profile GUID locates each role's local certificate/trust store. No automatic connection is made when loading a file.

PROFINET Client and Server (Beta)

Beta — discovery only. PROFINET_Client represents the IO Controller discovery role; PROFINET_Server represents an IO Device discovery responder. Windows → PROFINET Client / PROFINET Server selects the role and opens its operating window. This is PROFINET, not PROFIBUS or S7. Cyclic IO, GSDML, application relationships, records and alarms are not implemented. A discovery result is not a working PLC IO connection.

Connect, Listen and Disconnect belong exclusively to the main toolbar. All connection and identity settings are in the main Settings Panel, with Simulator Settings first. Status, errors and discovery activity appear in main Communications Output. Disconnect before changing settings or roles. Closing the operating window stops its endpoint. Separate role settings persist in simulator XML; results do not. Loading a file never starts communication.

For a basic two-copy test: start two simulator copies. Set the first to PROFINET_Server and the second to PROFINET_Client. Keep PROFINET transport at Local_Test_UDP and use the same PROFINET local test port (default 34964). Connect the server and then the client using each main toolbar. Press Discover in the client. The server's simulator-device station name, MAC, vendor ID and device ID should appear. Change the server identity while disconnected, reconnect, and Discover again. Disconnect the server and repeat discovery to observe no reply. Clear results clears only the transient table. This loopback-only tunnel carries DCP Ethernet frames for simulation; it is not standard PROFINET UDP and cannot discover a PLC.

For Ethernet discovery, choose Ethernet transport. List adapters prints exact capture adapter names and descriptions to Communications Output; paste the name before the separator into PROFINET adapter in the main settings. An already installed supported packet capture driver is required. Connect opens the selected adapter; Discover sends a DCP Identify-all frame, collecting matching responses for three seconds. The server responds to Identify-all and matching name selectors. No IP/name SET changes, host NIC configuration changes or driver installation are performed. Use distinct physical Ethernet hosts/adapters for independent on-wire testing; seeing sent frames on the same adapter is not guaranteed. Physical interoperability remains pending. The default vendor ID zero is a test placeholder, not a registered product identity.

Tomorrow's basic test

Start with Local_Test_UDP in two copies, server first, then Discover in the client. Verify the identity, disconnect the server, clear results and repeat to observe no reply. This validates discovery simulation only.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Clear the transient PROFINET identity table without disconnecting.
  • Open the PROFINET beta discovery guide and local test instructions.
  • Print available PROFINET capture adapter names to the main Communications Output.
  • Send one PROFINET DCP Identify request and collect identities for three seconds. Discovery does not establish cyclic IO.

PROFINET Settings

These properties appear in the main Settings Panel for PROFINET_Client and PROFINET_Server only. Disconnect to edit. Client and server configurations are saved independently.

PropertyUse
PROFINET transportLocal_Test_UDP is loopback simulation; Ethernet is DCP capture/send.
PROFINET adapterEthernet only: exact capture adapter name from List adapters.
PROFINET local test portLocal test only: port 1024–65535, default 34964.
PROFINET station nameServer only: lowercase DNS-style discovery name.
PROFINET vendor IDServer only: unsigned 16-bit discovery identifier; zero is a test placeholder.
PROFINET device IDServer only: unsigned 16-bit discovery identifier, default 1.
Choose a transport

Local test requires no capture driver. Ethernet requires a selected existing capture adapter and does not configure Windows IP settings.

Modbus Client and Server

Beta: This recently added I/O subsystem is under active testing. Independent vendor interoperability, hardware and full conformance acceptance remain incomplete. See this guide for the supported scope.

Choose Modbus_Client or Modbus_Server in Communication Type, then Connect. Windows → Modbus Client / Modbus Server selects the matching main mode and opens its operating window. Run two copies of Communication Simulator to operate client and server together. All connection settings are in the main Settings Panel; the operating windows have no property grids. Connect and disconnect exclusively with the main toolbar. Status, errors and protocol activity appear in the main Communications Output window; the operating windows have no local status or activity area. TCP fields appear only for TCP, serial fields only for RS232/485, poll interval only for the client and table size only for the server. Connection settings and locally edited server initial values persist in XML; disconnect before editing connection settings. Remote writes affect transient runtime values.

TCP uses standard Modbus TCP framing by default. RS232 and RS485 support RTU or ASCII. Explicit RTU/ASCII with a TCP connection selects a raw serial-over-TCP tunnel, not standard Modbus TCP. RS485 needs an adapter with automatic direction control and correct wiring/termination. Configure COM port, baud, parity, data bits, stop bits, RTS and DTR. RTU uses eight data bits; ASCII permits seven or eight. Physical serial traffic/timing acceptance remains pending.

All addresses are zero-based: holding register 40001 is protocol address 0. Server Area and Start address browse up to 200 rows. Edit coils/discrete inputs as 0 or 1, or holding/input registers as unsigned 16-bit values. Local inputs are editable even though clients cannot write them. Refresh table rereads the current data. Table size configures each area separately. The client result table shows the last successful read.

Client Function selects reads 1–4, single writes 5/6, multiple writes 15/16, mask write 22 or read/write 23. Read quantity is bounded to 2000 bits or 125 registers. Write values accept decimal or 0x hexadecimal separated by spaces or commas; multiple-write counts use the value count. Mask write takes AND mask then OR mask. FC23 has a separate write address and writes before reading. Poll reads repeats functions 1–4 at the property-grid interval; writes always require manual Send request. Broadcast write uses serial unit 0, writes only, and has no reply. TCP broadcast is rejected.

The main toolbar Connect starts the selected mode; main Disconnect stops it and polling. Closing the operating window also releases its connection. Disconnect before switching roles. The main Communications Output shows requests, replies, errors and the request/error totals on disconnect. Timeouts or malformed replies close an ambiguous client connection to prevent stale responses. The server uses serial unit IDs 1–247 or TCP unit IDs 0–255, responds with protocol exceptions for invalid requests, and supports up to 16 TCP clients. A server Host is a local bind IP; 127.0.0.1 is local only and 0.0.0.0 listens on every interface. No write is retried automatically. No new third-party library is used.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Choose coils, discrete inputs, holding registers or input registers to edit locally on the server.
  • Poll only read functions 1–4 at the configured interval. Writes are always manual.
  • Read quantity: at most 2000 bits or 125 registers. Multiple writes use the number of write values.
  • Refresh the visible server data area. Addresses are zero-based; up to 200 rows are shown.
  • Select a standard Modbus read or write function. Mask write takes AND mask then OR mask.
  • Send a serial unit-zero write without waiting for a reply. TCP broadcast is not supported.
  • Send one Modbus request. Write values are decimal or 0x hexadecimal, separated by commas or spaces.
  • Separate zero-based write address for function 23, read/write multiple holding registers.
  • Server values can be edited locally, including read-only-to-client inputs. Client values are the last successful response.
  • Write values: unsigned 16-bit decimal or 0x hexadecimal; coils must be 0 or 1.
  • Zero-based protocol address, 0–65535; holding register 40001 is address 0.

Modbus Settings

All Modbus settings are built into the main Settings Panel, under Modbus Settings. There are no property grids in the dedicated operating windows. Select Modbus_Client or Modbus_Server in Communication Type. Only the matching role settings are shown. TCP host/port appear only for TCP connections; COM/baud/parity/data/stop/RTS/DTR appear only for RS232 or RS485. The poll interval appears only for the client; table size appears only for the server. Other modes hide all Modbus settings. Disconnect before editing connection settings or switching roles. Run separate simulator copies for a client and a server.

PropertyUse
Modbus connectionTCP, RS232 or RS485. Serial requires appropriate hardware; RS485 adapters must provide automatic direction control.
Modbus framingTCP is standard MBAP framing. RTU/ASCII are serial formats; selecting either with TCP explicitly creates a raw gateway tunnel.
Modbus host / bind IPClient: remote host. Server: local bind IP; 127.0.0.1 is local only, 0.0.0.0 listens on all interfaces.
Modbus TCP portTCP port 1–65535; standard Modbus TCP normally uses 502.
Modbus COM portSerial port for this Modbus endpoint, such as COM1.
Modbus baud rateSerial baud rate, 300–4000000; the adapter must support the chosen value.
Modbus data bitsRTU requires 8; ASCII permits 7 or 8.
Modbus paritySerial parity, normally Even.
Modbus stop bitsSerial stop bits; normally one with parity or two without parity.
Modbus RTS enableStatic RTS line level; use an RS485 adapter with automatic direction control.
Modbus DTR enableStatic serial DTR line level.
Modbus unit IDSerial 1–247, TCP 0–255. Serial unit-zero broadcast writes are a separate explicit client action.
Modbus timeout (ms)Whole-frame/request response deadline, 50–60000 milliseconds.
Modbus poll interval (ms)Client read-poll interval, 50–3600000 milliseconds. Writes are manual.
Modbus table sizeServer addresses in each of the four independent areas, 1–65536. Existing runtime values survive resizing within range.
Choose connection and framing

TCP + TCP is standard Modbus TCP. RS232/RS485 + RTU or ASCII is serial Modbus. TCP + RTU/ASCII is a raw tunnel for a matching gateway. Selecting serial automatically replaces TCP framing with RTU; its framing dropdown offers only RTU and ASCII. Defaults are localhost:502 and unit 1. Locally edited server initial values persist; remote writes are transient. Changing modes does not erase the saved client or server connection configuration.

Network endpoints

TCP client and listener

Replace whichever endpoint is missing: the application that initiates the session, or the server that waits for it.

Choose client or listener

TCP_Client initiates a connection to IP Address and Port under TCP Settings. TCP_Server waits locally on Port; point the external client at the simulator PC's reachable address. An IP of 127.0.0.1 reaches the same computer only.

  1. Identify which endpoint is the client. Start the server/listener before the client connects.
  2. Choose a reachable IP and the correct service port. Match the application protocol's message boundaries; TCP is a byte stream, not one message per network packet.
  3. Connect and send one known request. Verify the peer's reply rather than treating an open socket as proof that the protocol works.
  4. Use TCP Settings' Auto Disconnect Time when you intentionally want an idle session to end; review it if unexpected disconnects occur.
Common use cases · Replace a server or test a live service

Build a fake instrument server

Choose TCP_Server and create a table of documented request/reply pairs. Configure your client application to connect to the simulator instead of the instrument. Start with a few startup requests and a clear fallback response, then add state and random readings.

Check a device independently of its application

Choose TCP_Client and send the device's query from the simulator. If the device responds here, compare the application's framing, encoding, and connection lifecycle with the working exchange.

Connection refused versus timed out

Refused often means nothing is listening on that address/port. A timeout can indicate routing or firewall filtering. Use Network Ports / NetStat to inspect local listeners, then check the remote endpoint independently.

Back to TCP, UDP & network capture · All chapters

Property grid reference

TCP Settings

When you select this group: TCP_Client makes an outgoing connection to the configured remote IP address and port. TCP_Server accepts an incoming connection on the configured local port. Nickname labels the peer; the inactivity timeout controls automatic disconnection.

Choose the TCP peer or listening endpoint.

Shown in: TCP_Client and TCP_Server; Auto Disconnect Time (ms) is listener-only.

GUI itemMeaning, use, and interactions
NicknameGive the TCP peer a useful display name, such as InstrumentServer. It labels traffic without changing DNS, routing, or the peer’s identity.
IP AddressIn TCP_Client, enter the server IP address or hostname. Use 127.0.0.1 for a peer on the same PC; for another machine use a reachable LAN address. This setting is not the listener’s remote-client allowlist.
PortIn TCP_Client this is the remote server port; in TCP_Server it is the local listening port. Match the client destination to the listener. A port already owned by another application cannot be used as a second listener.
Auto Disconnect Time (ms)TCP_Server can close an idle connection after this many milliseconds without received data. Use to recover from a silent client; this item is hidden in TCP_Client. Zero disables the idle-disconnect timer. Choose a limit longer than legitimate quiet periods.
Common use case · Put these settings together

For a two-instance local test, listen on port 10000, then connect to 127.0.0.1:10000. Confirm a complete parsed message after connecting.

See the related workflow guide for the surrounding procedure and examples.

Back to TCP, UDP & network capture · All chapters

Network proxy

TCP MITM: one listener, one onward connection

Inspect a real client/server conversation by making the simulator an explicit proxy.

Client connects to the simulator listener; a separate onward connection reaches the server.
TCP MITM: an explicit proxy with a local listener and an onward server connection. Conceptual topology, not an electrical pinout.

Configure the proxy endpoints

Choose TCP_MITM. Under MITM Settings, Device 1 Port is the simulator's local listener. Device 2 IP Address and Device 2 Port identify the real server. The host listens first and opens the onward connection when the client connects. Errors in the Message Window identify Device 1 listener or Device 2 destination separately. If the local listener cannot open, the simulator also attempts a diagnostic connection to Device 2, reports its failure or reachability, and closes the diagnostic connection.

This reports both failures on the same attempt without claiming that the MITM session was established. After correcting the endpoints, retry Connect. One network adapter can serve both sockets if routing permits; two physical Ethernet ports are not inherently required.

  1. Leave the real server running. Set Device 2 to its actual address and service port.
  2. Choose an unused local Device 1 Port, for example 10000. Set meaningful Device 1/2 nicknames.
  3. Point the client at the simulator PC and Device 1 Port, rather than directly at the server.
  4. Connect the simulator, then connect the client. Confirm the onward connection and a request/reply in both directions before adding scripts or injected messages.

Route manual sends

This is an application proxy, not ARP spoofing or automatic traffic redirection. Normal manual sends target Device 2; Ctrl-send targets Device 1. Encrypted traffic does not become readable merely because it passes through a proxy; no TLS decryption feature is documented here.

Common use cases · Find a mismatch between working endpoints

Compare what the client sends with the server manual

The client connects, but a command fails. Inspect exact bytes, order, and terminators while the simulator forwards the normal exchange. This can reveal a missing CR/LF, an unexpected startup query, or a retry arriving before a reply.

Move the client back afterward

Record the original server address before changing client configuration. When the experiment ends, reconnect the client directly to that original address. The simulator must remain running for the proxy route to work.

Validate a setup without hardware

Use three controlled endpoints: a test client, the simulator proxy, and a test listener. Distinct local listener ports avoid binding conflicts. This demonstrates routing behavior without qualifying real equipment.

Which device are we waiting for?

Waiting messages identify the configured nickname and endpoint. For example: Waiting for incoming TCP connection from Device 1 (Controller) on local port 10000... means the simulator is listening for the client. After the client connects, Waiting for outgoing TCP connection to Device 2 (Instrument) at 192.0.2.10:10001... identifies the server connection being attempted. With a blank nickname, the Device 1 or Device 2 label still identifies the side. The outgoing message also appears for a destination diagnostic after a listener failure.

Send from a script to either MITM device

Helpers.SendMessageToDevice(1, Helpers.StringToByteArray("STATUS?"), true);
Helpers.SendMessageToDevice(2, new byte[] { 0x01, 0x02 }, false);

Device 1 and Device 2 correspond to the MITM settings. This helper works only in Serial MITM, TCP MITM or UDP MITM and requires the selected side to be open/connected. true adds that side's send terminators; false uses the supplied bytes without adding terminators. Normal outgoing-byte manipulation still runs. Invalid device numbers, null bytes, another mode or a closed endpoint throw an error. Helpers.SendMessage keeps its existing primary-handler route; use SendMessageToDevice to select a side explicitly.

A command-button function can accept typed arguments:

public void Inject(int device, string text) {
    Helpers.SendMessageToDevice(device, Helpers.StringToByteArray(text), true);
}
// Command Send Text: Script.Inject(1, "STATUS?")
// Command Send Text: Script.Inject(2, "START")

Prevent recursive sends

SendMessage, SendMessageToDevice, SendCanMessage and RepeatCurrentSendBoxValue reject synchronous nested calls and calls made inside SendBoxConverter, SendingBytesManipulationScript or MessageWindowConverter. A raw Script send blocked diagnostic appears in the Message Window and InvalidOperationException is raised. Converter callbacks should return converted bytes/text instead of starting a new send. An uncaught blocked call follows the callback's normal fallback; catch the exception inside the converter if you need to finish your conversion. Ordinary command functions and receive callbacks may send. Keep them short.

The guard resets after exceptions so later legitimate sends work. It protects simulator send re-entry, not arbitrary recursion within user code, delayed/background sends or device-response feedback loops. For response-driven scripts, match only intended requests and bound retries/rates; do not blindly send on every received message.

Back to TCP, UDP & network capture · All chapters

Property grid reference

MITM Settings

When you select this group: TCP MITM places the simulator between a client (Device 1) and a server (Device 2). Device 1 Port is the simulator's LOCAL listening port: configure Device 1 to connect to the simulator's IP and this port. After accepting Device 1, the simulator makes an OUTGOING connection to Device 2 IP Address and Device 2 Port; Device 2 must listen there. The two port numbers may differ. Nicknames label the two peers. Both sides must succeed for forwarding; endpoint failures are reported separately.

Configure a local client-facing listener and an onward connection to the real server.

Shown in: TCP_MITM.

GUI itemMeaning, use, and interactions
Device 1 NicknameLabel the client-facing participant. Use a name such as Controller to distinguish it from the real server in forwarded traffic.
Device 1 PortLocal port on which the simulator accepts Device 1’s client connection. Point the client at the simulator’s IP and this port; a proxy cannot observe a client that still connects directly to the server.
Device 2 NicknameLabel the server-facing participant, for example Instrument. This makes the two sides of the inline route distinguishable in the log.
Device 2 IP AddressEnter the real server’s reachable IP address. The simulator connects onward to this host; avoid pointing back to its own listening endpoint and creating a loop.
Device 2 PortEnter the real server’s service port. It can differ from the local client-facing listen port. Establish plain forwarding before adding heartbeat or scripted behavior.
Common use case · Put these settings together

Point the client at the simulator listen endpoint, then point Device 2 settings at the real server. Prove forwarding before adding behavior.

See the related workflow guide for the surrounding procedure and examples.

Back to TCP, UDP & network capture · All chapters

Datagrams

UDP: receive here, send there

Exercise discovery, telemetry, and command protocols that exchange datagrams without a TCP session.

Configure local and remote endpoints

Choose UDP. Configure the local receive port and Local Adapter IP separately from the remote destination address and destination port. The local address chooses the interface; 0.0.0.0 lets the OS choose as described by the settings. A successful send does not confirm delivery or a reply.

Identify datagram addresses

Enable Print Sender IP, Print Local Adapter IP, or Print Destination IP when diagnosing multihomed PCs, broadcast, or multicast traffic. These show which address participated, rather than relying only on a friendly nickname.

Common use cases · Discovery versus a directed query

Verify a single peer first

Use a known unicast address and agreed ports to establish a controlled exchange. Then introduce the protocol's broadcast or multicast behavior. Match receive framing to the protocol; datagram boundaries and application message boundaries are not always the same thing.

Replies arrive on the wrong adapter

On a PC with Ethernet, Wi-Fi, and virtual adapters, inspect the displayed local adapter and destination IP. Choose the intended adapter and review routing/firewall rules before changing message content.

One-way telemetry

Set the receive endpoint to the sender's target port and watch its periodic datagrams. Do not expect an acknowledgement unless the application protocol defines one.

Back to TCP, UDP & network capture · All chapters

Property grid reference

UDP

When you select this group: Configure the remote destination IP and destination port separately from the local receive port. Local Adapter IP selects the local interface (0.0.0.0 lets Windows choose). IP Mask is the destination address, not a subnet mask. UDP has no connection handshake; sender, local adapter and destination address reporting help identify datagrams.

Separate the remote destination from your local receive endpoint and label packet addresses.

Shown in: UDP.

GUI itemMeaning, use, and interactions
NicknameLabel the UDP peer in the message window. For multiple senders, also show sender IP so a shared nickname does not obscure which device sent a datagram.
IP MaskDespite the GUI name IP Mask, this is the destination IP address, not a subnet mask. Enter a unicast peer address or 255.255.255.255 for broadcast when the protocol calls for it. Broadcast delivery depends on adapter and network policy.
Port (Destination)Remote UDP port to which messages are sent. Match the receiving application’s bound port; it need not equal your local receive port.
Port (Receive)Local UDP port on which replies or unsolicited datagrams arrive. Tell the peer to send to this port; UDP has no TCP-style session handshake confirming a listener.
Local Adapter IPBind sending/receiving to a specific local network adapter IP on a multi-NIC PC. Use 0.0.0.0 to let Windows choose rather than entering the remote device’s address.
Print Sender IPInclude the actual sender IP in received headers. Useful for broadcast discovery and multiple devices replying to the same local port.
Print Local Adapter IPInclude the receiving adapter’s IPv4 address. Use to identify which local interface received traffic when several NICs are active.
Print Destination IPShow the packet’s actual destination, including broadcast/multicast addresses; outgoing messages show the configured destination. Use with sender and local-adapter fields to distinguish all three addresses.
Common use case · Put these settings together

For broadcast discovery, inspect sender, local adapter, and actual destination addresses independently; a broadcast destination is not the responding device address.

See the related workflow guide for the surrounding procedure and examples.

Back to TCP, UDP & network capture · All chapters

Network workflow

UDP Multicast

Select UDP_Multicast for group-based IPv4 datagrams. Ordinary UDP retains its simpler settings. Configure the adjacent UDP Multicast section while disconnected.

  1. Choose Operation: ReceiveOnly (default), SendOnly or SendAndReceive.
  2. Set Group Address (for example 239.255.0.1) and Group Port. The group is the destination, not your adapter IP.
  3. Select Interface IP for the local adapter, or 0.0.0.0 to let Windows choose. Explicit selection helps with multiple adapters/VPNs.
  4. Connect joins the group for receiving operations. SendOnly opens a sender with an ephemeral source port, without joining or receiving.
  5. Use the normal Message Window send box, commands or AI sends only in sending operations. ReceiveOnly blocks script/auto-response sends too. Each received datagram is one message (Packet); send converters and configured send terminators still apply.
  6. Disconnect closes the socket, leaves memberships and releases the port. It does not change Windows proxy, certificates or firewall rules.
OperationBehavior
ReceiveOnlyJoin and listen; Send and Repeat controls are disabled. No multicast transmission.
SendOnlySend to the group without joining or receiving.
SendAndReceiveJoin, receive and send to the same group/port.

Message Window headers include Sender, Group and Adapter. AI/MCP uses reviewed propose_settings for UDP_Multicast_* fields, connection_status for separate sendReady/receiveReady, traffic for raw packet metadata, and message_window for decoded bodies plus open/close/errors. Open means the local socket is ready; UDP does not acknowledge delivery.

Troubleshoot multicast reception

Check that the group/port/interface match the sender. Enable Local Loopback for same-machine tests and Share Receive Port for multiple local listeners. TTL defaults to 1 (local subnet); 0 is host-only. Firewall, VPN routing, IGMP snooping and routers can affect multicast. Verify real packets before assuming a remote peer is present. IPv4 any-source multicast only; IPv6 and source-specific membership are outside this feature. Payloads cannot exceed 65507 bytes including send terminators. Unicast and other groups arriving on the same port are excluded.

Settings reference

UDP Multicast

Only visible for UDP_Multicast. Transport settings are locked while connected; disconnect before editing. ReceiveOnly is the default and prevents every send path. Receive detection is always Packet. Regular UDP settings remain independent.

SettingMeaning
OperationReceiveOnly joins and receives without transmitting. SendOnly sends without joining. SendAndReceive joins and can send to the same group. Disconnect before changing.
Group AddressIPv4 multicast group to join and/or send to (224.0.0.1-239.255.255.255). Default 239.255.0.1 is administratively scoped. This is not a local adapter address.
Group PortUDP destination and receive port for this group, from 1 to 65535. SendOnly uses an ephemeral local source port.
Interface IPIPv4 address of the local adapter used to join and send multicast. Use 0.0.0.0 for OS selection. Select an explicit interface on machines with multiple adapters or VPNs.
Time To Live (TTL)Multicast hop limit for sending, 0-255. Default 1 stays on the local subnet; 0 stays on this host. Has no effect on ReceiveOnly.
Local LoopbackWindows receive option: allow this socket to receive multicast sent by any process on this machine. False suppresses same-host reception, including own sends. No effect in SendOnly. Default true.
Share Receive PortAllow multiple multicast receivers to bind this group port. Default true. Does not affect SendOnly. Unicast data sent to this port is ignored.
NicknameName for received multicast messages in the Message Window; sender, group and receiving interface are also shown.
Choose the right addresses

Group Address is a multicast destination (224.0.0.1-239.255.255.255). Interface IP is your own IPv4 adapter address; 0.0.0.0 selects automatically. Group Port is shared by sending and receiving operations. SendOnly chooses an ephemeral source port. The settings persist in the normal simulator XML; opening a saved file does not join or send until Connect.

Connect and observe

UDP MITM: forward between two devices

Place two local UDP sockets between two fixed unicast IPv4 devices and observe their traffic in both directions.

  1. Select UDP_MITM under Communication Type. Open UDP MITM Settings.
  2. For each device, choose a simulator Local IP / Local Port and the peer's IP Address / Port. Configure each device to send from its configured peer port to its corresponding simulator local port.
  3. Connect. Both local sockets must open before forwarding starts. Errors identify both failing sides and nicknames; a partial open rolls back the pair.
  4. Observe traffic in the Message Window, record logs, or use Auto Response rows with empty replies to parse variables. Disconnect before changing endpoints; nicknames can change while open.
Loopback exampleDevice 1Device 2
Simulator local socket127.0.0.1:10000127.0.0.1:10002
Device socket127.0.0.1:10001127.0.0.1:10003

Each device sends to its simulator socket; forwarded traffic emerges from the opposite simulator socket and goes to the opposite device. Each received datagram forwards unchanged, including its boundary and any empty payload. Forwarding precedes message detection, filtering and scripts; those features cannot suppress or rewrite data already forwarded. Selecting this mode initially uses Packet detection for one report per datagram.

Normal Send, commands, sequence sends and heartbeat traffic target Device 2. Ctrl+Send targets Device 1. Manual sends use configured send terminators; forwarded datagrams do not. Auto Response replies return to the side that supplied the message, adding traffic alongside forwarding.

UDP has no connection handshake or delivery guarantee. Ready means the two local sockets opened, not that either peer answered. Only the configured source IP and port are accepted on each side. There is no address learning, broadcast, multicast or multi-client routing. Avoid pointing a device endpoint at a proxy port.

Reporting runs on separate ordered workers with a pending limit of 4,096 datagrams or 16 MiB per side. If slow scripts or rendering fill a reporting queue, both sides close with an explicit error. Existing message/log history keeps its original nicknames. Direct AI/MCP device control still excludes MITM modes.

Common use case

Set both devices to use stable source ports. Enable Auto Respond with RegEx captures and blank Response Message cells to update local variables while traffic passes through. Open Strip Chart to watch numeric values. Packet detection follows datagram boundaries; alternative framing changes reports without gating forwarding.

Send from a script to either MITM device

Helpers.SendMessageToDevice(1, Helpers.StringToByteArray("STATUS?"), true);
Helpers.SendMessageToDevice(2, new byte[] { 0x01, 0x02 }, false);

Device 1 and Device 2 correspond to the MITM settings. This helper works only in Serial MITM, TCP MITM or UDP MITM and requires the selected side to be open/connected. true adds that side's send terminators; false uses the supplied bytes without adding terminators. Normal outgoing-byte manipulation still runs. Invalid device numbers, null bytes, another mode or a closed endpoint throw an error. Helpers.SendMessage keeps its existing primary-handler route; use SendMessageToDevice to select a side explicitly.

A command-button function can accept typed arguments:

public void Inject(int device, string text) {
    Helpers.SendMessageToDevice(device, Helpers.StringToByteArray(text), true);
}
// Command Send Text: Script.Inject(1, "STATUS?")
// Command Send Text: Script.Inject(2, "START")

Prevent recursive sends

SendMessage, SendMessageToDevice, SendCanMessage and RepeatCurrentSendBoxValue reject synchronous nested calls and calls made inside SendBoxConverter, SendingBytesManipulationScript or MessageWindowConverter. A raw Script send blocked diagnostic appears in the Message Window and InvalidOperationException is raised. Converter callbacks should return converted bytes/text instead of starting a new send. An uncaught blocked call follows the callback's normal fallback; catch the exception inside the converter if you need to finish your conversion. Ordinary command functions and receive callbacks may send. Keep them short.

The guard resets after exceptions so later legitimate sends work. It protects simulator send re-entry, not arbitrary recursion within user code, delayed/background sends or device-response feedback loops. For response-driven scripts, match only intended requests and bound retries/rates; do not blindly send on every received message.

Back to TCP, UDP & network capture · All chapters

Property grid reference

UDP MITM Settings

Configure both simulator sockets and their fixed device peers.

Local addresses and ports belong to the simulator; remote device addresses and ports belong to the devices. Devices must send from their configured ports. Both sockets bind before forwarding begins. Datagram bytes and boundaries are preserved independently of message reporting. Endpoint changes require Disconnect; nicknames update subsequent messages live. UDP ready does not establish remote reachability. See UDP MITM setup and example.

PropertyMeaning
Device 1 NicknameDisplay name of Device 1 in new messages and logs. Can be changed while open.
Device 1 Local IPLocal IPv4 interface on the simulator facing Device 1. 0.0.0.0 binds all interfaces.
Device 1 Local PortLocal UDP port on the simulator facing Device 1. Configure the device to send to this port. Range 1-65535.
Device 1 IP AddressUnicast IPv4 address of Device 1. Only datagrams from this address and its configured port are forwarded.
Device 1 PortUDP port on Device 1, used as both its source port and the destination for forwarded datagrams. Range 1-65535.
Device 2 NicknameDisplay name of Device 2 in new messages and logs. Can be changed while open.
Device 2 Local IPLocal IPv4 interface on the simulator facing Device 2. 0.0.0.0 binds all interfaces.
Device 2 Local PortLocal UDP port on the simulator facing Device 2. Configure the device to send to this port. Range 1-65535.
Device 2 IP AddressUnicast IPv4 address of Device 2. Only datagrams from this address and its configured port are forwarded.
Device 2 PortUDP port on Device 2, used as both its source port and the destination for forwarded datagrams. Range 1-65535.
Common use case

For a controller on port 10001 and instrument on port 10003, use simulator local ports 10000 and 10002. Configure each device to send to its own simulator-facing port. Check both addresses and source ports before Connect.

Back to TCP, UDP & network capture · All chapters

Observe the network

Ethernet sniffing: visibility comes first

Observe traffic between existing endpoints without making the simulator the forwarding path.

Client and server communicate through a switch. A mirror port or tap supplies a copy of traffic to the simulator PC.
Passive LAN observation: the simulator receives mirrored traffic and does not forward the original conversation. Conceptual topology, not an electrical pinout.

Choose capture filters

Choose Ethernet_Sniffer with Raw decoding, configure Device1/Device2 IPs, source/destination filters, Port, and Transport Filter, then select the capture adapter when connecting. A compatible packet-capture runtime is required; deployment prerequisite guides describe the external driver setup.

Make the traffic visible

A normal switched-network port usually does not receive other hosts' unicast conversation. Use an appropriately configured switch mirror/SPAN port or network tap when observing two other devices. The illustration above shows the passive mirror/tap path.

  1. Confirm the traffic is visible to the adapter before narrowing filters. Verify the mirror source and destination direction on the switch.
  2. Choose the actual capture adapter, then the endpoint addresses and TCP/UDP protocol appropriate to the exchange.
  3. Exercise one action on the real controller and identify both directions by source address/nickname.
  4. Review payloads alongside connection indicators. Show Pings and Show SYN/ACK/FIN can help distinguish reachability and connection lifecycle from application data.

EtherCAT availability

EtherCAT is documented separately under initial passive capture and recording; variable reconstruction remains planned.

Common use cases · Observe without changing endpoint settings

Find repeated reconnections

Watch TCP lifecycle traffic and application payload together. Repeated connection attempts with no useful replies suggest a different problem from a stable session that receives protocol errors.

An empty capture is not proof of silence

Check the adapter, mirror/tap configuration, protocol, IP addresses, and port filters. Also consider encryption. The absence of displayed traffic can be a visibility or filtering problem.

Why no Auto Response?

Serial and LAN sniffer modes intentionally suppress Auto Response replies. Use an endpoint or MITM role when your test requires the simulator to transmit.

Back to TCP, UDP & network capture · All chapters

Timeout message detection in both directions: Receive Timeout measures the silence since the last payload from each source IP separately. Device 1 and Device 2 have independent timeout buffers and timers, so overlapping traffic cannot combine their timeout messages and continuous traffic from one device does not delay the other. Fragments from the same source join in capture order; each emitted message retains that source's nickname, addresses, ports and last payload timestamp.

TCP ACK/SYN/FIN display entries do not join or reset the pending payload. This is source-based framing, not TCP stream reassembly: multiple connections from the same source IP share its timeout buffer, and missing/reordered/retransmitted captured packets are not repaired. Other termination modes retain their existing behavior.

LAN sniffer retains its single DATA IN BUFFER diagnostic button. With Timeout detection it includes pending bytes from both sources; dumping clears both pending timeout buffers so those bytes cannot reappear later. Stop/disconnect and changing termination mode discard pending timeout state. Dumping affects reporting only and transmits nothing.

Property grid reference

Ethernet IP Filter

When you select this group: Passively capture traffic on the selected adapter using the two device IP addresses and source/destination filters. Nicknames identify peers in the Message Window. Capture requires traffic to reach that adapter, typically through a mirrored switch port or hub; this mode does not create a TCP MITM listener or onward connection.

Choose visible participants, service ports, protocol, and capture presentation.

Shown in: Ethernet_Sniffer with Raw decoding.

GUI itemMeaning, use, and interactions
Device1 IPIP address of observed participant 1. Use the actual address in captured traffic to focus the conversation; this does not assign an address to your PC or redirect packets to it.
Device1 NicknameReadable label for observed participant 1. Use role names such as Controller or Instrument to follow direction without memorizing addresses.
Device1 as SourceInclude traffic sent from participant 1. Use with destination flags to include the required direction; overly restrictive flags can make a working conversation appear incomplete.
Device1 as DestinationInclude traffic sent to participant 1. Enable the complementary direction when troubleshooting both requests and replies; these are capture-selection settings rather than firewall rules.
Device2 IPIP address of observed participant 2. Use the actual address in captured traffic to focus the conversation; this does not assign an address to your PC or redirect packets to it.
Device2 NicknameReadable label for observed participant 2. Use role names such as Controller or Instrument to follow direction without memorizing addresses.
Device2 as SourceInclude traffic sent from participant 2. Use with destination flags to include the required direction; overly restrictive flags can make a working conversation appear incomplete.
Device2 as DestinationInclude traffic sent to participant 2. Enable the complementary direction when troubleshooting both requests and replies; these are capture-selection settings rather than firewall rules.
PortRestrict capture to the relevant service port. Use the server’s port to focus a conversation, then enable source/destination matching as needed for replies and requests.
Port as SourceInclude matching source-port traffic, normally server replies when filtering on the server’s service port. Disabling it can hide half the exchange.
Port as DestinationInclude matching destination-port traffic, normally requests to the server’s service port. Enable both directions when diagnosing a request/reply conversation.
Transport FilterChoose TCP or UDP to match the observed protocol. UDP datagrams and TCP streams have different boundaries; selecting a protocol does not create visibility on a switched network.
Show PINGsDisplay ICMP ping activity to help relate reachability checks to application traffic. A successful ping does not prove that the application service accepts connections.
Show Syn, Ack, FinDisplay TCP control traffic for connection setup, acknowledgements, and closing. Useful when distinguishing failure to connect from a connected session with no payload; it can add substantial noise.
Packet LoggingChoose the packet endpoint logging option when investigating IP/port selection. Use to identify what the capture interface actually sees before narrowing filters; packet metadata is different from a fully parsed application message.
Common use case · Put these settings together

Use a suitable mirror/tap feed, select the correct local adapter, and include both request and reply directions before tightening filters.

See the related workflow guide for the surrounding procedure and examples.

Back to TCP, UDP & network capture · All chapters

Ethernet Capture

Choose Ethernet_Sniffer and a Decode Protocol. Raw is the default. Old LAN_Sniffer files open as Raw; old EtherCAT_Sniffer files select EtherCAT and retain their adapter/ESI settings; the old EtherCAT adapter is migrated into the shared Local Adapter IP field. Only EtherCAT selection exposes EtherCAT Sniffer Settings. Shared capture settings stay above protocol settings.

Decode ProtocolRaw, EtherCAT or Modbus_TCP. Select while disconnected. EtherCAT captures Ethernet frames directly; TCP/UDP filters apply to IP traffic only. Modbus TCP uses its own server-port/IP filter and forces TCP capture regardless of the saved raw Transport Filter.
Local Adapter IPPrefer the local capture adapter with this IP, suppressing the adapter picker when found. Use on multi-NIC PCs to repeat a test on the intended interface; it does not configure mirroring or make unseen traffic visible.
Capture an existing Modbus TCP conversation

Select Modbus_TCP, set Server Port (default 502), optionally Server IP, and choose the mirrored/tapped adapter. Use the main toolbar to start. Open Windows → Modbus Sniffer for values. This is passive observation and does not create a client/server connection. Existing raw message framing remains separate from the incremental decoder.

Back to TCP, UDP & network capture

Serial Sniffer

Decode ProtocolRaw (default), Modbus_RTU or Modbus_ASCII. Observe requests and replies on separate supported passive channels; select Client Serial Channel to match the wiring. An ordinary single COM port does not provide both directions automatically.
Prepare serial decoding before hardware is available

Set both serial ports and framing while disconnected. Choose RTU or ASCII and assign the client channel. Offline replay fixtures validate parsing, not physical wiring or device compatibility. Windows receive timestamps do not establish per-byte RTU silent intervals; physical serial acceptance remains pending.

Back to Serial connections

Modbus Sniffer

Server PortObserved TCP service port, 1–65535; default 502. No socket is opened.
Server IPOptional server IP filter. Empty accepts any server on the configured port.
Client Serial Channel1 is the primary COM port, 2 the secondary. The other passive channel carries server responses.

The dockable Modbus Sniffer window has a flow/unit filter, search, pause-view toolbar icon, Plot selected values and Export transactions. Select rows with Ctrl/Shift to add client/server channels to the existing Strip Chart. Plotting creates no runtime variables. Activity appears in Communications Output and follows its recording switch. CSV exports the latest 10000 retained transactions. Values retain up to 4096 addresses across 128 active flows; overflow and capture gaps are reported. Chart limits remain unchanged.

Supported passive functions: 01–06, 0F and 10. Addresses are zero-based; bits and unsigned 16-bit registers are shown without guessing 32-bit/float layouts. Read requests contain addresses/counts, not values. Client writes and server observations remain separate. A write acknowledgement is not independent read-back. Exceptions, orphan responses, timeouts and stale/capture-stop quality remain explicit, with UTC timestamps and age. TCP decoding reassembles split/coalesced payloads with bounded retransmit/reorder handling; packet loss cannot be repaired. CRC/LRC validates serial candidates, but does not prove full timing conformance.

Inspect an exception or missing reply

Use Communications Output for the transaction result. The table retains the previous valid value with its timestamp and changed quality; no zero value is invented. An orphan read response cannot populate addresses without its request. Stop capture from the main toolbar before changing settings.

Back to TCP, UDP & network capture

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add selected client-requested and server-observed values to Strip Chart. No runtime variables are created.
  • Export the latest 10000 retained Modbus transactions as CSV, including exceptions, timeouts and orphan replies.
  • Filter latest values by captured connection/session and unit. All flows shows every retained unit.
  • Latest captured Modbus values. Client writes and server observations are separate. Write acknowledgement is not read-back. Select rows with Ctrl or Shift to plot.
  • Open passive Modbus values. Select Ethernet or Serial Sniffer and its Decode Protocol in the main settings; use the main toolbar to start capture.
  • Pause the latest-value view. Passive decoding, transaction logging and selected plots continue.
  • Search latest Modbus values by flow, unit, area, address or quality.
Window guide

Pick Network Adapter

Choose the local interface used for packet observation when adapter selection is required.

ControlHow and why to use it
Network adapter drop-downChoose the interface description/IP that corresponds to the observed link.
OKReturn the selected adapter to the connection workflow.
Cancel / closeDismiss without choosing an adapter.
Common use case

Select the wired adapter connected to a mirror port or network tap. Choosing an adapter does not configure switch mirroring or make unrelated switched traffic visible; see Ethernet sniffing topology.

Back to TCP, UDP & network capture · All chapters

Window guide

Packet capture driver setup

When starting LAN or EtherCAT sniffing, the simulator checks whether a compatible packet-capture runtime can load. If not, capture stays stopped and this setup dialog appears. Ordinary TCP/UDP and the HTTP Web Sniffer do not need this driver.

Install separately

Open Npcap download opens the official Npcap download page in your normal browser. Download the Windows installer, not the SDK. Run it yourself with administrator approval if requested and review the vendor license and installation limits. Restart the simulator afterward, and restart Windows if requested by the installer. The application does not download, run, bundle or silently install the driver.

Buttons and existing installations

Close or Escape dismisses these instructions and leaves packet capture stopped. The instructions stay open after opening the website. If Npcap is already installed, check or repair the installation and capture-access permissions; runtime load failure does not prove the driver is absent. A working capture runtime with no available adapters is a separate adapter/topology issue and does not trigger this missing-runtime prompt.

Common use cases · New or offline sniffing PC

On a new PC, attempt to start Ethernet sniffing and follow the setup link if the capture runtime is unavailable. For an offline PC, use another connected PC to obtain the official installer and transfer it before installing. Driver changes affect Windows; follow vendor-supported uninstall/rollback independently of simulator updates. No capture or hardware qualification follows from installation alone.

Back to TCP, UDP & network capture · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Close these instructions and leave packet capture stopped.
  • Open the official Npcap download page in your browser; no installer is downloaded or run by the simulator.

CAN buses & signals

CAN buses & signals

Set up the adapter and channels, then receive, transmit, decode, and measure CAN traffic.

In this chapter · 8 guides
CAN workflows

CAN: frames, signals, and live statistics

Experimental A2L / passive CCP and XCP

Each channel descriptor accepts DBC or A2L; choose a different file per session. Load the matching ECU A2L before connecting and listen to both directions before CCP/XCP measurement setup, including CONNECT, DAQ configuration and start. A2L supplies names, units and scaling; acknowledged setup supplies the packet layout. Late capture cannot reconstruct a dynamic layout from data alone. Reconnect, file replacement and Refresh descriptors discard learned A2L mappings. Clearing Receive rows retains them.

Expand Receive measurements, use Add to Watch, assign a variable and choose it in the chart channel browser. Inactive or unavailable measurements do not overwrite Watch variables; charts may retain the last valid value. No ECU commands are sent by this decoder. Only scalar classic-CAN DAQ, absolute byte PIDs, byte entries and supported linear conversions are implemented. Polling, timestamps, relative IDs, static/resumed layouts, packed/STIM/PID-off modes, vendor IF_DATA, includes and multi-MODULE files are outside this initial scope. Receive Notes identifies missing setup and unsupported definitions. Real-file and real-device verification is pending; synthetic fixtures do not qualify CCP/XCP interoperability. See the CAN guide for exact scope.

Adapter discovery

The CAN selector lists available adapters without warnings for other brands whose optional drivers are not installed. Install the driver/API for your adapter only. A listed adapter confirms discovery; Connect and observed CAN traffic are separate checks.

Exercise classic CAN traffic and interpret it using the selected adapter, channel settings, and optional DBC data.

  1. Choose CAN and explicitly select an available provider/device. Install the vendor's supported x64 driver/API separately if required.
  2. Enable only the channels you intend to use and match the bus bitrate. A single-channel adapter cannot transmit saved channel-two rows.
  3. Load a DBC descriptor when you want signal interpretation. Validate identifiers and payloads independently of the decoded labels.
  4. Connect, inspect CAN Receive, then test a controlled transmit row. Driver acknowledgement, rather than enqueue alone, supplies Tx rows.
  5. Use Signal Watch and Bus Statistics for observation. Reset statistics when starting a clearly defined measurement interval.

Vector: Driver Setup versus XL Driver Library

These are separate packages. Vector Driver Setup installs the hardware drivers used by Windows and Vector Hardware Config. The XL Driver Library supplies the application API used by this simulator to discover CAN channels and communicate with the VN1630A. For the 26.30 generation, the packages are Driver Setup 26.30.0 and XL Driver Library 26.30.16; the version numbers describe different components. Install supported x64 components using Vector's instructions. See Prerequisites/Vector-CAN.txt beside the simulator executable for download guidance.

VN1630A appears in Hardware Config, but the simulator CAN list is empty
  1. Confirm Vector Hardware Config shows available CAN channels, not only LIN.
  2. Check for C:\Windows\System32\vxlapi64.dll (use your Windows installation folder if different). The current simulator loads the x64 XL API specifically from the Windows system directory.
  3. If missing, check whether XL Driver Library is absent or installed elsewhere. A library in another folder is not found by the current loader. Follow Vector's installation/deployment instructions for its x64 runtime; downloading the package alone does not establish that the DLL is installed at the required location.
  4. Restart the simulator after correcting installation and try discovery again.

Hardware Config recognition confirms the hardware driver sees the device; it does not confirm that the simulator can load the XL API. An empty list alone does not identify the cause. A listed adapter confirms discovery, not bus activation or successful physical CAN traffic. Warnings for other brands' missing optional drivers are not shown.

Supported CAN adapter brands

The simulator currently includes providers for these four brands. Support is limited to the interfaces and capabilities described here; it does not imply that every model from a manufacturer is supported or physically qualified.

BrandImplemented adapter scopeCurrent observed status
Intrepid Control SystemsValueCAN 3 through the Intrepid provider; two-channel configurationValueCAN 3 discovery remains unresolved on the tested machine; physical traffic qualification remains pending.
KvaserCANlib provider; Leaf Light v2 is the observed adapter, exposing one channelBasic x64 physical classic-CAN receive/transmit traffic observed. Full hardware qualification remains pending.
VectorVN1630A through XL Driver Library; available CAN channels selected in pairsBasic x64 physical classic-CAN traffic observed on CAN 1/2. Full hardware qualification remains pending.
PEAK-SystemPCAN USB adapters through PCAN-Basic; each USB controller is offered separatelyPCAN-USB native discovery succeeds. Physical traffic qualification remains pending.

Install each manufacturer's supported x64 driver/API separately. Vendor drivers and installers are not bundled with the simulator. A listed provider, successful discovery, or automated fixture test is not proof of full hardware compatibility. See the CAN provider technical notes for channel identities, bitrate choices, prerequisites, and remaining acceptance checks.

Current scope is classic CAN: 11-bit/29-bit identifiers and up to eight data bytes. CAN FD/XL transmission and Vector LIN are not implemented. Supported providers include Intrepid, Kvaser, Vector VN1630A, and PEAK USB within their documented scopes.

Basic Kvaser/Vector x64 physical classic-CAN traffic has been observed. PEAK discovery succeeds but physical traffic remains pending; Intrepid ValueCAN 3 discovery remains unresolved. These observations are not full hardware qualification. See the technical notes for exact limits and prerequisites.

Common use cases · Separate frames from their interpretation

A signal looks wrong

Check the raw CAN ID, payload, channel, and DBC mapping before changing the transmit source. The wrong descriptor can produce a plausible-looking but incorrect decoded signal.

No acknowledgement

Check adapter availability, bus wiring/termination, enabled channel, bitrate, and another active node. An application accepting a transmit row does not prove that a physical bus acknowledged it.

Compare traffic before and after a change

Reset statistics at a known point and observe Rx/Tx rates and errors under the same test conditions. Statistics refresh while visible; a rate is not a substitute for payload correctness or timestamp qualification.

Reverse engineering: pause, select bytes, and Watch As

  1. In CAN Receive, click Pause. The tab says CAN Receive (paused) and the control changes to Resume. The window holds a copy of the current rows and payload bytes; the adapter continues receiving and other CAN views/statistics continue updating.
  2. Click the Data cell to activate its read-only text selection. Drag across complete byte values, including the separators between them. Hex data may use hyphens and a wider separator between groups of four bytes; select whole values rather than half a hex byte.
  3. Right-click the highlighted bytes. The Watch As: menu offers interpretations appropriate to the selected byte count, with numeric previews in brackets where available.
  4. Choose an interpretation to add a CAN Watch/Signal Watch entry for that message/channel and selected bit range. Open Windows → CAN Windows → Signal Watch to inspect it. The watch can follow live frames while the Receive snapshot stays frozen.
  5. Compare plausible interpretations with several known device states, then click Pause/Resume again to return CAN Receive to current live values.
Selected bytesWatch As optionsWhy try them?
1RawHex, RawDec, RawBin, Signed/UnSigned Byte 8, Ascii, and RawBit 1–8Find a small counter, signed offset, character, or individual status flag. RawBit 1 marks the least-significant bit; the menu’s X diagram shows the selected bit.
2Raw formats, Signed/UnSigned Word 16, Ascii; MSB/LSB variants where offeredCompare a two-byte measurement or counter in both byte orders.
4Raw formats, Float 32, Signed/UnSigned Integer 32, Ascii; MSB/LSB variantsDistinguish an IEEE floating-point measurement from a scaled integer.
8Raw formats, Float 64, Signed/UnSigned Integer 64, Ascii; MSB/LSB variantsInvestigate a double-precision value or wide counter.
Other lengthsRawBin and Ascii optionsInspect byte patterns or possible text; numeric options require their exact width.
Common use case · Determine a measurement’s byte order

With Settings → CAN Settings → Number format set to Hex, select 3F-80-00-00. Float 32 (MSB) previews 1. The LSB interpretation produces a different value. If the device is known to be reporting 1.0, MSB is a candidate; change the real measurement and compare several frames before deciding. For 01-00, an unsigned 16-bit interpretation is 256 in MSB order and 1 in LSB order.

MSB means the most-significant byte comes first; LSB means the least-significant byte comes first. Signed versus unsigned changes the numeric range, and a plausible value alone does not establish units, scaling, or a correct protocol mapping. Watch entries let you try the selected range with the available gain/offset settings as new frames arrive.

Pausing Receive freezes only the displayed sample, not the entire CAN system. It is not a complete frame recorder and does not retransmit data. Resume shows the latest live table rather than replaying every intervening frame. Clear while paused removes the frozen view only. The separate right-click menu on a row outside payload text offers Watch Message and DBC-derived signal choices when descriptors are available; highlighting payload bytes uses the byte-interpretation menu described here.

Send a CAN frame from a script

Helpers.SendCanMessage(1, 0x123, new byte[] { 0x01, 0x02 });
Helpers.SendCanMessage(2, 0x1ABCDE, new byte[] { 0x10, 0x20 }, true);

The signature is Helpers.SendCanMessage(int channel, uint id, byte[] data, bool extended = false). The first example sends a standard 11-bit ID on channel 1; the second sends an extended 29-bit ID on channel 2. Use CAN communication mode, select/configure an adapter, enable the requested channel and Connect first. Common.Utilities.SendCanMessage provides the same API. Payloads contain 0–8 bytes; the byte count is the DLC. Standard IDs range from 0 to 0x7FF; extended IDs range from 0 to 0x1FFFFFFF. Zero bytes are allowed.

These are single classic CAN data frames: no CAN FD, RTR transmission, auto-connect, repeat, text converters or serial/TCP send terminators. The existing provider worker validates channel availability/enabled state and sends through the selected adapter. Invalid input, wrong mode, a disabled/unavailable channel or a disconnected adapter raises an error. Provider enqueue success is not proof of bus transmission or acknowledgement; Tx display/statistics retain native echo/confirmation behavior.

For a Device Commands button, put this public function inside the active script class:

public void InjectCan(int channel, uint id, string hex, bool extended) {
    Helpers.SendCanMessage(channel, id, Helpers.HexStringToByteArray(hex), extended);
}
// Command Send Text: Script.InjectCan(1, 291, "0102", false)
// Command Send Text: Script.InjectCan(2, 1752286, "1020", true)

Command-button numbers are decimal JSON literals (291 is 0x123; 1752286 is 0x1ABCDE). Hexadecimal C# literals such as 0x123 are allowed in the Script Editor. SendCanMessage shares the synchronous recursion guard with SendMessage, SendMessageToDevice and RepeatCurrentSendBoxValue; calls from send-box/outgoing-byte/display converters are blocked with a visible diagnostic. Guard limits still apply to delayed sends and device-response loops. Physical qualification is separate from fixture tests.

Back to CAN buses & signals · All chapters

Window guide

Can Device Selector

Choose a discovered CAN adapter identity for the saved device configuration.

ControlHow and why to use it
Device list and statusInspect friendly device names and discovery status. Discovery refreshes automatically about every 1.5 seconds; there is no manual Refresh button.
Select / double-clickReturn the selected descriptor. Select is enabled when a device is selected. Selection does not itself connect or establish that physical traffic works.
Cancel / closeDismiss without applying a new selection.
Common use case

Choose the intended adapter before setting channel and bitrate in CAN Settings. Match the device identity to your hardware; consult supported providers and observed qualification limits.

Back to CAN buses & signals · All chapters

Property grid reference

CAN Settings

Experimental A2L / passive CCP and XCP

Each channel descriptor accepts DBC or A2L; choose a different file per session. Load the matching ECU A2L before connecting and listen to both directions before CCP/XCP measurement setup, including CONNECT, DAQ configuration and start. A2L supplies names, units and scaling; acknowledged setup supplies the packet layout. Late capture cannot reconstruct a dynamic layout from data alone. Reconnect, file replacement and Refresh descriptors discard learned A2L mappings. Clearing Receive rows retains them.

Expand Receive measurements, use Add to Watch, assign a variable and choose it in the chart channel browser. Inactive or unavailable measurements do not overwrite Watch variables; charts may retain the last valid value. No ECU commands are sent by this decoder. Only scalar classic-CAN DAQ, absolute byte PIDs, byte entries and supported linear conversions are implemented. Polling, timestamps, relative IDs, static/resumed layouts, packed/STIM/PID-off modes, vendor IF_DATA, includes and multi-MODULE files are outside this initial scope. Receive Notes identifies missing setup and unsupported definitions. Real-file and real-device verification is pending; synthetic fixtures do not qualify CCP/XCP interoperability. See the CAN guide for exact scope.

When you select this group: Select the CAN provider/device, enable the required channels and match each channel's baud rate to its bus. Each channel has its own DBC descriptor file. Selecting a DBC refreshes existing CAN Receive Notes with matching signal names and units. Use Refresh descriptors after editing a file on disk.

Select the adapter, active channels, bitrate, and optional DBC interpretation.

Shown in: CAN; available channels depend on the selected adapter.

GUI itemMeaning, use, and interactions
Can Device IDChoose a discovered adapter/provider identity in the device selector. Current provider scope includes Intrepid, Kvaser, Vector VN1630A, and PEAK USB; see the CAN guide for exact observed support and pending qualification. An ID is not a guarantee that hardware traffic is qualified.
Enable Channel 1Enable configured CAN channel 1 for receive/transmit. Use only channels exposed by the selected adapter; a single-channel device cannot send saved channel-two rows. Change channel configuration while disconnected.
Channel 1 BaudSelect channel 1’s bus bitrate to match the physical network. Incorrect bitrate prevents valid communication; this is a CAN bus setting rather than serial baud. Confirm wiring and termination separately.
Channel 1 Descriptor FileChoose a DBC descriptor for interpreting channel 1 frames as named signals. Use the file matching the device/firmware; a plausible decoded value does not prove the DBC mapping is correct. Preserve raw IDs and payloads for comparison.
Enable Channel 2Enable configured CAN channel 2 for receive/transmit. Use only channels exposed by the selected adapter; a single-channel device cannot send saved channel-two rows. Change channel configuration while disconnected.
Channel 2 BaudSelect channel 2’s bus bitrate to match the physical network. Incorrect bitrate prevents valid communication; this is a CAN bus setting rather than serial baud. Confirm wiring and termination separately.
Channel 2 Descriptor FileChoose a DBC descriptor for interpreting channel 2 frames as named signals. Use the file matching the device/firmware; a plausible decoded value does not prove the DBC mapping is correct. Preserve raw IDs and payloads for comparison.
Number formatOne shared Hex or Decimal format for message IDs and raw bytes in CAN windows, including paused and recorded views. Unprefixed Transmit IDs use this base; h forces hexadecimal and d: forces decimal. Saved IDs and payloads retain their values. Numeric and DBC interpretations retain their type; SByte/UByte scalar input follows Number format; Hex FF is SByte -1 or UByte 255.
Time delta formatMilliseconds or Hertz in Receive and Watch, including paused/recorded views. A 100 ms interval displays as 10 Hz. Repeat MS scheduling is unchanged.
Common use case · Put these settings together

Compare raw frames with decoded signals. Only use the implemented provider/channel scope; discovery and startup do not prove full physical qualification.

See the related workflow guide for the surrounding procedure and examples.

Back to CAN buses & signals · All chapters

Sub-window controls

CAN Receive: toolbar and action buttons

Experimental A2L / passive CCP and XCP

Each channel descriptor accepts DBC or A2L; choose a different file per session. Load the matching ECU A2L before connecting and listen to both directions before CCP/XCP measurement setup, including CONNECT, DAQ configuration and start. A2L supplies names, units and scaling; acknowledged setup supplies the packet layout. Late capture cannot reconstruct a dynamic layout from data alone. Reconnect, file replacement and Refresh descriptors discard learned A2L mappings. Clearing Receive rows retains them.

Expand Receive measurements, use Add to Watch, assign a variable and choose it in the chart channel browser. Inactive or unavailable measurements do not overwrite Watch variables; charts may retain the last valid value. No ECU commands are sent by this decoder. Only scalar classic-CAN DAQ, absolute byte PIDs, byte entries and supported linear conversions are implemented. Polling, timestamps, relative IDs, static/resumed layouts, packed/STIM/PID-off modes, vendor IF_DATA, includes and multi-MODULE files are outside this initial scope. Receive Notes identifies missing setup and unsupported definitions. Real-file and real-device verification is pending; synthetic fixtures do not qualify CCP/XCP interoperability. See the CAN guide for exact scope.

Shared display settings

Use Settings → CAN Settings for Number format (Hex / Decimal IDs and raw bytes) and Time delta format (Milliseconds / Hertz). These saved preferences apply across CAN windows, including paused and recorded views; changing them does not reconnect the adapter or alter its traffic.

Interpret selected raw bytes

Click the Data field, drag across one or more bytes, then right-click the highlighted bytes to open Watch As with interpreted values. Selections that start or end within a byte snap to include that complete byte; selecting only separators offers no interpretation. One byte offers individual bits and signed/unsigned 8-bit values; two, four and eight bytes offer the corresponding integer formats, with floating-point previews for four/eight bytes.

Both byte orders, raw formats and ASCII are available as appropriate to the selection. Choose an interpretation to add it to CAN Watch. Byte selection also works above an expanded DBC signal table. Pause makes inspection easier while CAN reception continues.

Expand DBC signals

When a loaded DBC defines a message, click its row-header plus/minus to expand or collapse a two-column signal table. Expand or collapse descriptor signals (Alt+Left/Alt+Right keys also work). Descriptor signal name identifies each row; Decoded signal value and unit; unchanged values fade to gray explains the Value column. Right-click a nested signal name and choose Add to Watch to add that signal using its DBC bit layout, scaling and byte order, then open CAN Watch.

Add this descriptor signal to CAN Watch describes this action. It uses the live channel/message even when Receive is paused. Escape from a signal table collapses it. Values include scaling, units and optional enum labels; inactive multiplexed signals and short/remote payloads show status instead of a fabricated value. DBC load errors appear in Notes and clear invalid definitions.

Independent byte fading

Each Data byte starts black when new or changed. After two seconds without a value change, that byte fades through four gray shades, one per second, ending in a readable gray. Identical frames do not restart the fade; other bytes changing do not affect it. This works in hex and decimal. Pause freezes the colors with the bytes. Selected cells, high-contrast mode and the text-selection editor use normal system text colors for readability. Color ages are not saved.

Timed refresh and Pause

The live display updates every half second using the latest processed values. Hidden views and a paused Receive display skip recurring repainting while reception continues. Heavy traffic is processed in bounded batches to leave time for UI interaction; sustained overload can delay the displayed values, and receive queue overflow contributes to Errors in CAN Statistics.

Inspect raw received/local-transmit rows and shared CAN display formats. Opening this window does not connect an adapter.

Label, tooltip, or iconFunction and practical use
PauseFreeze a detached copy of the CAN Receive table for selecting payload bytes and using the right-click Watch As menu. Live reception, CAN Watch, and statistics continue. Click again to resume the latest live table; this is not a historical backlog or a disconnect. CAN Watch’s Pause has a different shared-model effect.
ClearWhile live, clear the live CAN message collection. While paused, clear only the frozen receive view; resuming shows the still-current live collection. This does not reset bus statistics or stop physical traffic.
Refresh descriptorsReload both configured channel DBC files. Use after editing a descriptor on disk; verify IDs/payloads independently of decoded labels.
Common use case · Use these controls together

Refresh descriptors after correcting a descriptor, inspect the raw identifier/payload, and compare decoded labels with the expected signal. Format choices change display, not transmitted bytes.

See the workflow guide for the feature’s setup and examples.

Descriptor signal names in Notes

Selecting a Channel 1 or Channel 2 Descriptor File loads its DBC immediately and refreshes the CAN Receive Notes column for messages already listed, without reconnecting or waiting for another frame. Notes show signal names and units from the DBC for the matching message ID and channel. Refresh descriptors reloads files edited on disk and updates existing notes too. Removing a descriptor or selecting a missing file clears stale notes for that channel. A paused Receive display updates this descriptive metadata while its captured payload remains frozen. Watch notes remain user-defined.

Back to CAN buses & signals · All chapters

Grid columns

Column / inputFunction and practical example
TimeTimestamp of the latest frame (or this recorded sample). Use it to correlate traffic; it is not the GUI refresh time.
Δ msInterval between frames for this message. The timing toolbar can relabel it Hz to show frequency; 100 ms corresponds to 10 Hz.
IOLatest direction: Rx for received traffic or Tx for transmitted traffic.
CCAN channel number, for example 1. Channel and message ID together identify the source.
IDMessage identifier in the selected Decimal/Hex display. A trailing x identifies an extended frame.
DLCPayload length in bytes: 0–8 for supported classic CAN. DLC 8 means eight bytes, not eight signals.
DataLatest raw payload in the selected Hex/Decimal display. Each unchanged byte fades independently. Select bytes and right-click Watch As to interpret them; selecting does not alter received bytes.
NotesMessage description/notes, including DBC message information when available. Use it to identify the message rather than its numeric ID alone.

Expanded DBC signal grid columns

Column / inputFunction and practical example
Signal nameDBC-defined signal, for example EngineSpeed. Expand its parent message to see it; right-click the name and choose Add to Watch to monitor that field.
ValueDecoded physical value, unit or enumeration label. Each signal fades independently when unchanged. Multiplexed/inactive or unavailable fields are identified by the decoder; an unrelated byte change does not reset this value’s age.

The receive grid is a traffic display; editing or selecting its payload does not transmit a replacement frame. Pause freezes this view while live reception continues.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add this descriptor signal to CAN Watch
  • Channel Number
  • Clear
  • Decoded signal value and unit; unchanged values fade to gray
  • Descriptor signal name
  • Expand or collapse descriptor signals (Alt+Left/Alt+Right keys also work)
  • Local Transmit (Tx) or Received (Rx)
  • Message ID follows Settings > CAN Settings > Number format; trailing x denotes an extended ID
  • Pause
  • Pause receive display for byte inspection (CAN reception continues)
  • Raw Data Bytes
  • Refresh descriptors
  • Total number of Bytes
  • Variable name to update with new values
Sub-window controls

CAN Transmit: toolbar and action buttons

Shared display settings

Use Settings → CAN Settings for Number format (Hex / Decimal IDs and raw bytes) and Time delta format (Milliseconds / Hertz). These saved preferences apply across CAN windows, including paused and recorded views; changing them does not reconnect the adapter or alter its traffic.

Define CAN payloads, generate changing signals and combine several fields into one message. Use the grid’s Transmit button for a single send or Repeat for timed sends.

Composite generator demo

The demo packs four generators into ID 600, DLC 8: Sine UInt8 at bit 0, Square SInt8 at bit 8, Sawtooth UInt8 at bit 16 and Triangle Float32 at bit 24.

A constant 99 at bit 56 is followed by constant 42 at the same bit: the final byte and Steady signal show 42. Only the first row repeats at 100 ms; all rows contribute. Change the final value or move its row above the 99 row to try the override order.

SByte and UByte scalar entries follow Number format: Hex FF means SByte -1 or UByte 255; Decimal accepts -1 or 255 respectively. Switching format preserves the stored value. Other numeric types and waveform parameters use decimal values; Raw Hex and Raw Dec retain explicit byte syntax. Clone ID parameters retain their explicit ID syntax.

Combine rows into one message

Rows with the same channel, numeric ID and standard/extended format merge from top to bottom in visible table order. Later rows overwrite only their defined bits at Start Bit, including zero bits; padding preserves earlier fields. The largest DLC becomes the combined message length. Sorting or moving rows changes override order.

Transmit on any row sends the whole group. All rows contribute even when Repeat is unchecked; any due Repeat row triggers one combined send per timer tick. Different intervals combine their schedules. Invalid contributing rows prevent the whole send.

Example: ID 600, DLC 8, UInt16 Sine at Start Bit 0 and Float32 Triangle at Start Bit 16 share one payload. Enable 100 ms Repeat on one row. RawBit data 0000 at Start Bit 4 overrides only those four bits.

Set up a waveform generator

Choose a numeric Data Type and enter Data / Parameters as Hz,Min,Max. For example, 0.1,0,10 produces one cycle per ten seconds, ranging from 0 to 10. Variables such as %Rate%,0,100 are expanded when sending.

Use decimal points. Hz must be positive, Min must not exceed Max, and values must fit the chosen type after raw = (value - Offset) / Gain. Gain must be finite and nonzero. Selecting a waveform converts raw types to UWord (16) and initializes missing/scalar parameters.

Set DLC large enough for the numeric width plus Start Bit, choose LSB or MSB, then press Transmit for one sample or enable Repeat with a suitable Repeat MS interval. Repeat MS sets the sample rate; Hz sets the waveform frequency. The waveform uses the shared monotonic elapsed clock and is sampled at each send. Invalid input produces a CAN diagnostic and suspends repeating without disconnecting a healthy adapter. Correcting the transmit grid resumes checked repeats once all repeating groups validate, including unchecked contributing rows. Validation does not transmit, and disconnected sessions remain stopped.

How each waveform starts

  • Sine and Triangle: start at the midpoint and rise.
  • Square: starts at Max and switches to Min halfway through the cycle.
  • Sawtooth: rises from Min and resets each cycle.

Clone a received message

Clone ID copies a previously received data frame: 291 or h123 uses channel 1, 2_h123 uses channel 2, and a trailing x selects an extended ID. Missing/RTR source frames are errors.

Clone copies raw bytes. Data Type, Gain and Offset do not transform them; DLC and Start Bit control output frame placement.

Use a DBC signal layout

Selecting a DBC signal copies its layout into a transmit row. Enter Gain/Offset explicitly; DBC scaling is not applied automatically. To combine several fields, define additional rows with the same channel, ID and frame format as described above.

Toolbar and row actions

Use these controls to manage definitions. Row editing and duplication are separate from the grid’s Transmit button and Repeat setting.

Label, tooltip, or iconFunction and practical use
Delete row (delete icon)Remove the selected transmit definition. This modifies the bound transmit list; it is not disconnecting the CAN adapter.
Move row up (up arrow)Move the selected transmit definition up one position. Use to group test frames; list order is not a guaranteed transmission schedule.
Move row down (down arrow)Move the selected transmit definition down one position. Organize by channel or test phase without assuming ordering controls periodic send timing.
Duplicate row (copy icon)Insert a copy of the selected transmit definition at its position. Use to create a related frame; review ID, channel, payload, and copied repeat settings before testing.
Common use case · Use these controls together

Duplicate a baseline frame, adjust its ID/data/channel, and verify repeat state before testing. A copied definition can retain repeat-related settings; duplication is not a guarantee that no traffic can result while connected.

See the workflow guide for the feature’s setup and examples.

Send a CAN frame from a script

Helpers.SendCanMessage(1, 0x123, new byte[] { 0x01, 0x02 });
Helpers.SendCanMessage(2, 0x1ABCDE, new byte[] { 0x10, 0x20 }, true);

The signature is Helpers.SendCanMessage(int channel, uint id, byte[] data, bool extended = false). The first example sends a standard 11-bit ID on channel 1; the second sends an extended 29-bit ID on channel 2. Use CAN communication mode, select/configure an adapter, enable the requested channel and Connect first. Common.Utilities.SendCanMessage provides the same API. Payloads contain 0–8 bytes; the byte count is the DLC. Standard IDs range from 0 to 0x7FF; extended IDs range from 0 to 0x1FFFFFFF. Zero bytes are allowed.

These are single classic CAN data frames: no CAN FD, RTR transmission, auto-connect, repeat, text converters or serial/TCP send terminators. The existing provider worker validates channel availability/enabled state and sends through the selected adapter. Invalid input, wrong mode, a disabled/unavailable channel or a disconnected adapter raises an error. Provider enqueue success is not proof of bus transmission or acknowledgement; Tx display/statistics retain native echo/confirmation behavior.

For a Device Commands button, put this public function inside the active script class:

public void InjectCan(int channel, uint id, string hex, bool extended) {
    Helpers.SendCanMessage(channel, id, Helpers.HexStringToByteArray(hex), extended);
}
// Command Send Text: Script.InjectCan(1, 291, "0102", false)
// Command Send Text: Script.InjectCan(2, 1752286, "1020", true)

Command-button numbers are decimal JSON literals (291 is 0x123; 1752286 is 0x1ABCDE). Hexadecimal C# literals such as 0x123 are allowed in the Script Editor. SendCanMessage shares the synchronous recursion guard with SendMessage, SendMessageToDevice and RepeatCurrentSendBoxValue; calls from send-box/outgoing-byte/display converters are blocked with a visible diagnostic. Guard limits still apply to delayed sends and device-response loops. Physical qualification is separate from fixture tests.

Back to CAN buses & signals · All chapters

Grid columns

Column / inputFunction and practical example
C#Editable channel number. Choose an available channel, for example 1; frames on channels 1 and 2 are separate groups.
IDEntry and display follow Number format. Hex: 223 means hexadecimal 223 (decimal 547); Decimal: 223 means decimal 223. Prefix h forces hex (hDF); d: forces decimal (d:223); trailing x selects an extended frame. Changing the preference preserves the numeric ID saved in the row.
Data TypeDropdown defining how Data / Parameters is encoded. Numeric types have fixed bit widths; see every option below.
GeneratorDropdown: literal data, one of four waveforms, or Clone ID. Each option and parameter example appears below.
Data / ParametersFor None, enter a literal in Data Type’s format. For a waveform use Hz,Min,Max, for example 0.1,0,10. Clone ID uses a previously received source ID such as 2_h123. Variables such as %Rate% are expanded.
DLCOutput payload length, 0–8 bytes. It must contain the encoded field plus Start Bit. The largest DLC among merged rows becomes the group’s output length.
Byte OrderMSB or LSB for encoded numeric bytes; see the examples below. Start Bit remains a linear bit offset, not a DBC Motorola sawtooth coordinate.
Start BitZero-based placement of this row’s field, for example 16 for the beginning of byte 2. Later rows overwrite only their defined bits, including zero bits; padding preserves earlier fields.
GainPhysical scaling divisor when encoding numeric values: raw = (value − Offset) / Gain. Example: value 10, Gain 0.5, Offset 0 gives raw 20. Must be finite and nonzero.
OffsetPhysical zero offset used with Gain. Example: value 15, Gain 0.5, Offset 5 gives raw 20. Clone ID copies bytes without applying scale.
SendTransmit button: sends the complete merged group containing this row, after finishing the active edit. Requires a connected, enabled CAN channel.
Repeat MSDropdown scheduling interval in milliseconds. This samples a waveform; it does not set waveform frequency. Every interval is described below.
RepeatCheck to schedule the group from this row. All matching rows contribute even when their own Repeat is unchecked. Due rows produce at most one group send per timer tick.
NotesEditable explanation, for example Engine speed ramp. It labels the definition without changing its payload.

Data Type dropdown: every option

OptionFunctionExample
Raw HexRaw hexadecimal bytes; no numeric scale conversion. Digits A–F represent values 10–15.A5 0F encodes two bytes: decimal 165 and 15.
Raw DecRaw decimal bytes, each 0–255.18 52
Raw BinBits written in increasing bit position, starting with the least significant bit of each byte.01001000 00101100 produces bytes 12 34 (hex).
Raw BitExplicit individual bits in increasing bit position; useful for overriding a small field.0000 at Start Bit 4 overwrites four bits with zero.
Float (64)IEEE 754 floating point, 64 bits / 8 bytes.1.5
SLong (64)Signed 64-bit integer, 8 bytes.-123456789
ULong (64)Unsigned 64-bit integer, 8 bytes.123456789
Float (32)IEEE 754 floating point, 32 bits / 4 bytes.1.5
SInt (32)Signed 32-bit integer, 4 bytes.-100000
UInt (32)Unsigned 32-bit integer, 4 bytes.100000
SWord (16)Signed 16-bit integer, 2 bytes.-123
UWord (16)Unsigned 16-bit integer, 2 bytes.4660
SByte (8)Signed 8-bit integer, 1 byte (−128 to 127).-12
UByte (8)Unsigned 8-bit integer, 1 byte (0 to 255).42
AsciiCharacter bytes; MSB preserves text order, while LSB reverses the encoded byte sequence.AB with MSB produces 41 42 (hex); LSB produces 42 41.

Generator dropdown: every option

OptionFunctionExample
NoneEncode the literal Data / Parameters value using Data Type.UByte (8), Data 42: one byte 2A in hex.
SineSmooth periodic value between Min and Max; starts at midpoint and rises.Float (32), 0.1,0,10: ten-second cycle from 0 to 10.
SquareSwitch between Max and Min halfway through each cycle; starts at Max.UByte (8), 1,0,100: 100 then 0 every half-second.
SawtoothRise from Min toward Max, then reset each cycle.UByte (8), 0.1,0,100: ten-second repeating upward ramp.
TriangleRise and fall linearly; starts at midpoint and rises.Float (32), 0.1,0,10: ten-second rise/fall cycle.
Clone IDCopy detached raw bytes from a previously received data frame; missing/RTR sources are errors.291 or h123 uses channel 1; 2_h123 uses channel 2; 2_h123x selects extended ID.

Byte Order dropdown: every option

OptionFunctionExample
MSBMost significant byte first for numeric fields.UWord (16), value 4660: bytes 12 34 in hex.
LSBLeast significant byte first for numeric fields.UWord (16), value 4660: bytes 34 12 in hex.

Repeat MS dropdown: every option

OptionFunctionExample
50Schedule this row’s group every 50 ms while Repeat is enabled.Nominal 20 sends/second; actual rate depends on timer and device.
100Schedule this row’s group every 100 ms while Repeat is enabled.Nominal 10 sends/second; actual rate depends on timer and device.
200Schedule this row’s group every 200 ms while Repeat is enabled.Nominal 5 sends/second; actual rate depends on timer and device.
250Schedule this row’s group every 250 ms while Repeat is enabled.Nominal 4 sends/second; actual rate depends on timer and device.
500Schedule this row’s group every 500 ms while Repeat is enabled.Nominal 2 sends/second; actual rate depends on timer and device.
1000Schedule this row’s group every 1000 ms while Repeat is enabled.Nominal 1 sends/second; actual rate depends on timer and device.
5000Schedule this row’s group every 5000 ms while Repeat is enabled.Nominal 0.2 sends/second; actual rate depends on timer and device.

Waveforms require a numeric Data Type and finite parameters with Hz > 0 and Min ≤ Max. Values must fit the encoded type after scaling. Use enough DLC for the complete field; invalid contributing rows prevent the entire merged send.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Channel number of CAN device to send message out.
  • Choose Sine, Square, Sawtooth or Triangle; numeric parameters are Hz,Min,Max. Clone ID copies a received frame.
  • Click to send a single message
  • Enable Repeat
  • Endianness: MSB (Motorola) / LSB (Intel)
  • Gain value
  • Message ID uses Settings > CAN Settings > Number format; h forces hex, d: forces decimal, and trailing x denotes an extended ID
  • Number of bits to offset in to data
  • Offset value
  • Send message every x milliseconds
  • toolStripButton1
  • toolStripButton2
  • toolStripButton3
  • toolStripButton4
  • Total Byte Count For Message
  • Waveform: positive Hz,Min,Max with decimal points (0.1,0,10); variables are allowed. Clone: channel_ID, for example 2_h123x.
Window guide

DbcChannelBrowser

Message IDs follow the shared Number format in Settings → CAN Settings. Selection keeps the original numeric DBC identifier.

Choose a signal definition from the available DBC data instead of manually entering all interpretation fields.

ControlHow and why to use it
Signal Name FilterFilter signal names using a case-insensitive substring.
Signal tableCompare signal name, message ID, data type, byte order, node, and unit before selecting.
Double-click rowReturn the selected signal definition and close the browser. The browser has no OK or Cancel buttons; use the window close control to dismiss it.
Common use case

Find a named signal and check its ID and byte order before using the definition in a CAN editor. Choosing a definition does not transmit a CAN frame; verify the DBC matches the device variant.

Back to CAN buses & signals · All chapters

Grid columns

Column / inputFunction and practical example
Signal NameDBC signal identifier, for example EngineSpeed. Select the desired row and confirm the browser to use its descriptor.
Message IDParent CAN message identifier; several signals can share this ID.
Data TypeSuggested interpretation based on the DBC field, such as UInt16. This is descriptor text, not a generator dropdown.
Byte OrderDBC order: LSB (Intel) or MSB (Motorola). DBC Motorola numbering differs from linear manual transmit placement.
NodeTransmitting node from the message definition, for example ECU.
UnitEngineering unit from the DBC, for example rpm or °C.
Start BitDBC-defined starting bit. Interpret it together with Byte Order.
LengthSignal length in bits, for example 16. It is not the parent message DLC.
FactorDBC physical multiplier. Raw 100 with Factor 0.1 gives 10 before Offset.
OffsetDBC physical offset. Factor 0.1 and Offset −40 turn raw 100 into −30.

This browser lists signal definitions; it is not a live-value grid. The transmit picker copies a layout but does not automatically apply DBC Factor/Offset to numeric transmit scaling.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Endianness: MSB (Motorola) / LSB (Intel)
  • Engineering Unit of Signal
  • Gain Factor
  • Message ID
  • Node Name
  • Number of bits
  • Offset
  • Signal Name
  • Start bit offset
Sub-window controls

CAN Watch: toolbar and action buttons

Shared display settings

Use Settings → CAN Settings for Number format (Hex / Decimal IDs and raw bytes) and Time delta format (Milliseconds / Hertz). These saved preferences apply across CAN windows, including paused and recorded views; changing them does not reconnect the adapter or alter its traffic.

Record and inspect history

To record: check Record on each desired live watch row, turn on Enable recording, receive new frames, then click Show Recorded Data. Both the toolbar toggle and row checkboxes are required. Show Recorded Data starts no capture by itself; samples are collected after recording is enabled. The recorded view is read-only and its title shows the sample count. Pause freezes only the display, so recording continues. Duplicate preserves the Record setting and participates in capture. Clear applies to the current live or recorded view; CSV exports exactly the displayed snapshot.

Independent value fading

Each watched Data value starts black when it changes. After two seconds unchanged it fades through four grays, one per second, ending at RGB 148. Only changes to this interpreted value restart its fade. The latest conversion is cached until payload or interpretation settings change; the existing half-second display refresh paints visible values. Selection and high-contrast colors remain standard system colors. Right-click a nested Receive signal name and choose Add to Watch to open this window with that signal.

Watch interpreted signals, record selected signal histories, and export the current view. Main Windows menu calls this Signal Watch.

Label, tooltip, or iconFunction and practical use
PauseFreeze a detached snapshot of the Watch display and its fade colors. CAN reception, live values and recording continue. Click again to see the latest values or samples.
Delete AllAfter confirmation, clear recorded watch samples when Show Recorded Data is checked; otherwise clear watch definitions. Preserve exported evidence before clearing. The current view determines what is deleted.
Delete SingleRemove the selected watched entry through the watch-list removal handler. Use on the live definitions view when removing a signal; do not assume it is a general recording-history editor.
Duplicate watch (copy icon)Insert a copy of the selected rendered watch entry. Useful for interpreting another bit range/scaling of the same frame; review the duplicated fields and recording selection.
Enable recording (record icon)Toggle shared CAN recording. Only watched entries whose Record flag is enabled are added to recorded signal history. Recording does not automatically select every signal or switch to the history view.
Show Recorded DataSwitch the grid between current watch definitions/values and the recorded watch list. This changes what you inspect/export; it does not itself start recording.
Save View To Semicolon Delimited FileExport the currently selected live or recorded view to a semicolon-delimited .csv file. The handler exports a detached snapshot of the current display without stopping CAN reception or recording; a paused view exports its frozen rows.
Open Data folder (folder icon)Create/open the application Data directory used as the default export location. Use to locate saved exports; it does not make a new recording.
Common use case · Use these controls together

Add signals to the watch list, mark their Record flags, enable recording, exercise the device, then switch Show Recorded Data on and export that view. Recording and viewing recorded history are separate switches.

See the workflow guide for the feature’s setup and examples.

Back to CAN buses & signals · All chapters

Grid columns

Column / inputFunction and practical example
TimeTimestamp of the latest frame (or this recorded sample). Use it to correlate traffic; it is not the GUI refresh time.
Δ msInterval between frames for this message. The timing toolbar can relabel it Hz to show frequency; 100 ms corresponds to 10 Hz.
IOLatest direction: Rx for received traffic or Tx for transmitted traffic.
CCAN channel number, for example 1. Channel and message ID together identify the source.
IDMessage identifier in the selected Decimal/Hex display. A trailing x identifies an extended frame.
DLCPayload length in bytes: 0–8 for supported classic CAN. DLC 8 means eight bytes, not eight signals.
Start BitZero-based start of the watched field. Example: 16 begins at byte 2. Manual watches use linear extraction; decoded DBC signals retain their DBC layout.
LengthField length in bits, not bytes: 16 for UWord (16), 32 for Float (32). Use complete type widths for numeric interpretation.
GainNumeric physical scale: physical = raw × Gain + Offset. Example: raw 20 with Gain 0.5 and Offset 5 displays 15.
OffsetPhysical offset added after Gain. Example: raw 0 with Offset −40 displays −40.
DataInterpreted live value or recorded sample. It fades when unchanged; source metadata and history samples remain independent snapshots.
Data TypeInterpretation dropdown; every display type is described below. Match numeric width to Length.
Byte OrderMSB/LSB interpretation of multi-byte numeric fields; see below. DBC signal decoding uses the signal’s defined layout.
RecordCheck to retain subsequent samples for this watch. Use View recorded data to inspect them; this is separate from Strip Chart capture.
VariableRuntime variable name, for example EngineSpeed. The interpreted value updates that variable and makes it available in Strip Chart; enable On there to plot it.
NotesEditable label for this interpretation. Multiple watches may interpret the same message differently.

Raw Hex and Raw Dec watch definitions both render bytes using the shared Number format. Numeric, bit, ASCII and DBC interpretations retain their selected type and scaling.

Data Type dropdown: every option

OptionFunctionExample
Raw HexRaw hexadecimal bytes display of the selected payload field.Interpret received bytes 12 34 (hex): 12 34
Raw DecRaw decimal bytes, each 0–255. display of the selected payload field.Interpret received bytes 12 34 (hex): 18 52
Raw BinRaw binary byte representation. display of the selected payload field.Interpret received bytes 12 34 (hex): 00010010 00110100
Raw BitDisplay one bit at Start Bit as 0 or 1.Start Bit 4: inspect that bit independently.
Float (64)IEEE 754 floating point, 64 bits / 8 bytes.Use Length 64 bits; an example decoded value is 1.5.
SLong (64)Signed 64-bit integer, 8 bytes.Use Length 64 bits; an example decoded value is -123456789.
ULong (64)Unsigned 64-bit integer, 8 bytes.Use Length 64 bits; an example decoded value is 123456789.
Float (32)IEEE 754 floating point, 32 bits / 4 bytes.Use Length 32 bits; an example decoded value is 1.5.
SInt (32)Signed 32-bit integer, 4 bytes.Use Length 32 bits; an example decoded value is -100000.
UInt (32)Unsigned 32-bit integer, 4 bytes.Use Length 32 bits; an example decoded value is 100000.
SWord (16)Signed 16-bit integer, 2 bytes.Use Length 16 bits; an example decoded value is -123.
UWord (16)Unsigned 16-bit integer, 2 bytes.Use Length 16 bits; an example decoded value is 4660.
SByte (8)Signed 8-bit integer, 1 byte (−128 to 127).Use Length 8 bits; an example decoded value is -12.
UByte (8)Unsigned 8-bit integer, 1 byte (0 to 255).Use Length 8 bits; an example decoded value is 42.
AsciiInterpret the selected bytes as characters.Bytes 41 42 (hex): AB.

Byte Order dropdown: every option

OptionFunctionExample
MSBMost significant byte first for numeric fields.UWord (16), value 4660: bytes 12 34 in hex.
LSBLeast significant byte first for numeric fields.UWord (16), value 4660: bytes 34 12 in hex.

Recorded-data view is read-only. Choose the live view to edit watch definitions. Manual short fields do not support every interpretation; use Raw Bit for one bit or Raw Bin for short bit ranges, and verify known bytes before using a decoded value.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Channel Number
  • Check this row to capture each new frame while toolbar recording is enabled
  • Clear
  • Clear all live watch rows or recorded samples in the current view (asks for confirmation)
  • Delete All
  • Delete selected watch
  • Delete Single
  • Delete the selected live watch row
  • Duplicate selected watch
  • Duplicate the selected live watch row, including its Record setting
  • Enable recording
  • Endianness: MSB (Motorola) / LSB (Intel)
  • Gain value
  • Local Transmit (Tx) or Received (Rx)
  • Message ID follows Settings > CAN Settings > Number format; trailing x denotes an extended ID
  • Number of bits to offset in to data
  • Offset value
  • Open data folder
  • Open the default CSV Data folder in File Explorer
  • Pause
  • Pause Watch display only; CAN reception and recording continue
  • Raw Data Bytes
  • Save the current live, paused or recorded view as a semicolon-delimited CSV file
  • Save View To Semicolon Delimited File
  • Show Recorded Data
  • Show recorded samples; click again to return to live watch values
  • Start or stop recording new frames for watch rows with Record checked
  • Total number of Bytes
  • Variable name to update with new values
  • Watched number of bits
Sub-window controls

CAN Statistics: toolbar and action buttons

Observe live bus rates/counters; the main Windows menu calls this Bus Statistics.

Label, tooltip, or iconFunction and practical use
Clear / Reset Statistics (Reset statistics tooltip)Reset bus statistics and immediately refresh the view. Use at the start of a defined measurement interval. This does not clear receive/watch tables or reconnect the adapter.
Common use case · Use these controls together

Reset immediately before a repeatable workload so the comparison interval is clear. Preserve evidence before resetting counters.

See the workflow guide for the feature’s setup and examples.

Back to CAN buses & signals · All chapters

Grid columns

Column / inputFunction and practical example
NameStatistic being observed, for example Messages Total or Errors Total. Use the name to distinguish totals, rates and channel/provider observations.
UnitMeasurement unit associated with the statistic, for example a count or rate. A rate and a total are not interchangeable.
ValueCurrent statistic value. The visible window refreshes on its timer; reopening shows current state. This is a read-only diagnostic view.
Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Clear
  • Clear / Reset Statistics
  • Reset statistics

Message boundaries & conversion

Message boundaries & conversion

Define complete messages and how text becomes bytes before configuring replies or commands.

In this chapter · 4 guides
Bytes into messages

Message detection and framing

Tell the simulator when a complete message has arrived and how to interpret its bytes.

Why message boundaries matter

A transport can be working perfectly while the simulator still waits for a message boundary. Message Termination settings define receiving behavior; Send STX Bytes and Send ETX Bytes add outgoing delimiters. Message Window Converter Mode controls presentation; Send and Auto Response Converter Mode controls how outgoing text is interpreted.

Boundary strategyGood fitWhat to check
STX/ETX or terminatorText lines ending CR/LF, framed instrument commandsExact delimiter bytes and whether the payload can contain them
Byte countFixed-size binary repliesActual frame length, including protocol framing as appropriate
Receive timeoutA burst followed by a defined quiet gapA short timeout may split a message; a long one adds latency
Regular expressionA recognizable textual message structurePattern matches the complete intended boundary, not an early fragment

Use the actual Termination Mode choices exposed by the current property grid. See Message Termination for every item under that exact GUI section name. Buffer Timeout is a separate silence/buffer handling setting; do not assume every timeout field has the same purpose.

Watch for the flashing DATA IN BUFFER (n) toolbar button. If bytes arrive but remain buffered without forming a complete message, the buffer check can show this button with the buffered byte count. This tells you that data did arrive: your property-grid Message Termination settings may not match the incoming protocol. For example, expecting CR/LF when the device sends only CR leaves the parser waiting for a terminator that never comes.

Check Termination Mode, receive STX/ETX bytes, byte count, or the selected regex against the actual traffic. A partial message can also legitimately remain buffered, so the indicator is a troubleshooting clue rather than proof of an error.

Common use cases · “Connected, but nothing happens”

Data arrived, but no complete message appears

Look for DATA IN BUFFER (n) on the toolbar after the configured Buffer Timeout check. Clicking it prints a Buffer Dump :> entry and clears the primary receive buffer; use Hex or Show Whitespace to inspect the actual delimiter bytes. This is a diagnostic dump, not normal message completion, and it consumes those buffered bytes. In a two-sided mode, the indicator can be raised by either side, but the current dump action reads the primary buffer. Correct the receiving termination settings and repeat the exchange to confirm complete messages now appear and Auto Responses or sequence waits can process them.

The peer waits for Enter

A text instrument expects CR/LF. Set Send ETX Bytes to <13><10> when Whitespace Code Type is decimal. Send just the command body. In hexadecimal code interpretation, use <0D><0A>. Switching Whitespace Code Type in the property grid automatically converts existing send/receive terminator and heartbeat bracket codes between these forms and refreshes the suggested dropdowns, preserving the bytes. Only valid codes inside angle brackets in those fields are converted.

Readable text hides the problem

Use Hex or Show Whitespace to see whether CR, LF, NUL, or STX/ETX are present. The display converter does not redefine the peer's protocol.

Auto Response never matches

First confirm one correctly framed incoming message. Then compare case, whitespace, converter mode, and pattern. Table response strings in Script send-converter mode are not passed through the send-box script converter; they follow the table engine's string/token expansion.

Whitespace and control characters: angle-bracket notation

Spaces, carriage returns, line feeds, and tabs can be difficult to see in a conversation. The simulator uses numeric codes between angle brackets to make these characters explicit. With Simulator Settings → Whitespace Code Type set to a decimal option, <32> represents one space and <13> represents a carriage return (CR). These represent individual characters, not the literal digits and brackets on the wire when used in a field that expands bracket codes.

CharacterDecimal notationHex notationTypical purpose
Space<32><20>Separate command words or arguments; expose repeated/trailing spaces.
Carriage return (CR)<13><0D>End a command on devices expecting CR.
Line feed (LF)<10><0A>End a line, alone or after CR.
Tab<09><09>Separate fields in a tab-delimited protocol.
NUL<00><00>A zero byte required by some protocols; it is not an ordinary space.
STX / ETX<02> / <03><02> / <03>Explicit start/end control markers in framed protocols.

Turn on Message Window → Show Whitespace to expose otherwise invisible characters in displayed text. DecimalSkipSpaces and HexSkipSpaces leave ordinary spaces readable while exposing other supported characters. Displaying these codes does not change the received bytes. Whitespace Code Type controls numeric interpretation; it is separate from the outgoing Converter Mode. In hexadecimal notation, <13> is hexadecimal 13, not decimal carriage return.

Common use case · Find a missing space or wrong line ending

In decimal notation, set<32>5 describes set 5 with one space. set<32><32>5 has two spaces, which can matter to an Exact rule or a strict device parser. A trailing <32> is different from a line ending.

A CR/LF ending is <13><10> in decimal, or <0D><0A> in hex. Use it in Send ETX Bytes when the peer requires both characters. A peer sending only CR will not satisfy a receiver expecting CR/LF. Inspect Show Whitespace or Hex when DATA IN BUFFER appears, then match Receive ETX Bytes to the actual protocol.

In ASCII send text and Auto Response text that support bracket expansion, bracket notation lets you enter otherwise awkward characters directly. Alternatively, put the protocol ending in Send ETX Bytes and keep it out of the message body to avoid sending it twice. These codes are not a universal escape syntax for every editor field: sequence literal response waits, for example, do not expand bracket tokens, and Hex converter mode expects its documented hex-byte input.

Back to Message boundaries & conversion · All chapters

MITM buffer diagnostics: A missing terminator or incomplete byte count can leave data waiting separately on either device side. Use the Device 1 or Device 2 DATA IN BUFFER indicator to inspect that side in the current Hex/ASCII and whitespace display, then correct framing and repeat the exchange. Dumping removes those bytes from later message detection, so a later terminator cannot complete that discarded partial frame.

TCP/serial MITM forward received packets separately, and UDP MITM forwards datagrams before reporting: the warning does not mean forwarding is waiting for a full detected message. UDP MITM's default Packet mode normally leaves no partial detection buffer; other detection modes can. Non-MITM modes keep the original single primary-buffer button.

Property grid reference

Message Termination

When you select this group: Define how incoming bytes become complete messages: use the configured terminator, length or timing rules appropriate to the protocol. These settings affect message reporting and automatic responses; incorrect framing can delay or split messages.

Detect complete incoming messages and add the peer’s outgoing delimiters.

Shown in: Direct serial/TCP/UDP, serial sniffer, LAN sniffer, and MITM modes. Fields vary with Termination Mode.

GUI itemMeaning, use, and interactions
Buffer TimeoutAfter this many milliseconds of silence, check for unhandled bytes in the receive buffer. The flashing DATA IN BUFFER (n) toolbar button means bytes arrived but may not match your message-detection settings. This check is separate from Receive Timeout and does not itself mean a complete message was detected.
Send STX BytesBytes prepended to outgoing messages when terminators are included. Use for a protocol start marker such as decimal <02> (STX); leave empty for protocols with no start marker. Observe Whitespace Code Type.
Send ETX BytesBytes appended to outgoing messages when terminators are included. For a decimal CR/LF text protocol use <13><10>. Keep delimiters out of command/response text if this field already adds them, to avoid duplication.
Receive STX BytesExpected incoming start bytes for termination modes that use STX. Match the device’s actual framing; requiring a start marker that never arrives prevents intended detection. Sending and receiving delimiters can differ.
Receive ETX BytesExpected incoming end bytes for termination modes that use ETX. CR, LF, and CR/LF are distinct. If bytes remain buffered, inspect actual whitespace/hex and compare this field before changing the transport.
Receive TimeoutSilence interval in milliseconds used by timeout-based detection to finish a message. Too short can split a slow frame; too long delays parsing and responses. It is not the buffer warning timeout or a sequence reply timeout.
Byte CountExpected byte length for byte-count detection. Use for fixed-length binary messages and verify what bytes the protocol frame includes. Wrong counts split frames or leave bytes waiting; variable-length protocols need another strategy.
RegexPattern used by regex message detection to recognize an incoming message boundary. Use when a stable textual structure defines completion; test partial frames and back-to-back messages. This is detection before Auto Response matching, not the table’s capture assignment field.
Termination ModeSelect how buffered bytes become a complete message: delimiter combinations, silence, byte count, regex, or Script as available. Only the relevant fields appear. Script detection needs the PacketReceived callback; conversion of displayed text does not fix a wrong boundary rule.
Common use case · Put these settings together

If DATA IN BUFFER (n) flashes, bytes arrived but detection may not match. Compare actual delimiters with receive settings; use the message detection guide for the diagnostic dump behavior.

See the related workflow guide for the surrounding procedure and examples.

Back to Message boundaries & conversion · All chapters

Property grid reference

Send And Auto Response Settings

When you select this group: Choose the converter used to interpret Send box text and Auto Response output. Match literal text, whitespace/byte notation or script-based conversion to the peer's protocol. Outgoing message boundaries are configured separately under Message Termination.

Choose outgoing text interpretation for manual sending and table responses.

Shown in: Direct serial/TCP/UDP, serial sniffer, LAN sniffer, and MITM modes.

GUI itemMeaning, use, and interactions
Converter ModeChoose how outgoing send-box/table text is interpreted, such as ASCII, Hex, or Script. Use Hex for explicit binary bytes. Script send-box conversion uses SendBoxConverter; Auto Response strings follow the table token/string path and are not passed through that send-box script converter. Sequence Send has its own direct string-to-byte path.
Common use case · Put these settings together

Use a known harmless command with the correct byte conversion and delimiters. Display Hex conversion and outgoing Hex interpretation are different choices.

See the related workflow guide for the surrounding procedure and examples.

Back to Message boundaries & conversion · All chapters

Window guide

ASCII Table

Look up character codes while designing messages and interpreting captured bytes.

ControlHow and why to use it
Reference imageRead the static ASCII chart. There are no send, conversion, or editing buttons in this window.
CloseClose the reference window when finished.
Common use case

Compare a space (decimal 32), carriage return (13), and line feed (10) before entering <32>, <13>, or <10> using decimal whitespace codes. See message detection for terminator handling.

Back to Message boundaries & conversion · All chapters

Auto Responses

Auto Responses

Build ordered reply rules, configure the engine, and edit or check a matching expression.

In this chapter · 4 guides
Simulate behavior

Auto Responses: model the conversation

Give a client believable replies when the real device is absent or when you need repeatable behavior.

Request-driven simulation

This is primarily the device/server simulation workflow: wait for a client request, match it, update simulated state, and return a reply. If your goal is to drive a real device as its client, start with command buttons and polling or Sequence Builder.

Apply rules and enable replies

Open the Auto Response editor, define rows, Apply the changes, and enable Auto Respond. A configured table alone does not connect or transmit. Normal rows are checked in order, case-sensitively; the first matching Exact, Contains, StartsWith, or RegEx row wins. NoMatchResponse is considered after normal rows fail.

Match modeWhen to use itExample
ExactA complete fixed querySTATUS? → READY
StartsWithA command prefix with varying argumentsSET catches the SET family
ContainsA marker may appear within a larger messageA broad match; place specific rows before it
RegExValidate structure or capture arguments^SET ([0-9]+)$
NoMatchResponseA final diagnostic fallbackERR for an unknown request

Response Delay is synchronous in the table engine. Use it to model a controlled slow reply, not as a precision scheduler. An empty response can update state without sending a payload through the standard host path; script callbacks can change that behavior.

Common use cases · Start small, then add realism

Reproduce a client's startup

Add only the documented identification, status, and configuration exchanges the client needs to reach its main screen. Keep replies fixed initially so failures are repeatable. Add state transitions and variation once the client works.

Catch an unexpected query

Put a NoMatchResponse fallback at the end and log the incoming request. This helps expose a command the client sends that your initial table did not cover. Choose fallback text supported by your simulated protocol.

A broad row steals a specific command

Place STATUS? Exact before a broad Contains row for STAT. Inspect row order before changing regex or code. A pre-response script can also override the table by returning a non-null byte array.

Auto Response table columns

These names match the editor. Finish editing, apply the table, and enable Auto Response System → Auto Respond. Incoming bytes must first become a complete message under Message Termination; matching uses received message content with receiving terminators removed. The editor’s ASCII/HEX dropdown currently has no conversion action wired; actual interpretation follows the property-grid outgoing Converter Mode.

ColumnWhat to enter and why
Evaluation ModeSelect Exact, Contains, NoMatchResponse, RegEx, or StartsWith. Use precise rules for commands with side effects and broader rules only when that breadth is intentional. Examples for every dropdown option follow below.
Receive Message PatternThe expected command, substring, prefix, or regex, according to Evaluation Mode. For example, Exact with STATUS? handles only that command. ASCII/Script conversion expands variables, random/special tokens, script calls, and bracket notation in patterns; substituted regex values are not automatically escaped. In Hex mode patterns are decoded from hex bytes, not treated as ordinary textual commands. NoMatchResponse ignores this field.
Response MessageThe reply body, such as VOLTAGE=%Voltage%. Tokens expand after captures and static assignments, so this reply can use the value just received. Use RandomInteger or random floating-point tokens for controlled variability; copy their exact syntax from the random-value guide/current-build reference. Leave the cell empty for a state-only rule: matching and assignments still occur, but no ordinary reply payload is sent. Configure outgoing terminators separately rather than adding them twice. ASCII/Script mode encodes expanded text; Hex mode decodes the expanded result as hex bytes. Script mode does not pass this cell through the send-box converter callback.
Static Variables SetsAssignments to shared state when this rule matches: %Mode%=REMOTE; %LastVoltage%=%Voltage%. Assignments run left to right after regex captures and before response expansion. Later assignments can use earlier values. “Static” means the row contains an assignment definition; its value can still come from another variable or a random token at runtime. Use to remember mode, output state, or a captured setpoint. Separate assignments with semicolons; they are not C# expressions. These are match-time changes, not saved initial defaults.
Regex Variable NamesFor RegEx rows, map capture group 1, 2, and so on to destinations in order: %Voltage%; %Output%. The whole-match group 0 is skipped. Provide a destination for each capturing group; use noncapturing (?:...) groups for structure. For reliable editor input use alphabetic names such as Voltage and Output. These destinations are separate from .NET named-group labels; follow the all-named or all-unnamed capture guidance in the current-build reference. Leave empty on non-RegEx rows.
Response Delay (ms)A literal nonnegative integer delay before the generated response returns, for example 250. Blank/noninteger adds no delay; variables are not expanded here. Use to simulate a slow device or exercise a client timeout. This sleeps in response processing and can affect subsequent handling; it is not an independent precision scheduler or a timeout waiting for another message. Avoid negative values.

Evaluation Mode dropdown: examples and use cases

The following fictional examples use ASCII conversion. Literal matching is case-sensitive; spaces matter. Put specific ordinary rules above broad ones. Empty Contains, StartsWith, and RegEx patterns are skipped; use NoMatchResponse for a deliberate fallback.

Exact · A specific protocol command

Pattern: STATUS? · Response: READY.

Matches STATUS?; does not match status?, STATUS? EXTRA, or a trailing space. Use for fixed queries, acknowledgements, or commands where accepting extra text would be misleading. If the peer sends CR/LF, configure receive termination to remove those delimiters rather than appending them to this pattern.

Contains · Recognize a fragment inside a larger message

Pattern: ALARM · Response: ACK.

Matches DEVICE 3 ALARM HIGH because ALARM occurs anywhere. Useful for a stable marker surrounded by changing context. It also matches NO ALARM, which illustrates why a loose substring is unsuitable when surrounding text changes the meaning. Contains does not capture the surrounding values.

StartsWith · Handle a command family by its prefix

Pattern: READ (including the space) · Response: VALUE=42.

Matches READ TEMP and READ PRESSURE, but not XREAD TEMP or READ. Use when all members of a command family should receive the same generic behavior. The suffix is neither validated nor captured; choose RegEx when the argument must be checked or remembered.

RegEx · Validate changing arguments and capture state

Pattern: ^SET ([0-9]+(?:\.[0-9]+)?),([01])$
Regex Variable Names: %Voltage%; %Output%
Static Variables Sets: %Mode%=REMOTE; %LastVoltage%=%Voltage%
Response Message: OK V=%Voltage% OUT=%Output%.

Receiving SET 12.5,1 captures Voltage=12.5 and Output=1, then updates Mode and LastVoltage, then returns OK V=12.5 OUT=1. The Variable window shows that state. The decimal portion uses a noncapturing group so it does not shift Output’s capture destination.

Use ^ and $ when the whole command must conform. Without anchors, a regex can match a substring. Use [0-9]+ for one or more digits; escape a literal dot as \.. An invalid pattern or incomplete capture mapping can fail inside the rule and continue to other rules/fallback; test with both valid and invalid sample input. See capture groups and shared state for further examples.

NoMatchResponse · Make unsupported requests visible

Pattern: leave blank · Response: ERROR UNKNOWN COMMAND.

Used only after no ordinary row matches. The engine makes a separate fallback pass, so this mode is not an ordinary catch-all at its table position. If several fallback rows exist, only the first is used. Use one fallback near the bottom for clarity. An empty fallback response deliberately leaves an unknown request unanswered; a defined error is often easier to troubleshoot during client development.

Rule order and processing order

  1. A pre-response script can provide a response and bypass the table; check scripting settings when a visible rule seems unused.
  2. Ordinary rows are checked top to bottom. The first matching row handles the message; rows are not chained together.
  3. For RegEx, captures update variables first. Static Variables Sets then execute in order.
  4. Response tokens expand using that updated state; the configured response delay runs and the response bytes are generated.
  5. If no ordinary rule matches, the first NoMatchResponse is used. Without a fallback, there is no table reply.
Common use case · Build a small stateful device

Add the SET RegEx row above, followed by an Exact STATUS? row with response V=%Voltage% OUT=%Output% MODE=%Mode%, then one NoMatchResponse error row. Define initial values in the initial-variable editor so STATUS? works before the first SET. After SET 12.5,1, a later STATUS? reports the remembered values rather than a fixed canned answer.

To remember a command silently, leave its Response Message empty and keep its capture/assignment fields. Auto Respond must still be enabled. Save initial defaults for reproducibility; runtime captures and the current Variable window values are transient. Use command buttons or a client Sequence Builder in a second instance to drive a repeatable test.

For the exact build-current token patterns, modes, and validation rules, use Help → Current build scripting / Auto Response reference. Agents can obtain it with read_auto_response_reference. See also random values and variables and capture groups.

Common use case · Simulate a real device’s known response time

A real device often needs time to process a command, take a measurement, move an actuator, or read stored data before replying. An immediate canned response can make a client look reliable even though it would time out or send the next request too early against the real equipment. Use Response Delay (ms) to approximate a known processing delay for each command.

For example, if the real instrument normally answers READ TEMP? after about 150 ms, add an Exact row for that request, enter a representative reply such as TEMP=24.5, and set Response Delay (ms) to 150. If a calibration command typically takes 2000 ms, give its own row a delay of 2000. Different commands can therefore behave at different, realistic speeds.

Measure representative request-to-reply times from the real device, then test a typical value and the slowest expected value in separate runs. Check that the client waits for the response, keeps its interface responsive, and uses a suitable timeout. A controlled delay beyond the client’s timeout also lets you test its timeout/retry behavior; watch for late replies that could be mistaken for the response to a retry.

The value is an added software delay, not a guarantee of exact end-to-end latency. Receive message detection, application processing, operating-system scheduling, and transport time also contribute. If a measured 150 ms includes those effects, use 150 ms as a starting point and compare the simulator’s observed request/reply gap before adjusting. This field accepts a fixed integer per row; it does not automatically reproduce jitter, a statistical distribution, or the device’s internal concurrency. Long delays block this response-processing path and can affect subsequent message handling.

Back to Auto Responses · All chapters

How scripts interact with the Auto Response table

A received message can be transformed by MessageReceived before table matching. With Auto Respond enabled and the message allowed by filtering, PreAutoResponseHandler then runs before the table: return null to use the table, or return a byte array to bypass it. An empty byte array also bypasses the table. PostAutoResponseHandler runs after pre-handler/table selection and can change, replace or suppress the result, including supplying a reply when no table row matched. Outgoing terminators and final byte manipulation follow. See the complete message flow and worked script/table example for callback order, empty/null behavior and testing.

Property grid reference

Auto Response System

When you select this group: Enable and configure automatic replies using the ordered Auto Response table. Detection rules select a row, captures and assignments update variables, and the response is then expanded. Initial defaults are separate from transient runtime values. Check framing and table order when replies do not match expectations.

Enable request-driven device/server behavior.

Shown in: Direct serial/TCP/UDP, serial sniffer, LAN sniffer, and MITM modes; passive sniffer replies are suppressed.

GUI itemMeaning, use, and interactions
Auto RespondEnable table-driven matching, state updates, and replies for device/server simulation. Applying a table alone does not enable it. State-only rows also need Auto Respond; serial/LAN sniffer modes suppress automatic replies. Confirm receive detection first.
Common use case · Put these settings together

Apply an Exact HELLO → WORLD table rule, enable Auto Respond, and verify one correctly detected request/reply before adding captures or random values.

See the related workflow guide for the surrounding procedure and examples.

Back to Auto Responses · All chapters

Sub-window controls

Auto Response Editor: toolbar and action buttons

Edit a working table, then Apply. The engine uses ordinary rules in order, so moving a rule is a behavior change.

Large text editor

Double-click a Receive Message Pattern or Response Message cell to open a resizable floating dialog. It supports long text, visual word wrapping, vertical scrolling and the same random-value right-click menu. OK (Ctrl+Enter) updates the working cell and marks it pending; Apply still activates the table. Cancel, Escape or closing the dialog discards dialog edits. Enter does not insert line breaks. Pasted line breaks become spaces; wrapping is visual and adds no characters to the value. Use configured terminators for protocol framing. Evaluation Mode, variable lists and Response Delay keep their existing inline editors.

Label, tooltip, or iconFunction and practical use
Delete RowDelete the selected row. Use to remove an obsolete definition; save a baseline first. This is a row operation, not clearing the entire table. Apply the working table afterward.
Move Row UpMove the selected row up one position. Use to organize related entries; in matching tables the order can change which rule wins. Ordinary matching stops at the first match; keep narrow rules first. Apply afterward. Apply the working table afterward.
Move Row DownMove the selected row down one position. Keep specific match rules above broad ones when ordering Auto Responses. Ordinary matching stops at the first match; keep narrow rules first. Apply afterward. Apply the working table afterward.
Copy RowCopy the selected row into this editor’s internal row buffer. This is different from copying selected cell text to the Windows clipboard. Apply the working table afterward.
Paste RowReplace the selected row with a copy of the internally copied row; at the new-row position, editors that support it append the row. Copy first, then choose the destination carefully: this is not a generic insert-after operation. Apply the working table afterward.
ASCII / HEX dropdownThis selector is present, but the current editor code only initializes it to ASCII and does not wire a conversion/change action. Use Send And Auto Response Settings → Converter Mode for actual engine interpretation; do not assume this dropdown converts the table.
ApplyValidate regex syntax, move NoMatchResponse entries to the bottom, and copy the working table into active configuration. Yellow edits clear after application. This does not enable Auto Respond or send a test request.
Regex Helper...Open the regex helper using the configured bracket data type. Use sample input to develop a pattern, then enter the pattern/capture mapping in your table and Apply.
Common use case · Use these controls together

Copy an Exact query row into a new-row slot, change the query/reply, and Apply. Test both queries before adding broader matching rules.

See the workflow guide for the feature’s setup and examples.

Back to Auto Responses · All chapters

Receive patterns, response text and response delays update the draft as you type without leaving the cell. Mode selections commit immediately to the draft. Static-variable sets and regex-variable lists keep unfinished text intact until you finish the cell or use Apply/Copy/Move/Paste. Apply finishes the active edit and validates the table before changing responses; typing alone does not activate the draft.

Grid columns

Column / inputFunction and practical example
Evaluation ModeChoose the matching operation; every dropdown option appears below. Ordinary rules are evaluated in order; the first match wins.
Receive Message PatternCommand or pattern, for example STATUS? for Exact. Bracket escapes and tokens follow the active converter; NoMatchResponse ignores this field.
Response MessageReply text, for example TEMP=%temp%. An empty reply can still apply variable assignments. Terminators are configured separately.
Static Variables SetsOrdered name=value assignments, for example %mode%=ready; %count%=1. Later assignments can use earlier values; runtime assignments are distinct from saved initial defaults.
Regex Variable NamesNames for unnamed regex capture groups, in capture order; for example %temp% for ^TEMP=(\d+)$. Named captures use their own names. Name every capturing group or none.
Response Delay (ms)Delay before sending a generated response, for example 100 for one tenth of a second; not a receive timeout.

Evaluation Mode dropdown: every option

OptionFunctionExample
ExactCase-sensitive whole-message match.Pattern STATUS? matches STATUS?, not STATUS? extra.
ContainsCase-sensitive substring match.Pattern TEMP= matches REPORT TEMP=25.
NoMatchResponseFallback only when no ordinary Auto Response rule matches; pattern is ignored.Blank pattern, response ERROR UNKNOWN COMMAND.
RegExRegular expression match, with captures available to Auto Response variables.Pattern ^TEMP=(?\d+)$ matches TEMP=25 and captures temp=25.
StartsWithCase-sensitive prefix match.Pattern SET: matches SET:ON, not XSET:ON.

Text and mode changes update the draft; press Apply to activate it and enable Auto Respond separately. See Auto Response matching and capture examples for converter and fallback details.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Copy Row
  • Delete Row
  • Discard dialog edits (Escape)
  • Edit long response or receive-pattern text; wraps visually without line breaks
  • Move Row Down
  • Move Row Up
  • Paste Row
  • Update the working cell (Ctrl+Enter); Apply activates the table
Window guide

Regular Expression Helper

Preview a sample match and capture groups before building an Auto Response rule.

ControlHow and why to use it
Message and RegExEnter representative input and a pattern; editing recalculates the preview. Bracket codes are expanded; the helper pattern expansion currently uses decimal codes.
Variable NamesEnter capture destinations such as %Temp%, %RH%, %Time%. The preview maps captured groups in order; it does not assign live simulator variables.
Full Match and ResultsInspect group zero and the mapped captures. The error display asks you to check the expression when matching fails.
Close / transfer resultsCopy the tested expression and destinations into the Auto Response editor and Apply there. This helper has no Apply or Send button.
Common use case

Test a temperature/humidity reply against several representative messages, including malformed input, then use the validated capture pattern in the table. See capture and state rules for the engine’s naming requirements.

Back to Auto Responses · All chapters

Variables, state & random values

Variables, state & random values

Capture and reuse values, define saved defaults, and inspect or graph the current run.

In this chapter · 5 guides
Remember values

Variables turn replies into a device model

Remember a setting from one request and use it in later replies.

Initial values, captures and assignments

Use the Init Variables editor for saved starting values. RegEx rows can capture values into variables; Static Variables assignments run in order after captures, then the response expands references such as %Voltage%. Names are case-sensitive. Name every capturing group in the capture list, or leave the list empty; non-capturing (?:...) groups do not consume a capture slot.

Worked example: adjustable supply

The worked example below uses a fictional adjustable supply to capture Voltage and Output, remember Mode, and return the stored values on a later request. Configure the reply rules here, then use the adjacent Initialize Variables and Variables guides for editor controls.

Variable multicast: share state between simulator instances

In Simulator Settings, the first property-grid group, set Variable Multicasting to True in every participating instance. Default is False. This opens a separate variable-sharing UDP channel at 224.0.0.200:20000, intended for cooperating applications on the same PC. It operates independently of the device communication mode and Connect button: a serial-device model and a TCP-device model can share the state behind their replies.

When an existing runtime variable's Value changes locally, the sender publishes its complete current variable list. Receivers update only names they already have, with exact, case-sensitive matching; unknown names are ignored. A sender ignores its own packets, and received updates are not immediately rebroadcast. Creating a variable alone does not trigger this Value-change publication.

Enabling multicast does not request or send a starting snapshot: define matching names first, then change an existing value in the intended source. Sharing transfers values, not scripts, Auto Response tables, commands, settings, or saved initial-default definitions.

Worked use case · Two simulated devices share one voltage
  1. Open simulator instances A and B. In both Init Variables editors, define Voltage=12.0 and apply so Voltage exists in both runtime Variables windows.
  2. Set Variable Multicasting to True in both. Save each simulator XML to retain its preference and starting defaults.
  3. In A, apply a RegEx Auto Response row with pattern ^SET ([0-9]+(?:\.[0-9]+)?)$, Regex Variable Names %Voltage%, and response OK. Enable Auto Respond and send SET 13.2 from a controlled peer. The capture updates Voltage and publishes A's variable list.
  4. Watch B's Variables window for Voltage = 13.2. An Exact VOUT? row in B with response %Voltage% can now report that value through B's own device connection when Auto Respond is enabled.
  5. Turn sharing off in each instance after the test. Disabling it stops sharing but does not restore previous values.

Other uses include sharing Output on/off state between controller and meter models, feeding captured telemetry into a separate status simulator, or updating shared test state from scripts. Inspect values in Variables or select them in Strip Chart.

Ownership and isolation: all participants use the same fixed group and port; there is no per-scenario channel or variable allowlist. Because the whole list is published, changing an unrelated variable can also republish an older shared value. Prefer one writer per shared value. Concurrent writers have no conflict-resolution or atomic multi-variable transaction guarantee. Use distinct names for unrelated state and leave sharing off for independent tests.

Delivery and troubleshooting: UDP has no delivery acknowledgement, missed-update replay, or automatic catch-up for a late-starting instance. Check that both instances have sharing enabled, matching variable names already exist, and a local Value change occurred after enabling it. Firewall and multicast routing can affect delivery. The channel is not authenticated or encrypted; sender identity is a local process ID, so do not assume cross-PC synchronization. Received values update runtime state; maintain deliberate saved starting values separately in Init Variables.

Capture groups: turn incoming text into live variables

In a RegEx row, each capturing pair of parentheses extracts part of the incoming message. The Regex Variable Names column maps capturing groups to simulator variable names in order: group 1 to the first name, group 2 to the second, and so on. Group 0 is the entire match and is not assigned. Enter the names using the editor's percent-delimited syntax, for example %Voltage%; %Output%.

For the fictional request SET 13.2,1, use Receive Message Pattern ^SET ([0-9]+(?:\.[0-9]+)?),([01])$ with Evaluation Mode RegEx. The first capture becomes Voltage = 13.2; the second becomes Output = 1. The inner (?:\.[0-9]+) is non-capturing, so the optional decimal portion does not take another variable slot. The anchors require the whole message to have the expected shape.

Name every capturing group in the mapping list when you want captures, or leave that list empty when you only want a regex match. Use ASCII letters for these capture variable names and keep their order aligned with the groups. Adding an ordinary parenthesized group later changes the numbering; use (?:...) for structural grouping that should not store a value. This mapping is separate from naming a group inside the regular expression itself.

Static Variables Sets: assignments that run when a row matches

The Static Variables Sets column stores assignments, not read-only constants or C# static declarations. A fixed assignment such as %Mode%=REMOTE runs each time that row matches. An assignment can also copy current state, such as %LastVoltage%=%Voltage%, or evaluate a supported random token. The resulting variables live in the same state used by captures and response substitutions.

The processing order is important: regex captures first → Static Variables Sets in listed order → Response Message expansion. A static assignment can use a value captured by the same row, and a later assignment can use a value assigned earlier in that row. Assigning to a captured variable overwrites its captured value before the response is built. Expressions are string substitutions and supported tokens; text such as %Count%+1 is not automatically arithmetic.

Worked use case · Remember a setting and report it later

Initialize Voltage to 12.0, Output to 0, and Mode to LOCAL in Init Variables. Then add these example rows and Apply:

Evaluation ModeReceive Message PatternRegex Variable NamesStatic Variables SetsResponse Message
RegEx^SET ([0-9]+(?:\.[0-9]+)?),([01])$%Voltage%; %Output%%Mode%=REMOTE; %LastVoltage%=%Voltage%OK V=%Voltage%;OUT=%Output%
ExactSTATUS?EmptyEmptyV=%Voltage%;OUT=%Output%;MODE=%Mode%
ExactOFFEmpty%Output%=0OK
  1. Enable Auto Respond and send SET 13.2,1 from a controlled peer. Expect OK V=13.2;OUT=1.
  2. Open the Variables window. Voltage should now show 13.2, Output 1, Mode REMOTE, and LastVoltage 13.2. Captures and assignments create missing names or update existing names.
  3. Send STATUS?. With no new captures or assignments, the response reuses remembered state: V=13.2;OUT=1;MODE=REMOTE.
  4. Send OFF, then STATUS?. Output changes to 0, while Voltage remains 13.2. The simulator now behaves like a device with independent settings rather than a collection of unrelated fixed replies.

The example commands are fictional; match your real device's verified protocol and configure framing separately.

The Variables window is your view of current state

Open the Variables window using the main toolbar's variables action. It is bound to the same live variable collection that the response engine updates. Use it to confirm which group was captured, whether a matched row ran its assignments, and which value a later response will substitute. Capture values remain available to subsequent requests until overwritten or reset; they are not limited to the row that captured them.

Keep live state separate from saved starting defaults. Init Variables defines the starting values saved with the simulator. The Variables window shows the current run, including captured and assigned values. Saving the simulator does not automatically turn those live captures into saved starting defaults. To reproduce a known startup state, define it explicitly in Init Variables and reload the file.

Common use cases · Diagnose empty or incorrect substitutions

If a response contains a blank field, inspect the Variables window first. Undefined references expand to empty strings. Check exact spelling and case, the percent-delimited capture-name list, group numbering, and whether an earlier row matched first. A nonmatching regex does not update the intended values.

If a captured value immediately changes, inspect that row's Static Variables Sets for an overwrite. If later requests unexpectedly reset a value, look for a fixed assignment on a broad row. Avoid self-references and cycles such as assigning a variable a value that still contains itself.

For state-only commands, a matching row can assign variables with an empty Response Message; the standard host skips an empty payload. Auto Respond must still be enabled for this workflow, and sniffer modes suppress it. Script overrides can change the behavior. Variable multicasting is separate: keep it off when you want independent instance state during a controlled test.

Back to Variables, state & random values · All chapters

Sub-window controls

Initialize Variables: toolbar and action buttons

Edit saved initial defaults, separately from runtime captures and the live Variable window. Changes are bound to the initial-value list; save the simulator file to retain them.

Label, tooltip, or iconFunction and practical use
Delete RowDelete the selected row. Use to remove an obsolete definition; save a baseline first. This is a row operation, not clearing the entire table.
Move Row UpMove the selected row up one position. Use to organize related entries; in matching tables the order can change which rule wins.
Move Row DownMove the selected row down one position. Keep specific match rules above broad ones when ordering Auto Responses.
Copy RowCopy the selected row into this editor’s internal row buffer. This is different from copying selected cell text to the Windows clipboard. In this editor the current handler skips the first row for Copy/Paste. Paste replaces an existing selected row; it does not insert a new definition.
Paste RowReplace the selected row with a copy of the internally copied row; at the new-row position, editors that support it append the row. Copy first, then choose the destination carefully: this is not a generic insert-after operation. In this editor the current handler skips the first row for Copy/Paste. Paste replaces an existing selected row; it does not insert a new definition.
Common use case · Use these controls together

Define defaults for Voltage and Output so STATUS? has a meaningful response before the first SET command. Reordering defaults can matter when a value refers to another variable.

See the workflow guide for the feature’s setup and examples.

Back to Variables, state & random values · All chapters

Initial variable names and values update as you type or paste, including a new row, without clicking another row. These are saved initial defaults; live variable assignments in the Variables window retain their explicit cell-commit behavior.

Grid columns

Column / inputFunction and practical example
nameSaved initial variable name, for example mode or engine_speed. Use names consistently in %name% substitutions.
ValueSaved initial value, for example idle or 0. Defaults can reference other defaults; avoid cyclic references. These are startup/default definitions rather than a live signal display.
Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Copy Row
  • Delete Row
  • Move Row Down
  • Move Row Up
  • Paste Row
Sub-window controls

Variables: toolbar and action buttons

Inspect or edit live shared state. These controls operate on the bound runtime list, not a draft requiring Apply. Runtime captures remain transient.

Label, tooltip, or iconFunction and practical use
Delete RowDelete the selected row. Use to remove an obsolete definition; save a baseline first. This is a row operation, not clearing the entire table.
Move Row UpMove the selected row up one position. Use to organize related entries; in matching tables the order can change which rule wins.
Move Row DownMove the selected row down one position. Keep specific match rules above broad ones when ordering Auto Responses.
Copy RowCopy the selected row into this editor’s internal row buffer. This is different from copying selected cell text to the Windows clipboard. In this editor the current handler skips the first row for Copy/Paste. Paste replaces an existing selected row; it does not insert a new definition.
Paste RowReplace the selected row with a copy of the internally copied row; at the new-row position, editors that support it append the row. Copy first, then choose the destination carefully: this is not a generic insert-after operation. In this editor the current handler skips the first row for Copy/Paste. Paste replaces an existing selected row; it does not insert a new definition.
Common use case · Use these controls together

Watch Voltage change after a regex SET command, then query STATUS? to verify that a response uses the current value.

See the workflow guide for the feature’s setup and examples.

Back to Variables, state & random values · All chapters

Grid columns

Column / inputFunction and practical example
Variable NameRuntime variable identifier, for example EngineSpeed. Use the same name in %EngineSpeed% substitutions and Strip Chart.
Variable ValueCurrent runtime text value from responses, scripts, sequences or CAN Watch. Example: 1200. Changes can be overwritten by the next producer update; use Initialize Variables to define saved defaults.
Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Copy Row
  • Delete Row
  • Move Row Down
  • Move Row Up
  • Paste Row
Window guide

Strip Chart

Right-click the plot and choose Zoom all to fit all retained plotted data on the X (time) axis and every Y axis, including axes with hidden labels. Left- or right-click an individual axis to auto scale only that axis. Right-clicking an axis does not open the plot menu. Roll the mouse wheel over an axis to zoom only that axis around the pointer; over the plot it zooms time and all plotted Y axes. Left-drag the plot to pan time and all plotted Y axes, or drag over an axis to pan only that axis. Only operations that change the X axis uncheck Track time: X-axis zoom/fit/pan, plot zoom, horizontal plot pan and Zoom all. Vertical-only plot dragging preserves tracking; adding horizontal movement turns it off. Y-axis zoom, auto-scale and pan preserve Track time and remain independent of its redraws; recording continues. Zoom all and axis auto-scale fit the data even when Min/Max are configured; saved Min/Max settings remain unchanged until edited.

While Capture is on in Live mode, checked channels are sampled every 500 ms (2 Hz), even when values stay constant. Every value assignment is also retained immediately, preserving changes faster than 2 Hz. Sampling continues when the chart is hidden and while communications are disconnected. Timer scheduling is best effort; delayed ticks are not backfilled with invented history. File mode never adds live samples.

The channel browser combines local variables (including CAN Watch assignments) and EtherCAT channels. Entries identify their source. Use the source dropdown to show All sources, Local variables (including CAN Watch), or EtherCAT channels; filters preserve selections. Newly created runtime variables appear while the browser stays open. Search matches variable names as well as channel labels and mappings. Add a variable, keep On and Capture enabled, and commit numeric edits in Variables to plot them.

The leftmost toolbar dropdown selects Live or File. Live captures selected runtime variables while connected or disconnected, including committed manual edits, Auto Response regex captures and CAN Watch variables, plus selected EtherCAT channels. File enables Open for an EtherCAT PCAP/session file without connecting or changing variables. File Open and Inspect are disabled in Live; Inspect requires a loaded file. Capture, Track time and Clear history are disabled in File. Select Live to clear the file view and start an empty live chart; add live channels again. The recording file is preserved. Export CSV saves retained chart samples; it is separate from recording raw EtherCAT frames to disk.

The chart starts empty, including after opening a recording. Click Add channels … in the empty row's Channel … column. Search by short name or full mapping, select one or more channels using Shift for a range or Ctrl for separate channels, and press OK to add them. Selections survive search changes. Cancel adds nothing. Channels already in the grid are omitted from the browser. Clicking an existing Channel button inserts before that row; the empty row appends. Use Alt+Up/Alt+Down on a grid row to reorder it, or Delete to remove it. Unchecking On keeps the row but stops capture/plotting for it. At most four Y-axis checkboxes are selected; selecting a fifth unchecks the oldest selection without changing capture or plotted lines. Narrow charts can show fewer axis labels.

EtherCAT labels use S1 DI02 for slave 1 digital input channel 2, S3 AO05 for slave 3 analog output channel 5, and DI/DO/AI/AO for documented I/O types. Status/diagnostic fields keep readable names. Uncertain types/channel numbers retain object-based labels; unknown slave positions use A plus the configured station address. Full mapping identities remain in channel tooltips and CSV. Grid order is retained for the chart session.

Grid controls and live values

Check Auto Y on a channel to lock its Y axis to continuous auto scaling, independent of Track time. The lock fits the plotted values on each redraw, overrides configured Min/Max for the view, and ignores manual Y wheel zoom and pan until unchecked. Unchecking Auto Y freezes the current range; manual Y adjustments also retain their range during time tracking. Editing Min/Max releases the lock and applies those bounds. New File, file load and source changes reset the locks.

The grid columns are On, Y axis, Channel …, Value, Min, Max and Auto Y. At most four Y axes are selected; uncheck it to hide that axis and reclaim graph space while the line retains its own scale. Value shows the latest runtime value, including when this variable is unchecked or capture is stopped. Live values refresh on the existing timed display update; unchanged cells are not rewritten, and hidden windows skip UI refresh. Axis choices reset with a new or loaded simulator file.

Select channels and set Y-axis bounds

Check On beside each variable you want to capture and plot. Blank Min / Max uses automatic Y scaling. Capture records every assignment to checked variables, including repeated values; nonnumeric values produce gaps. Each variable retains up to 100,000 samples and overwrites its oldest samples when full. Capture continues while the window is hidden; visible redraw is limited to 10 Hz, with the next redraw scheduled after the current one finishes. At high rates, the displayed lines use a bounded minimum/maximum envelope that retains peaks and troughs; buckets containing invalid or missing mapping data are shown as gaps. Exact retained samples remain available in CSV. At 10 kHz, the 100000-sample live history is about 10 seconds per channel; raw PCAP recording continues independently. Axis labels are limited to the space available: widen the chart or uncheck Y axis on other variables to choose which labels are shown. More than eight traces use the variable list instead of a crowded legend. The grid and graph use the space below the toolbar without an instruction panel or bottom status panel.

Toolbar and hidden-window behavior

The icon toolbar uses Record for Capture, a clock-and-arrow for Track time, an eraser for Clear history and Save for Export CSV. Turning Capture off unchecks and disables Track time; restarting Capture enables the button without forcing it on. While hidden, the chart stops its redraw timer and skips view rebuilding; selected-variable capture continues and the chart catches up when reopened.

To plot a CAN signal, enter a local variable name in its CAN Watch Variable cell, then open Strip Chart, add that variable from the channel browser and leave On checked. CAN Watch assigns its scaled interpreted value at the existing display/variable-update cadence, including repeated values; graph Capture is separate from CAN recording.

Graph local variable assignments over elapsed time, independently of chart redraw speed.

Open the chart and feed variables

Open Strip Chart from the Windows dropdown, immediately after Message Tracer. Add channels from the empty grid row; On starts checked for each added channel. Each variable has its own labelled Y axis. Edit Min and Max to set independent scales; blank cells use automatic bounds. Enter finite numbers with Min less than Max. Scales remain when hiding or unchecking channels or clearing history, and reset on New File or file load.

Drag the divider to allocate grid space within the same window size. New names become available in the browser; each selected variable starts with its current value. Capture records every subsequent assignment, including repeated values, before GUI-bound variable notifications. The view redraws at up to 10 Hz; capture continues when the window is hidden. The numeric graph uses OxyPlot 2.2.0 (MIT).

Capture, Track time and retention

Capture explicitly stops/resumes collection. Track time shows the newest data; turn it off to inspect history. View selects 30 seconds, 60 seconds, 5 minutes or all retained history without removing samples. Clear history keeps variable choices but restarts elapsed time. Export CSV writes all retained samples for checked variables, including repeated values and raw text for nonnumeric assignments.

Numeric input and gaps

Finite decimal values are plotted using invariant or Windows decimal notation without thousands separators. Nonnumeric values produce gaps. History retains 100,000 samples per variable (about 16 minutes 40 seconds at 100 Hz); status reports assignments, retained samples, nonnumeric values and overwritten old samples. CSV export contains variable name, elapsed seconds, UTC time, numeric/raw value and sequence. Export before history rolls out for longer recordings. Graph selections/history clear on new-file or simulator-file load; desktop layouts retain window placement. Script visibility uses SimulatorWindow.VariableGraph.

Variable discovery and signal sources

Start with an empty chart and add the variables you want from the channel browser. Right-click for Zoom all. Left- or right-click an axis to auto scale it, use the mouse wheel over an axis to zoom it, and left-drag to pan. Only X-axis navigation unchecks Track time while recording continues. Drag the divider to resize the variable list and graph.

Capture and export workflow

Capture every assignment to checked variables, including repeated values. Follow the newest captured data. Turn off to pan and zoom without stopping capture. Clear retained graph samples and restart elapsed time; keep checked variables. Export all retained samples for checked variables, including repeated and nonnumeric assignments. Choose the visible time span; retained samples and CSV export are unchanged.

Common use case · Graph device responses at 100 Hz

Frame each incoming reply correctly and capture values into local variables. For a client, enable Auto Respond with RegEx rows and completely empty Response cells to parse without replying. Select those variables here. Capture timestamps are variable-assignment times, not physical device sample timestamps; unmatched/filtered frames and values never assigned cannot be graphed. Software loopback verifies 100 Hz capture; real transport, scripts and UI workload still determine throughput. Pan/zoom changes the view, and display line simplification does not remove retained/exported samples.

Back to Variables, state & random values · All chapters

Capture follows committed runtime variable assignments from script Helpers/Utilities, Auto Response and sequences, CAN watch variables, the Variables edit table and received variable multicast. Replacing or pasting a variable rebinds capture and records its copied initial value. Select the variable and leave Capture enabled. Unfinished live-table edits and saved initial defaults are not runtime samples. Unchanged remote multicast values and own-instance packets are ignored by synchronization.

Text values are not numeric plot points. A checked variable with only text, empty or nonfinite values in the displayed history has no plotted series or value axis. Text between numbers breaks the line; numeric history remains visible. Raw text is retained for status and CSV export.

Grid columns

Column / inputFunction and practical example
OnCheck to capture and display this variable while Capture is enabled. Unchecking leaves existing history available but stops subsequent capture for this variable.
Y axisCheck to show this channel’s labeled Y axis. Unchecking hides its axis while retaining the plotted line and its capture selection.
Channel …Button showing the short channel name. Open the browser to insert selected channels before this row; the empty Add channels row appends. Hover for the full mapping identity.
ValueRead-only latest runtime value, even when On is unchecked or Capture is off. Hidden-window display updates wait until the window is visible again.
MinLower Y-axis bound. Leave blank for automatic scaling; enter 0 to fix the bottom at zero.
MaxUpper Y-axis bound. Leave blank for automatic scaling; enter 8000 for an rpm scale. If both bounds are specified, Min must be less than Max.
Auto YLock this Y axis to continuous automatic bounds. Uncheck to freeze its range. This does not change Track time.

EtherCAT recording charts

Open EtherCAT recording loads a completed PCAP or INIT session segment and replaces the chart history with recorded diagnostic metrics using the original hardware or capture-clock timing. Inspect EtherCAT recording opens read-only frame/event evidence. Choose metric rows to plot working counters, interframe gaps or state values; initialization boundaries create line gaps. Clear history returns the chart to local variable history. Turning Capture on also returns to live local variables and clears the recorded chart history. No replay path connects, sends, sets runtime variables or runs saved scripts. Available decoded CoE/PDO process channels can also be added from the browser.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add channels …
  • Add selected channels to the chart grid.
  • Chart local variables and live channels independently of the communications connection.
  • Choose all sources, local variables including CAN Watch assignments, or EtherCAT channels. Source filters preserve selections.
  • Choose Live to chart variable assignments while connected or disconnected, or File to browse a recording.
  • Choose the visible time span; retained samples and CSV export are unchanged.
  • Clear retained graph samples and restart elapsed time; keep checked variables.
  • Close the browser without adding channels.
  • Drag the divider to resize the variable list and graph.
  • Export all retained samples for checked variables, including repeated and nonnumeric assignments.
  • Fit all retained plotted data on the time axis and every Y axis; turn off Track time.
  • Inspect the loaded EtherCAT recording's frames, initialization boundaries and diagnostic evidence.
  • Latest runtime value, including when this variable is unchecked or capture is stopped.
  • Lock this Y axis to continuous auto scaling. Uncheck to freeze its current range. Locked axes ignore manual Y zoom and pan; Track time is independent.
  • Open an EtherCAT PCAP or session segment; replace chart history with recorded diagnostic metrics without connecting or changing runtime variables.
  • Open the channel browser to insert channels before this row. Use the empty Add channels row to append.
  • Pause live charting and enable recording file controls.
  • Record checked channels at 2 Hz, plus every faster value assignment. Stopping capture turns off Track time.
  • Right-click the plot for Zoom all. Left- or right-click an axis to auto scale it; wheel over an axis to zoom it. Left-drag to pan. Only X-axis navigation turns off Track time. Y-axis adjustments preserve tracking; Auto Y locks continuous auto scaling. Recording continues.
  • Search short channel names and full mapping identities.
  • Select one or more channels with Shift or Ctrl. OK adds them to the chart.
  • Show up to four Y axes. Selecting another axis unchecks the oldest selection without changing capture or plotted lines.
  • Start with an empty chart. Click Add channels in the new row to browse and select channels with Shift or Ctrl.
  • Track time: follow the newest captured data on the X axis. Y-axis adjustments and Auto Y locks do not stop tracking. Available only while Capture is on.
Realistic variation

Random floats and integers

Make simulated readings vary so a client cannot accidentally succeed by depending on one fixed value.

Where to use random tokens

Random tokens belong in response text or ordered Static Variables assignments. Use the exact spelling below, a decimal point, and no spaces inside the token. Integer upper limits are exclusive. Floating-point formatting follows the current Windows culture.

TokenUse
%RandomFloat(20,25,2)%A reading in a configured range, formatted to two decimals
%RandomInteger(1,7)%An integer from 1 through 6
%RandomFloatBand(12.0,0.05,0.05,2)%A reading centered on 12.0 with a ±0.05 band
%RandomFloatBandPercent(100,2,2,1)%A percentage band around a center
%RandomIntegerBand(100,2,2)%An integer band using center/minus/plus arguments; upper limit remains exclusive
%RandomIntegerBandPercent(100,5,5)%An integer percentage band; upper limit remains exclusive

Right-click random-value shortcuts

In the send box or an Auto Response cell being edited, highlight a whole number and choose Replace with Random Integer or Replace with Random Float. The dialog uses that number as the center; enter a non-negative ± variation and, for floats, 0–8 decimal places. For example, replacing 100 with an integer variation of 2 creates %RandomIntegerBand(100,2,2)%. Decimal selections support floats. With no selection, Insert Random Float and Insert Random Integer insert a token at the cursor using your chosen center. Non-numeric selections disable replacement. Cut, Copy and Paste remain available. Cancel leaves the text unchanged. Apply table edits before testing.

The send box allows variables and random tokens in HEX mode. Tokens resolve once before HEX validation and conversion; valid text sends immediately. The resolved text must contain an even number of hex digits, with only spaces or hyphens as separators. Invalid or empty resolved text is reported in the message log and is never sent. Repeated sends resolve and validate each time. Random integers output decimal text, which HEX mode interprets as hex digits; random floats typically include a decimal point and fail HEX validation.

The existing expansion routine processes the first matching random-token family per call. Do not mix different random families in one response or assignment. Use separate ordered Static Variables assignments to compute values first. Direct range tokens accept unsigned numbers; band centers can be negative. Use sensible ranges and 0–8 decimals. RandomInt is not a built-in token.

Common use cases · Noisy sensors, status codes, and stable samples

A noisy reading around a remembered setpoint

After capturing Voltage, reply to VOUT? with %RandomFloatBand(%Voltage%,0.05,0.05,2)%. The setpoint remains stored, while each reading varies around it.

One sample repeated in several fields

Assign %Reading%=%RandomFloat(20,25,2)% once in Static Variables, then use %Reading% several times in the response. Separate direct token occurrences can produce different draws; a stored variable preserves one sample.

Mix a numeric reading and an integer status

Assign %Reading%=%RandomFloat(20,25,2)% first and %Status%=%RandomInteger(0,3)% second. Respond with T=%Reading%;S=%Status%. Each assignment uses one random family, avoiding dependence on repeated expansion passes.

Testing a boundary requires a fixed test too

Random data may never hit a rare edge case. Keep deterministic rows or a separate saved configuration for exact minimum, maximum, error, and malformed-value tests.

Back to Variables, state & random values · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Cancel without changing the text
  • Center value for the random token
  • Decimal places for random floats (0 to 8)
  • Insert or replace the selected text with the random token
  • Non-negative variation below and above the center

Commands, polling & sequences

Commands, polling & sequences

Send individual requests, build reusable command buttons, or run an ordered client procedure.

In this chapter · 6 guides
Client workflows

Command buttons and polling

Act as the controller or client: initiate requests, apply settings, and inspect what a real or simulated device returns.

Choose the right sending tool

Command buttons and repeat sends help you drive the conversation. By contrast, Auto Response tables usually model the device or server that answers those requests. Use Sequence Builder when the client workflow needs an ordered series of steps.

One-shot or repeated requests

Send is best for an isolated query. Repeat helps watch periodic behavior. Device Commands give frequent raw commands friendly labels without rewriting them each time. Sequence Builder is for ordered test steps. Heartbeat is a distinct keepalive workflow with its own message, interval, response timeout, and visibility settings.

Message bodies and terminators

Define commands as message bodies and let Message Termination append configured bytes. Stop repeat/sequence activity before changing the test or disconnecting. In MITM, check which side a manual send targets before testing.

Common use cases · Match the tool to the intention

Poll a changing reading

Verify one status query with Send, then enable Repeat at an appropriate interval. Watch both replies and elapsed times; do not infer a reply from the presence of a send log entry.

Make a repeatable setup

Use a sequence for initialization followed by a series of measurements. Give device commands names such as “Read status” while keeping their raw text faithful to the device manual.

Keep an otherwise idle link alive

Use heartbeat only when its message is part of the peer's protocol. Its response timeout can queue the most recent send while awaiting a heartbeat reply or timeout. This interaction matters when investigating delayed manual commands. Show heartbeat messages while validating the setup.

The command table becomes your command-button panel

Open Edit Device Commands to fill out the command table. Each row has a Command Name, used as the generated button label, and Command Send Text, the message template sent when that button is clicked. Finish editing the cell to commit the row, then open the Device Commands window from the main toolbar to use the generated buttons. The panel follows the command list and its order; saving the simulator preserves the list for later use.

Creating or editing a row does not transmit it. Clicking its generated button uses the normal send path, including current variable/token expansion, send conversion, and configured outgoing terminators. A suitable connection must be ready before a command can be sent. In MITM, normal sends target Device 2 and Ctrl-send targets Device 1.

Use current variables in Command Send Text

Put a variable name between percent signs, for example VSET %Voltage%. The stored command remains a template. Its variables are resolved when the button is clicked, using the same live variable collection shown in the Variables window. Values can come from Init Variables, regex captures, Static Variables Sets, or a script.

Command Name / buttonCommand Send TextExample with current state
Read statusSTATUS?Sends the fixed query STATUS?
Apply voltageVSET %Voltage%Voltage = 13.2 → VSET 13.2
Apply outputOUTPUT %Output%Output = 1 → OUTPUT 1
Apply remembered settingsSET %Voltage%,%Output%Voltage = 13.2, Output = 1 → SET 13.2,1

These are fictional protocol examples. Use the actual command syntax supported by your equipment. Keep the name friendly and stable; put variable references in Command Send Text, not in the label expecting it to update dynamically.

Common use cases · Reuse captured settings without retyping
  1. Initialize Voltage to 12.0 and Output to 0, or populate them using the regex-capture example in State & captured values.
  2. Add a command named Apply remembered settings with Command Send Text SET %Voltage%,%Output%.
  3. Inspect the Variables window before clicking. With Voltage = 13.2 and Output = 1, a click sends the expanded body SET 13.2,1.
  4. After a later capture or assignment changes Voltage to 14.0, the same button sends SET 14.0,1. You do not need to recreate the button.

This is useful for repeating a query with the latest channel/address, applying a remembered setpoint, or replaying state captured during a controlled experiment. A button click does not by itself prove that the peer accepted the command—check its reply.

Variable names are case-sensitive and undefined references become empty strings. Confirm the current state before sending; a missing value could turn a valid command into a different or incomplete command. Expansion happens before conversion: in Hex mode, the expanded text must still be valid hex bytes; in Script mode it is passed to SendBoxConverter. Do not include CR/LF in the command body if Send ETX Bytes already appends it. Variable substitution does not validate protocol ranges or automatically evaluate arithmetic.

Back to Commands, polling & sequences · All chapters

Window guide

Device Commands

Call a custom script function

Set Command Send Text to Script.FunctionName() or Script.SetLevel("channel A", 3, true), then click its Device Commands button. Apply or activate the Script Editor first: buttons use the active compiled script, not unapplied editor text. Functions must be public and synchronous. Calls work while disconnected. A return value is ignored and is never automatically sent; the function itself may use Helpers.SendMessage or other helpers.

Use JSON-style literal arguments: double-quoted strings (escape quotes and backslashes), numbers, true/false and null for reference or nullable parameters. Commas and parentheses inside strings are supported. Supply every parameter. A unique compatible overload is required; numeric overloads can be ambiguous. Expressions, variable tokens, arrays/objects, ref/out, optional omissions and async functions are unsupported. Missing functions, malformed arguments and script exceptions appear as SCRIPT COMMAND failures in the Message Window without falling back to sending the command text. Errors do not undo effects already performed by the function.

public int Level;
public void SetLevel(string channel, int level, bool enabled) {
    Level = enabled ? level : 0;
}
// Command Send Text: Script.SetLevel("channel A", 3, true)

Only Device Commands buttons treat this syntax as an action. The send box and Sequence Builder continue to send text normally. Existing %Script(Method,arg,...)% substitutions remain available on the send path: they call public functions with string arguments and substitute a string return value into outgoing text. Those substitutions require the normal send path to be enabled.

Run repeatable client requests using the buttons generated from your command table.

ControlHow and why to use it
Command buttonsEach button uses its command Name as its label and sends its Send Text through the normal communication path, including variable expansion. Check the selected connection and variable values before clicking.
Edit definitionsUse Device Commands Editor to create or change the table. This panel has no fixed toolbar or Apply button; it reflects the command list.
Close / dockingHide the panel with its close control and reopen it from the main toolbar. Opening the panel does not send a command.
Common use case

Create Read status and Set target commands in the editor, then use these buttons while testing a real device. A variable in Send Text lets the same button use the current target value; see client command syntax.

Complete script and button examples

public class SimulatorScripting
{
    public string SelectedChannel = "";
    public int Level;
    public double Gain = 1.0;
    public bool Enabled;
    public string Note;

    public void Reset()
    {
        SelectedChannel = "";
        Level = 0;
        Gain = 1.0;
        Enabled = false;
        Note = null;
    }

    public void SelectChannel(string channel) { SelectedChannel = channel; }
    public void SetLevel(int level) { Level = level; }
    public void SetGain(double gain) { Gain = gain; }
    public void SetEnabled(bool enabled) { Enabled = enabled; }
    public void SetNote(string note) { Note = note; }

    public void Configure(string channel, int level, double gain, bool enabled)
    {
        SelectedChannel = channel;
        Level = level;
        Gain = gain;
        Enabled = enabled;
    }
}

Apply/activate this script, then enter these values directly in Command Send Text:

ExampleCommand Send Text
No argumentsScript.Reset()
StringScript.SelectChannel("channel A")
IntegerScript.SetLevel(3)
Decimal numberScript.SetGain(1.5)
BooleanScript.SetEnabled(true)
Mixed typesScript.Configure("channel A", 3, 1.5, true)
Escaped quotesScript.SetNote("say \"hello\"")
Null referenceScript.SetNote(null)

Inline substitution and the difference

public string BuildCommand(string channel, string level) {
    return "SET " + channel + " " + level;
}
public string ReadCommand() { return "READ?"; }

%Script(BuildCommand,channel A,3)% passes two strings and produces SET channel A 3. %Script(ReadCommand)% takes no arguments and produces READ?. PREFIX %Script(BuildCommand,channel A,3)% produces PREFIX SET channel A 3. The normal send path converts the result and adds terminators. With ASCII and CR, it transmits that text followed by CR.

BehaviorScript.FunctionName(...) action%Script(Method,arg,...)% substitution
PurposeRun a procedure from a Device Commands buttonGenerate text in normal token expansion (send box, commands, responses or sequence sends)
ArgumentsTyped literals; strings need double quotes; escaped quotes/commas supportedAll strings; split on commas; quotes are literal characters with no escape grammar
ReturnIgnored, including void functionsMust return string, inserted into outgoing text
TransmissionNone automatically; script code may explicitly sendGenerated text goes through the normal send path
DisconnectedButton action worksNormal manual send path must be enabled
ErrorsVisible SCRIPT COMMAND failure; no send fallbackInline substitution failure can leave the token unchanged without a visible error

Use action calls for reset/setup/test procedures. Use substitutions to build outgoing command text. Both use the active compiled script, never unapplied editor changes. Inline substitutions should use one token per entry because their matcher is greedy; avoid overloaded functions and commas within arguments. Numbers such as 3 in inline substitution arguments are still strings.

Send from a script to either MITM device

Helpers.SendMessageToDevice(1, Helpers.StringToByteArray("STATUS?"), true);
Helpers.SendMessageToDevice(2, new byte[] { 0x01, 0x02 }, false);

Device 1 and Device 2 correspond to the MITM settings. This helper works only in Serial MITM, TCP MITM or UDP MITM and requires the selected side to be open/connected. true adds that side's send terminators; false uses the supplied bytes without adding terminators. Normal outgoing-byte manipulation still runs. Invalid device numbers, null bytes, another mode or a closed endpoint throw an error. Helpers.SendMessage keeps its existing primary-handler route; use SendMessageToDevice to select a side explicitly.

A command-button function can accept typed arguments:

public void Inject(int device, string text) {
    Helpers.SendMessageToDevice(device, Helpers.StringToByteArray(text), true);
}
// Command Send Text: Script.Inject(1, "STATUS?")
// Command Send Text: Script.Inject(2, "START")

Prevent recursive sends

SendMessage, SendMessageToDevice, SendCanMessage and RepeatCurrentSendBoxValue reject synchronous nested calls and calls made inside SendBoxConverter, SendingBytesManipulationScript or MessageWindowConverter. A raw Script send blocked diagnostic appears in the Message Window and InvalidOperationException is raised. Converter callbacks should return converted bytes/text instead of starting a new send. An uncaught blocked call follows the callback's normal fallback; catch the exception inside the converter if you need to finish your conversion. Ordinary command functions and receive callbacks may send. Keep them short.

The guard resets after exceptions so later legitimate sends work. It protects simulator send re-entry, not arbitrary recursion within user code, delayed/background sends or device-response feedback loops. For response-driven scripts, match only intended requests and bound retries/rates; do not blindly send on every received message.

Send a CAN frame from a script

Helpers.SendCanMessage(1, 0x123, new byte[] { 0x01, 0x02 });
Helpers.SendCanMessage(2, 0x1ABCDE, new byte[] { 0x10, 0x20 }, true);

The signature is Helpers.SendCanMessage(int channel, uint id, byte[] data, bool extended = false). The first example sends a standard 11-bit ID on channel 1; the second sends an extended 29-bit ID on channel 2. Use CAN communication mode, select/configure an adapter, enable the requested channel and Connect first. Common.Utilities.SendCanMessage provides the same API. Payloads contain 0–8 bytes; the byte count is the DLC. Standard IDs range from 0 to 0x7FF; extended IDs range from 0 to 0x1FFFFFFF. Zero bytes are allowed.

These are single classic CAN data frames: no CAN FD, RTR transmission, auto-connect, repeat, text converters or serial/TCP send terminators. The existing provider worker validates channel availability/enabled state and sends through the selected adapter. Invalid input, wrong mode, a disabled/unavailable channel or a disconnected adapter raises an error. Provider enqueue success is not proof of bus transmission or acknowledgement; Tx display/statistics retain native echo/confirmation behavior.

For a Device Commands button, put this public function inside the active script class:

public void InjectCan(int channel, uint id, string hex, bool extended) {
    Helpers.SendCanMessage(channel, id, Helpers.HexStringToByteArray(hex), extended);
}
// Command Send Text: Script.InjectCan(1, 291, "0102", false)
// Command Send Text: Script.InjectCan(2, 1752286, "1020", true)

Command-button numbers are decimal JSON literals (291 is 0x123; 1752286 is 0x1ABCDE). Hexadecimal C# literals such as 0x123 are allowed in the Script Editor. SendCanMessage shares the synchronous recursion guard with SendMessage, SendMessageToDevice and RepeatCurrentSendBoxValue; calls from send-box/outgoing-byte/display converters are blocked with a visible diagnostic. Guard limits still apply to delayed sends and device-response loops. Physical qualification is separate from fixture tests.

Back to Commands, polling & sequences · All chapters

Sub-window controls

Device Commands Editor: toolbar and action buttons

Call a custom script function

Set Command Send Text to Script.FunctionName() or Script.SetLevel("channel A", 3, true), then click its Device Commands button. Apply or activate the Script Editor first: buttons use the active compiled script, not unapplied editor text. Functions must be public and synchronous. Calls work while disconnected. A return value is ignored and is never automatically sent; the function itself may use Helpers.SendMessage or other helpers.

Use JSON-style literal arguments: double-quoted strings (escape quotes and backslashes), numbers, true/false and null for reference or nullable parameters. Commas and parentheses inside strings are supported. Supply every parameter. A unique compatible overload is required; numeric overloads can be ambiguous. Expressions, variable tokens, arrays/objects, ref/out, optional omissions and async functions are unsupported. Missing functions, malformed arguments and script exceptions appear as SCRIPT COMMAND failures in the Message Window without falling back to sending the command text. Errors do not undo effects already performed by the function.

public int Level;
public void SetLevel(string channel, int level, bool enabled) {
    Level = enabled ? level : 0;
}
// Command Send Text: Script.SetLevel("channel A", 3, true)

Only Device Commands buttons treat this syntax as an action. The send box and Sequence Builder continue to send text normally. Existing %Script(Method,arg,...)% substitutions remain available on the send path: they call public functions with string arguments and substitute a string return value into outgoing text. Those substitutions require the normal send path to be enabled.

Edit reusable command labels/text. Names and Send Text update as you type or paste, including in a new row, while the cursor stays in the cell. Generated command buttons immediately reflect the current label and send text. There is no Apply button and you do not need to click another row to accept the text. Editing does not transmit; click a generated command button when ready. Save the simulator file to retain the definitions.

Label, tooltip, or iconFunction and practical use
Delete RowDelete the selected row. Use to remove an obsolete definition; save a baseline first. This is a row operation, not clearing the entire table.
Move Row UpMove the selected row up one position. Use to organize related entries; in matching tables the order can change which rule wins.
Move Row DownMove the selected row down one position. Keep specific match rules above broad ones when ordering Auto Responses.
Copy RowCopy the selected row into this editor’s internal row buffer. This is different from copying selected cell text to the Windows clipboard. In this editor the current handler skips the first row for Copy/Paste. Paste replaces an existing selected row; it does not insert a new definition.
Paste RowReplace the selected row with a copy of the internally copied row; at the new-row position, editors that support it append the row. Copy first, then choose the destination carefully: this is not a generic insert-after operation. In this editor the current handler skips the first row for Copy/Paste. Paste replaces an existing selected row; it does not insert a new definition.
Common use case · Use these controls together

Copy a command into another existing row, rename it and change its argument, then press its generated button only when ready to transmit. Editing the table itself does not send.

See the workflow guide for the feature’s setup and examples.

Complete script and button examples

public class SimulatorScripting
{
    public string SelectedChannel = "";
    public int Level;
    public double Gain = 1.0;
    public bool Enabled;
    public string Note;

    public void Reset()
    {
        SelectedChannel = "";
        Level = 0;
        Gain = 1.0;
        Enabled = false;
        Note = null;
    }

    public void SelectChannel(string channel) { SelectedChannel = channel; }
    public void SetLevel(int level) { Level = level; }
    public void SetGain(double gain) { Gain = gain; }
    public void SetEnabled(bool enabled) { Enabled = enabled; }
    public void SetNote(string note) { Note = note; }

    public void Configure(string channel, int level, double gain, bool enabled)
    {
        SelectedChannel = channel;
        Level = level;
        Gain = gain;
        Enabled = enabled;
    }
}

Apply/activate this script, then enter these values directly in Command Send Text:

ExampleCommand Send Text
No argumentsScript.Reset()
StringScript.SelectChannel("channel A")
IntegerScript.SetLevel(3)
Decimal numberScript.SetGain(1.5)
BooleanScript.SetEnabled(true)
Mixed typesScript.Configure("channel A", 3, 1.5, true)
Escaped quotesScript.SetNote("say \"hello\"")
Null referenceScript.SetNote(null)

Inline substitution and the difference

public string BuildCommand(string channel, string level) {
    return "SET " + channel + " " + level;
}
public string ReadCommand() { return "READ?"; }

%Script(BuildCommand,channel A,3)% passes two strings and produces SET channel A 3. %Script(ReadCommand)% takes no arguments and produces READ?. PREFIX %Script(BuildCommand,channel A,3)% produces PREFIX SET channel A 3. The normal send path converts the result and adds terminators. With ASCII and CR, it transmits that text followed by CR.

BehaviorScript.FunctionName(...) action%Script(Method,arg,...)% substitution
PurposeRun a procedure from a Device Commands buttonGenerate text in normal token expansion (send box, commands, responses or sequence sends)
ArgumentsTyped literals; strings need double quotes; escaped quotes/commas supportedAll strings; split on commas; quotes are literal characters with no escape grammar
ReturnIgnored, including void functionsMust return string, inserted into outgoing text
TransmissionNone automatically; script code may explicitly sendGenerated text goes through the normal send path
DisconnectedButton action worksNormal manual send path must be enabled
ErrorsVisible SCRIPT COMMAND failure; no send fallbackInline substitution failure can leave the token unchanged without a visible error

Use action calls for reset/setup/test procedures. Use substitutions to build outgoing command text. Both use the active compiled script, never unapplied editor changes. Inline substitutions should use one token per entry because their matcher is greedy; avoid overloaded functions and commas within arguments. Numbers such as 3 in inline substitution arguments are still strings.

Send from a script to either MITM device

Helpers.SendMessageToDevice(1, Helpers.StringToByteArray("STATUS?"), true);
Helpers.SendMessageToDevice(2, new byte[] { 0x01, 0x02 }, false);

Device 1 and Device 2 correspond to the MITM settings. This helper works only in Serial MITM, TCP MITM or UDP MITM and requires the selected side to be open/connected. true adds that side's send terminators; false uses the supplied bytes without adding terminators. Normal outgoing-byte manipulation still runs. Invalid device numbers, null bytes, another mode or a closed endpoint throw an error. Helpers.SendMessage keeps its existing primary-handler route; use SendMessageToDevice to select a side explicitly.

A command-button function can accept typed arguments:

public void Inject(int device, string text) {
    Helpers.SendMessageToDevice(device, Helpers.StringToByteArray(text), true);
}
// Command Send Text: Script.Inject(1, "STATUS?")
// Command Send Text: Script.Inject(2, "START")

Prevent recursive sends

SendMessage, SendMessageToDevice, SendCanMessage and RepeatCurrentSendBoxValue reject synchronous nested calls and calls made inside SendBoxConverter, SendingBytesManipulationScript or MessageWindowConverter. A raw Script send blocked diagnostic appears in the Message Window and InvalidOperationException is raised. Converter callbacks should return converted bytes/text instead of starting a new send. An uncaught blocked call follows the callback's normal fallback; catch the exception inside the converter if you need to finish your conversion. Ordinary command functions and receive callbacks may send. Keep them short.

The guard resets after exceptions so later legitimate sends work. It protects simulator send re-entry, not arbitrary recursion within user code, delayed/background sends or device-response feedback loops. For response-driven scripts, match only intended requests and bound retries/rates; do not blindly send on every received message.

Send a CAN frame from a script

Helpers.SendCanMessage(1, 0x123, new byte[] { 0x01, 0x02 });
Helpers.SendCanMessage(2, 0x1ABCDE, new byte[] { 0x10, 0x20 }, true);

The signature is Helpers.SendCanMessage(int channel, uint id, byte[] data, bool extended = false). The first example sends a standard 11-bit ID on channel 1; the second sends an extended 29-bit ID on channel 2. Use CAN communication mode, select/configure an adapter, enable the requested channel and Connect first. Common.Utilities.SendCanMessage provides the same API. Payloads contain 0–8 bytes; the byte count is the DLC. Standard IDs range from 0 to 0x7FF; extended IDs range from 0 to 0x1FFFFFFF. Zero bytes are allowed.

These are single classic CAN data frames: no CAN FD, RTR transmission, auto-connect, repeat, text converters or serial/TCP send terminators. The existing provider worker validates channel availability/enabled state and sends through the selected adapter. Invalid input, wrong mode, a disabled/unavailable channel or a disconnected adapter raises an error. Provider enqueue success is not proof of bus transmission or acknowledgement; Tx display/statistics retain native echo/confirmation behavior.

For a Device Commands button, put this public function inside the active script class:

public void InjectCan(int channel, uint id, string hex, bool extended) {
    Helpers.SendCanMessage(channel, id, Helpers.HexStringToByteArray(hex), extended);
}
// Command Send Text: Script.InjectCan(1, 291, "0102", false)
// Command Send Text: Script.InjectCan(2, 1752286, "1020", true)

Command-button numbers are decimal JSON literals (291 is 0x123; 1752286 is 0x1ABCDE). Hexadecimal C# literals such as 0x123 are allowed in the Script Editor. SendCanMessage shares the synchronous recursion guard with SendMessage, SendMessageToDevice and RepeatCurrentSendBoxValue; calls from send-box/outgoing-byte/display converters are blocked with a visible diagnostic. Guard limits still apply to delayed sends and device-response loops. Physical qualification is separate from fixture tests.

Back to Commands, polling & sequences · All chapters

Grid columns

Column / inputFunction and practical example
Command NameButton caption, for example Read temperature. Editing the name updates its displayed command button.
Command Send TextText sent when the button is pressed, for example TEMP?. Variables and inline %Script(Method,arg)% substitutions are supported: the method must return a string, and that returned text replaces the token within the outgoing message. A whole-cell Script.FunctionName(...) invokes an active script action; example Script.SetMode("idle"). Actions ignore any return value and do not automatically transmit text; use a void method for the action. Editing alone does not press the button.

See Device Commands script-call examples for complete methods, typed arguments and inline substitution syntax.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Copy Row
  • Delete Row
  • Move Row Down
  • Move Row Up
  • Paste Row
  • Send text normally, or use Script.FunctionName("text", 123, true, null) to call an active script function from its command button
Property grid reference

Heartbeat Settings

When you select this group: Send periodic keep-alive messages toward Device 2 when Device 1 is idle. Set the repeat interval and response timeout to match the protocol. Pending sends may wait for the heartbeat response or timeout; Show Heartbeat Messages controls their reporting.

Keep a protocol session alive during quiet periods when the device requires it.

Shown in: Direct serial/TCP/UDP and MITM modes; hidden for passive sniffers.

GUI itemMeaning, use, and interactions
Heartbeat EnabledEnable periodic protocol-level keepalive messages when the peer requires them. This generates traffic and can change a timing experiment; start with it off while proving ordinary requests.
Heartbeat MessageEnter the documented keepalive request for the device. In inline use it is intended to keep Device 2 alive during quiet periods from Device 1. An arbitrary message is not a safe universal heartbeat.
Heartbeat Repeat (ms)Set the heartbeat interval in milliseconds. Choose it from the device’s idle requirements, not as a high-rate polling substitute; too-frequent keepalives add traffic and processing.
Heartbeat Response Timeout (ms)Set how long to wait for the heartbeat response. A positive value enables waiting/queuing behavior for sends until the response or timeout; this can affect client traffic timing. Zero disables that response wait. Test with the actual peer’s expected reply behavior.
Show Heartbeat MessagesShow heartbeat exchanges while validating keepalive behavior. Hide them later to reduce visual noise, but remember that hiding a heartbeat does not stop its transmission.
Common use case · Put these settings together

Prove requests without heartbeat first, then add the documented keepalive and check response timing/queuing. Heartbeat is traffic generation, not a display option.

See the related workflow guide for the surrounding procedure and examples.

Back to Commands, polling & sequences · All chapters

Client workflows

Sequence Builder: exercise a device step by step

Build a repeatable client procedure that sends requests, checks replies, captures values, and decides what to do next.

When to use a sequence

Use this when acting as a client/controller: initialize a device, verify configuration readback, poll until ready, or repeat a bounded test. Auto Responses belong on the responding device/server side. Prove individual requests with command buttons before combining them.

Edit, apply, and run

  1. Open Sequence Builder from the toolbar and choose the sequence in its dropdown. Build rows in execution order.
  2. Finish the cell edit and click Apply Changes to copy the edited table into the execution engine. Yellow cells/button mark edits; Play does not apply a draft and cancels an in-progress cell edit.
  3. Establish the intended connection and press the builder’s Play. It starts at row 1, not the selected row. Variables retain their current state unless your sequence resets them.
  4. Watch the highlighted row and Sequence messages. Stop stops progression/waiting; it does not undo earlier variable changes or device commands. Play starts over rather than resuming. The script editor’s Play/Stop controls are separate.
  5. Sequence edits mark the simulator file as unsaved immediately. Save retains the current editor contents, including a cell still being edited, without applying the draft to the execution engine. If a cell is invalid, correct it before saving. After inserting, moving, or deleting rows, review jump targets and apply again.

What each column means

ColumnHow to use it
ModeOne of the 13 commands below.
CommandText to send/match/print, a delay in milliseconds, or a bare variable name, depending on Mode.
ArgumentsA variable value, comparison operand, or ordered regex capture destinations. Unused by other commands.
Timeout (ms)Response waits only. Enter a positive integer; blank/noninteger uses 5000 ms. This is not a Send delay.
Pass Goto LineResponse match or true comparison: jump to this 1-based row number. Blank/noninteger proceeds to the next row.
Fail Goto LineResponse timeout or false comparison: jump to this 1-based row number. Blank/noninteger stops a response wait on timeout, but proceeds to the next row for a false comparison.

Use existing positive row numbers for jumps; targets are literal integers, not variable expressions. Jump columns are used only by response waits and comparisons, not by Send, delays, variable updates, or log entries. Reaching the end completes the sequence.

Available commands

Send · Transmit the next request

Command contains the outgoing text, for example SET %Voltage%. Variables, bracket byte notation (using the configured Bracket DataType), and special random tokens are expanded before conversion to bytes. The send event requests outgoing terminators. Arguments and jump columns are unused.

When to use it: Use it to identify a device, apply a setting, or request a measurement. Sending advances immediately; it does not prove receipt or wait for an acknowledgement. Add a response-wait row when success depends on a reply. This path converts the resulting string directly to bytes; do not assume the send box’s Hex/Script converter is applied.

Wait_Milliseconds · Give the device time to settle

Put a positive whole-number delay in Command, such as 250. This is the delay before the next row; Timeout is unused. A non-integer Command falls back to 1000 ms. Variables are not expanded in this field.

When to use it: Useful after a reset or configuration change when the device needs settling time. Prefer a reply wait when the device explicitly reports readiness. A delay as the last row finishes immediately because there is no next action to schedule. Timers and operating-system scheduling are not guarantees of precise on-wire timing.

Wait_ResponseExact · Require a specific acknowledgement

Command is the entire expected message, for example OK. Matching is case-sensitive and excludes configured message terminators. Command is literal: variables and random tokens are not expanded.

When to use it: Use for an unambiguous acknowledgement. Extra spaces or additional payload prevent a match. Nonmatching messages are ignored while the timeout continues; they do not immediately take the failure branch.

Wait_ResponseContains · Recognize a stable fragment

Command is a literal, case-sensitive substring, for example READY. No variable/token expansion is performed.

When to use it: Useful when a device adds a changing timestamp or identifier around a stable marker. Choose a distinctive fragment: OK can also occur inside a longer word or an unrelated message.

Wait_ResponseRegExMatch · Validate a reply and capture its data

Command is a .NET regular expression. Variables, special random tokens, and bracket tokens are expanded in the pattern. Use anchors for a whole-message check: ^TEMP=([0-9]+)$. Arguments can map numbered capture groups to variables: %Temperature%, or %Temperature%; %Unit% for two groups. Group 0 is not assigned.

When to use it: Use when the reply contains changing values you need later. Captures are stored in shared variables before the success jump or next row. Use noncapturing groups (?:...) for structure that should not consume a capture slot; use simple alphanumeric variable names. Substituted values become regex syntax, not automatically escaped literal text. An invalid pattern is caught internally and can appear as a timeout; test your expression against sample messages first.

Wait_ResponseStartsWith · Accept a reply family

Command is a literal, case-sensitive prefix, for example STATUS:. No variable/token expansion is performed.

When to use it: Useful when any status reply is sufficient to continue and its changing payload is not needed. Use regex instead when you must validate or capture the payload.

WriteToMsgWindow · Explain the test in the log

Command is a local progress message, for example Readback voltage: %Voltage%. This command expands variables only; it does not expand bracket or random tokens.

When to use it: Use to mark phases, record captured values, or explain a retry/failure path. It writes a Sequence-labelled entry to the output window and does not transmit anything to the device. Arguments and jump columns are unused.

IfVarGreaterThan · Branch on an integer above a limit

Command is a bare variable name, such as Temperature. Arguments is the comparison value, such as 80 or %Limit%; its tokens are expanded. Both operands must parse as signed 32-bit integers. Strictly greater selects Pass Goto Line; otherwise Fail Goto Line.

When to use it: Use for an over-limit response or a retry counter. Equality takes the failure branch. Empty, noninteger, decimal, or out-of-range operands can leave execution stalled on this row; initialize and validate values first, then Stop and correct the sequence if necessary.

IfVarEquals · Branch on exact state

Command is a bare variable name, such as Mode. Arguments is the expected text, such as REMOTE or %ExpectedMode%, with token expansion. Exact case-sensitive string equality selects Pass Goto Line; inequality selects Fail Goto Line.

When to use it: Use to check a captured state or expected response value. This is a text comparison: 01, 1, and 1.0 are different. A known variable compared with its own %Name% value can provide an unconditional success jump; keep loops bounded.

IfVarLessThan · Continue while an integer is below a limit

Command is a bare variable name and Arguments is the token-expanded comparison value. Both must be signed 32-bit integers. Strictly less selects Pass Goto Line; otherwise Fail Goto Line.

When to use it: Use to repeat a poll while Attempts is below a limit. Equality takes the failure branch. The same invalid-integer stall caveat as IfVarGreaterThan applies; this is not a decimal measurement comparison.

SetVar · Initialize or update shared state

Command is a bare variable name, such as Attempts, without percent signs. Arguments is its new value, such as 0 or %Temperature%. Variables, bracket notation, and special random tokens in Arguments are expanded.

When to use it: Use at the beginning of a sequence to reset a retry counter, establish an expected state, or copy a captured value. The value is text; 1+1 is not evaluated as arithmetic. Changes are visible in the Variable window and available to other features using the same shared state.

IncrementVar · Count attempts or completed cycles

Command is a bare variable name, such as Attempts. Adds one to its integer value. A missing or empty variable starts at zero, so its first increment becomes one. Arguments is unused.

When to use it: Use before a request to count attempts, or after an acknowledgement to count successful cycles. A nonempty value that cannot parse as an integer is left unchanged and the sequence advances; reset the counter with SetVar before starting.

DecrementVar · Count down remaining work

Command is a bare variable name, such as Remaining. Subtracts one from its integer value. Missing or empty starts at zero, so the first decrement becomes minus one. Arguments is unused.

When to use it: Useful for a fixed number of repetitions or a remaining-retries budget. Initialize it explicitly. A nonempty noninteger value is unchanged while execution advances; add a conditional row to decide whether another iteration is allowed.

Worked examples

These fictional text protocols illustrate the workflow. Replace requests, replies, framing, and timeouts with those of your device. A response wait examines assembled incoming messages without their terminators, so configure message framing first. It does not filter by device ID; unrelated traffic in a multi-sided session may satisfy a broad match.

Common use case · Capture a measurement and use it in a later request
RowModeCommandArgumentsTimeout
1SendTEMP?
2Wait_ResponseRegExMatch^TEMP=([0-9]+)$%Temperature%2000
3WriteToMsgWindowMeasured %Temperature%
4SendREPORT %Temperature%

Leave jump cells blank. A reply of TEMP=24 stores 24 in Temperature, logs it, and sends REPORT 24. Row 2 stops on timeout, so a stale previous reading is not sent by row 4 after a failed wait. A successful Send alone does not validate the REPORT acknowledgement; add a further wait if required.

Common use case · Retry up to three times, then report failure
RowModeCommandArgumentsTimeoutPassFail
1SetVarAttempts0
2IncrementVarAttempts
3SendREADY?
4Wait_ResponseExactREADY100095
5Wait_Milliseconds250
6IfVarLessThanAttempts327
7WriteToMsgWindowFAILED after %Attempts% attempts
8IfVarLessThanAttempts0910
9WriteToMsgWindowREADY confirmed
10WriteToMsgWindowReadiness test finished

Row 8 routes the exhausted-attempts path to the final log row because Attempts is nonnegative. Success skips the failure message; timeout retries at most three requests. The extra branch prevents the failure path from falling through into the success log. Keep every jump consistent when editing rows.

Common use case · A fixed-count loop

Set Remaining to 5; Send a request; wait for its expected reply; DecrementVar Remaining; then IfVarGreaterThan with Command Remaining, Arguments 0, and Pass Goto Line pointing back to Send. Leave Fail blank and put a completion log next. This counts five acknowledged cycles; a blank failure target on the wait stops the sequence if a reply is missing. Add a delay before the jump when the device needs recovery time. Stop remains available for a runaway workflow, but a bounded counter makes normal completion explicit.

Back to Commands, polling & sequences · All chapters

Sub-window controls

Sequence Builder: toolbar and action buttons

Start editing a draft

Opening or focusing Sequence Builder does not create a draft. Select a cell and type, press F2, or double-click to edit. Actual edits mark pending changes yellow; New File clears those marks and discards the previous draft.

Manage ordered client workflows and multiple named sequences. Finish active cell edits before toolbar actions: many handlers cancel an in-progress cell edit. Some structural/selection actions notify the host immediately; use Apply for completed cell changes and verify the active table before running.

Label, tooltip, or iconFunction and practical use
Insert AfterInsert a blank Send step after the selected step when the handler’s valid-row conditions allow it. Jump numbers are adjusted; review them after insertion.
Move Row UpMove the selected row up one position. Use to organize related entries; in matching tables the order can change which rule wins. The editor adjusts jump numbers and can notify the host during structural edits. Verify every jump target after reordering.
Move Row DownMove the selected row down one position. Keep specific match rules above broad ones when ordering Auto Responses. The editor adjusts jump numbers and can notify the host during structural edits. Verify every jump target after reordering.
Copy RowCopy a selected eligible step into the sequence’s internal row buffer. Current code excludes the final row from this operation. Finish cell edits first.
Paste Row AfterInsert a deep copy after the selected eligible step and adjust jump numbers. Unlike table-editor Paste, this inserts rather than overwrites. The current handler excludes the final row; verify selection and targets.
Delete RowDelete the selected row. Use to remove an obsolete definition; save a baseline first. This is a row operation, not clearing the entire table. The editor adjusts jump numbers and can notify the host during structural edits. Verify every jump target after reordering.
Sequence selectorChoose the named sequence to display and run. Selection notifies the host and can apply the editor’s sequence collection; do not use it as a way to discard drafts.
New SequenceAdd a blank sequence named New Sequence and select it. The collection change notifies the host immediately; rename it to describe its test purpose.
Rename SequenceEdit the selected sequence name. Use clear scenario names such as Startup or Three retries; this changes identification rather than step logic.
Delete SequenceAsk to delete the selected sequence, then select the first remaining one. The last remaining sequence is retained. Save a reusable scenario before removing it.
Play The SequenceStart the active sequence at row 1. It can send traffic through the configured connection. It does not run only the highlighted row or resume a stopped sequence.
Stop The SequenceStop the sequence timer/wait and reenable Play. Previously sent commands and variable changes remain; Play restarts at row 1.
ApplyNotify the host to copy the completed sequence collection and clear edit highlighting. Use before running changed cell values; structural and selector actions can also notify the host.
Common use case · Use these controls together

Copy a request/wait pair into a longer test, review all jump targets, Apply, then Play from row 1. Stop ends progression without rolling back commands already sent.

See the workflow guide for the feature’s setup and examples.

Back to Commands, polling & sequences · All chapters

Command, arguments, timeout and branch text update the draft while you type; mode selections commit immediately. You can keep the cursor in the cell. Save and Apply retain their existing draft-capture behavior; editing does not start the sequence or apply it to the running sequence.

Grid columns

Column / inputFunction and practical example
ModeDropdown selects the row’s operation. Every option has an example below; fields are interpreted differently for different modes.
CommandMessage, match pattern, variable name or sleep duration, depending on Mode. Examples: STATUS? for Send; count for IncrementVar; 500 for Wait_Milliseconds.
ArgumentsValue/comparison operand or regex capture names where the mode uses them. Example: SetVar with Command mode and Arguments ready. Leave unused arguments blank.
Timeout (ms)Maximum response-wait time before the failure path, for example 1000. Wait_Milliseconds instead gets its sleep duration from Command.
Pass Goto LineOne-based destination line after a supported successful match/comparison. Example: 5 branches to displayed line 5. Leave blank for normal continuation where supported.
Fail Goto LineOne-based destination after a failed comparison or timed-out wait. Example: branch to a retry/error step. See the per-mode guide for blank/default behavior.

Mode dropdown: every option

OptionFunctionExample
SendSend Command text through configured conversion/terminators.Command STATUS?; use a following wait row for its reply.
Wait_MillisecondsPause for the number of milliseconds in Command.Command 500 pauses half a second.
Wait_ResponseExactWait for an exact reply.Command OK; Timeout (ms) 1000.
Wait_ResponseContainsWait for a reply containing Command.Command READY; reply DEVICE READY qualifies.
Wait_ResponseRegExMatchWait for a regex match and use Arguments for capture-variable names.Command ^TEMP=(\d+)$; Arguments %temp%; reply TEMP=25.
Wait_ResponseStartsWithWait for a reply beginning with Command.Command TEMP=; reply TEMP=25 qualifies.
WriteToMsgWindowWrite Command text to Message Window without transmitting it.Command Starting temperature test.
IfVarGreaterThanCompare variable named in Command with Arguments; follow pass/fail branches.Command count; Arguments 10; count=11 takes Pass Goto Line.
IfVarEqualsCompare variable value with Arguments for equality; follow pass/fail branches.Command mode; Arguments ready; mode=ready takes Pass Goto Line.
IfVarLessThanCompare variable named in Command with Arguments; follow pass/fail branches.Command count; Arguments 10; count=9 takes Pass Goto Line.
SetVarAssign Arguments to the variable named in Command.Command mode; Arguments ready.
IncrementVarIncrement integer variable named in Command by one.Command count: 4 becomes 5; an undefined value starts from 0.
DecrementVarDecrement integer variable named in Command by one.Command count: 4 becomes 3; an undefined value starts from 0.

Editing updates the draft without starting it. Save/Apply before Play. See the detailed sequence-mode guides for capture, numeric-versus-text comparison, timeout and branch behavior.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Copy Row
  • Delete Row
  • Delete Sequence
  • Insert After
  • Move Row Down
  • Move Row Up
  • New Sequence
  • Paste Row
  • Paste Row After
  • Play The Sequence
  • Rename Sequence
  • Stop The Sequence
  • toolStripButton1
  • toolStripButton2
  • toolStripButton3

Scripting & converters

Scripting & converters

Understand callback behavior, then compile, activate, and test in the Script Editor.

In this chapter · 2 guides
Extend carefully

Scripting and converters

Use code for behavior a table cannot express, while keeping simple protocol rules visible in the table.

Active scripts and callbacks

Scripts can participate in conversion, message handling, and lifecycle callbacks. The active settings determine which callback and converter contracts are required. A draft in the editor is not automatically the active compiled script.

Current-build API reference

For exact method names, overloads, argument/return types, and callback signatures, choose Help → Current build scripting / Auto Response reference. This is generated from the running compiled Helpers API and embedded dispatch/template source; this guide deliberately does not duplicate a stale API list. API/MCP agents can read the same build-aware information through read_scripting_reference and read_context.scriptingReference.

Saved-script compatibility

Use Helpers.SendMessage or Utilities.SendMessage in new code. The older misspelled aliases exist only for saved-script compatibility. A user-defined %Script% method and Break are not built-in callbacks.

Common use cases · When does scripting earn its complexity?

Binary checksums or a custom representation

A proprietary frame may require byte-level validation or a custom converter that cannot be described by simple table strings. Read the exact converter contract from this build, implement that contract, compile, and test with known input/output bytes.

A state machine beyond a few variables

Start with captures and ordered assignments. Move to a script when transitions depend on richer conditions. Preserve a deterministic test exchange so a later script change can be compared with expected behavior.

Activation and rollback

Disconnect before accepting AI edits. Accepted API/MCP script proposals validate, compile, and activate immediately, with rollback on failure. Manual drafts require the normal compile/apply workflow or explicit permitted activation. Start/Stop callbacks must not depend on an extra connection just to activate an accepted script.

Record the Message Window to a file

Use Helpers.StartMessageWindowRecording() and Helpers.StopMessageWindowRecording() to control the Message Window Log To File toolbar option. Common.Utilities exposes the same methods. Start records subsequent normal log traffic in the application's Logs folder using the toolbar's naming and rotation rules; it does not export text already displayed.

Recording uses a background writer with a 32 MiB memory-accounted queue, buffered writes, and a nominal 250 ms flush interval. Files rotate near 1,044,000 UTF-8 bytes between messages; an individual large message can exceed that size. Stop and application exit drain accepted messages and close the file; slow storage can delay these explicit operations.

A backlog overflow stops recording and drains prior queued messages; file errors may lose queued data. Both report an error in the Message Window and status bar. Periodic flushing does not guarantee survival of a crash or power failure. Display updates are independently bounded: overload omits older queued display messages with a notice, and individual display entries are truncated near 65,536 characters.

Hidden or inactive Message Windows defer rendering and retain the recent display tail in a bounded queue. Selecting text or scrolling above the bottom holds the current view while new messages queue. Deselect text and scroll to the bottom to resume; Clear removes displayed and pending text. Visible refresh batches adapt to measured rendering cost (1–64 KiB, starting at 8 KiB); this is a soft responsiveness target, not a latency guarantee.

These display limits do not truncate file records. The toolbar indicator and Log_To_File setting track the requested state. Repeated Start or Stop calls do nothing when already in that state; rapid restart creates a distinct file and preserves previous recordings. These methods use the same UI-thread dispatch as the other window helpers and work while the window is hidden. ```csharp Helpers.StartMessageWindowRecording(); // Run the exchange you want to record. Helpers.StopMessageWindowRecording(); ```

Helpers.StartMessageWindowRecording();
// Run the exchange you want to record.
Helpers.StopMessageWindowRecording();

Clear the Message Window

Call Helpers.ClearMessageWindow() (or Common.Utilities.ClearMessageWindow()) to clear the displayed Message Window text, including while the window is hidden. This performs the Message Window Clear action; Message Tracer history and active communications remain intact. UI-thread calls take effect immediately and worker-thread calls are queued on the UI thread. For example, call it at the start of SimulatorFileLoaded().

Helpers.ClearMessageWindow();

Show and hide simulator windows

Use Helpers.OpenWindow(SimulatorWindow window) to show and activate a window, Helpers.CloseWindow(SimulatorWindow window) to hide it, and Helpers.HideAllWindowsExcept(params SimulatorWindow[] windows) to show only the specified tools. Common.Utilities provides the same functions. Names are stable Common.SimulatorWindow enum values, independent of editable captions.

CloseWindow hides without disposing the window, discarding editor contents, or stopping communications/scripts. HideAllWindowsExcept with no arguments hides all controllable tools. Call these functions from SimulatorFileLoaded or another callback after host initialization, not from a script constructor. UI-thread calls take effect immediately; worker-thread calls are queued on the UI thread.

Visibility changes do not mark simulator configuration dirty. Main application visibility, modal dialogs and external browser help are outside this API. AiAgent requires the modern .NET host; requesting an unavailable window or an invalid identifier reports an error.

using Common;
using MessageHandlerSystem;

class SimulatorScripting
{
    public void SimulatorFileLoaded()
    {
        Helpers.HideAllWindowsExcept(SimulatorWindow.MessageWindow);
        Helpers.OpenWindow(SimulatorWindow.CanReceive);
        Helpers.OpenWindow(SimulatorWindow.CanTransmit);
        Helpers.CloseWindow(SimulatorWindow.CanWatch);
        Helpers.CloseWindow(SimulatorWindow.CanStatistics);
    }
}
Enum identifierWindow
SimulatorWindow.MessageWindowMessage Window
SimulatorWindow.SettingsSimulator Settings
SimulatorWindow.DeviceCommandsDevice Commands
SimulatorWindow.DeviceCommandEditorDevice Commands Editor
SimulatorWindow.ScriptEditorScript Editor
SimulatorWindow.AutoResponsesAuto Response Editor
SimulatorWindow.FiltersFilter Editor
SimulatorWindow.InitialVariablesInitialize Variables
SimulatorWindow.VariablesVariables
SimulatorWindow.SequenceBuilderSequence Builder
SimulatorWindow.MessageTracerMessage Tracer
SimulatorWindow.CanReceiveCAN Receive
SimulatorWindow.CanTransmitCAN Transmit
SimulatorWindow.CanWatchCAN Watch
SimulatorWindow.CanStatisticsCAN Statistics
SimulatorWindow.WebClientWeb HTTP Client
SimulatorWindow.NetStatNetwork Statistics (NetStat)
SimulatorWindow.VariableGraphStrip Chart (modern .NET build)
SimulatorWindow.AiAgentAI Agent (modern .NET build)

Which callback should I use?

Choose the stage that matches the job: detect a complete message, interpret it, decide on a response, format bytes, or respond to an explicit user action. The names below are explanations of the current built-in callbacks; exact signatures, types, and source hashes remain in the generated current-build reference.

SimulatorFileLoaded · Prepare a saved test scenario

Why use it: initialize script-owned counters or a scenario's in-memory state when a configuration is loaded, or print a short description of the experiment. For example, reset a simulated device's command counter so each loaded scenario starts from a known point.

Trigger: the host's file-load workflow calls this lifecycle hook. Loading a file is different from connecting, and accepting a script does not mean a file-load event is replayed. Use Init Variables for ordinary saved variable defaults. Keep this callback independent of an open device connection.

SimulatorConnected · Prepare for an established connection

Why use it: reset session-specific state, record that a link became available, or perform a documented initialization exchange after the connection is established. This is useful when every new session requires a handshake rather than only one setup when the file loads.

Trigger: connection-made notification, not simply pressing Connect. A listening endpoint may still be waiting for its peer. MITM has two sides, so verify the required side is ready before sending. Avoid creating a loop that repeatedly connects or sends inside this event.

SimulatorDisconnected · Clean up a session

Why use it: clear a script's connected-state flag, stop a timer or cooperative worker you created, discard a partial exchange, and report that a session ended. This prevents an old test from continuing to generate requests after the connection is gone.

Make cleanup safe to repeat. Stop or cancel your own resources explicitly; a connection notification is not a general-purpose thread cancellation mechanism. Consider using the same cleanup routine from both this hook and the user's Stop callback.

PacketReceived · Detect custom message boundaries

Why use it: implement framing that cannot be expressed by the built-in terminator, timeout, byte-count, or regex settings. A variable-length binary frame whose header declares the remaining length is a common example.

Enable it: set Message Termination → Termination Mode to Script. Input is a chunk of transport data, which may contain part of a message or several messages. Maintain an appropriate buffer, return null while no complete message is ready, and return a valid MessagePacket when one is ready. Populate its Data, DataPacket, and TimeStamp as required by the current contract; preserve unconsumed bytes for later processing.

Do not assume one TCP receive or serial read equals one protocol message. This hook decides boundaries; it is not primarily the place to generate a reply. Test split headers, split payloads, and back-to-back frames.

MessageReceived · Inspect or normalize a complete message

Why use it: inspect a fully framed message, update a diagnostic counter, or normalize a known representation before the message proceeds through filtering, display, sequence handling, and Auto Responses. For example, extract a binary status value into script state for later analysis.

Return the original MessagePacket when no change is needed, or a valid modified packet. Preserve required metadata; the downstream host expects a usable packet and DataPacket. Returning null is not documented as a safe discard operation. Changing Data here affects later processing, unlike changing only the display converter.

MessageWindowConverter · Make bytes understandable on screen

Why use it: turn an otherwise unreadable binary message into an explanatory display, such as a decoded status plus the original hex bytes and length. This is useful while diagnosing a protocol without changing the bytes the device receives.

Enable it: set Message Window → Converter Mode to Script. Return the text to display. Keep a raw-byte representation available so a friendly label does not hide malformed data. Display text is not a replacement for the transport's receive framing or the Auto Response matching input.

SendBoxConverter · Turn operator input into protocol bytes

Why use it: let a person type a convenient representation such as a register address and value, then construct the exact binary command that the device expects. This can reduce mistakes when repeated manual byte entry would be tedious.

Enable it: set Send and Auto Response Settings → Converter Mode to Script. Return the payload bytes for the send box. Account for separately configured outgoing STX/ETX bytes to avoid duplicate framing. Table response strings do not pass through this send-box converter simply because this mode is selected.

PreAutoResponseHandler · Handle exceptions before the response table

Why use it: compute a reply for a command whose behavior cannot be expressed cleanly in table rows—for example a checksum-dependent binary query or a result calculated from richer script state—while leaving ordinary commands in the readable table.

Return contract: return null to let the table try its rows. Any non-null byte array means the script handled the request and bypasses the table, including an empty array. A default empty-array return would therefore prevent normal table replies.

This participates in Auto Response processing; Auto Respond must be enabled, and serial/LAN sniffer modes suppress that reply workflow. It does not replace PacketReceived framing.

PostAutoResponseHandler · Adjust the selected reply

Why use it: apply a common transformation after a response has been selected, rather than repeating logic in every row. Examples include wrapping a table's payload in a device-specific envelope or substituting a controlled fault response for a test scenario.

Return the supplied bytes unchanged for a pass-through implementation. The input can be null when no reply was selected; handle that deliberately. This runs after the pre-handler/table selection and before the host's final token expansion, outgoing terminators, and response-byte manipulation. If framing or checksum calculation depends on those later steps, choose the correct stage and test the actual transmitted bytes.

SendingBytesManipulationScript · Modify bytes on supported send paths

Why use it: append or adjust a checksum, escape bytes, or deliberately corrupt a test frame after payload construction on a host path that invokes this hook. The Auto Response send path applies it after outgoing terminators, so whether the checksum includes terminators matters.

Return the supplied bytes unchanged when no transformation is needed. Check the current host source before treating this as a universal output filter: Auto Response and Helpers-driven sends invoke it, but the manual send-box path and MITM forwarding do not all share that same hook. Verify each sending route you intend to use, and avoid adding a checksum both in a converter and here.

UserPressedStartStopToolbarButton · Run a deliberate test action

Why use it: give yourself a convenient trigger for a calculation, diagnostic printout, state reset, or script-owned test routine without needing an incoming message. The script editor's Send Play/Stop Event to Script toolbar button is a toggle: checked sends StartStopNotification.Start; unchecked sends StartStopNotification.Stop.

It invokes this callback on the active compiled script. It does not execute selected editor text, automatically compile the latest draft, start the Sequence Builder, or require a connection for a local-only calculation. A device send still needs an appropriate open connection.

Stop is cooperative. The Stop event only does what your Stop branch implements. It does not abort a blocked callback, interrupt an infinite loop, cancel a timer automatically, or disconnect the device. Keep handlers short; long synchronous work can block the UI and prevent the next Stop click from being processed.

Try a chunk of code with Play / Stop

For a first test, stay disconnected and print a result instead of sending a device command. Replace the existing callback body in the template with this example—do not add a second method with the same signature:

public void UserPressedStartStopToolbarButton(StartStopNotification notification)
{
    if (notification == StartStopNotification.Start)
    {
        double voltage = 12.0;
        double current = 0.25;
        Helpers.WriteToOutputWindow("Test power: " + (voltage * current) + " W");
    }
    else
    {
        Helpers.WriteToOutputWindow("Stop requested; this example has no background work.");
    }
}
  1. Open the script editor and edit the existing callback in the template. Keep the template's using directives and required interfaces.
  2. Use Compile Check and fix errors, then Apply to activate the manual edit. Compile Check alone is syntax checking, not activation. Accepted AI script proposals already compile and activate when acceptance succeeds.
  3. Click the script editor's Play/Stop toggle once. The message window should show a test power of 3 W, subject to the current display/filter settings.
  4. Click again to send Stop and see the second message. Click once more to repeat Start. The example performs one calculation per Start; it does not keep running between clicks.

For a longer scenario, put the work in your own short helper method and call it from the Start branch. If you introduce a timer or worker, explicitly implement Stop and disconnection cleanup, thread-safe state access, and appropriate UI marshalling. For ordered message sends and waits, consider Sequence Builder before writing a custom scheduler.

Break() is a template debugging helper that you call yourself when an external debugger is attached; it is not a host-dispatched callback. Likewise, a method invoked using a custom %Script% token is user-defined, not a built-in lifecycle event.

Back to Scripting & converters · All chapters

Non-MITM receive-to-reply flow

Direct serial/TCP/UDP endpoints retain the script hooks around Auto Response processing. The order is: message framing → MessageReceived(MessagePacket) → filtering, display and sequence handling → PreAutoResponseHandler(MessagePacket) → Auto Response table when the pre-handler returns null → PostAutoResponseHandler(byte[]) → final token expansion → outgoing STX/ETX bytes → SendingBytesManipulationScript(byte[]) → transmit.

Use MessageReceived to transform incoming data before table matching while preserving DataPacket metadata. The pre-handler can provide its own response: any non-null array bypasses the table; an empty array can suppress a reply if the post-handler leaves it empty. Return null to let the table match its terminator-stripped input. The post-handler receives the pre-handler/table result, possibly null, and can replace or suppress it. Final byte manipulation sees outgoing terminators already attached, making it suitable for a checksum that covers framing.

Auto Respond must be enabled and the received message must pass filtering for the pre/table/post reply workflow. With Auto Respond off, MessageReceived still runs but automatic response generation does not. Passive serial/LAN sniffers suppress automatic replies. MITM forwarding is a separate path: these hooks do not imply that already-forwarded bytes can be recalled or rewritten. Consult the individual callback contracts above and the build-current scripting reference for exact signatures.

Worked use case · Let a script handle special requests and leave the rest to the table

Keep ordinary commands in the Auto Response table. Use PreAutoResponseHandler for requests that need a calculated or binary reply, then use PostAutoResponseHandler for a common reply transformation. This preserves the table as the normal fallback.

StageWhat your script can doWhat happens next
MessageReceivedNormalize or transform a detected incoming message. Return its MessagePacket with DataPacket metadata preserved.The transformed data reaches filtering and table matching. This is the incoming-data transformation hook.
PreAutoResponseHandler returns nullDecline to provide a scripted reply.The Auto Response table evaluates its normal ordered rules.
PreAutoResponseHandler returns bytesProvide a reply directly, such as a computed measurement.The table is skipped; the scripted bytes still pass through PostAutoResponseHandler.
PreAutoResponseHandler returns an empty arrayHandle the request without providing reply bytes.The table is skipped. No reply is sent if the post-handler leaves the result null or empty.
PostAutoResponseHandlerInspect, replace, wrap or suppress the selected reply. Handle null when neither the pre-handler nor the table supplied a reply.Nonempty output proceeds through token expansion, outgoing terminators, final byte manipulation and sending.

For example, configure a table row STATUS? → READY. A pre-handler returns null for STATUS?, so that row supplies READY. For COMPUTE?, the pre-handler can return calculated reply bytes instead, bypassing all table rows. A post-handler can prefix either result with DEVICE:, giving DEVICE:READY for STATUS? and DEVICE: followed by the calculated value for COMPUTE?. The host adds configured outgoing terminators afterward.

Common mistake: a default return new byte[0]; in the pre-handler prevents table matching. Use return null; for requests that the table should handle. The pre-handler selects a response; use MessageReceived when you need to rewrite the incoming request before matching. PostAutoResponseHandler runs after selection even when the pre-handler bypassed the table, so account for scripted replies as well as table replies.

Enable Auto Respond for this workflow, apply the table, and compile/activate the script before testing. Use a harmless endpoint or loopback peer, confirm the actual transmitted bytes, then test both a table-handled request and a script-handled request. Disabling Auto Respond stops pre/table/post response generation while leaving MessageReceived active. Serial/LAN sniffer modes suppress automatic replies.

Sub-window controls

Script Editor: toolbar and action buttons

Call custom command actions

Custom functions can be called as Device Commands button actions using Script.FunctionName("text", 3), or as inline outgoing-text substitutions using %Script(Method,text,3)%. Actions use typed arguments, ignore returns and work while disconnected; substitutions use string arguments and insert a string result into the normal send path. Both use the active compiled script. See the Device Commands Editor examples and comparison.

Keep syntax checking, activation, and explicit Start/Stop testing distinct.

Label, tooltip, or iconFunction and practical use
Send Play/Stop Event to ScriptToggle Start and Stop notifications to UserPressedStartStopToolbarButton on the active compiled script. It does not execute the selected text, apply a draft, or abort arbitrary script work. Your callback must implement any cooperative stop behavior.
Compile CheckCompile the editor text for syntax diagnostics. Errors appear below; double-click an error to locate its line. Passing this check does not activate the script or prove it handles the intended protocol.
ApplyRun Compile Check and, if successful, submit the code to the host’s normal compile/activation workflow. Test behavior after activation; editing text alone does not replace the active script.
Common use case · Use these controls together

Compile Check a callback implementation, Apply it, then use Send Play/Stop Event to Script to test UserPressedStartStopToolbarButton. Printing a test marker requires no device traffic.

See the workflow guide for the feature’s setup and examples.

Send from a script to either MITM device

Helpers.SendMessageToDevice(1, Helpers.StringToByteArray("STATUS?"), true);
Helpers.SendMessageToDevice(2, new byte[] { 0x01, 0x02 }, false);

Device 1 and Device 2 correspond to the MITM settings. This helper works only in Serial MITM, TCP MITM or UDP MITM and requires the selected side to be open/connected. true adds that side's send terminators; false uses the supplied bytes without adding terminators. Normal outgoing-byte manipulation still runs. Invalid device numbers, null bytes, another mode or a closed endpoint throw an error. Helpers.SendMessage keeps its existing primary-handler route; use SendMessageToDevice to select a side explicitly.

A command-button function can accept typed arguments:

public void Inject(int device, string text) {
    Helpers.SendMessageToDevice(device, Helpers.StringToByteArray(text), true);
}
// Command Send Text: Script.Inject(1, "STATUS?")
// Command Send Text: Script.Inject(2, "START")

Prevent recursive sends

SendMessage, SendMessageToDevice, SendCanMessage and RepeatCurrentSendBoxValue reject synchronous nested calls and calls made inside SendBoxConverter, SendingBytesManipulationScript or MessageWindowConverter. A raw Script send blocked diagnostic appears in the Message Window and InvalidOperationException is raised. Converter callbacks should return converted bytes/text instead of starting a new send. An uncaught blocked call follows the callback's normal fallback; catch the exception inside the converter if you need to finish your conversion. Ordinary command functions and receive callbacks may send. Keep them short.

The guard resets after exceptions so later legitimate sends work. It protects simulator send re-entry, not arbitrary recursion within user code, delayed/background sends or device-response feedback loops. For response-driven scripts, match only intended requests and bound retries/rates; do not blindly send on every received message.

Send a CAN frame from a script

Helpers.SendCanMessage(1, 0x123, new byte[] { 0x01, 0x02 });
Helpers.SendCanMessage(2, 0x1ABCDE, new byte[] { 0x10, 0x20 }, true);

The signature is Helpers.SendCanMessage(int channel, uint id, byte[] data, bool extended = false). The first example sends a standard 11-bit ID on channel 1; the second sends an extended 29-bit ID on channel 2. Use CAN communication mode, select/configure an adapter, enable the requested channel and Connect first. Common.Utilities.SendCanMessage provides the same API. Payloads contain 0–8 bytes; the byte count is the DLC. Standard IDs range from 0 to 0x7FF; extended IDs range from 0 to 0x1FFFFFFF. Zero bytes are allowed.

These are single classic CAN data frames: no CAN FD, RTR transmission, auto-connect, repeat, text converters or serial/TCP send terminators. The existing provider worker validates channel availability/enabled state and sends through the selected adapter. Invalid input, wrong mode, a disabled/unavailable channel or a disconnected adapter raises an error. Provider enqueue success is not proof of bus transmission or acknowledgement; Tx display/statistics retain native echo/confirmation behavior.

For a Device Commands button, put this public function inside the active script class:

public void InjectCan(int channel, uint id, string hex, bool extended) {
    Helpers.SendCanMessage(channel, id, Helpers.HexStringToByteArray(hex), extended);
}
// Command Send Text: Script.InjectCan(1, 291, "0102", false)
// Command Send Text: Script.InjectCan(2, 1752286, "1020", true)

Command-button numbers are decimal JSON literals (291 is 0x123; 1752286 is 0x1ABCDE). Hexadecimal C# literals such as 0x123 are allowed in the Script Editor. SendCanMessage shares the synchronous recursion guard with SendMessage, SendMessageToDevice and RepeatCurrentSendBoxValue; calls from send-box/outgoing-byte/display converters are blocked with a visible diagnostic. Guard limits still apply to delayed sends and device-response loops. Physical qualification is separate from fixture tests.

Back to Scripting & converters · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Send Play/Stop Event to Script

Logs, timing & tracing

Logs, timing & tracing

Read the traffic, control its presentation, measure delays, and turn captured exchanges into test data.

In this chapter · 9 guides
Make evidence readable

Messages, filters, and tracing

Live participant nicknames

Device nicknames are live display settings. Changing Local Nickname, serial nicknames (including both sniffer/MITM ports), TCP client/listener or both TCP MITM nicknames, UDP nickname, or LAN device nicknames updates subsequent messages and recorded log lines without disconnecting. Earlier messages and log entries retain their original labels. CAN has no editable device nickname setting; changing a physical port or endpoint is separate from renaming its display label.

Separate the conversation you need to understand from background traffic and presentation noise.

Identify messages and delimiters

Use nicknames and Show Time to identify participants and order. Show Whitespace exposes otherwise invisible characters. Compare ASCII with Hex when exact byte content matters. The Message Tracer groups current commands and responses; direction labeling depends on the selected communication mode.

Pause and filters

Pause Message Window freezes printing, not the physical communication link. Filters can hide or mark messages; filtered packets can also affect Auto Response processing. A clean display is not proof that the underlying link is quiet.

Hidden-window rendering and limits

Hidden or inactive Message Windows defer rendering while retaining recent messages in a bounded display queue. Selecting text or scrolling above the latest visible text holds the view for inspection. Deselect and scroll to the bottom to resume; overload omits older queued display messages with a notice. Clear removes displayed and pending text. File recording continues independently of these display holds. Refresh batches adapt to rendering cost; very large histories can still cause slower updates.

Common use cases · Keep the useful evidence

Find an extra terminator

Switch presentation to show whitespace or Hex and compare a working request with the failed request. Preserve the original bytes before writing a script to “fix” them.

Capture a long test

Enable Log to File, run one controlled scenario, and preserve the resulting log with its simulator XML and build version. Add notes describing what you did and which messages you expected.

Investigate “missing” replies

Unpause and temporarily simplify filters. Check the raw framing and the selected display converter before concluding that no packet arrived. Tracer pairing is an aid to investigation, not a guarantee that every displayed pair belongs to the same transaction.

Back to Logs, timing & tracing · All chapters

Sub-window controls

Message Window: toolbar and action buttons

Hold Ctrl and scroll to zoom the message text. Clear keeps the current zoom level. Reset Windows Layout and New File restore the default text size.

Send to either MITM device

In Serial MITM, TCP MITM and UDP MITM, the send box shows Send (Device 1) and Send (Device 2). Inject a command toward either device while traffic continues forwarding. Both buttons use the send-box converter, bracket tokens and configured send terminators. Connect both sides first. Enter and Repeat retain Device 2 as the default; Ctrl+Send selects Device 1. Outside MITM the single Send button remains. Passive sniffer modes do not gain injection controls.

Control output presentation, logging, and sending. Display controls do not disconnect the link.

Label, tooltip, or iconFunction and practical use
Pause Output Window UpdatesToggle suppression of new printed output; paused presentation uses a dark background. Traffic and protocol processing continue. Newly suppressed text is not a guaranteed replayable history when you unpause; use file logging for evidence.
Clear Output WindowClear displayed text and pending display messages, including the hidden/inspection backlog. It does not clear device state, the receive parsing buffer, tracer records, or existing log files.
Show/Hide WhitespaceToggle the bound Show Whitespace setting for message presentation. Use to reveal spaces and control bytes with decimal/hex angle-bracket notation; this does not modify wire data.
Enable Output Window FiltersEnable/disable configured filtering. The window uses blue text when filters are active and it is not paused. Disable while diagnosing missing data; filter results can affect Auto Response processing too.
Edit Output Window FiltersOpen the Filter Editor to define directional rules and Whitelist/Blacklist policy. Apply definitions there, then enable them here.
Log To FileToggle the bound logging setting. Use before collecting a repeatable test; turning logging off flushes/closes the buffered file. Pausing screen output is separate from logging.
Open Log File FolderOpen the application’s Logs directory. Use to locate and preserve test logs; it does not start recording or export a fresh snapshot.
SendSend the current send-box text through token expansion and the selected outgoing conversion/terminator path. Use a known harmless request first.
RepeatToggle repeatedly sending the current text at the configured interval in seconds. Use for one polling query; use Sequence Builder for multi-step procedures.
Repeat interval (sec.)Set the repeat period in seconds, not milliseconds. This is distinct from response delay and heartbeat timing; check traffic and peer load before reducing it.
Common use case · Use these controls together

Enable Log To File before a controlled test. Use Show/Hide Whitespace to expose delimiters, then open the log folder to preserve evidence.

See the workflow guide for the feature’s setup and examples.

Back to Logs, timing & tracing · All chapters

Recording and application diagnostics

Message recording uses a bounded queue and background file writer with periodic flushes. Stop returns promptly while accepted records drain; the status bar shows progress. Closing disconnects devices and keeps the window responsive while the writer finishes, then closes automatically. Very slow or stalled storage can keep this closing state pending; forced termination can lose queued data. Recording Folder and Recording Files to Keep are in Simulator Settings. Zero retention preserves all recordings.

Application diagnostics are independent of recording and Pause. Find diagnostic-*.log files in %LOCALAPPDATA%\CommunicationSimulatorSuite\Logs. They record UTC time, severity, component, startup version/session identity, connection requests, file and script failures, AI/MCP failures and exception types/stacks. At most 20 closed/active diagnostic files are targeted, with approximately 2 MiB rotation; files open in other instances may temporarily exceed the count. Credentials, prompts, responses, device payloads and exception messages are excluded. MCP diagnostics never use protocol stdout. Logging is best effort; queue overload is counted and diagnostic shutdown waits at most two seconds. Communication Adapter retains its separate NLog operational log.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Clear Output Window
  • Edit Output Window Filters
  • Enable Output Window Filters
  • Inject the send-box command to Device 1 in MITM mode
  • Log To File
  • Open Log File Folder
  • Pause Output Window Updates
  • Send the send-box command; in MITM mode target Device 2 (Ctrl targets Device 1)
  • Show/Hide Whitespace
Property grid reference

Message Window

When you select this group: Control how received and sent traffic is displayed, including message formatting and timestamps. Display controls affect reporting; use the Message Window toolbar to pause the view, clear displayed text or record normal traffic to a file.

Make captured conversations readable without confusing display with transport behavior.

Shown in: Direct serial/TCP/UDP, serial sniffer, LAN sniffer, and MITM modes.

GUI itemMeaning, use, and interactions
Pause Message WindowPause printing while inspecting existing output. It does not disconnect, stop traffic, or pause the device; do not use a frozen window as evidence that nothing arrived.
Show WhitespaceExpose invisible control/whitespace characters in displayed messages. Use to distinguish CR from LF and diagnose doubled terminators. This changes presentation rather than the bytes on the wire.
Show NicknameInclude configured participant labels in output. Enable when comparing both directions or multiple endpoints; nicknames are readable labels rather than addressing settings.
Converter ModeChoose how incoming/outgoing message bytes are displayed, including ASCII, Hex, or the available script conversion. Hex helps verify binary bytes; Script requires MessageWindowConverter. Display conversion is independent of message detection and send conversion.
Show TimeInclude timestamps so requests, replies, and gaps can be compared. Use with the bottom-bar time calculation; host timestamps are not calibrated wire-level timing measurements.
Show DateInclude the date in message headers for long-running or overnight logs. Use with Show Time; the bottom-bar convenience time parser still has the documented midnight/duration limits.
Common use case · Put these settings together

Use nicknames and timestamps for direction/timing, then Hex or whitespace display for exact bytes. Pause printing to inspect output without assuming traffic has stopped.

See the related workflow guide for the surrounding procedure and examples.

Back to Logs, timing & tracing · All chapters

Sub-window controls

Filter Editor: toolbar and action buttons

Edit working filter rules and their overall policy, then Apply. Enable Output Window Filters separately in Message Window.

Label, tooltip, or iconFunction and practical use
Delete RowDelete the selected row. Use to remove an obsolete definition; save a baseline first. This is a row operation, not clearing the entire table. Apply the working table afterward.
Move Row UpMove the selected row up one position. Use to organize related entries; in matching tables the order can change which rule wins. Apply the working table afterward.
Move Row DownMove the selected row down one position. Keep specific match rules above broad ones when ordering Auto Responses. Apply the working table afterward.
Copy RowCopy the selected row into this editor’s internal row buffer. This is different from copying selected cell text to the Windows clipboard. Apply the working table afterward.
Paste RowReplace the selected row with a copy of the internally copied row; at the new-row position, editors that support it append the row. Copy first, then choose the destination carefully: this is not a generic insert-after operation. Apply the working table afterward.
Whitelist / Blacklist dropdownChoose whether matching rules admit traffic (Whitelist) or exclude traffic (Blacklist). Apply the policy with the table and enable filters separately. Check each rule’s direction flags and Disable Line setting.
ApplyCopy the edited filter rules and policy into the active filter system and clear yellow edits. This does not toggle the Message Window’s enable-filters switch.
Common use case · Use these controls together

Create a narrow filter for noisy background traffic, Apply it and enable filtering. Disable filters temporarily when investigating a missing message; filtering can also affect Auto Response processing.

See the workflow guide for the feature’s setup and examples.

Back to Logs, timing & tracing · All chapters

Match-pattern text updates the draft as you type. Mode selections and checkboxes commit immediately to the draft. Apply finishes the active edit before copying the rules into the filter engine; typing or toggling a draft option does not apply the filter.

Grid columns

Column / inputFunction and practical example
Match ModeDropdown determining how this filter matches; supported and inactive choices are distinguished below.
Match PatternExpected text or regex without message terminators. Example: Contains with DEBUG identifies a noisy debug line.
Apply To Local Or Device1Check to apply the rule to local/first-device traffic. Use for outgoing client messages or MITM device 1 according to the current mode.
Apply To Remote Or Device2Check to apply the rule to remote/second-device traffic. Use for incoming peer messages or MITM device 2.
Disable LineCheck to retain a rule but skip it. Uncheck to use it after Apply.

Match Mode dropdown: every option

OptionFunctionExample
ExactCase-sensitive whole-message match.Pattern STATUS? matches STATUS?, not STATUS? extra.
ContainsCase-sensitive substring match.Pattern TEMP= matches REPORT TEMP=25.
NoMatchResponseListed by the shared enum, but the current filter engine has no matching implementation for this option.No working filter example. Use RegEx ^SET: for prefix matching; Whitelist/Blacklist supplies the no-match policy.
RegExRegular expression match; does not assign Auto Response capture variables.^TEMP=\d+$ matches TEMP=25.
StartsWithListed by the shared enum, but the current filter engine has no matching implementation for this option.No working filter example. Use RegEx ^SET: for prefix matching; Whitelist/Blacklist supplies the no-match policy.

Apply the edited table, then enable filters separately. In Whitelist, a supported match admits traffic and unmatched traffic is filtered; Blacklist filters matching traffic and admits unmatched traffic. Neither inactive dropdown choice supplies a fallback rule.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Copy Row
  • Delete Row
  • Move Row Down
  • Move Row Up
  • Paste Row
Measure the gap

Timing display and the bottom status bar

Measure the interval between selected messages without copying timestamps into a calculator.

Use the selection as your measurement

  1. Enable Show Time for timestamped output.
  2. In the text message window, select a block containing at least two timestamps. The host subtracts the first recognized timestamp from the last.
  3. In the message grid, select multiple timestamp cells or rows containing timestamps. The selection handlers calculate the interval from the endpoint selections.
  4. Read minutes, seconds, and milliseconds in the bottom bar. Fewer than two usable timestamps resets the display to zero.

This is a convenience calculation from displayed timestamps, not a calibrated latency measurement. The text parser recognizes time-of-day strings, so crossing midnight can produce a misleading result. The display uses the TimeSpan minutes component, not total minutes, so intervals over an hour are not represented as a full duration. Grid selection order can affect the sign. Select two known nearby messages for a clear comparison.

Status itemPractical use
Power statusThe AC/battery indicator helps explain performance changes during fast communication. Some laptops and other computers reduce CPU performance or change power-saving behavior on battery, which can affect processing headroom and responsiveness during high-rate traffic. Connecting to AC power can improve performance on those systems, depending on their power plan, hardware, and thermal limits. Clicking queries Windows processor-speed information; it is not a benchmark.
Local IP addressesFind a candidate address to give a remote client. Check which adapter is on the target network; loopback and virtual interfaces are not interchangeable with a reachable LAN address.
Time differenceInspect request/reply gaps or polling intervals from a selection. Right-click it for this help topic.
VersionRecord the actual build when reporting behavior. Clicking opens the executable folder.
DonateOpens the optional coffee/support window with the supplied Ko-fi QR and browser link. Viewing it does not submit a donation.
Common use cases · Reply latency versus polling interval

Estimate a request/reply gap

Select a request at 10:15:20.100 and its reply at 10:15:20.245. The displayed difference should be about 145 ms. Include just the relevant pair; selecting a whole conversation measures its first-to-last span instead.

Check a one-second poll

Select two consecutive requests rather than a request and a reply. Approximately one second between requests answers a different question from response delay. If intervening heartbeat or unrelated traffic changes the selected endpoints, narrow the selection.

Avoid changing the delay you are investigating

Prefer a passive tap or network mirror when timeout and gap timing are central to the fault. MITM is useful with ordinary field equipment, but forwarding can alter the very intervals you are trying to diagnose. Even passive captures need suitable timestamp support for precision measurements; the status-bar display is a convenience estimate.

Why show battery versus AC power?

When troubleshooting fast serial or network communication, capture processing, or software forwarding, check the power indicator before comparing runs. On some laptops, battery-saving policies reduce CPU performance or introduce more aggressive power saving. AC power may provide more processing headroom and steadier responsiveness. For a fair comparison, repeat the same test with the same settings while connected to AC and record the power mode. AC power does not guarantee throughput or precise timing; hardware, drivers, power-plan settings, and thermal throttling still matter.

Investigate a reported slowdown

Record mode, framing, selected messages, build version, and power state. Compare direct operation with MITM forwarding and any intentional response delay. A screenshot of the status value alone does not establish where delay occurred.

Back to Logs, timing & tracing · All chapters

Learn from a real conversation

Message Tracer: turn observed conversations into a simulator

Observe two communicating devices, collect representative requests and replies, then use that evidence to build a replacement device’s Auto Response table.

Capture a known-good conversation

The intended workflow starts with an existing, working conversation: a controller sends requests and an instrument/device replies. In a serial sniffer or LAN sniffer setup, the tracer groups repeated commands and keeps a handful of distinct replies for each. This helps you learn a protocol and create useful simulation rules without manually retyping every exchange. MITM observation can also supply exchanges when passive observation hardware is unavailable, with the documented timing tradeoffs.

Capture a representative sample

  1. Configure the sniffer’s hardware/interface and participant direction. Confirm both sides’ traffic appears and message detection produces complete requests and replies.
  2. Open Windows → Message Tracer. Clear old tracer data if starting a separate experiment, then enable Start / Stop Recording.
  3. Operate the real system through a few known scenarios: identification, status, a changed setpoint, and an expected error. Repeat a query in several device states to collect different responses.
  4. Stop tracer recording before inspecting or selecting entries. Traffic continues; only tracer collection stops. Use a separate file log when you also need the complete chronological conversation.
  5. Review which command produced each reply, preserve useful variants with Keep/Note, then build and refine the desired Auto Response rules.

What the tracer table records

ColumnMeaning and practical use
CommandA distinct observed request, grouped by its recorded bytes. Repeated identical requests update counts rather than adding a new command group.
ResponseDistinct observed replies beneath a command. The default retention target is ten response variants per command. Repeated identical replies update their count and recent timing metadata. This is a sample of behavior, not every event in time order.
CountHow often that command or reply has been observed. Use to distinguish a common response from a rare variant; it is not an assurance that the capture saw every packet.
DateDisplayed observation time for the entry. Use the full communication log when exact event order is needed.
KeepProtect a response variant from normal retention trimming. Useful for preserving an uncommon error while collecting further replies. It does not turn the tracer into unlimited recording; when the retention target is reached, unprotected variants can be removed and new ones may be discarded if existing entries are protected.
NoteDescribe the real device state or action, such as output disabled or after reset. Adding a note also checks Keep for that entry. Keep protection is relevant to response trimming; notes on commands help explain the group.

Select one cell to inspect its text in the larger text area. Select two cells to compare their contents; differing characters are highlighted in the comparison view. For building a selected response rule, the intended selection is one Command cell and one Response cell, not two whole rows.

The two build controls: simulator replies versus client requests

Toolbar groupWhat it buildsWhen to use it
Build Response Table:
Auto Build Response Table
Appends an Exact Auto Response row for each recorded command, using its first retained response and stored reply delay. It does not generate a rule for every response variant.Replace the observed instrument/device with the simulator, so the original controller can send familiar requests and receive representative replies.
Build Command Buttons:
Add all commands as command buttons
Appends reusable device commands from captured requests, skipping send text already present. Names come from the first ten characters and may need editing. Replies are not part of these buttons.Act as the controller/client and manually exercise the real device or your newly created simulator. Creating a button does not press it or send traffic.

Bulk versus individual choices: the two bulk actions above are implemented. The Response Table dropdown displays Exact Match, Starts With Match, Contains Match, and Regular Expression Match for the intended selected-pair workflow, and the Command Buttons dropdown displays Add Command for a selected command. In the current code those individual dropdown click actions are not wired, so they do not perform the advertised addition yet. Use the bulk action, then edit/remove rows in Auto Response Editor or Device Commands Editor to keep the entries you need. The existing toolbar reference now marks these limitations too.

Commands without a reply

Commands are recorded immediately. When a new command arrives before the pending command receives a reply, the previous command is counted as No response. The latest command remains Awaiting response; stopping recording alone does not classify it as silent. Counts persist in simulator XML independently of retained response variants. Pairing uses observed message order, so pipelined traffic or unsolicited replies still need review.

Select a command row, open the Auto Build Response Table dropdown, and choose No response (Add selected command to Auto Response with no response). This appends an Exact rule with an empty Response Message and zero delay. Review and Apply it in Auto Response Editor. A matching empty reply sends nothing, including no terminators, and prevents fallback replies. Remove or reorder existing matching rules so the intended first match wins. Bulk building includes confirmed silent commands as empty-response rules and skips commands still awaiting their first reply. Commands with replies use the first retained reply; choose No response explicitly for mixed observations.

From captured sample to working Auto Response table

  1. After stopping the tracer, use Auto Build Response Table once. It appends rows; repeated use can create duplicate rules.
  2. Open Edit Auto Responses and review the generated request, first response, and Response Delay (ms). Generated text strips the recorded terminators and uses decimal angle-bracket codes; use the appropriate decimal Whitespace Code Type and configure outgoing terminators separately.
  3. Keep Exact matching for fixed commands. For requests with varying arguments, deliberately choose StartsWith, Contains, or RegEx in the table editor and design the pattern/captures. A captured value is not automatically generalized into a stateful model.
  4. If one command has different replies depending on state, use captures, variables, and ordered assignments to model that state. Multiple identical Exact rows do not alternate replies: the first matching row wins.
  5. Review the stored delay against real-device measurements. A retained response’s delay is not an average or a worst-case guarantee; adjust it to the behavior you want to simulate.
  6. Apply the table, save the simulator configuration, and configure a separate endpoint instance to replace the device. Enable Auto Respond there and test requests from a controlled client. Passive sniffing itself does not transmit the simulated replies.
Common use case · Replace a device that will be unavailable

Observe a controller querying ID? and STATUS? on a real instrument. Record startup and both ready/busy states, then stop the tracer and annotate the variants. Auto Build Response Table creates a starting rule per command. Review the first retained STATUS? reply rather than assuming all recorded states were converted.

Keep a fixed identification reply, then model ready/busy state explicitly in the Auto Response table. Add realistic delays from the observed device, save the configuration, and let the controller connect to the simulator instead. Build Command Buttons can provide a separate test client for checking both rules before the real instrument is removed.

Common use case · Avoid learning the wrong conversation

The tracer associates the current command with the next response assigned by the host’s direction/mode handling. It does not decode protocol transaction IDs to prove a pair. Unsolicited notifications, pipelined requests, mixed device traffic, wrong participant direction, or incorrect message boundaries can produce misleading associations. Start with one controlled request at a time and compare the raw log before generating rules.

The ten-variant retention target is intended to keep the sample manageable. Preserve a full log and simulator file for evidence, and use Keep for important variants. A small observed sample cannot establish every response, error, or internal state the real device supports.

Back to Logs, timing & tracing · All chapters

Whitespace Code Type: Message Tracer follows Simulator Settings → Whitespace Code Type (Decimal or Hex), both when a file loads and when you change the setting. With Show/Hide Whitespace on, carriage return displays as <13> in Decimal and <0D> in Hex; line feed uses <10> or <0A>. Existing trace rows redraw using the new mode without changing their recorded bytes.

The SkipSpaces variants leave ordinary spaces unbracketed. Detail/comparison selections reset when the mode changes; select the cells again to inspect the new representation. Turning whitespace display off shows the underlying text. Newly built Auto Response rules and command buttons use the selected bracket base too. Previously generated rules and commands are not rewritten when you change the setting; review their bracket codes separately.

Sub-window controls

Message Tracer: toolbar and action buttons

Record interpreted command/response pairs, inspect differences, and use observations as starting material for a simulator or client.

Label, tooltip, or iconFunction and practical use
Start / Stop RecordingToggle tracer collection and its refresh timer. Stop freezes collection for inspection; it does not stop communications or file logging.
Clear table (clear icon)Clear all stored tracer commands/responses, including Keep rows and notes, the pending command/response pair, and the selection/comparison panes. A late reply cannot restore a pre-clear command. Recording stays in its current enabled/disabled state. Clearing marks the simulator file as changed; Save to retain the empty trace in XML. Existing Auto Response rules and command buttons are unaffected. Preserve useful observations first; this is separate from clearing Message Window text.
Show/Hide WhitespaceToggle explicit whitespace in tracer presentation and rerender. Helps distinguish invisible differences; it is separate from the Message Window whitespace switch.
Auto Build Response TableAppend an Exact row for each recorded command using its first recorded response and observed delay. Bytes are converted to decimal bracket notation. Review the generated table before applying, especially multiple responses and changing values; keep Whitespace Code Type consistent.
Add To Auto Response As ExactThis dropdown entry expresses the intended selected-item workflow, but its click action is not wired in the current build. Use the corresponding bulk build action, then review and edit the generated definitions. See the dedicated Message Tracer workflow for the distinction.
Add To Auto Response As StartsWithThis dropdown entry expresses the intended selected-item workflow, but its click action is not wired in the current build. Use the corresponding bulk build action, then review and edit the generated definitions. See the dedicated Message Tracer workflow for the distinction.
Add To Auto Response As ContainsThis dropdown entry expresses the intended selected-item workflow, but its click action is not wired in the current build. Use the corresponding bulk build action, then review and edit the generated definitions. See the dedicated Message Tracer workflow for the distinction.
Add To Auto Response As RegExThis dropdown entry expresses the intended selected-item workflow, but its click action is not wired in the current build. Use the corresponding bulk build action, then review and edit the generated definitions. See the dedicated Message Tracer workflow for the distinction.
Add all commands as command buttonsAppend device-command definitions from the recorded commands. Labels are derived from the first ten characters; send text excludes terminators and uses the selected Decimal/Hex whitespace escaping. Review labels and duplicates. It builds buttons rather than pressing them.
Add Command / Add single command to command buttonsThis dropdown entry expresses the intended selected-item workflow, but its click action is not wired in the current build. Use the corresponding bulk build action, then review and edit the generated definitions. See the dedicated Message Tracer workflow for the distinction.
Common use case · Use these controls together

Record a known-good exchange, stop recording, then create Exact Auto Responses from it. Review matching, observed delay, terminators, and changing fields before treating it as a reusable simulator.

See the workflow guide for the feature’s setup and examples.

Back to Logs, timing & tracing · All chapters

Whitespace Code Type: Message Tracer follows Simulator Settings → Whitespace Code Type (Decimal or Hex), both when a file loads and when you change the setting. With Show/Hide Whitespace on, carriage return displays as <13> in Decimal and <0D> in Hex; line feed uses <10> or <0A>. Existing trace rows redraw using the new mode without changing their recorded bytes.

The SkipSpaces variants leave ordinary spaces unbracketed. Detail/comparison selections reset when the mode changes; select the cells again to inspect the new representation. Turning whitespace display off shows the underlying text. Newly built Auto Response rules and command buttons use the selected bracket base too. Previously generated rules and commands are not rewritten when you change the setting; review their bracket codes separately.

Notes are stored as you type while the cursor stays in the cell. Entering a note also checks Keep for that row, as when finishing a note previously. Keep checkbox changes remain immediate.

Grid columns

Column / inputFunction and practical example
CommandObserved command text with the current whitespace/bracket presentation. Select it to inspect the full command or compare cells; changing a display cell is not editing a send definition.
ResponseObserved response associated with its command. Several response rows can belong to one command. Selection can compare differing replies.
CountNumber of observations for the displayed command/response record. Use to distinguish recurring exchanges from one-off responses.
DateRecorded timestamp for the displayed record; use for ordering/correlation. It is not a scheduling field.
KeepProtect this command/response from normal retained-response eviction. Adding a Note also marks it Keep. Clear table still removes kept rows.
NoteEditable annotation, for example Firmware 2.1 response. Notes are saved with trace records and help explain an unusual exchange.
Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add all commands and response to the auto response table
  • Add all commands as command buttons
  • Add Command
  • Add selected command to Auto Response with no response
  • Add single command to command buttons
  • Add To Auto Response As Contains
  • Add To Auto Response As Exact
  • Add To Auto Response As RegEx
  • Add To Auto Response As Starts With
  • Auto Build Response Table
  • Contains Match
  • Exact Match
  • Regular Expression Match
  • Show/Hide Whitespace
  • Start / Stop Recording
  • Starts With Match
  • toolStripButton1
  • toolStripSplitButton2
Diagnose in layers

When the conversation does not work

Read connection failure diagnostics

Connection failures appear in the Message Window with the transport, endpoint, and underlying error; socket errors also include their name and numeric code. An address already in use means another listener owns that address/port. Serial access denied can mean another application owns the COM port or access is restricted. TCP connection attempts allow up to five seconds before reporting a timeout, while a reported refusal means the remote endpoint rejected the connection.

Failed opens release their callbacks and resources before a retry; paired serial/MITM connections close both sides if one fails. TCP listeners and unicast UDP ports use exclusive binds; multicast UDP retains shared membership. Unpause the Message Window to see new diagnostics.

Find the first layer that fails instead of changing several settings at once.

  1. Role and topology: endpoint, sniffer, or MITM? Are the physical route and client destination consistent with that role?
  2. Access: correct COM port/device, available vendor driver, unused local port, reachable address, capture visibility?
  3. Transport: both MITM sides open? Correct serial format or TCP/UDP ports?
  4. Framing: exact terminator, byte count, regex, or quiet-gap boundary? Buffered partial data?
  5. Interpretation: correct ASCII/Hex/converter and whitespace code type?
  6. Behavior: table applied, Auto Respond enabled, correct row order/case, variables initialized, active script current?
  7. Observation: pause/filter settings, log visibility, selected timing endpoints, actual peer acknowledgement?
Common use cases · Build a useful problem report

Include build version, mode, relevant settings, a minimal request/reply trace, expected versus observed result, and whether the same setup works in a controlled loopback test. State whether hardware traffic was actually observed. Remove secrets before sharing the report.

For random behavior, provide the exact token and several observed values. For timing, include the timestamps and selection scope. For an empty sniffer capture, describe the mirror/tap route and selected adapter.

Back to Logs, timing & tracing · All chapters

Window guide

Network Statistics (NetStat)

Inspect Windows TCP/UDP endpoints and their associated processes to diagnose local port use.

Elevation and missing process details

The yellow warning reads: WARNING: Not running as administrator. Not all ports may be visible in the table. Without administrator privileges, the table and process details may be incomplete; an absent port does not prove it is unused. Run the simulator as administrator and re-scan when you need greater visibility.

ControlHow and why to use it
Re-Scan PortsRefresh the endpoint snapshot. This reads local OS tables; it does not probe remote devices.
Full File Path For ProcessChoose process-path display for the next scan. Some process details may be unavailable with current privileges.
Filter field and ApplyEnter a DataTable row-filter expression and apply it. An invalid expression turns the field red and clears the active filter.
=Build an equality condition from the selected cell. Further conditions are appended with AND; press Apply to filter.
LIKEBuild a prefix condition from the selected cell with a trailing wildcard. Edit the expression as needed, then Apply.
XClear the filter and restore the full snapshot. This does not terminate a process or close its socket.
Endpoint table / closeCompare process, protocol, local/remote addresses and ports, and state. Closing hides the window.
Common use case

If a TCP listener cannot bind its port, re-scan and find that local port to identify the process already using it. A listed endpoint is a snapshot, not proof of application-level communication.

Grid columns

Column / inputFunction and practical example
Process NameOwning process where available. Example: CommunicationSimulator. Missing process details may require elevated access.
ProtocolTransport protocol such as TCP or UDP. This is diagnostic output, not a connection-mode dropdown.
Local AddressAddress bound on this PC, for example 127.0.0.1 or 0.0.0.0. A wildcard bind is different from a remote peer address.
Local PortPort owned locally, for example 10000. Use to investigate a listener bind conflict.
Remote AddressPeer address for a connection where available. UDP/listener rows may not have a specific peer.
Remote PortPeer’s port where available; it need not equal Local Port.
StateOperating-system TCP state, for example LISTEN or ESTABLISHED. UDP does not have the same connection state.

These columns display a network snapshot; they do not configure sockets. Use Refresh and the context filter controls to investigate a selected value.

Back to Logs, timing & tracing · All chapters

AI Agent & MCP

AI Agent & MCP

Keep assisted authoring, permissions, API keys, proposal review, and local MCP setup in one place.

In this chapter · 6 guides
Assisted authoring

AI Agent and MCP

Turn a verified protocol description into reviewable settings, commands, scripts, and response tables.

Configure provider and model

All AI configuration is in the final AI Agent property-grid section. Select a provider and model and configure its API key. API access is distinct from a browser chat subscription. Keys are excluded from simulator XML; remembered keys use Windows Credential Manager.

Sharing and permission defaults

Web search and context sharing default on. MCP, device control, and the individual auto-accept options default off. Preferences are saved per simulator file. Agents cannot grant themselves permissions. Connected/listening instances must disconnect before applying edits.

Proposal review and acceptance

Proposals normally queue for review. Accepting an Auto Response proposal replaces the complete ordered table and initial defaults, initializes them locally, and supports undo. It does not enable Auto Respond, connect, or transmit. Device tools independently require Allow AI device control. Saved conversation continuity does not override the saved sharing preference.

Common use cases · Ask for evidence-based assistance

Build and configure a simulator from your device manual

  1. Open AI Agent, configure your API provider/key, and choose Attach files to add the device manual PDF or a supported text reference. Add bench notes describing the transport, simulator role, endpoint, framing and commands you need. Use a searchable PDF or OCR/text export for scanned pages; diagrams and ambiguous tables need your own verification.
  2. Ask the agent to search the attached manual and cite page/segment locations for command syntax, terminators, units and response formats. Have it identify missing details before proposing settings, command buttons, an ordered Auto Response table and initial values.
  3. Keep the simulator disconnected while reviewing and accepting proposals. Review the complete replacement response table and defaults, preserve any existing behavior you need, then test with a controlled peer and save the simulator file. Reattach source documents after reopening the conversation.

Example prompt: “Use the attached device manual to build a TCP listener simulator for a bench test. Find 20 common commands and cite their manual pages. Propose connection/framing settings, command buttons and stateful Auto Responses with bounded varying measurement values. Preserve existing rows I still need. List unsupported behavior and ask about missing details. Queue changes for review; do not connect or send.”

Model settings and realistic replies

Example prompt: “Use the manual to make set commands update stored values and query commands return them. Start with safe initial defaults and add documented identification, status and error replies. Read the current Auto Response reference first; show the complete ordered table and explain any approximations.” Test transitions and invalid commands against the manual; generated behavior is a test model, not device conformance certification.

Add scripted behavior and diagnose exchanges

Example prompt: “Read the current scripting reference and propose a script for the timing or calculation this manual requires. Explain the callbacks and assumptions before I accept it.” Accepted scripts compile and activate while disconnected. You can also share a captured exchange as an explicit text attachment and ask the agent to compare the reply with the documented format, quoting the relevant source locations.

Explain a confusing script

Enable context sharing only when you want that simulator context sent to the configured provider. Ask for an explanation before requesting edits. A successful provider fixture is not proof that your live account/model is accessible.

Connect an external MCP client

Enable Allow MCP agents and use MCP setup from this instance. Ask the client to read read_auto_response_reference before proposing stateful/random tables. Device-control permission and each auto-accept option remain separate decisions.

Example prompt: “Read the simulator context and current references, propose the documented startup sequence, then run my approved loopback test and report the observed replies.” Enable Allow AI device control separately only for the intended setup before asking the agent to connect, send or read through device tools. Each auto-accept option remains off by default. Internal chat attachment search/read tools are not exposed through MCP; provide the manual through your external client’s own supported document workflow.

Back to AI Agent & MCP · All chapters

Attachment controls are in the toolbar: Attach files, attached-file dropdown, and Remove file. Drop PDF or text references into the chat or composer (up to five files totaling 20 MiB). Reattach references after reopening. Thinking appears after the latest message and clears on completion. Statistics shows reported token totals since starting or restoring this conversation.

Property grid reference

Web Sniffer

Configure Web_Sniffer here while Stop Proxy is complete; these values are saved in the simulator file.

Proxy PortLoopback port 1024–65535; default 8888.
Capture HostsExact hostnames or IP addresses separated by commas; no schemes, paths or wildcards.
Capture BodiesRetain bounded decoded body previews; may contain secrets.
Use Windows ProxyRoute compatible applications temporarily; Stop Proxy restores prior owned settings.
Choose scope and routing

For example.com troubleshooting, enter example.com, www.example.com, leave Capture Bodies and Use Windows Proxy enabled, then Start Proxy and Start Capture. Use Stop Proxy when finished.

Web Sniffer lifecycle and controls

Property grid reference

AI Agent

When you select this group: Configure API chat, context sharing, web search and local MCP. API credentials stay in Windows Credential Manager. Device control and each auto-accept permission are per-file and default off; agents cannot change permissions. Other proposed edits require review, and edits require a disconnected simulator.

Configure API chat, context sharing, MCP access, and separate edit/device permissions.

Shown in: Modern .NET build, all communication modes.

GUI itemMeaning, use, and interactions
ProviderSelect the API provider for chat. Use credentials and models available to that provider account; browser chat subscriptions are not the API connection used here.
ModelOpen the model editor/dropdown to query models available to your API key or type an exact model ID. Choose one suitable for tool use and your task; a listed model is not proof that a live request will succeed for your account.
API keyThe grid shows only Configured or Not configured. Open the masked editor to enter, obtain, or forget a provider key; inline entry is disabled. Keys are excluded from simulator XML; keep them out of scripts, Notes, and chat text.
OpenAI output token budget1024–65536 output plus reasoning tokens per response; default 16384. Choose a model-supported budget. Higher limits may cost more.
Task tool rounds1–64 rounds per task, default 32. Continue task resumes completed checkpoints.
Task time limit (minutes)1–60 cancellable minutes per task, default 15. Timeout preserves completed work.
OpenAI context compactionOptional server compaction at 50000 tokens. Off by default; requires a supported model. Encrypted task checkpoints persist in saved history.
Allow web searchAllow provider-supported web search for current external information. Default true; it is separate from sharing simulator context and does not guarantee that every provider/model can search.
Share settings, script and commandsAllow chat to read settings, script, commands, Auto Responses, and variables and use simulator tools. Default true and saved per file. Turn off before chatting when you do not want simulator context resent, including restored conversation context.
Allow MCP agentsEnable the local named-pipe bridge for compatible MCP clients. Default false and saved per file. Use when an external agent should interact with this running instance; the connection name is stable for this executable folder.
MCP setupOpen connection setup to obtain the configuration for a compatible MCP client. Use the generated connection details rather than guessing a process/pipe name. This editor action is not an API credential or an edit permission.
Allow AI device controlPermit tools to connect/disconnect configured serial/TCP/UDP devices, send text, read output, and activate a script draft. Default false per file. Enable only for the intended test setup; the agent cannot grant itself permission.
Auto accept settingsApply validated setting proposals automatically while disconnected. Default false per file; otherwise review each proposal. Connected/listening instances must disconnect before edits, even when auto acceptance is enabled.
Auto accept scriptsAutomatically accept script proposals while disconnected. Accepted API/MCP scripts validate, compile, and activate immediately with rollback on failure. Default false; activation does not mean a device was connected or a Start callback invoked.
Auto accept device commandsAutomatically apply proposed device-command lists while disconnected. Default false per file. Acceptance updates the list; it does not press command buttons or transmit their text.
Auto accept auto responsesAutomatically accept proposed ordered Auto Response tables and initial defaults while disconnected. Default false per file. Acceptance initializes defaults locally without variable multicast; it does not enable Auto Respond, connect, or transmit. Runtime captured state remains separate from saved defaults.
Common use case · Put these settings together

Start with proposal review and a disconnected loopback scenario. Grant each permission deliberately; saving a file retains preferences but excludes credentials and pending proposals.

See the related workflow guide for the surrounding procedure and examples.

Back to AI Agent & MCP · All chapters

Sub-window controls

AI Agent: toolbar and action buttons

Your messages appear in flat blue bubbles on the right; replies appear in gray bubbles on the left. Bubbles show only conversation text, without speaker names or timestamps. Select text across messages and press Ctrl+C, or right-click for Copy selected text, Copy conversation, or Select all. Copy conversation includes every message and speaker label, including saved history. The transcript is read-only. The message entry box supports right-click Cut, Copy, Paste, and Select all; Ctrl+Enter sends. Long replies wrap and the transcript scrolls; new messages follow the bottom only when you are already near it.

Review proposals, recover an accepted edit, and manage the API conversation.

Label / tooltipFunction and practical use
Review proposed changesOpen proposal review; the count indicates queued proposals. Inspect proposed settings, scripts, command lists, or Auto Responses before accepting. Connected/listening instances must disconnect before edits.
Undo last edit / Undo last applied changeRequest undo of the last applied AI change. Availability and stale-state checks prevent overwriting later changes; it is not a general undo of device traffic or every chat action.
New chat / Start a new chatCancel an active request if needed, clear the local conversation/transcript, and start a new conversation identity. Simulator settings remain. Save the simulator file to retain the new conversation state; this is not a request to delete provider-side history.
SendSubmit the prompt to the selected API provider/model; Ctrl+Enter also sends. Needs a configured key and model. Shared context and available tools follow saved permissions; asking does not grant new permissions.
CancelRequest cancellation of the in-progress API operation. It does not undo already accepted edits or device actions that completed before cancellation.
Common use case · Review a proposed scenario change

Ask for a small disconnected loopback configuration change, review its proposal, accept it, and inspect the resulting settings. Use Undo last edit only while the current state still permits it. Start New chat when moving to an unrelated task.

See AI workflow guidance for sharing, MCP, device permissions, and automatic acceptance.

Back to AI Agent & MCP · All chapters

Attached reference files and longer tasks

Choose Attach files or drop PDF, TXT, Markdown, CSV, JSON, XML, LOG, INI, CFG, YAML or C# text into the conversation or message entry box. Select a file in the toolbar dropdown and choose Remove file to prevent future document reads. Up to five files totaling 20 MiB are copied into memory; originals are unchanged. PDF text is extracted locally, preserving page numbers; text files are divided into 6000-character segments. The model receives an attachment manifest, then uses search_documents and read_document for bounded excerpts instead of receiving the whole PDF on each step. Only explicitly attached files are accessible. Scanned/image-only pages need OCR or a text export; diagrams are not interpreted by this text retrieval path. PDF limits: 1000 pages, 2 million extracted characters and 200000 characters per page. Text must be UTF-8 or BOM-marked UTF-16. No file code is executed. Requested excerpts can be saved in provider chat history/XML; the full source files and paths are not saved. Reattach after reopening; new chat/session clears the references.

Continue task resumes unfinished phases from completed tool checkpoints. Review applied changes and proposals before continuing; uncertain device actions must not be repeated. Settings > AI Agent configures OpenAI output token budget, Task tool rounds, Task time limit (minutes), and opt-in OpenAI context compaction for supported models. Defaults are 16384 OpenAI output/reasoning tokens, 32 rounds and 15 minutes. Higher budgets may increase API cost. Compaction defaults off for model compatibility. Streamed rate-limit failures wait 30, 60 and 120 seconds with Cancel available; completed tools are not replayed. The toolbar Statistics button shows reported token totals since starting or restoring this conversation; unreported usage is excluded. Thinking appears inline after the latest message and disappears on successful completion.

Shared module configuration and troubleshooting

Internal API chat and external MCP expose the same 21 tools. Use read_capabilities for the 26 modules, accepted action arguments and feedback relationships; use read_module for timestamped configuration and bounded diagnostic data. CAN Receive and Watch supply traffic values, CAN Statistics supplies bus health, and connection status plus the Message Window supply open/close events and errors. Web Client and Web Sniffer expose decoded HTTP/HTTPS bodies. Use propose_module for structured configuration with review, stale checks and undo; Auto accept settings covers these proposals while disconnected. Starting capture, sending, script callbacks and Windows trust/proxy changes require separate module_action calls and Allow AI device control. Poll job_status for long operations; completed means the operation finished, not that a device acknowledged it. Preserve masked secrets and request revisions, read all configuration pages, and check truncation and omission flags. CAN display pause does not stop reception. File open/new preserves permission ownership and rejects enabled automatic features. Provider accounts and physical hardware require independent acceptance.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Attach PDF or text reference files
  • Attached files; drop PDF or text files into the chat (up to five files totaling 20 MiB)
  • Continue the unfinished task from completed tool checkpoints
  • Open the AI Agent chat and simulator tools
  • Remove the selected file from future document reads
  • Review proposed changes
  • Review proposed changes (
  • Show current conversation statistics
  • Start a new chat
  • Undo last applied change
Window guide

Review AI changes

Inspect pending AI proposals before they change the simulator.

ControlHow and why to use it
Proposal selector and previewSelect a queued proposal and read its proposed contents.
Apply to simulatorAccept the selected proposal subject to permission, disconnected-state, validation, and stale-state checks. Accepted scripts compile and activate; Auto Response acceptance does not enable Auto Respond or send traffic.
RejectRemove the selected proposal and advance to the next; the dialog closes when none remain.
CloseLeave remaining proposals pending. Closing alone does not accept them.
Common use case

Review an ordered response-table replacement against your existing rules before applying it. Disconnect first, preserve human editor drafts, and inspect the result; see AI permissions and undo.

Back to AI Agent & MCP · All chapters

Window guide

AI provider API key

Configure API credentials for the selected provider.

ControlHow and why to use it
Masked key fieldEnter the API key. Credentials are excluded from simulator XML; remembering a key uses Windows Credential Manager.
Remember API keyChecked by default for new configurations. Save the provider key in Windows Credential Manager for your Windows account. Uncheck and press OK to remove its stored key. The choice is saved in the simulator file; Cancel leaves it unchanged.
Get API keyOpen the selected provider’s key website.
Forget stored keyImmediately delete that provider’s remembered key, disable Remember Key, clear the field, and close with the cleared value.
OK / CancelOK returns the entered key; Cancel leaves the previous value. Forget stored key is an action of its own, not a change awaiting a later OK.
Common use case

Configure a provider key before using API chat. A browser chat subscription is distinct from API access, and displaying models is not live-account acceptance evidence.

Back to AI Agent & MCP · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Save this provider key in Windows Credential Manager. Checked by default; uncheck to remove the stored key when you press OK.
Window guide

Local MCP setup - this running instance

Obtain the client configuration for this simulator instance’s local MCP bridge.

ControlHow and why to use it
Configuration textRead the instance-specific configuration. Allow MCP agents must be enabled for setup to be available.
Copy MCP configurationCopy the displayed JSON into your local MCP client configuration.
CloseDismiss the setup window. Copying configuration does not grant device control or auto-accept permissions.
Common use case

Connect a local MCP client to the running instance, then request the current scripting or Auto Response reference. Configure device-control and review permissions separately in AI Agent settings.

Back to AI Agent & MCP · All chapters

Files & supporting tools

Files & supporting tools

Save reproducible workspaces, use the separate HTTP tool, and find application information.

In this chapter · 8 guides
Reproducible workspaces

Files, layouts, and supporting tools

Save an experiment so another run can reproduce its configuration and explain its intent.

What a saved simulator contains

Save the simulator XML with transport settings, table rules, initial variables, scripts, device commands, and AI preferences. Credentials and pending AI proposals are excluded. Add Notes describing the target device, wiring, command source, and expected outcome. Save desktop/layout arrangements separately when organizing docked windows.

Supporting diagnostic tools

Use Network Ports / NetStat for local socket information, the ASCII table for byte values, and the Gain and Offset CalculatorCommunity Simulators to calculate and test numeric scaling. The HTTP client is a separate tool for HTTP requests; a generic TCP connection does not automatically implement HTTP semantics.

Common use cases · Hand off a test to someone else

Provide the simulator XML, a short sequence of actions, a sample log, the build version, and any separately required driver/DBC references. Explain what “success” looks like. Avoid embedding credentials in notes or scripts.

Keep a deterministic baseline configuration alongside a variation/error-test configuration. If a layout becomes confusing, use the window/layout controls to restore the relevant views rather than changing the protocol settings.

The About window displays Terms of Use and the packaged third-party license link. Personal and commercial use is permitted under those terms; third-party licenses retain their own rights and requirements.

Back to Files & supporting tools · All chapters

Window guide

Open, Save, and export dialogs

Choose files for simulator configurations, desktop layouts, shortcuts, and exported data.

ControlHow and why to use it
File name / folder / file typeCheck the dialog title and filter: simulator files store configuration, desktop layouts store window arrangement, and CSV exports store the selected data view.
Open / SaveConfirm the selected path. Save As chooses a new destination; overwriting an existing file may require the native confirmation.
Cancel / closeDismiss the file chooser without completing its operation. Handle any separate unsaved-changes prompt according to whether you want to preserve edits.
Common use case

Save the simulator configuration and desktop layout separately when you want both behavior and window arrangement reproducible. Export CAN history before clearing it; an export is not a replacement for configuration.

Back to Files & supporting tools · All chapters

Window guide

Web Sniffer

Select Web_Sniffer in Communication Type or open the Web Sniffer window from the tools menu. Configure it in the Settings grid's Web Sniffer section: Proxy Port (1024–65535, default 8888), Capture Hosts (1–100 exact comma-separated hostnames/IPs), Capture Bodies (default true, decoded previews bounded to 64 KiB), and Use Windows Proxy (default true). Settings persist in the simulator XML; change them while the proxy is stopped.

The six icon-only toolbar buttons, left to right, are Start Proxy, Start Capture, Stop Capture, Stop Proxy, Export, Clear. Hover for names and help. Start Proxy creates and installs a fresh seven-day debugging CA in Current User Trusted Root Certification Authorities, starts listening and temporarily sets compatible Windows applications' proxy routing when enabled. Before changing Windows routing, Start Proxy snapshots the existing proxy and chains upstream through it by default, preserving manual scheme mappings, bypass rules and Windows PAC/autodetection. This also applies when Use Windows Proxy is off. Session activity and AI/MCP status report upstream routing. Configured proxy/PAC failures do not silently fall back to direct access; a PAC DIRECT result or bypass rule is honored. Authenticated out-of-scope CONNECT tunnels currently report authentication-required failure; separate proxy passwords and SOCKS/failover are not supported. Start Capture records new traffic; Stop Capture pauses recording while forwarding continues. Stop Proxy stops forwarding, restores the prior owned Windows proxy settings, removes debugging trust and deletes generated private keys. Application exit also cleans up; hiding this window does not stop the proxy.

If another program changes Windows proxy settings during capture, Stop Proxy preserves those newer settings and reports the conflict in activity. Cleanup failures remain retryable with Stop Proxy. If access is denied, close the program and restart as administrator; current-user trust normally needs no elevation, and elevation does not override organization policy. There is no automatic elevated restart.

Filter affects displayed URLs only. Select a request and choose Overview, request/response headers/bodies, TLS or Errors. Session activity sits below the inspector and starts collapsed; expand it to read setup, routing and cleanup results. Export saves masked JSON records. Clear removes retained records without stopping forwarding or capture. Sensitive headers/query values are masked, but bodies and paths may contain secrets.

Test HTTPS traffic

Set Capture Hosts to example.com, www.example.com and enable Use Windows Proxy. Click Start Proxy, then Start Capture; visit https://example.com without signing in. Reload/restart clients to avoid existing connections. Clients with their own proxy require 127.0.0.1 and the configured port. Stop Capture pauses logging; Stop Proxy removes trust and restores routing. Manually configured application proxy settings must be restored inside that application.

HTTP/1.1 and TLS 1.2/1.3 only; HTTP/2/3, QUIC, WebSockets, request trailers and mutual TLS are unsupported. The website's certificate is validated upstream. Other HTTPS hosts pass through encrypted. Forwarding is bounded to 4 MiB, previews decode gzip/Brotli/deflate without changing forwarded bytes. Retention is 500 records, 32 active connections and 200 pending UI updates. Recovery is journaled; after a crash reopen Web Sniffer and use Stop Proxy.

Back to Files & supporting tools · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Choose request, response, TLS or error details for the selected record.
  • Clear retained traffic records; this does not stop capture or remove debugging trust.
  • Expand or collapse session activity below the traffic inspector.
  • Export retained records with masked sensitive headers and query values; review optional bodies before sharing.
  • Filter retained traffic by displayed URL; this does not change capture scope.
  • Read the selected capture details; body previews decode gzip, Brotli and deflate and may be truncated.
  • Review actual setup, routing and cleanup results; failures remain available for retry.
  • Select a real captured request or diagnostic to inspect its details.
  • Start Capture: retain new request and response records while the proxy is running.
  • Start Proxy: generate and install a fresh debugging certificate, then start routing with the saved Web Sniffer settings.
  • Stop Capture: pause recording while the proxy continues forwarding traffic.
  • Stop Proxy: stop forwarding, restore previous Windows proxy settings and remove debugging trust and private keys.
Window guide

Web Client

Check a webservice's URL, headers, authentication and body, then inspect its response. The Web Client runs independently of the simulator's device connection.

ControlHow and why to use it
Method, URL, Send / CancelChoose GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS and enter an absolute HTTP/HTTPS URL. The toolbar uses the existing New, Open and Save icons; hover for their tooltips. Send and Cancel are buttons beside the URL. Enter or Ctrl+Enter sends; Cancel stops an active request. Sending keeps the window responsive. Check the endpoint before sending a request that changes server data.
ParamsEnabled Name/Value rows append URL-encoded query parameters to the existing URL query, regardless of method. Repeated names are supported. A fragment is not sent.
HeadersNew requests start with enabled Accept: */* and User-Agent: CommunicationSimulator/version rows; edit, disable or delete them as needed. Header presets offers API defaults or Edge-style headers (available when Edge is installed). Edge-style replaces Accept/User-Agent/Accept-Language using the installed Edge major version and Windows UI language; custom headers are preserved. This tests header-dependent responses, not browser JavaScript, CORS, client hints or full browser behavior. Add custom headers such as X-Correlation-ID. Host, Content-Length and compression negotiation are generated automatically; Content-Type comes from Body. Choose Authorization here or use Auth, not both.
AuthNone, Basic (username/password), Bearer (access token), API key in a header or query, or Windows (current account). Obtain OAuth tokens with the provider's supported sign-in workflow and paste a token in Bearer. Password/token/key fields are masked and remain in memory for this session.
BodyChoose None, JSON, XML, Text, Form, Multipart or File. Raw text sends UTF-8 independently of Params and form fields. Form URL encodes fields. Multipart generates its boundary and can upload files: check File on a field row and enter its local path. File sends the selected file's original bytes. Form and Multipart generate Content-Type; raw/file modes use the media type control. Format changes editor text only when explicitly requested; malformed raw JSON/XML can still be sent deliberately to test validation.
OptionsSet a 1–600 second timeout (default 30), redirect following, session cookies, optional proxy URL and PFX/P12 client certificate/password. Blank proxy uses system settings; TLS server certificates are verified. Clear cookies empties the session jar. Turning cookies off sends and stores no cookies. Response inspection is limited to 16 MiB after decompression.
VariablesDefine values such as baseUrl, then use {{baseUrl}} in the URL, parameters, headers, auth or raw body. Resolution is one pass; undefined/duplicate names stop the request. Example: baseUrl = http://127.0.0.1:8080, URL = {{baseUrl}}/status. Use Open request to switch between saved endpoint configurations.
ResponseThe summary shows status/reason, elapsed time and received body bytes. HTTP 400/401/403/500 replies retain their body and headers. Network failures, cancellation and timeouts appear inline. Body, Headers, Cookies and Request details tabs separate common inspection tasks. Cookies lists names/scope with hidden values; response headers can contain sensitive values.
Pretty, folding and searchPretty formats valid JSON/XML for display without changing received bytes; turn it off for original decoded response text. Quantum Whale provides syntax coloring, line numbers, gutter folds, Collapse, Expand, Find (Ctrl+F) and Copy. JSON objects/arrays and multiline XML elements fold; malformed content remains unchanged with diagnostic details on the editor status tooltip. XML DTDs/external entities are not expanded. Format on the request editor changes the request text; response formatting is controlled by Pretty.
Request details / redirectsInspect resolved URLs, configured headers, content headers and redirect requests. Recognized secrets and configured API keys are masked. Transport adds Host/framing headers; this is not a wire capture. Follow redirects allows up to 10 hops. HTTPS-to-HTTP redirects are blocked; cross-origin redirects with auth or sensitive/custom headers stop without forwarding them. Ordinary Accept, User-Agent and Accept-Language headers may follow redirects. Turn following off to inspect Location and test the target explicitly.
Open / Save request, Recent, ClearSave .webrequest.json files to reuse configuration. Auth values, certificate passwords and recognized secret fields are omitted; re-enter them after opening. Bodies and arbitrary custom values may contain secrets: review before saving or sharing. Recent keeps at most 20 request snapshots in session memory, including auth for convenient retry. New/Clear starts a request with the two API default headers, resets auth/body/options and keeps history and cookies. Open and Recent restore the saved header rows exactly, including intentionally empty or disabled rows. Closing hides the window; an active request is cancelled.
Save responseSave original response bytes, including binary responses. Display formatting and text decoding do not change the saved bytes. Responses larger than the inspection limit require a dedicated client.
Common checks
  1. Enter a local or authorized endpoint, choose GET and add Params/Headers as required.
  2. Choose Auth if required, send, then inspect status, body and headers. A 401 response remains available for troubleshooting.
  3. Choose POST and JSON/XML for a body; enter the document, optionally Format it, and send. Confirm the service's result and inspect Request details.
  4. Save a reusable request, re-enter secrets after loading, and use Recent for session retries.

For advanced OAuth sign-in, collection runners, scripted assertions, collaboration or large downloads, switch to Postman.

Grid columns

Column / inputFunction and practical example
UseInclude this row in the request; uncheck to try an alternative without deleting it.
NameQuery/form/header/variable name, for example mode, Accept or baseUrl. Repeated query/form names are allowed; variable names must be unique.
ValueText value, for example demo or application/json. Sending commits an active edit; editing itself sends nothing.
FileMultipart only: treat the field Value as a local file path and upload the file under the field Name. No upload occurs until Send.

Back to Files & supporting tools · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Add request headers. Disable a row to leave it out; Host and Content-Length are generated automatically.
  • Apply API defaults or Edge-style headers; custom headers are preserved.
  • Cancel the active request.
  • Choose a binary file to send as the request body.
  • Choose a PFX or P12 client certificate.
  • Choose authentication. Passwords, tokens and keys stay in this session.
  • Choose one body mode. Raw text and form fields are never combined.
  • Choose the HTTP request method.
  • Clear all session cookies without changing this request.
  • Client certificate password; kept only in memory and omitted when saving.
  • Collapse JSON objects, arrays and XML elements.
  • Configure Params, Headers, Auth and Body; less common settings are in Options and Variables.
  • Copy the displayed text to the clipboard.
  • Define {{name}} values for this request, for example baseUrl. Undefined or duplicate names stop sending.
  • Display formatted JSON or XML; turn off to inspect the original decoded response text.
  • Drag the divider to resize the request and response areas.
  • Enabled Params are URL encoded and appended to the URL; repeated names are supported.
  • Enter form fields. In Multipart mode, check File and enter a local file path to upload.
  • Enter the Basic username or API key name.
  • Enter the HTTP or HTTPS endpoint. Variables use {{name}}; press Enter to send.
  • Enter the password, Bearer token or API key value; saved request files omit this value.
  • Expand all folded sections.
  • Find text in this editor (Ctrl+F).
  • Follow up to 10 redirects. Cross-origin redirects with authentication or sensitive/custom headers require manual inspection.
  • Format valid JSON or XML; malformed text stays unchanged.
  • Inspect resolved request URLs and headers. Recognized secrets are masked; arbitrary custom values may still be sensitive.
  • Inspect the response body, headers, session cookies or masked request details.
  • Maximum request duration in seconds, including response download (1 to 600).
  • Open a saved Web Client request file.
  • Optional HTTP proxy URL. Blank uses system proxy settings.
  • Optional PFX or P12 client certificate for mutual TLS. Server certificates are always verified.
  • Original response headers, including error response headers. Review sensitive values before copying.
  • Path of the binary file to send; no file is uploaded until Send.
  • Restore a recent request. History stays in memory for this session.
  • Retain cookies in memory for this session; turning this off sends and stores no cookies.
  • Save the original response bytes, including binary responses, to a file.
  • Save this request; authentication secrets and recognized secret fields are omitted. Review body and custom values before sharing.
  • Send this request (Ctrl+Enter).
  • Session cookie names and scope; cookie values are hidden.
  • Set Accept to */* and identify this client as Communication Simulator.
  • Set browser-style Accept, User-Agent and language using installed Edge. This changes headers only; it does not run a browser.
  • Set the raw body or file media type; Form and Multipart generate their own Content-Type.
  • Start a blank request; session cookies and recent history remain available.
Window guide

About Communication Simulator

Identify the application build and review its usage terms and notices.

ControlHow and why to use it
Version and logoRead the build identity. Clicking the version label or logo closes this dialog.
kboxerapps.comOpen kboxerapps.com in your default browser using the link in the lower-left corner of the logo graphic.
Terms areaRead or select the scrollable terms, including personal/commercial use, reserved rights, and use-at-own-risk language.
Third-party licensesOpen the available third-party notices file, including artwork credits, creator links and license terms; the link is enabled only when the file exists.
CloseDismiss using the window close control.
Common use case

Record the version when reporting a problem and consult the supplied notices before redistribution. The About terms do not establish unresolved third-party artwork/code provenance.

Back to Files & supporting tools · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Open kboxerapps.com in your default browser
Window guide

Support Communication Simulator (Donate)

Optionally support Communication Simulator using the supplied donation destination.

ControlHow and why to use it
QR codeScan the displayed Ko-fi donation QR with your phone.
Ko-fi linkOpen the supplied donation destination in your browser. Viewing this window does not submit a payment.
Close / EscapeDismiss the window.
Common use case

Open Donate from the right side of the bottom status bar when you want to support the program. Any payment is a separate deliberate action in Ko-fi.

Back to Files & supporting tools · All chapters

Window guide

Gain and Offset Calculator

Open Windows → Calculators → Gain and Offset to calculate linear scaling between two numeric ranges.

Calculate and test scaling

Enter the From and To minimum and maximum values. Gain = (To Max − To Min) / (From Max − From Min); Offset = To Min − From Min × Gain. The read-only results update as you type.

Edit either Test value to convert forwards (To = From × Gain + Offset) or backwards (From = (To − Offset) / Gain). Changing a range refreshes the To test from the current From value. Invalid input, equal From endpoints, or non-finite results display *****. A zero gain supports forward conversion only.

Test a known conversion

For example, From 10–20 and To 100–200 gives gain 10 and offset 0; From 15 converts to To 150. OK, Cancel, Escape and closing the window dismiss this standalone calculator. It does not apply settings or send data; copy the results into your signal configuration as needed.

Back to Files & supporting tools · All chapters

Window guide

Community Simulators

Open Windows > Community Simulators to browse and share saved configurations in the public community repository.

Browse and download

Refresh loads the catalogue without signing in. Search filters names, contributors and latest comments. Select one entry to read its latest revision and comment. The clock/history toolbar icon toggles Show previous versions: its version dropdown appears only while checked, and turning it off returns to latest. All action buttons are icons with hover tooltips. The list fills the window without a lower detail or status area. Hover over a row for its full comment and checksum. Activity and saved-file messages go to the main Communications Output; failures also show a dialog. Download saves the selected revision after checksum verification without opening or executing it. Cancel interrupts refresh/download. Repository opens GitHub in your browser.

Share through your browser

Upload opens a compact dialog with one review checkbox and only Submit via browser and Cancel actions. A short guide explains the webpage steps. Choose file prepares a separate public copy with all AI preferences and saved conversations removed; originals remain unchanged. Review the exact XML preview for credentials, private endpoints, scripts and proprietary content. Enter a short lowercase name and a required posting comment explaining setup and changes. Reuse the same name to update your own entry. Confirm your review and permission to share.

Submit via browser copies the complete prepared submission to your clipboard and opens GitHub's new-issue page. It has not submitted anything yet. Sign in to GitHub in your browser, paste the entire clipboard (Ctrl+V) into the issue description and submit the issue using GitHub's Create button. Your comment is already included. Keep the SIMULATOR-SHARE/1 first line and encoded file unchanged. No token is needed; the application never receives your GitHub credentials. File bytes stay out of the browser URL, avoiding URL-length limits.

GitHub Actions validates the posted issue and publishes automatically without maintainer approval, normally within a minute subject to queuing. Keep the GitHub issue open to check its publication reply before posting again. Refresh after publication. Cancel exits the dialog or cancels file preparation; it does not retract posted issues. If the browser fails to open, create a new issue in the repository and paste the prepared clipboard into its description. The public copy stays on the clipboard until replaced. A free GitHub account is required to submit; browsing/downloading needs no account.

Limits and contributor ownership

Valid XML only, up to 1 MiB per original/prepared file and 56,000 base64 characters of gzip data; complete submissions are capped at 60,000 characters. Remove large saved chat/captures from a separate copy if needed. Each contributor owns their account namespace. Revisions use issue numbers and may have gaps; older versions remain available. Public issues contain the encoded file, and closing them does not make it private. API limits/outages may delay access. Automatic publication does not certify compatibility or script safety. Inspect scripts before opening files and identify rights/licenses in your comment.

Common use cases · Share a device simulation or restore an earlier revision

Prepare bench-device with a comment explaining its transport and commands. Submit via browser, paste into the issue description and submit. Later post the same name with a comment explaining changes. Download latest by default; enable Show previous versions to choose earlier behavior without adding every revision to the main list.

Back to Files & supporting tools · All chapters

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Cancel the current community download or refresh.
  • Choose a saved .simulator file and prepare its public copy.
  • Choose the latest or a previous revision to download.
  • Close this upload dialog or cancel file preparation; posted submissions stay public.
  • Confirm you reviewed the public copy and have permission to share it.
  • Copy the prepared submission and open GitHub; paste into the description and submit in your browser.
  • Explain the device, setup requirements and changes in this revision; a comment is required.
  • Filter community simulators by name, contributor or latest comment.
  • Open the public community repository in your browser.
  • Refresh the community simulator list from GitHub.
  • Review the public copy for secrets in scripts and settings. Saved AI conversations and preferences are removed; the original file is unchanged.
  • Save the selected revision without opening or running it.
  • Select a shared simulator to view its latest revision and posting comment.
  • Share a saved simulator file with a required posting comment.
  • The original saved simulator file remains unchanged.
  • Toggle previous versions and reveal the revision dropdown.
  • Use the same name to publish a new revision under your GitHub account.

EtherCAT Sniffer

EtherCAT Sniffer

Capture, record and inspect EtherCAT traffic with a passive observation setup.

In this chapter · 2 guides
Ethernet protocol

EtherCAT: passive capture

The modern x64 build provides initial passive EtherCAT frame capture and recording from a mirror port or Beckhoff ET2000. Initial ESI-backed fixed-PDO charting is available. Initial passive CoE SDO/dictionary discovery and dynamic PDO reconstruction are available.

Select the EtherCAT decoder

Choose Ethernet_Sniffer, then Decode Protocol → EtherCAT. Only this selection exposes EtherCAT Sniffer Settings underneath the shared capture settings. Choose Windows > EtherCAT Sniffer to select passive sniffer mode and show Message Window, AI Agent and the dockable EtherCAT Sniffer pane. This launcher does not start capture. Enable message-window recording, then connect the capture adapter before asking the existing master to transition through INIT back to OP. Recording writes a full-frame .pcap beside the text log, preserving initial traffic from the previous session. ET2000 ESL hardware timestamps, port and error flags remain in the recorded frames; ordinary mirror captures use PC capture timing. Initialization markers are inferred from successful state traffic, including valid one-byte AL Control writes. Mandatory fixed PDO groups within one sync manager are decoded in ESI declaration order only when the complete active SM/FMMU bit layout agrees. Replay reserves channel-series capacity independently of startup diagnostic metrics; unchanged process runs retain their first and last points, while raw PCAP preserves every captured frame. Fixed PDO channel names and values can appear live in Strip Chart and in reloaded recordings when startup capture contains matching SII identity plus active SM/FMMU configuration. Referenced EtherCATModule descriptions support explicit single-instance slots, SlotPdoIncrement and SlotIndexIncrement. Module XML must be in the same ESI folder and have the same vendor as its referencing device file. Dynamic PDO annotation requires the entire captured ordered mapping, including padding, to match a description. When vendor/product/revision reads are absent, the decoder uses only field types and names shared by every matching local modular candidate, labels device identity unverified and keeps ambiguous names generic. Conflicting types remain undecoded; no module selection, scaling or identity is inferred. Parent and module source hashes are retained together. Observed CoE product names are metadata; they do not establish exact identity or rename an existing chart series. Reconnect or reopen a recording after changing ESI files. Passive paired CoE SDO/SDO Information can name dynamically mapped signals; fragmented SDO Information and block SDO remain unresolved.

Capture use case · Preserve startup evidence

Use a mirror port carrying both traffic directions or an ET2000 uplink. The sniffer never asks the master to change state. Hardware acceptance is pending; CoE reconstruction needs observed active mailboxes, paired successful SDO transfers and active process mappings; incomplete evidence remains unresolved. ET2000 live markers use a bounded ordering window; delayed or mixed-clock frames are reported when capture stops. The recording retains those frames for later analysis. Raw PCAP files are not removed by text-log retention, so monitor available disk space. ESI files remain in the configured local folder; preserve them with the recording for reproducible replay.

For the existing TCP/UDP network-observation workflow, see Ethernet sniffing. Select EtherCAT under Ethernet Capture to decode raw EtherCAT frames; Raw TCP/UDP filters do not apply to that decoder.

Back to EtherCAT Sniffer · All chapters

Main controls and capture feedback

Connect and Disconnect are exclusively on the main toolbar. Configure Local Adapter IP under Ethernet Capture and ESI Folder under the conditional EtherCAT Sniffer Settings group in the main property grid. The EtherCAT pane only provides recording, pause-view and Strip Chart actions. Capture state, counts and initialization guidance appear in Communications Output. Closing the pane hides it while capture continues; use the main Disconnect to stop.

Browse live or stopped signals

The Decoded signals table updates existing rows in place so you can scroll, select cells and sort by a column while values continue updating. Pause view freezes the visible frames and decoded values for browsing; passive capture, decoding and recording continue. Uncheck it to catch up to current values. Disconnect drains capture and retains the final decoded values for browsing, marked [stale] in the Mapping column with a corresponding Communications Output message. Pausing never connects or sends anything. A new capture or a new/opened simulator file clears the retained view so values from different sessions or files are not mixed. Retained values are temporary display data, not restored live device state.

Recording sessions and failure evidence

Recording preserves a continuous arrival-order PCAP archive plus numbered session PCAP files and a .pcap.index.json file. Session 0000 contains partial traffic observed before the first INIT. Each inferred INIT cycle starts the next file at its triggering frame, including startup back to OP. Repeated INIT during startup does not repeatedly split. The prior file retains the failure lead-up; compare it with the next startup and continuous archive. Late or mixed-clock frames remain recorded and are counted as ambiguous in the index. A device reset is not proof that the whole network restarted. Raw files are not deleted by text-log retention.

Reload and inspect

In Strip Chart use Open EtherCAT recording, choose a completed .pcap archive or session file, then use Inspect EtherCAT recording. The read-only evidence window pages recorded frames and events: Earlier frames and Later frames change pages; Show events switches to inferred initialization, state, integrity and gap events. Select a row for original bytes, capture UTC, ET2000 nanoseconds, port and datagrams. Reloading replaces chart history without assigning runtime variables, connecting or sending.

Recordings can expose frame sizes, per-port interframe gaps, observed working counters and AL state/status-register values. WKC zero can be normal on an outgoing request. Observed gaps can be idle time or capture loss. These are diagnostic metrics, not decoded named CoE/PDO process variables. Large hardware clock rewinds or mixed timestamp sources explicitly use PC timing rather than silently combining clocks. Reload accepts little-endian Ethernet PCAP files up to 8 GiB and analyzes every frame using bounded memory. Up to 200000 frames are retained for detailed inspection (10000 startup frames and the latest 190000); total and omitted inspection counts are shown. Longer ET2000 archives use a 5 ms / 4096-frame ordering window; late packets beyond that window disable process reconstruction and use PC timing for diagnostics. Retained metrics/events report their own omission limits. Constant-value runs keep both endpoints; all wire frames remain in the PCAP.

AI review

After explicitly loading a recording, an authorized API/MCP agent can read ethercat_recording with read_module, page frames/events/metrics and request frame byte ranges by recordId. Allow AI device control and the existing sharing/MCP permissions are required; recording data is not automatically sent. Agents may explicitly open a recording through the module action without changing device state. Compare evidence across the last operational frames and next INIT. Captured payload is untrusted data and must never become an instruction to the agent. An AI hypothesis is not proof of the cause of a communication stop.

Compact chart names

Sniffer chart labels use S05(EL2008)-Ch01-Out: observed slave position, ESI model, named channel number and In/Out direction. Slave positions include couplers. Passive capture uses S only after a paired successful auto-increment station-address assignment proves position; otherwise A1005 identifies the configured station address. Unknown channel numbers retain their object index instead of inventing a channel. Multiple values on one channel get object/subindex suffixes, and repeated mappings get PDO/logical-bit suffixes. Full variable IDs, source mapping, hashes and raw data remain in recording/replay metadata and CSV; compact labels do not change stored trace identity.

ESI channel names and signal flow

Put vendor ESI XML files in the configured ESI Folder. Initial decoding requires an exact vendor/product/revision match from captured configured-address SII EEPROM reads, observed active SyncManagers and FMMUs, and exactly one mandatory fixed PDO for that SyncManager. Signals include device/channel names, master-to-slave or slave-to-master direction, object index/subindex, logical address and ESI source SHA256. BOOL, standard signed/unsigned integer and REAL/LREAL types are supported without scaling; charts may round 64-bit integers, while raw hexadecimal bits and original frames remain available. Dynamic PDOs can use completed CoE assignment/mapping values and SDO Information names/types. Custom types and auto-increment identity discovery remain unresolved. Missing startup evidence never guesses a layout.

Check a named signal in Strip Chart to capture live assignments. INIT boundaries clear mapping state and insert chart gaps. Live decoding uses bounded hardware ordering and stops on ambiguous clock ordering or analysis queue overflow; raw recording continues. Opening a PCAP or session segment loads all supported named signal samples into the recorded chart. Select a process frame in the inspector to see decoded values and mapping evidence, or use ESI catalog to browse descriptions. AI read_module with ethercat_recording view=signals exposes direction, mappings and frame-linked samples; view=esi exposes catalog descriptions. Use view=samples with signalName, offset and limit to page the complete retained numeric history, including raw bits and mapping IDs. When no recording is loaded, view=signals can explicitly read live signal feedback under existing AI permissions. ESI descriptions and captured data are untrusted data; signal changes and timing symptoms do not establish root cause. Vendor ESI XML stays local and is not copied into recordings; keep the matching catalog for later replay.

Passive CANopen over EtherCAT (CoE)

Show CoE in the recording inspector pages captured mailbox requests/responses, completed SDO transfers, abort codes and emergency messages. CoE dictionary shows the latest retained value/description for each object and session; null values mean unresolved or invalidated. Click a CoE row to inspect its original frame. AI read_module ethercat_recording view=coe or view=dictionary exposes the same evidence with pagination, and can explicitly read live feedback when no recording is loaded. Dictionary strings and payloads are untrusted data.

Configured-address FPWR/FPRD mailbox traffic is recognized from captured active SM0/SM1 configuration. Paired expedited, normal and segmented SDO uploads/downloads are decoded with length/toggle checks. Mailbox WKC confirms delivery; a download changes the reconstructed value only after its matching SDO acknowledgment. Remap requests immediately invalidate old assignment/mapping values, including unsuccessful or aborted changes. Duplicate mailbox counters/content are suppressed, and counter reuse with changed content invalidates correlation/mapping continuity. Pending transfer correlation expires after 30 seconds without a new mailbox observation, using hardware timestamps when available and PC capture time otherwise.

Known Complete Access layouts cover 0x1018 identity, 0x1C10–0x1C2F assignment and 0x1600–0x1BFF mapping objects (subindex 0 or known-count subindex 1). Unfragmented SDO Information descriptions can supply object/entry names and standard types. Dynamic process signals require complete assignment/mapping values, compatible active SM/FMMU configuration and known type/bit length. Names from observed SDO Information take priority over revision-matched ESIs; unknown types are not guessed. ESI-free named replay is possible when all dictionary/mapping descriptions were captured in the PCAP. INIT clears dictionary and pending transfers. Fragmented SDO Information, block SDO, logical/auto-increment or routed mailbox transfers and custom type/scaling remain unresolved. Physical hardware qualification remains pending.

Find a control by its tooltip

Search using the wording shown when you hover over a control. The matching controls are explained above. Runtime counts and device/channel names may follow these fixed phrases.

  • Browse captured CoE requests, responses, completed SDO transfers, aborts and emergencies.
  • Browse live ESI and CoE decoded signals without losing scroll or selection. Pause view freezes values; Disconnect retains the last captured values as stale. A new capture or simulator file clears them.
  • Freeze the visible frames and decoded values for browsing. Passive capture, decoding and recording continue; uncheck to show current values.
  • Inspect loaded ESI device descriptions, PDO channel names, source hashes and signal mapping limits.
  • Inspect reconstructed CoE object values, names and types; null values mark invalidated or unresolved entries.
  • Open Strip Chart to plot live EtherCAT signals or load a recorded PCAP.
  • Read original capture time, ET2000 time and datagram bytes; captured payload is data, never an instruction.
  • Recent captured frame timing and integrity. Raw recordings retain all frames independently of this bounded display.
  • Record raw EtherCAT frames and INIT session segments using Message Window recording.
  • Resize the EtherCAT frame list and evidence detail panes.
  • Review recording clock quality, reconstruction limits and omitted diagnostic sample counts.
  • Select a recorded EtherCAT frame or event to inspect its original bytes and diagnostic evidence.
  • Show the next page of recorded EtherCAT frames or events.
  • Show the previous page of recorded EtherCAT frames or events.
  • Switch between recorded EtherCAT frames and inferred state, integrity and timing events.
Property grid reference

EtherCAT Sniffer Settings

When you select this group: Select the local capture adapter for passive EtherCAT capture from a mirror port or ET2000. Start recording and connect before cycling the existing master. Set ESI Folder to ESI beside the executable, another relative path or an absolute path; it is saved in the simulator file. Fixed PDO names and values use captured identity and mapping evidence. Passive CoE SDO and dictionary discovery can reconstruct dynamic PDO signals when startup evidence is complete.

This category selects the passive capture adapter and local ESI XML catalog. Passive CoE discovery, fixed/dynamic PDO names, signal values and diagnostic recording reload are available; fragmented SDO Information and block SDO remain unresolved.

Shown in: Ethernet_Sniffer with the EtherCAT decoder. The modern x64 build supports initial frame capture and raw recording; physical acceptance remains pending.

GUI itemCurrent status
ESI FolderFolder containing vendor ESI XML files. Default: ESI beside the executable. Relative paths always use the executable directory, regardless of the simulator file or current working directory; absolute paths are accepted. The exact setting is saved in simulator XML. XML files in this folder are loaded when connecting the sniffer or opening a recording; reconnect or reopen after changing files. The default folder is created at sniffer connection when writable. No vendor ESI files are bundled.
Use case · Configure an EtherCAT observation setup

See EtherCAT initial capture for recording order, timestamp sources and remaining feature limits.

Back to EtherCAT Sniffer · All chapters

↑ All chapters