Skip to main content

Ports & Adapters

Ports

A port in OmniBus is one data source:

  • A serial device — a USB-to-RS-485/RS-232 adapter or on-board UART, e.g. /dev/ttyUSB0, /dev/ttyAMA0.
  • Or, for network-transport adapters (the Modbus TCP client), a logical port with no serial device that connects out over the network.

Each port carries serial settings (baud rate, data bits, parity, stop bits) appropriate to the bus, an assigned TCP port and MQTT prefix, and the adapter that decodes its traffic.

Adding a port

From the Ports dashboard:

  1. Click Add Port.
  2. Select the serial device (OmniBus lists what it sees) — or choose a network-transport adapter.
  3. Pick the protocol. This selects the adapter.
  4. Set the serial parameters for the bus (baud/parity/etc.).
  5. Toggle the outputs you want (TCP, MQTT, REST, webhooks).
  6. Save. The adapter starts immediately.

You can edit, disable, or remove a port at any time from its card on the dashboard.

Adapters

The adapter is the protocol brain of a port. OmniBus ships these:

AdapterProtocolNotes
rawRaw byte streamPass-through; optional throttling.
modbus-rtuModbus RTUmaster (RTU↔TCP gateway + poller) or slave (register map).
modbus-tcp-clientModbus TCP (client)Polls upstream TCP servers; no serial device.
bacnet-mstpBACnet MS/TPMS/TP master bridging to BACnet/IP; or sniffer.
osdpOSDP (access control)ACU polling readers/keypads; Secure Channel (beta).
mbusM-Bus (metering, EN 13757)Master that initializes and reads meters.
dnp3DNP3 (IEEE 1815)gateway (serial↔TCP) or outstation.
n2Johnson Controls Metasys N2sniffer (default) or single-master polling.
jandyJandy AquaLink RS pool busDecoder + RSSA-over-TCP + AllButton emulator.
pentairPentair RS-485 pool busStatus decode and transmit.

Each adapter has its own configuration panel in the UI and its own page in the Protocols section.

How an adapter is wired

Internally every adapter implements the same small surface, which is why behavior is consistent across protocols:

  • It receives bytes from the serial line and decodes them.
  • It receives bytes from a TCP client connected to that port's TCP server.
  • It receives MQTT messages on the topics it subscribes to.
  • It exposes REST actions for synchronous control.
  • It emits parsed events, which OmniBus routes to MQTT and webhooks in one step.

The result: enable any combination of outputs on a port and the same decoded event reaches all of them.

Serial wiring notes

  • Use a proper RS-485 transceiver and match A/B polarity to the bus. There is no software pin-reversal — wire it correctly at the converter.
  • Match baud/parity/stop bits to the field devices. The protocol pages list the usual defaults (e.g. BACnet MS/TP commonly 38400 8N1, Jandy 9600 8N1).
  • Many buses are single-master. Read each protocol page before enabling an active/master mode on a live trunk — putting a second master on a single-master bus disrupts it.