On this page
Channels
A channel defines the connection between the gateway and field equipment. This page covers channel creation, management, transports, timeouts, heartbeats and secure connections. Configure the protocol and scan schedule under Devices, and point addresses and types under Collection variables.
Open Development Configuration → Collection Configuration → Channel Management, or use the channel controls beside the associated channel in a device editor. Check all devices referencing a channel before changing it.
Create a channel
Click Add Channel at the top of the resource panel and enter a name. Select TcpClient for a device providing a TCP endpoint, and enter its actual IP:port, such as 192.168.1.10:502. For serial devices, match the port, baud rate, data bits, parity, and stop bits. Keep the channel enabled and save.
Use a separate channel for each ordinary collection device. Share one only where the plugin manual explicitly supports it. Plugins supporting only Other do not require an ordinary channel.
Channel Management
Click “Channel Management” to open the Channel Management drawer.

| Operations | Description |
|---|---|
| Search | Filter channels by channel name or enabled status. |
| Added | to open the channel configuration popup and create a channel. |
| Edit | Modify the basic channel information and communication parameters. |
| Delete | Delete individual channels. Before deletion, confirm that devices under the channel are no longer in use. |
| Batch Edit | Batch adjust some configurations of selected channels. |
| Batch Delete | Delete multiple selected channels. |
| Refresh | Reread the channel list. |
Channel Configuration
Click “New” or “Edit” to open the Channel Configuration popup.

| Configuration Items | Description |
|---|---|
| Channel Name | Channel display name; it is recommended to name according to protocol, field link, or device group. Do not use Memory for names; this name is reserved for memory variables. |
| Description | Purpose of the channel, connection object, or site location description. |
| Channel Type | Select the communication method. Network channels show applicable remote and binding addresses. SSL uses TLS for TCP and DTLS for UDP; serial channels show serial-port parameters. |
| Enable | to control whether the channel is running. Once closed, devices under this channel cannot collect data through this channel. |
| Remote Address | The counter address for client-mode connection, commonly in formats such as IP: port or domain name: port, for example, 192.168.1.10:502. TCP clients must provide a remote address; UDP sessions must fill in at least one of the remote address or the bound address. When providing an address with the agreement on-site, you may fill in the prefix tcp://, ssl://, or http(s):// as required by the other party. |
| Backup Remote Address | Backup peer address for TCP client channels. If the primary remote address fails to connect, the connection is disconnected, or communication times out, the channel will attempt to switch to that address within the same device and channel. As long as either primary or backup links are available, the device will not immediately switch between primary and backup devices due to a single TCP link failure. Leaving a blank means TCP client network redundancy is not enabled; The backup address should not be the same as the remote address. |
| Binding address | The address where the server mode listens locally on the gateway is commonly used. 0.0.0.0: port means other hosts are allowed to connect,127.0.0.1: port only allows local connections to be allowed. The TCP server must fill in the binding address; UDP sessions must fill in at least one of the remote address or the bound address. If protocol monitoring is required, you can fill in the tcp://0.0.0.0: Port or ssl://0.0.0.0: Port as agreed on site. |
| Enable SSL | Uses TLS for TCP clients and servers, or DTLS for UDP. Follow the corresponding sections below and match the peer’s security mode. Serial channels do not use SSL. TCP servers in certificate mode require a server certificate with its private key. |
| SSL target host | used by TCP clients to enable SSL for validation certificate hostnames. When connecting via IP but the certificate is issued to a domain name, fill in the domain name in the certificate. |
| SSL client certificate / server certificate / CA certificate | client certificate used by the gateway to prove identity to the peer; Server certificates are provided to clients when the gateway acts as a server listener; CA certificates are used to verify peer certificates. Certificates must first be maintained in the “Certificate Management” section. |
| Allow untrusted certificates | Enabling relaxes peer identity validation. Disabling uses strict validation with the correct CA and also makes a TCP service require a valid client certificate. Prepare terminal identities and follow the direction-specific TLS setup. |
| SSL protocol / check certificate revocation | specify TLS version and enable revocation check when handshake failure or on-site security policy requirements; Default is maintained without explicit requirements. |
| Port Name | The serial port name used by the serial port channel, such as COM1 or /dev/ttyS0. The serial port channel must be filled with the port name, and the host must recognize the serial port. |
| Baud rate, data bits, check bits, stop bits, | serial communication parameters must be consistent with the field equipment. |
| DTR / RTS / handshake mode | serial hardware flow control parameters. Adjust when the on-site serial server, RS485 converter, or instrument manual require activation. |
| StreamAsync | Serial port asynchronous read/write method. On-site can be understood as a serial port-driven read/write mode; When serial communication is stable, it remains at default; when issues such as blockage or untimely reads occur, adjustments can be made according to the requirements of the field driver. |
| Serial port read/write buffer | The size of the read and write buffers used for serial communication. Scenarios for large numbers of continuous or long messages can be appropriately increased. |
| Connection timeout | Budget in milliseconds for connection establishment, including relevant TLS work. Increase it only to cover observed connection latency; protocol response timeout is configured separately in the device plugin. |
| Cache timeout | Receive-frame assembly timeout in milliseconds; default 500, minimum 100. Keep the default for the first connection and do not enter 0. This is separate from the variable refresh period. |
| Maximum concurrency | The number of requests allowed to be processed simultaneously on the same channel. When the on-site device request order is strict, keep 1; increase after confirming that the peer supports concurrency. |
| Heartbeat Content / Heartbeat Time | Shared channel fields whose actual sending or response depends on the plugin and direction. Filling them in does not establish that an ordinary collection connection sends heartbeats. Hex parses configured content as bytes; see Channel Transport. |
| Maximum Number of Connections / Client Cleanup Time | TCP server channel is used to limit the number of clients and clear idle connections. If there are many upper-level computers or DTU, confirm that the maximum number of connections is sufficient. |
| DTU ID / DTU ID Hex / DTU service type | Used by supported registration paths. A TCP server registers the terminal ID as text or Hex; the device plugin’s DTU ID must use the same representation. Hex does not change registration bytes on the wire. See DTU Service for Default and DDP registration. |
After configuring a backup remote address on the TCP client, the gateway will still prioritize connecting to the “remote address” when the gateway starts or the channel restarts. After switching to an alternate address during operation, it will retain the currently available link; Only try another link if the current link fails again. This configuration only applies to the TCP client channel on the acquisition side and does not affect the TCP server, UDP, serial port, or device primary and backup redundant configuration.
Bulk channel editing applies only modified fields offered by the dialog, including enablement, logging, timeouts, concurrency, heartbeats and DTU settings. Edit endpoints, serial connection parameters and SSL certificates individually. See Bulk editing.
Disabling a channel stops its transport and affects associated devices; device and variable configuration remains. After enabling it again, wait for a new connection and sample. Log levels are Trace, Debug, Info, Warning, and Error. They control new log output, not business values. A healthy connection may produce no new warnings or errors.
Choose and verify a transport
Choose the transport direction
| Channel type | Configuration |
|---|---|
| TCP client | The gateway connects to the device. Enter the device’s IP:port as the remote endpoint. Bind a local endpoint only when a specific interface or source port is required. |
| TCP server | The gateway listens and the terminal connects. Bind an address owned by the gateway host and allow inbound traffic. See DTU Service for registered terminals. |
| UDP | Check the remote endpoint, local binding, and response destination. Receiving a datagram is different from establishing a TCP connection. |
| Serial | Select a port on the gateway host and match baud rate, data bits, parity, stop bits, and wiring. Give each port a clearly defined owner. |
127.0.0.1 always refers to the gateway host, even when the browser runs on another computer. The device plugin must support the selected channel type. Modbus, S7, and OPC UA remain different protocols when they use TCP.
Establish a collection baseline
- Save the channel and create a device with the correct collection plugin.
- Add one variable with a known address, type, and source value.
- Enable the channel, device, and variable. Check quality, current value, raw value, and collection time.
- Record the endpoint, station address, and variable address. After each change, verify a new sample against the real source.
A displayed old value can remain after collection stops. Connection, device execution, variable quality, and value correctness require separate checks.
Configure TCP and TLS
Configure primary and alternate TCP endpoints
Enter different Remote Address and Alternate Remote Address values in a TCP client channel. Leave the alternate empty to use one endpoint.
- Make the primary reachable and verify new samples from it.
- Interrupt the primary in a permitted test environment without changing the plugin, station, or point address.
- Check logs and the source to verify new data through the alternate.
- Restore the primary and observe the active connection. A working alternate remains active; another connection failure triggers an attempt at the other endpoint. Restarting the channel tries the primary first.
This changes the route of one channel. Device redundancy and two-Runtime operation are described in Redundancy.
TCP servers, DTU registration, and heartbeats
TCP servers expose connection limits and client expiry. An expiry of 0 disables this idle cleanup; explicit disconnects and channel reconstruction can still close connections. Test both active and idle terminals when setting a nonzero expiry.
DTU ID, Hex, heartbeat content, and heartbeat interval are shared channel fields. Their use depends on the plugin and direction. Filling them in for an ordinary Modbus TCP master does not establish that registration or heartbeat bytes are sent. See DTU Service and reverse connections in Modbus slave.
Text and Hex select byte encoding on paths that consume these settings. The heartbeat interval does not change ordinary variable polling. Default DTU registration and DDP have different registration, response, and business framing; configure both ends consistently and verify identity plus real data after a change.
Establish TLS
These settings apply to TCP client and TCP service channels. For UDP, the SSL switch selects DTLS as described below. Serial channels do not use this switch.
- Prepare role-specific identities and trust roots in Certificate Management. TCP services need a server certificate with its private key; connecting peers need a client identity for mutual TLS.
- For a TCP client, enable SSL, enter the remote TLS port, and select the CA that trusts the remote server. Select a client certificate when that server requires mutual TLS. Set SSL Target Host Name to the DNS name or IP in the remote certificate’s SAN.
- For a TCP service, configure the local listening address and server certificate. Disabling Allow Untrusted Certificates also requires connecting peers to present a valid client certificate. Configure the CA that trusts those clients and provide each terminal with its client identity. Target host name and client-certificate fields belong to TCP client connections.
- Save and verify a new handshake and collection result. Inspect the latest error if validation fails.
| Parameter | Meaning |
|---|---|
| Enable SSL | Enables encrypted transport. A plaintext client cannot use a TLS-only endpoint. |
| Client/server certificate | TCP clients use client identities for mutual authentication; TCP servers need a server certificate with a private key. The roles are distinct. |
SSL protocol None | Lets the operating system negotiate a supported TLS version. SSL remains encrypted when enabled. |
| Allow untrusted certificates | Enabling relaxes peer validation and lets a TCP service accept peers without client certificates. Disabling validates the peer strictly and makes a TCP service require a client identity. Configure trust and identities for the selected direction. |
| Check certificate revocation | Match the certificate policy and available revocation services. Include service reachability when troubleshooting. |
Configure UDP and DTLS
Enabling SSL on a UDP channel selects DTLS 1.2. Disable DTLS Server for an outgoing connection and set the remote endpoint; enable it for a listener and set the local binding. Both peers must support the same security mode. Authentication failure never falls back to plaintext. DTLS does not support DDP encapsulation.
| Parameter | Meaning |
|---|---|
| DTLS Use PSK | Enables a pre-shared key; otherwise the channel uses certificates. Both peers must select the same mode. |
| PSK Identity | Exact matching identity, encoded as 1–128 UTF-8 bytes. |
| PSK Hex Key | Matching key of 16–64 bytes, entered as 32–128 hexadecimal characters. |
| DTLS Datagram Bytes | Default 1400, range 256–65507, including encrypted record overhead. Allow additional space for protocol headers. |
| DTLS Maximum Sessions | Server default 32, range 1–256, shared by pending handshakes and established sessions. A client maintains one remote session. |
| SSL Protocol | Both None and Tls12 select DTLS 1.2. |
Certificate mode uses Certificate Management and the channel’s existing identity, CA, target host, trust, and revocation settings. The server needs a server identity with its private key. Disabling Allow Untrusted Certificates also requires a valid client certificate; select the corresponding identity on the connecting peer. Enabling it lets the server accept peers without client certificates. Clients validate the server name, using the remote host when the target-host field is empty. Handshakes use the connection timeout, bounded to 1000–120000 ms.
After saving, verify a new handshake and actual protocol reads and writes. Rebuilding a security session invalidates old waits and subscriptions. Protocols using Observe must establish a new relationship.
Serial settings
| Parameter | Configuration |
|---|---|
| Port name | Use a port visible to the gateway host. Windows and Linux names differ. |
| Baud rate, data bits, parity, stop bits | Match the device and wiring. Confirm ASCII and binary RTU framing separately. |
| DTR and RTS | Set control signals only as required by the device or converter. Their effect depends on wiring and driver support. |
| Handshake | Select the required software or hardware flow control. Hardware flow control requires its signal wires. |
| StreamAsync | Select a receive mode supported by the driver and verify complete frames and sustained collection afterward. |
| Input and output buffers | Serial byte buffers, not variable counts. More capacity cannot repair a wrong address or frame format. |
Distinguish timeouts and scheduling
| Parameter | Meaning |
|---|---|
| Connection timeout | Milliseconds allowed to establish a connection. Include TLS handshake time where applicable. It does not set collection frequency. |
| Cache timeout | Receive buffering and frame assembly budget in milliseconds. Segmented TCP or serial responses must arrive within the framing budget. This is not a lifetime for old variable values. |
| Device read/write timeout | Protocol response budget in the device’s plugin properties. Requests can time out after a connection has succeeded. |
| Device execution interval | Task scheduling in milliseconds or a supported Cron expression. See Collection Strategy. |
| Maximum concurrency | Simultaneous communication operations on one channel. Check protocol and source support before increasing it. A successful single-point read does not establish a throughput benefit. |
For a response split into two segments arriving 400 ms apart, a 100 ms framing budget may be too short. After changing it to 1000 ms, check the complete frame, new collection time, and quality. Choose production values from actual frame lengths and latency.
Troubleshooting
| Symptom | Check |
|---|---|
| Correct port but no connection | Direction, remote host, firewall, and actual listener. A server binding must belong to the gateway host. |
| Channel online, variables invalid | Device protocol, station, addresses, types, and request timeouts. |
| Partial response cannot be parsed | Segmentation, expected length, framing rules, and cache timeout. |
| No return to a restored primary | Whether the current alternate remains usable and the switching behavior above. |
| Value remains after disabling | New requests and collection time; the displayed value alone is insufficient. |
Continue with Collection Configuration, Collection Strategy, and Collection Debugging.