Serial Port Transport
Connects CycBox to a serial device: a USB-UART adapter, an RS-485 converter or a board's own UART. It is a byte-stream transport, so pick a codec that splits the bytes into messages: Line for text protocols, Timeout for unframed binary, Frame or Structured Frame for framed binary, Modbus RTU for Modbus.
Choose the port, then match baud rate, data bits, parity and stop bits to the device (8 data bits, no parity, 1 stop bit at 9600 or 115200 baud is the most common). The port list shows the ports found on this computer.
- Permissions (Linux): the user needs access to the device node. Add yourself to the
dialoutgroup (uucpon Arch-based distributions) and log in again. - One program per port: close other serial terminals before starting the engine.
- Unplugged adapters: if the port cannot be opened, CycBox keeps retrying (1 s, doubling up to 10 s) while the engine runs, so plugging the adapter back in resumes the connection.
- Not available on Android.

Configuration reference
| Config ID | serial_port_transport |
| Selected by | app_transport = "serial_port_transport" |
| Platforms | Linux, Windows |
| License | Free |
Serial port communication
Basic Parameters:
- Port: Select the serial device to connect to (e.g., /dev/ttyUSB0, COM1)
- Baud Rate: Communication speed, must match the device setting (common: 9600, 115200)
- Data Bits: Number of data bits per character (typically 8 bits)
- Parity: Error detection method (None, Odd, Even)
- Stop Bits: Number of stop bits after each character (typically 1 bit)
- Flow Control: Data flow control method (None, Software, Hardware)
| Setting | Key | Type | Default | Notes |
|---|---|---|---|---|
| Serial Port | serial_port_transport_port | Text (with presets) | detected at runtime | Required |
| Baud Rate | serial_port_transport_baud_rate | Integer (with presets) | 9600 | Required |
| Data Bits | serial_port_transport_data_bits | Integer choice | 8 | Required |
| Parity | serial_port_transport_parity | Text choice | "none" | Required |
| Stop Bits | serial_port_transport_stop_bits | Text choice | "1" | Required |
| Flow Control | serial_port_transport_flow_control | Text choice | "none" | Required |
Setting details
Serial Port
The available values are detected on the machine running CycBox (attached devices, generated ids), so no fixed default or option list is shown here.
Baud Rate
Presets (any other value can be entered):
| Value | Label |
|---|---|
1200 | 1200 |
2400 | 2400 |
4800 | 4800 |
9600 | 9600 |
19200 | 19200 |
38400 | 38400 |
57600 | 57600 |
115200 | 115200 |
230400 | 230400 |
460800 | 460800 |
Data Bits
Allowed values:
| Value | Label |
|---|---|
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
Parity
Allowed values:
| Value | Label |
|---|---|
"none" | None |
"even" | Even |
"odd" | Odd |
Stop Bits
Allowed values:
| Value | Label |
|---|---|
"1" | 1 Bit |
"2" | 2 Bits |
Flow Control
Allowed values:
| Value | Label |
|---|---|
"none" | None |
"software" | Software |
"hardware" | Hardware |
Example config
Default values as they appear in a saved configuration (for example the JSON block at the end of a cycbox/examples/*.lua file). Settings detected at runtime are omitted.
{
"app": {
"app_transport": "serial_port_transport"
},
"serial_port_transport": {
"serial_port_transport_baud_rate": 9600,
"serial_port_transport_data_bits": 8,
"serial_port_transport_parity": "none",
"serial_port_transport_stop_bits": "1",
"serial_port_transport_flow_control": "none"
}
}