Skip to content

Serial / UART

The serial plugin opens a port, reads lines of delimited numbers and maps each column to a signal. A microcontroller printing one line per sample is enough. It is the only plugin where you do not need a signal file: the device names its own columns.

Several serial interfaces can run in one session, on different ports.

FieldTypeDefaultOptions
Serial Portcombofirst detected portThe ports present on the machine, refreshed when the form opens
Baud Ratecombo1152001200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600
Data Bitscombo85, 6, 7, 8
ParitycomboNoneNone, Even, Odd, Space, Mark
Stop Bitscombo11, 1.5, 2
Flow ControlcomboNoneNone, RTS/CTS, XON/XOFF
DelimitercomboAutoAuto, Comma, Semicolon, Tab, Whitespace, Custom
Custom DelimitertextemptyShown only when Delimiter is Custom

If the list shows (no ports found), no serial device was detected. Plug it in and reopen the interface to rebuild the list.

Placeholder image

Plug in the device and press Connect. Nothing needs configuring first.

  • If the first line is a header row, such as time,rpm,temp, it becomes the signal list: one signal per column, in order, with the header’s names.
  • Without a header, the columns are named Channel 1, Channel 2 … from the first data line.

The discovered signals are saved with the session, so next time your dashboard is already wired up.

A line of all-text fields is treated as a header and skipped, so a device that reprints its header every hundred lines is fine.

Loading one does two things:

  1. It adds what the wire cannot say. Where a name in the file matches a device column, the file’s unit, description, range and type apply. rpm becomes Engine speed, 0–8000 rpm on your gauge. Matching ignores case and surrounding spaces.
  2. It checks the device against what you expected and reports every disagreement.

The device always decides how many columns there are and their order.

When names match, the file’s spelling is kept. If you wrote Engine RPM, widgets and .vlog columns use that, not the device’s rpm.

SituationSeverityWhat it says
No file loadedInfoHow many signals were discovered and that units and ranges default to 0–100
Device sends a column the file does not describeWarningNames them; they are added with default units and range
File has a signal no column matchesWarningNames them; they will receive no data
Same names, different orderInfoThe device’s order is used
A header field is blankWarningListed as Channel N
Two columns share a nameWarningThe repeats are numbered, so every column keeps its own signal

At most five names are listed per message, then “…and N more”.

Auto is the default. It works out the separator from the first readable line, tells you which it picked, and keeps it for the rest of the connection:

Delimiter detected: comma. Every line is split the same way for the rest of this connection.

Auto tries comma, semicolon, tab and whitespace, in that order. A run of spaces and tabs counts as one separator, so tab- and space-separated instruments just work.

When the column count is known, from a header or a loaded signal file, Auto picks the candidate that matches it instead of the widest split. That handles a decimal-comma locale: 1,5 2,5 for two signals gives three fields on comma and two on whitespace, and only the expected count tells them apart. With no header and no file, Auto takes the widest split, so set the delimiter explicitly for a decimal-comma device without a header.

Pick Custom to type your own separator. Backslash escapes work, so \t is a tab. An empty custom value falls back to Auto.

One sample per line, values separated by the delimiter, ending in \n, \r\n or \r.

23.4,1450,1,0
  • Values are decimal ASCII, with . as the decimal separator unless your delimiter is something other than a comma.
  • Booleans are numbers: 0 or 1.
  • Whitespace around a value is ignored.

Serial signals have no addressing fields. The Nth value on the line goes to the Nth signal, in the device’s column order.

Two strict rules stop a short line from putting plausible data on the wrong channels:

  • The field count must equal the column count. Any other line is rejected whole.
  • A value that is not a number rejects the whole line. There are no half-samples.

Both are counted and explained:

line has 5 field(s) but 4 column(s) are expected - check the delimiter and the signal list
field 3 is not a number: "n/a"

The first of each is shown at once and the rest are summarized. Rejected lines still appear in the raw console.

An open port does not mean the device is sending, so the states are:

StateMeans
Waiting for data…The port is open. No line has been parsed yet
ConnectedLines are arriving and being read
Not receiving data!No line has been parsed for three seconds
Connection failed…The port could not be opened

Pressing Connect on a connected interface reopens the port with the current settings. Use it to apply a new baud rate or delimiter without disconnecting.

A recoverable error, such as a framing or parity glitch on one byte, is reported but keeps the connection. Only a real failure, such as an unplugged device or a lost port, disconnects.

For the device output:

MotorTemp,MotorRpm,MotorRunning,OverTempAlarm
23.4,1450,1,0

VizuaLog builds four signals by itself. To add units and ranges, load a file with matching names:

{
"dataSignals": [
{
"name": "MotorTemp",
"unit": "°C",
"dataType": "float32",
"minValue": 0,
"maxValue": 150
},
{
"name": "MotorRpm",
"unit": "rpm",
"dataType": "uint16",
"minValue": 0,
"maxValue": 3000
},
{ "name": "MotorRunning", "dataType": "bool" },
{ "name": "OverTempAlarm", "dataType": "bool" }
]
}

dataType is required in a signal file, but on serial it is advisory: values arrive as text and are parsed the same either way. The type decides how the value is displayed and recorded. See Types.

  • A header that changes mid-connection is reported, not applied, because a .vlog fixes its column order when created. Disconnect and reconnect to pick up a new layout.
  • A device that never sends a line ending, usually from a wrong baud rate or binary output, fills a buffer capped at 64 KB. The buffer is then discarded with a warning naming the likely cause. The cap only applies to data with no line ending at all, so a large burst of good lines is never thrown away.
SymptomWhere to look
The port is not in the listThe device is not connected, or its driver is not installed. Reopen the interface to rebuild the list
Stuck on Waiting for data…Wrong baud rate is the usual cause. Open the raw console: garbled characters mean the line settings are wrong, no characters mean nothing is arriving
Lines arrive but nothing updatesRead the message: it names the field count it got and the column count it expected. Usually the delimiter, or a line the device truncated
Columns came out in the wrong orderThe device’s order wins. Check the header it sent in the raw console
Values are 10× off, or truncatedA decimal comma instead of a decimal point. Set Delimiter explicitly rather than leaving it on Auto
Signals are named Channel 1, Channel 2…The device sent no header. Load a signal file, or rename them in the app
Port opens on one machine, not anotherOn Linux the user needs access to the port (typically the dialout group); a port already open in another program cannot be opened twice

All of these messages are kept in full in the event log after the toast has gone.