Skip to main content
IOT & EDGE COMPUTING

Connecting Physical Energy & Farm Assets: Modbus RS485, MQTT over TLS & Honest Telemetry Provenance

CASDO IoT & Systems Engineering TeamPublished 2026-10-10 (Updated 2026-11-20)7 min read
EXECUTIVE ENGINEERING SUMMARY

Secure industrial telemetry terminates unencrypted serial protocols (Modbus RTU over RS485) strictly inside a local edge gateway, wraps polled readings in mutual-TLS MQTT payloads with local flash buffering for cellular outages, stores high-frequency series in TimescaleDB, and tags every UI metric with explicit connection provenance so operators immediately distinguish live sensor streams from offline baselines.

Industrial solar inverter and generator Modbus RS485 to MQTT over TLS architecture

Key Engineering Takeaways

  • Why Modbus RTU/TCP registers must never be port-forwarded directly to public cloud IPs.
  • How store-and-forward flash buffering preserves electrical fault history across rural 3G/4G blackouts.
  • Enforcing explicit data_source badges (LIVE_OBSERVED vs. NOT_CONNECTED) and human confirmation tokens for physical actuator commands.

Isolating Operational Technology (OT) from Public Networks

Modbus RTU (over RS485 twisted pair) carries zero built-in authentication or encryption. Exposing a serial-to-Ethernet converter directly to the internet permits unauthorized register writes that can trip high-voltage solar inverters or stall 40 HP agricultural tubewell motors.

Our architecture terminates RS485 strictly at an edge gateway (ESP32 or industrial Linux SBC) configured for outbound-only MQTT over TLS 1.3 with per-device client certificates. No inbound ports are opened on the field cellular router.

Honest Telemetry Provenance & Hardware Safety Interlocks

In FarmOS, every operational card explicitly declares whether a figure is SURVEY_MEASURED, CONFIGURED_BASELINE, MANUAL_ENTRY, LIVE_INFERENCE, or NOT_CONNECTED. When a solar inverter gateway is staged but not yet wired, the UI never fabricates fake sinusoidal kW curves.

Equally critical: any remote command attempting to start or stop a pump or valve passes through a deterministic interlock requiring hardware_connected=True, role authorization, and an operator-signed confirmation token logged permanently to audit_logs.

AUTHOR ATTRIBUTION
CASDO IoT & Systems Engineering Team
Embedded & Telemetry Architecture Group, CASDO Technologies

More From the CASDO Knowledge Center

Architecting a Similar System?

Discuss this architecture directly with the CASDO engineering leads who built and benchmarked it.