Configure Hardware Ports
It is mandatory to configure the hardware ports that your device will use for communication. Hardware ports define the physical communication parameters (baud rate, parity, etc.) and are shared between all blueprints running on the same UCM.
For more details on how hardware ports work, see the Interacting with Hardware documentation.
If your virtual UCM communicates with devices only over TCP/IP (e.g., Modbus TCP at tcp://192.168.1.42:502), no hardware port configuration is needed.
Hardware UCM
Each hardware UCM model comes with a predefined set of ports. For example:
- ENP-RS485 provides a single RS-485 serial port
- ENP-CAN provides a single CAN bus port
- ENP-RL6 provides six relay (digital output) ports
- Gateway Web UI
- Mobile Application
To configure ports, open the communication device page in the Gateway Web UI, navigate to Settings → Hardware Ports, enter the desired port settings, and click Update.
Open the communication device page, navigate to Settings → Hardware Ports, enter the desired port settings, and click Update.

Hardware Ports Settings for ENP-RS232
Virtual UCM
Virtual UCMs on Enapter Gateway can integrate devices over TCP/IP without hardware port configuration. However, if the Gateway's computer has officially supported built-in hardware (e.g., serial ports on a Welotec Arrakis), you need to activate these ports first.
To make hardware ports available for the virtual UCM, open Gateway Settings → Hardware Settings, select your computer model, choose the hardware you have installed, and click Update.

Gateway Hardware Settings
Once updated, the selected ports are exposed as hardware ports for the virtual UCM and can be used in Lua scripts via port:// connection URIs (e.g., port://rs485).

Tap on Settings sign in the upper right corner

Tap on Hardware Ports

Tap on an available port.

Set communication parameters of your endpoint device.