Skip to content

BACnet/MSTP Docker

You can run the XRT BACnet/MSTP Device Service in a docker container.

The following examples use the iotechsys/xrt:2.0 docker image.

To run the containerized XRT BACnet/MSTP Device Service, the container must be able to access the serial device on the host that is set as the Driver option SerialInterface in the device service configuration file. This can be done by using the --device flag, providing the path to the device. An example path is provided:

  • --device /dev/tty/USB0

Run XRT with BACnet/MSTP

In the following example, xrt-bacnet-mstpprovides the name of the running container, provides the location of the config, state and profiles folders. [time_in_seconds] can optionally define the time for which XRT is to run in seconds:

docker run --rm --name xrt-bacnet-mstp \
  -v <deployment_directory>/deployment:/opt/iotech/xrt/2.0/deployment \
  --device /dev/tty/USB0 iotechsys/xrt:2.0 [time_in_seconds]
Back to top