Introduction
Industrial machines speak many vendor-specific protocols. Protocol Gateway reads them at the edge through native drivers and sends the values to Cumulocity, without custom code. It supports more than 320 device series from more than 80 manufacturers, including programmable logic controllers (PLCs), computer numerical control (CNC) machines, and robots.
You configure data sources, tags, and events in a web interface. Protocol Gateway exchanges the data locally with the thin-edge.io framework through MQTT. thin-edge.io buffers and transforms the data for Cumulocity.
Protocol Gateway is managed through thin-edge.io, which runs on the same device. thin-edge.io connects the device to your Cumulocity tenant, installs and updates Protocol Gateway as a software item, and manages its configuration files. For details, see Device integration using thin-edge.io.
The numbers in the diagram show the data path:
- Read. The protocol adapter of Protocol Gateway exchanges data with the machines over their operational technology (OT) protocols and stores the values as tags.
- Publish. An event with a Send MQTT action publishes the values through the MQTT client to the local MQTT broker.
- Convert. The Cumulocity mapper of thin-edge.io converts the message into a measurement of the child device.
- Forward. The bridge forwards the measurement to Cumulocity. The local MQTT connection stays on the device, and thin-edge.io secures the connection to Cumulocity with TLS.
Supported assets and protocols
Protocol Gateway connects to a wide range of industrial devices, from PLCs and CNC machines to meters, sensors, and building automation equipment. It supports both vendor-specific protocols and standardized protocols. For the complete list, see the list of devices that Protocol Gateway supports.
Vendor-specific protocols
| Device type | Vendors and product families |
|---|---|
| PLCs | Mitsubishi Electric MELSEC (iQ-R, iQ-F, Q, L, FX), Siemens SIMATIC (S7-1500, S7-1200, S7-400, S7-300, S7-200), Rockwell Automation (ControlLogix, CompactLogix, GuardLogix, Micro800, MicroLogix, SLC500), OMRON SYSMAC (NX, NJ, CJ, CS, CP), Yokogawa (e-RT3, FA-M3), Keyence KV, Panasonic FP, Fuji Electric MICREX, Hitachi (HX, EH150), JTEKT TOYOPUC, Toshiba (nv, V, PROSEC T), Yaskawa MP, Delta (AH500, DVP), IDEC MicroSmart, Koyo, Sharp, GE 90-30, CODESYS-based controllers |
| CNC machines and machine tools | FANUC, Mitsubishi Electric, Shibaura Machine, Mazak |
| Motion and robot controllers | Yamaha, IAI, Sanyo Denki |
| Remote I/O | WAGO, Phoenix Contact, Anywire, MG, MTT, Comtrol |
| Meters, recorders, and controllers | Azbil, Yokogawa, Eurotherm, RKC Instrument, Chino, Graphtec, Hioki, Mitutoyo, Panasonic, Mitsubishi Electric |
| Other devices | Hakko MONITOUCH display panels, Cognex In-Sight vision sensors, MOXA network switches, and sensors from vendors such as OMRON, ifm, and Murata |
Standardized protocols
| Protocol | Typical devices | Dominant regions |
|---|---|---|
| Modbus TCP, Modbus ASCII, and Modbus RTU (serial) | Energy meters, remote I/O, PLCs, drives, and sensors in manufacturing, building automation, energy, and water | Worldwide, with no dominant region |
| EtherNet/IP | PLCs, remote I/O, drives, and robots in automotive, food and beverage, and packaging | North America |
| SLMP | Mitsubishi Electric MELSEC PLCs and CC-Link IE devices in automotive, electronics, and semiconductor manufacturing | Japan, China, and Southeast Asia |
| MTConnect | CNC machine tools and additive manufacturing machines in aerospace, automotive, and contract machining | North America |
| DPRNT (serial) | CNC machines from FANUC and Mitsubishi Electric in metalworking and contract machining | Worldwide |
| BACnet/IP | HVAC controllers, chillers, lighting, and access control in commercial buildings, hospitals, campuses, and data centers | North America, the Middle East, and Asia-Pacific. In Europe, alongside KNX |
| IEC 61850 MMS | Protection relays, bay controllers, and other IEDs in substations, transmission and distribution grids, and power plants | Europe, China, India, Latin America, and the Middle East |
| DNP3 | RTUs and IEDs in electric power and grid utilities, water and wastewater treatment, oil and gas pipelines, and renewable energy and battery storage | North America, Australia, and South Africa |
| Digital and analog I/O | Sensors, switches, signal lamps, and older machines without a network interface, in any industry | Worldwide |
| Serial user protocol | Scales, barcode readers, and instruments with a custom ASCII protocol that you define | Worldwide |
| Bluetooth beacons | Bluetooth tags on workers, tools, and carts for location data in factories and warehouses | Worldwide |
Requirements
- A device that runs Linux with an arm64, x86_64, or 32-bit ARM (armv7) processor and at least 1 GB of free RAM.
- Docker Engine and Docker Compose on the device. See the Docker documentation.
- thin-edge.io on the device, connected to your tenant. See Device integration using thin-edge.io and the thin-edge.io installation guide.
- The thin-edge.io container plugin on the device. See the container plugin documentation.
- A Protocol Gateway license, listed as “Protocol Gateway” in the Cumulocity product catalog. A production license needs the license management server CodeMeter Runtime on the device or on another computer in your network. See To set up the license management server.
- For remote access to the device and the web interface, the Cloud Remote Access microservice on your tenant.
This documentation describes the installation from Cumulocity with the container plugin. To run Protocol Gateway on a device without the container plugin, see Container definition.
Preparing the device
Prepare the device once, after you install the components listed in the requirements. Run the commands on the device, in a local console or in a Secure Shell (SSH) session.
To open an SSH session from Cumulocity without direct network access to the device, use Cloud Remote Access. In the Device Management application, click Devices > All devices, open the thin-edge.io device, open the Remote access tab, and add an endpoint of type Passthrough with the host “127.0.0.1” and the port “22”. Connect with a local proxy, such as c8y remoteaccess connect ssh of the go-c8y-cli. For details, see To add a remote access endpoint via Passthrough.
To set up the license management server
Protocol Gateway checks a production license through the license management server CodeMeter Runtime. Install it on the device or on another computer in your network.
-
Download the CodeMeter User Runtime package for your operating system and processor from the Protocol Gateway download page, section “License Management Server”, and install it, for example:
sudo apt install ./codemeter*_arm64.deb -
Activate your license. On the same computer, open the license registration page, enter the ticket ID of your license, and click Next. Then click Activate License and Activate Selected Licenses Now, and wait until the transfer is complete.
-
Open CodeMeter WebAdmin at
http://localhost:22352/dashboard.htmland check that the license is listed. -
In WebAdmin, go to Configuration > Server > Server Access, set Network Server to Enable (port 22350), and click Apply. Then go to Configuration > Basic > Server Search List, delete Automatic server search, and click Apply, so that Protocol Gateway does not use licenses from other servers in your network.
Set up the configuration file
-
Create the folders for the Protocol Gateway data:
sudo mkdir -p /etc/takebishi/sd_card /etc/takebishi/data -
Register the Protocol Gateway configuration file as a configuration type. Open /etc/tedge/plugins/tedge-configuration-plugin.toml and add the entry to the existing
fileslist, before the closing bracket:files = [ # ... existing entries ... { path = '/etc/takebishi/data/config/setting.dxg', type = 'protocol-gateway.dxg', user = 'root', group = 'root', mode = 0o644 }, ]Do not add a second
files =line, because TOML does not allow duplicate keys. Restart the agent:sudo systemctl restart tedge-agentCheck that the type is registered:
tedge mqtt sub 'te/device/main///cmd/config_snapshot'The list of types contains
protocol-gateway.dxg.
Container definition
The container plugin deploys a Docker Compose file as a software item of the type container-group. Save the following file as docker-compose.yml:
x-tedge:
remove_volumes: false # keep the license and configuration when you remove the software item
remove_timeout: 30s
services:
takebishi-device-gateway:
container_name: takebishi-device-gateway
image: public.ecr.aws/takebishi/tkbs-dgwd20:3.7.0
restart: unless-stopped # start again after a reboot
network_mode: "host" # reach the thin-edge.io broker on 127.0.0.1:1883
extra_hosts:
- cm_server:host-gateway # license management server; use its IP address if it runs on another computer
environment:
- webport=80 # HTTP port of the web interface
- websport=443 # HTTPS port of the web interface
volumes:
- type: bind
source: /etc/takebishi/sd_card
target: /mnt/sdcard
- type: bind
source: /etc/takebishi/data
target: /etc/dxpgateway
name: in the file. The container plugin uses the name of the software item as the Compose project name.To run Protocol Gateway on a device without the container plugin, remove the x-tedge block, save the file on the device, and run sudo docker compose up -d in its folder. Restart Protocol Gateway with sudo docker compose restart.
Additional customizations
- Serial devices. For a serial device, such as a USB-to-RS-232 adapter, add its device path under
devicesin the service, such asdevices: ["/dev/ttyUSB0"]. Do not useprivileged: true. - Image version. The Amazon ECR Public Gallery and the Protocol Gateway download page list the image
public.ecr.aws/takebishi/tkbs-dgwd20. The image tag controls which version the device runs:latestruns the newest version, and a version tag, such as3.7.0, keeps a specific version. Both are multi-architecture tags. Docker pulls the image that matches the processor of the device (arm64, x86_64, or 32-bit ARM), so you do not need to specify the architecture, and one software item serves all your devices. To force one architecture, add it to the version tag, such as3.7.0-arm64,3.7.0-amd64, or3.7.0-arm.
Running Protocol Gateway
To install Protocol Gateway from Cumulocity
-
In the Device Management application, go to Management > Software repository and click Add software. For details, see Managing software.
-
Enter a Name, for example “protocol-gateway”, and set Software type to “container-group”. If you use device type filters, select the filter of your devices.
ImportantDo not use the type “container”. The installation then fails withno image detected in file, because the plugin treats the Compose file as an image archive. -
Add a version that matches the image tag in the file, for example
3.7.0, and upload the docker-compose.yml file. The Software tab of each device then shows the Protocol Gateway version that runs on it. If you change only the Compose file and not the Protocol Gateway version, add a suffix, for example3.7.0-2.
-
Click Devices > All devices, open the thin-edge.io device, open its Software tab, click Install software, select “protocol-gateway” and the version “3.7.0”, and click Install.

The installation is complete when the operation shows the status successful. If it fails, refer to Troubleshooting.
To update Protocol Gateway
To update, you back up the data, set the new version in the Compose file, and install the file as a new version of the software item. If the update fails, you return to the previous version.
-
Back up the data folder on the device:
sudo cp -a /etc/takebishi /etc/takebishi.backup -
In docker-compose.yml, change the image tag to the new version, for example
image: public.ecr.aws/takebishi/tkbs-dgwd20:<new version>. The Amazon ECR Public Gallery lists the available tags. The tag in the file defines the Protocol Gateway version that the device runs. -
In the software repository, add a version with the same number to the software item, upload the changed file, and install this version on the device. The bind mounts keep the license and the configuration. Without the container plugin, run
sudo docker compose up -din the folder of the file instead. -
If the new version fails, install the previous version again and restore the folder from the backup.
Connecting Protocol Gateway to thin-edge.io
After the container runs, open the web interface of Protocol Gateway, check the license, and connect Protocol Gateway to the MQTT broker of thin-edge.io.
To access the web interface
The web interface answers on port 80 (HTTP) and 443 (HTTPS) of the device. On a trusted network, open http://<device-ip>.
To reach it from Cumulocity, use Cloud Remote Access. In the Device Management application, click Devices > All devices, open the thin-edge.io device, open the Remote access tab, and add an endpoint of type Passthrough with the host “127.0.0.1” and the port “443” (or “80” for HTTP). Open the endpoint with a local proxy, such as the go-c8y-cli. For details, see Setting up Cloud Remote Access.

Sign in with the default login:
- User name: “administrator”
- Password: “admin”
After you sign in, the menu bar at the top of the web interface shows Data source, Buffering, Event, IoT Interface, and Management.
Change the default password:
- In the menu bar, click Management.
- Click Users, then Registration.
- Change the password of the
administratoruser. - Click the confirm icon in the top right to apply the change.
To check the license
Go to Management > Information > Version. Serial shows your license, for example License(Validity period 2026/11/24 - 2026/12/24). If it does not, check in CodeMeter WebAdmin that the license is listed and the network server is enabled, and restart Protocol Gateway.

To create the MQTT client
- Open IoT Interface and click the MQTT icon.
- Enter the name “thin-edge” and click the check mark.
- Open the client and its Connection Configuration, and set:
- Host (Host name:Port number): “127.0.0.1”. The default port is 1883, so you do not need to enter it. To set it explicitly, enter “127.0.0.1:1883”.
- Client ID: “tkb-ras” (any fixed name). This field is required.
- Leave MQTT Version at “auto”, User name and Password empty, and Use TLS at “Invalid”. The local thin-edge.io broker accepts connections from the same device without credentials.
- Click the check mark, then click Save.
- Open Summary and start the client with the play button.

Device protocols
A data source represents a machine, such as a PLC. You define the data source and its tags in the web interface.
To add a data source
- Open Data source and click the plus button at the top right.
- Enter the name “plc01”, select MODBUS Ethernet, and click the check mark. The check mark stays disabled until you enter a name.
- Click the cog wheel of “plc01”, enter the IP address of the PLC, and click the check mark.
- Open Tag, click the plus button, click Tag, enter the name “temperature” and the register address of the value in the PLC, and click the check mark.
- Click Save, and start the data source with the play button.


A new tag is a holding register at address 1, which Protocol Gateway lists as “40001”. For each machine, create one data source.
Data reporting
An event sends the tag values to thin-edge.io. An event consists of a trigger and one or more actions.
To send tag values with an event
-
Open Event, click the plus button at the top right, click Event, and enter a name, for example “send-plc01”.
-
On the Trigger page, add a trigger of type Cycle. Enter cycle (msec) in milliseconds. The value “10000” sends a message every 10 seconds.

-
On the Action page, add an action of type Send MQTT and set:
- Destination server: “thin-edge” (click the “…” button to select it)
- Topic name: “te/device/plc01///m/simulated”
- Message Type: “Text”
You enter Message to send in the next step.

-
For Message to send, click “…” and enter:
{"simulator": {"sine_wave": <%=@tv("plc01.temperature")%>}}To insert the macro, click the tag icon in the editor and select the data source and the tag. The macro format is
<%=@tv("<data source>.<tag>")%>.
-
Click the check marks and Save, and start the event with the play button. Event Summary shows
Running.
Running and publishes an empty message every 10 seconds, and Cumulocity receives no values. To check the message on the device, see Troubleshooting.Topic and payload mapping
| Part | Example | Result in Cumulocity |
|---|---|---|
| Child device | plc01 in te/device/plc01///... |
Child device plc01 |
| Measurement type | simulated in .../m/simulated |
Measurement type |
| Fragment | simulator (outer JSON key) |
Measurement fragment |
| Series | sine_wave (inner JSON key) |
Measurement series |
Use one topic for each machine, so that each machine becomes its own child device. If one PLC represents several machines, split the data further. A plain value, for example {"sine_wave": 123}, creates a fragment and a series with the same name. For the complete topic and payload structure, see the thin-edge.io documentation.
To monitor measurements
In the Device Management application, click Devices > All devices, open the thin-edge.io device, and open the Child devices tab. The device plc01 appears within a few seconds of the first message. Open plc01 and click Measurements. The series sine_wave of the fragment simulator shows a new value every 10 seconds.

The measurement carries the time at which thin-edge.io received the message. If you do not see values, make sure the time range of the chart includes the current time.
To set the type of a child device
thin-edge.io creates the child device with a name only. To give every machine the type ProtocolGateway, add a registration event:
- Open Event, click the plus button, click Event, and enter the name “register-plc01”.
- Add a trigger of type Cycle with Cycle(msec) “3600000”, and enable Force Initial Activating. The event runs when Protocol Gateway starts and then every hour.
- Add an action of type Send MQTT and set:
- Destination server: “thin-edge”
- Topic name: “te/device/plc01//”
- Message Type: “Text”
- Publishing QoS: “1”
- Retain: enabled
- Message to send:
{"@type":"child-device","@parent":"device/main//","name":"plc01","type":"ProtocolGateway"}
- Click the check marks and Save, and start the event with the play button.

The registration topic has 2 slashes after the device name. For each additional machine, add an action with its own topic and name. For the message format, see the thin-edge.io MQTT API.
In the Device Management application, click Devices > All devices, open plc01, and open its Info tab. Type shows ProtocolGateway.

Configuration management
Protocol Gateway keeps all its configuration in one JSON file, setting.dxg. The container reads the file when it starts. The web interface writes the same file when you click Save. Two folders on the host hold the data, so that the data stays in place when you replace the container.
| Host folder | Container folder | Content |
|---|---|---|
| /etc/takebishi/sd_card | /mnt/sdcard | Logs, offline buffering, file actions, and a temporary license file. |
| /etc/takebishi/data | /etc/dxpgateway | Protocol Gateway configuration (config/setting.dxg) and certificates. Back up this folder. |
The thin-edge.io configuration plugin retrieves and replaces files on the device. Register the Protocol Gateway configuration first, as described in Set up the configuration file. In the Device Management application, click Devices > All devices, open the thin-edge.io device, and click Configuration.

You change the Protocol Gateway configuration with the standard file-based configuration management of Cumulocity, as described in Managing configurations, and then restart Protocol Gateway from the Services tab, because the container reads the file only at start.
To deploy the same configuration to many devices
- Configure one reference device in the web interface.
- Click Get snapshot from device for “protocol-gateway.dxg”, so that the repository holds the reference configuration.
- Prepare each new device as described in Preparing the device, install the software item, and send the reference configuration to the device.
- Restart Protocol Gateway.
Replace the web interface password in the file before you send it, so that each device has its own password.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
The software installation fails with no image detected in file. |
The software item has the type container. Change the type to container-group. |
The software type container-group is not offered for the device. |
Restart tedge-agent after you install the container plugin. |
| The installation succeeds, but the web interface does not respond. | Check the container on the device with sudo docker ps --format '{{.Names}} {{.Status}}'. The Protocol Gateway container has the status Up. |
| Cumulocity shows a series without values. | Message to send is empty, or the macro names a data source or tag that does not exist. Check the payload with tedge mqtt sub 'te/device/plc01/#'. Every 10 seconds, a message like [te/device/plc01///m/simulated] {"simulator": {"sine_wave": 25488}} appears. The values are raw register values, not engineering units. |
| The child device has no type. | The registration event is not running, or its topic has the wrong number of slashes. The topic is te/device/plc01// with 2 slashes. Check with tedge mqtt sub 'te/device/plc01/#' --duration 3s. |
| The Destination server list is empty. | The MQTT client is not saved. Create and save it in IoT Interface first. |
| The MQTT client shows an error. | Host and Client ID are required. Check that thin-edge.io runs with sudo tedge connect c8y --test. To check that the broker accepted the client, run sudo journalctl -u mosquitto --since "-5min" --no-pager | grep tkb-ras. The output contains New client connected from 127.0.0.1:<port> as tkb-ras. |
| Serial shows no license. | Protocol Gateway can’t reach the license management server. Check that CodeMeter Runtime runs, that the network server is enabled on port 22350, and that extra_hosts points cm_server to it. For a temporary license, check that DeviceGateway.lic is in /etc/takebishi/sd_card. Then restart Protocol Gateway. |
| A delivered configuration file has no effect. | The container reads the file only at start. Restart Protocol Gateway. |
| The browser warns about the certificate. | Protocol Gateway uses a self-signed certificate. Accept it on a trusted network, or install your own certificate. |