Modbus RTU → SNMP · no code

Modbus-to-SNMP Gateway

Bring RS485 meters, sensors, and controllers into the SNMP monitoring you already run. The Gateway polls Modbus RTU registers and serves each value as an SNMP object — ready for snmpget, snmpwalk, and your NMS's graphs and alarms.

  • Map registers to OIDs from a browser, no code
  • SNMPv2c and SNMPv3, up to authPriv with SHA and AES
  • Write back to Modbus with snmpset, where you allow it

Ethernet uplink · DIN-rail mountable

The Tibbo Modbus-to-SNMP Gateway standing upright: an orange and black Tibbo Project System TPB2 box with its status LEDs lit, a green RS485 terminal block below and power terminals on topRS485 · Modbus RTUSNMP · v2c & v3
v2c + v3SNMP agent on UDP port 161
30Modbus registers mapped to OIDs
0.1sfastest polling interval

Why IT and facilities teams choose it

Modbus equipment, monitored like everything else on the network.

One monitoring system

Your NMS already watches switches, UPSs, and PDUs over SNMP. Meters, sensors, and controllers on Modbus now show up in the same tool, with the same graphs, thresholds, and notifications.

Live in minutes

Enter each register's device ID, address, function code, and OID in the Device Console, restart, and run snmpwalk. The latest readings are also shown in the console, so you can check the field side first.

Read and write

An authorized snmpset is written through to the Modbus register, retried if needed, and confirmed on a status OID. With SNMPv2c, leave the write community empty and the Gateway is read-only.

Yours to change

The app is built in AppBlocks, our no-code flowchart editor, and published on GitHub. Need scaling, more registers, or extra I/O? Edit the flowchart instead of starting a firmware project.

How it works

Four steps from a register on the bus to an object your SNMP manager can poll.

Diagram: Modbus RTU field devices on RS485 are polled by the Gateway, which answers SNMP GET and WALK requests from an SNMP manager and accepts optional SET requests; the manager turns the values into graphs, alarms, notifications, and reports
  1. 1

    Map your registers

    For each value, enter the Modbus device ID, register address, function code, a name, and a unique OID column.

  2. 2

    The Gateway polls

    Every mapped register is read from its RS485 device once per polling interval, from 0.1 to 60 seconds.

  3. 3

    SNMP serves it

    The latest reading is served at its own scalar OID, ready for snmpget and snmpwalk.

  4. 4

    Write back (optional)

    An snmpset on a mapped OID is written to the coil (FC5) or register (FC6), and the result is reported on a status OID.

From register to OID

One row in the mapping table is all it takes. The Gateway reads the register and serves its value under a scalar OID built from the Gateway's sysObjectID and the row's OID column.

Your NMS polls …1.400.0 like any other SNMP object, or walks the branch to discover every mapped value along with the Gateway's own settings.

Values are served as read from the register. Apply scaling in your NMS, or add it to the AppBlocks project.

Modbus mapping row

DeviceFCRegisterOID col.Name
131400room_temp
poll → serve

SNMP object

OID1.3.6.1.4.1.20738.45.46.1.400.0

typeINTEGER

value249

Set up from any browser

The Device Console is built into the Gateway. There is nothing to install: browse to its IP address and configure everything from one place.

  • Mapping table of up to 30 Modbus registers, stored in flash
  • Live polling results, to confirm each reading before you add it to the NMS
  • Polling, Network, and SNMP settings, including SNMPv3 users and security
  • Boot log with reboot reasons, plus restart and restore-defaults buttons

Write back, with a receipt

SNMP doesn't have to be read-only. An authorized client can send snmpset to a mapped OID, and the Gateway writes the value to the Modbus register — a setpoint, a mode, a relay.

Every write gets an answer: query the status OID and it tells you which mapping was written and whether the Modbus device accepted it, or why it didn't.

Enable writes only for approved control points, with credentials your organization controls.

terminal
snmpset -v2c -c private 192.168.1.40 \
  1.3.6.1.4.1.20738.45.46.1.207.0 i 4546iso.3.6.1.4.1.20738.45.46.1.207.0 = INTEGER: 4546snmpget -v2c -c public 192.168.1.40 \
  1.3.6.1.4.1.20738.45.46.1.65534.0iso.3.6.1.4.1.20738.45.46.1.65534.0 = STRING: "[207]:SUCCESS"
Status OIDThe result of the last write stays readable for 30 seconds, then the status returns to IDLE.
Automatic retriesA Modbus write that gets no answer is retried up to three times before it is reported as failed.
Settings over SNMP, tooNetwork, SNMP, and polling settings can be changed remotely. A reboot needs two signals within 10 seconds, so it can't happen by accident.

Works with your SNMP manager

A standard SNMP agent: if it can poll an OID, it can read the Gateway.

  • Zabbix
  • PRTG
  • Nagios & Icinga
  • LibreNMS
  • Net-SNMP tools
  • Any SNMPv2c or v3 manager

No MIB to compile: add each value to your NMS by its numeric OID, or walk the branch to list them all.

Where it's used

Wherever Modbus equipment sits on a site that IT already monitors over SNMP.

  • Data center power & cooling
  • Server & network rooms
  • Telecom shelters & base stations
  • UPS & battery rooms
  • Generators & transfer switches
  • Building energy metering
  • Environmental monitoring
  • Solar & battery storage
  • Water & wastewater
  • Factory IT/OT integration

Create TPS apps with AppBlocks

No-code software development is the future because no one has the time to write and debug applications line-by-line.

Enters AppBlocks, our flowchart-based, no-code, in-browser application development system for Tibbo Project System devices.

In AppBlocks, supported features are represented by functional blocks, which you drag onto and interconnect inside a project canvas. This draw-an-application approach allows you to quickly create complete automation and IoT applications for security, access control, building automation, data collection, precision agriculture, and other fields.

Head to appblocks.io and create your first TPS application today!

The whole project is on GitHub

Get the AppBlocks project file, the product guide, and worked SNMP examples, and adapt the Gateway to your own needs: appblocks_snmp_modbus_gateway_assets

Features in detail

Modbus mapping

  • Up to 30 mappings, stored in flash
  • Device ID 1–255, register address 0–65535
  • Read coils (FC1), discrete inputs (FC2), holding registers (FC3), input registers (FC4)
  • Per-mapping name (up to 30 characters) and unique OID column

Modbus RTU

  • RS485 master on screw terminals
  • Polling interval 0.1–60s
  • SNMP SET writes a single coil (FC5) or holding register (FC6), retried up to three times
  • Serial settings defined in the AppBlocks project (default 38,400bps, no parity)

SNMP agent

  • SNMPv2c and SNMPv3 on a configurable port (default 161)
  • Separate read and write communities
  • Configurable sysDescr and sysObjectID (default 1.3.6.1.4.1.20738)
  • Scalar OIDs: <sysObjectID>.1.<OID column>.0

SNMPv3 security

  • noAuthNoPriv, authNoPriv, or authPriv
  • MD5 or SHA authentication
  • DES or AES privacy
  • User and passwords set in the Device Console or over SNMP

Remote management

  • Device settings readable and writable over SNMP
  • Write status OID: SUCCESS or a failure hint, held for 30s
  • Two-step SNMP reboot (two signals within 10s)
  • Reboot counters and mapping count exposed as OIDs

Device Console & platform

  • Built-in web console on port 80
  • Boot log with reboot-reason codes
  • SNTP time sync with configurable time zone
  • Runs on the Tibbo Project System; extend it in AppBlocks

Specifications

Hardware platformSize 2 Tibbo Project System: TPP2W(G2) board in a TPB2 enclosure, 105 × 105 × 39mm; optional DIN-rail mounting kit and vibration protection kit
Power12VDC through a power jack (Tibbits #18 and #10); APR-P0008 power adapter
Field busRS485, Modbus RTU master (Tibbit #05) on a 4-terminal block (Tibbit #21) or a 9-terminal block (Tibbit #20)
NetworkOne 10/100BaseT Ethernet port (RJ45); DHCP or static IP (default 192.168.1.40)
Modbus functionsRead: FC1, FC2, FC3, FC4. Write (on SNMP SET): FC5 write single coil for coil mappings, FC6 write single register (16-bit) for register mappings
MappingsUp to 30, each with its own device ID, register address, function code, name, and OID column
Polling0.1–60s interval
SNMPSNMPv2c and SNMPv3 agent; UDP port 161 by default; read and write communities; GET, GETNEXT/WALK, and SET
SNMPv3 securitynoAuthNoPriv, authNoPriv, authPriv; MD5 or SHA authentication; DES or AES privacy
OID layout<sysObjectID>.1.<OID column>.0; default sysObjectID 1.3.6.1.4.1.20738, extendable with a child branch
TimeSNTP with configurable time zone
ConfigurationBuilt-in Device Console (HTTP, port 80, up to 3 concurrent connections); SNMP SET for device settings
On-device storage1MB dataflash with LittleFS; mappings and settings kept across restarts
ResetMD button (hold 5s) restores default settings
ApplicationSNMP_Modbus_Gateway v1.0.2, built in AppBlocks

Mapping and setting changes are saved immediately and take effect after a restart. Confirm the exact configuration for your project with our engineering team before you specify.

Frequently asked questions

Do I need a MIB file?

No. Each mapped value is a scalar object at a numeric OID you choose: <sysObjectID>.1.<OID column>.0. Run snmpwalk on the Gateway's branch to list every value, then add the OIDs you need to your NMS.

Which SNMP versions are supported?

SNMPv2c with read and write communities, and SNMPv3 with noAuthNoPriv, authNoPriv, or authPriv security, MD5 or SHA authentication, and DES or AES privacy.

Can SNMP write to my Modbus devices?

Yes. An snmpset on a mapped OID writes the value to that Modbus register or coil: coil mappings are written with FC5 (write single coil), register mappings with FC6 (write single register). Write to coils and holding registers; discrete inputs and input registers are read-only in Modbus. Read the status OID (OID column 65534) within 30 seconds to confirm the result. With SNMPv2c, an empty write community disables writes entirely. Enable writes only for approved control points.

How many devices and registers can one Gateway handle?

Up to 30 mappings, spread across any devices on the RS485 bus (device IDs 1–255). For larger points lists, use one Gateway per bus or panel, or ask us about a tailored build.

Does it scale or convert values?

The Gateway serves values as read from the register. Apply scaling in your NMS, or add it to the AppBlocks project if you prefer the Gateway to do it.

Does it support Modbus TCP?

The standard build is a Modbus RTU master on RS485. Other configurations can be built in AppBlocks on request — contact us. If you need to route between Modbus TCP, RTU, and ASCII, see our Modbus Gateways; to publish Modbus data to a broker, see the Modbus-to-MQTT Gateway.

Can I manage the Gateway itself over SNMP?

Yes. Network, SNMP, and polling settings are exposed as OIDs and can be changed with snmpset. Changes take effect after a restart, which you can also trigger over SNMP by sending two reboot signals within 10 seconds.

What can I connect to it?

Any Modbus RTU device on RS485: energy meters, environmental sensors, controllers, drives, and I/O. The product guide uses a Tibbo RS485 Modbus sensor as its example.

Can I customize the application?

Yes. The Gateway is built in AppBlocks, Tibbo's no-code flowchart editor, and the project is published on GitHub. Import it, change the flowchart, and load it onto your device.

Put your Modbus devices on SNMP

Hardware and application in one box. Ships ready to configure from your browser.