VIGIL MESH

Documentation

Remote Modbus RTU: reach an RS-485 serial bus over the internet

Remote Modbus RTU is the textbook case of multi-site supervision: the meters, sensors and controllers speak Modbus RTU on an RS-485 serial bus, and the software that must poll them is hundreds of kilometers away. Two paths exist — and they deserve an honest presentation. Either you extend the serial link itself with Virtual-IO, the remote serial port feature of VIGIL-MESH: the supervision software opens a virtual COM port as if the bus were local. Or the site already has a Modbus TCP gateway: then you carry Modbus TCP through the mesh, encrypted, without opening a port.

The need: polling an RS-485 bus that sits on another site

Modbus RTU was born on the serial line: a single master polls slaves addressed 1 to 247, most often over an RS-485 pair. The protocol is everywhere — energy meters, measurement units, drives, controllers, PLCs — but it only knows its bus. As soon as the supervision software, the configuration tool or the historian live elsewhere, the question arises: how do you reach the bus without leasing a line, without exposing the site on the Internet, and without stacking up boxes?

Centralized supervision

An operator follows several sites — utility rooms, stations, buildings. Each site’s meters and controllers speak Modbus RTU; the supervision runs at headquarters.

The vendor tool

The drive’s or controller’s configuration software only knows a COM port and the RTU protocol. No network option, and the equipment is far away.

One-off diagnostics

A dubious value, a slave that stopped answering: you need to read a few registers and watch the bus traffic — without sending someone on site.

Two honest paths, depending on what the site already has

There is no single path that is “best everywhere”. The right choice hangs on one question: does the site already have a Modbus TCP gateway in front of its RS-485 bus?

A machine on site (industrial PC, Linux box) is wired to the bus through a USB–RS-485 adapter and becomes the provider: it shares its device path. The supervision machine mounts a local virtual port — a real COM port on Windows, a pty /dev/ttyVIGIL-<name> on Linux — and your Modbus RTU master opens it as if the bus were plugged into the workstation. The detailed mechanics are described in Remote serial port.

  • Nothing changes on the slave side: the bus, the addresses, the registers and the master tool stay identical — only the COM port the tool opens is virtual.
  • One writer at a time: writing is exclusive, which matches the Modbus single-master model. Up to 8 machines can watch the traffic read-only.
  • End-to-end encrypted inside the mesh session, access granted machine by machine, nothing exposed on the Internet.
Site situationRecommended path
Bare RS-485 bus, no gateway — and a tool that only speaks COM/RTUPath A: Virtual-IO, virtual COM port on the supervision side
Modbus RTU/TCP gateway already in place, or Modbus TCP devicesPath B: Modbus TCP carried through the mesh
Several people need to watch raw RTU traffic (diagnostics)Path A: read-only fan-out to several machines

Real case: supervision at headquarters, the bus three hours away

A utility room hosts a dozen energy meters on an RS-485 bus, polled over Modbus RTU. The historian and the energy reports run at headquarters, three hours away by road. The site has no Modbus TCP gateway, no fixed IP, no IT staff — and company policy rightly forbids opening a port on the site’s router.

Until now, readings were taken on site, a laptop plugged into the bus: one trip per measurement campaign, and no visibility between two visits.

Modbus RTU timing: what an Internet link changes

Modbus RTU delimits its frames with silences on the bus (the well-known inter-character times). That mechanism stays local: the provider machine’s serial port is what talks to the bus, at the bus’s speed. What crosses the Internet is the request-response round trip between your master and the provider — and that latency adds to every transaction.

Limits and beta status

Access is granted machine by machine — no whole-subnet exposure. Plans are detailed on the pricing page.

Frequently asked questions

Do I need to buy a hardware Modbus RTU/TCP gateway?
Not necessarily. If the site has none, Virtual-IO extends the serial link itself: the supervision software opens a virtual COM port and speaks Modbus RTU as if it were local. If a Modbus TCP gateway already exists, keep it: the mesh carries Modbus TCP directly, with nothing to add.
Can several masters poll the bus at the same time?
No — and that is consistent with Modbus, which assumes a single master per bus. Virtual-IO allows only one writer at a time (the others get a “writer busy” answer); up to 8 machines can however watch the traffic read-only.
What latency should I expect for Modbus requests?
Your Internet link's round-trip time, on top of the slave's response time. The transport is designed latency-first (records of at most 4 KiB, no aggregation timer), but no Internet link guarantees a delay: widen the master's response timeout and validate on your real link. Do not count on strict real time.
Is the Modbus traffic encrypted?
On the whole remote leg, yes: the serial stream travels end-to-end encrypted inside the mesh session, and relays see nothing. The last segment, on the RS-485 bus itself, remains native Modbus RTU — as with any solution.
Is it available on Android?
No. Virtual-IO (provider and consumer alike) exists on Windows and Linux only. Android is not supported for this feature.
Read nextRemote Modbus and SCADA access