Skip to content
Building blocks

go-serial

Cross-platform serial ports for RS-232 and RS-485, with a Modbus RTU preset.

Install

go get github.com/otfabric/go-serial

Protocols

The README on GitHub has the full feature list, examples and changelog.

go-modbus

Modbus client and server: TCP, RTU, ASCII, TLS and UDP, typed register codecs, pooling and retries.

go get github.com/otfabric/go-modbus

go-sunspec

SunSpec over Modbus: discovers 112 built-in models and decodes typed, scaled values. Includes the sunspecctl CLI.

go get github.com/otfabric/go-sunspec

modbus-simulator

Deterministic, stateful Modbus TCP device simulator driven by JSON fixtures, for integration tests.

modbusctl

Identify, fingerprint, scan, poll, decode and write Modbus devices. Record to MCAP and replay as a simulator.

modbus-interop

Modbus TCP reference stacks: libmodbus, PyModbus, digitalpetri, NModbus and tokio-modbus.