<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by IOTRouter on Medium]]></title>
        <description><![CDATA[Stories by IOTRouter on Medium]]></description>
        <link>https://medium.com/@iotrouter?source=rss-7d28eca4b40c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jJUAsYPulobYsJ0-UXMiLw.png</url>
            <title>Stories by IOTRouter on Medium</title>
            <link>https://medium.com/@iotrouter?source=rss-7d28eca4b40c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:24:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iotrouter/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Bigger TOPS Numbers Don’t Always Mean Better Edge AI Performance]]></title>
            <link>https://medium.com/@iotrouter/why-bigger-tops-numbers-dont-always-mean-better-edge-ai-performance-7e31935982c0?source=rss-7d28eca4b40c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e31935982c0</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[IOTRouter]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 07:14:33 GMT</pubDate>
            <atom:updated>2026-09-08T07:14:33.179Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>For real edge AI deployments, memory, PCIe traffic, thermal design, software support, and system integration can matter just as much as peak compute.</strong></p><p>When people compare AI accelerators, TOPS is usually the first number they notice.</p><p>20 TOPS. 40 TOPS. 160 TOPS.</p><p>The comparison looks straightforward: the larger the number, the faster the accelerator should be.</p><p>But TOPS only describes theoretical arithmetic throughput under specific conditions. It does not tell you whether a model fits comfortably in memory, how much data needs to move across PCIe, whether the runtime supports the model, or whether the system can maintain its performance during continuous operation.</p><p>That is why TOPS is useful for initial comparison but not enough for selecting an accelerator for a real edge AI system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIkwwJ1YWUO_GTrCHS7h8Q.png" /></figure><h3>Start With the Application, Not the Accelerator</h3><p>Before comparing accelerator specifications, define what the system actually needs to run.</p><p>A multi-camera vision system and a local LLM may both fall under edge AI, but their hardware requirements are very different.</p><p>For a vision workload, the important factors are usually camera count, resolution, frame rate, model architecture, decoding, preprocessing, and the required inference latency or FPS.</p><p>For an LLM or VLM, the focus shifts toward model size, quantization, context length, concurrency, memory requirements, and token generation speed.</p><p>The same accelerator can therefore be a good fit for one workload and a poor fit for another.</p><p>A device designed for efficient INT8 vision inference may handle multiple camera streams well, while still having limited memory for a larger generative model. Another accelerator may offer different memory resources or software support that makes it more suitable for local LLM or VLM workloads.</p><p>TOPS becomes much more meaningful once the workload is clearly defined.</p><h3>Memory Can Be Just as Important as Compute</h3><p>For local LLMs and larger multimodal models, memory can become just as important as raw compute.</p><p>The accelerator needs space for more than model weights. Runtime memory may also include intermediate tensors, activations, temporary buffers, KV cache, and runtime overhead.</p><p>Longer context windows and higher concurrency can increase memory usage further.</p><p>This means an accelerator may have enough theoretical compute for a model while still being limited by available memory in the actual deployment.</p><p>If the model does not fit comfortably in local accelerator memory, developers may reduce precision, shorten the context window, lower concurrency, or move part of the workload into host memory.</p><p>Host-memory offloading can make larger models possible, but moving data between host memory and accelerator memory introduces additional overhead and may affect latency or throughput.</p><p>For that reason, local LLM deployment should be evaluated by looking at compute capability, accelerator memory, memory bandwidth, quantization, and actual runtime memory usage together.</p><p>TOPS alone cannot describe that relationship.</p><h3>PCIe Bandwidth Only Matters in Context</h3><p>PCIe is another specification that is easy to oversimplify.</p><p>A PCIe x4 interface provides more bandwidth than x1 or x2, but that does not automatically mean the application will run two or four times faster.</p><p>What matters is how much data actually crosses the PCIe link.</p><p>Consider a system where the model remains in accelerator memory and most inference happens locally on the accelerator. The host may only send relatively small inputs and receive compact results. In that case, PCIe traffic may be fairly light.</p><p>Now consider a multi-camera system where the CPU decodes several high-resolution streams, performs preprocessing, and continuously sends image data to the accelerator. The data path is very different, and PCIe bandwidth becomes much more important.</p><p>A useful way to evaluate this is to map the full processing path:</p><p><strong>input → decode → preprocess → inference → post-process → output</strong></p><p>Then identify which stages require data to move between the host and accelerator.</p><p>That tells you much more than simply comparing PCIe x1, x2, and x4.</p><h3>Peak Performance Is Not Sustained Performance</h3><p>A short benchmark does not necessarily represent sustained performance in a real edge deployment.</p><p>Industrial edge systems may run continuously inside control cabinets, fanless industrial computers, roadside enclosures, machines, or equipment rooms where cooling conditions are very different from a desktop test bench.</p><p>The accelerator also shares the thermal environment with the CPU, memory, SSD, power circuitry, and sometimes a 4G or 5G modem.</p><p>As temperature rises, the processor or accelerator may reduce its operating frequency to remain within thermal limits. The theoretical TOPS rating does not change, but actual inference throughput may.</p><p>For industrial edge AI, sustained performance under realistic operating conditions is therefore more useful than a short peak benchmark alone.</p><p>A meaningful test should run the actual workload long enough for the system to reach a stable thermal state. During that period, it is useful to observe accelerator and CPU temperature, clock frequency, inference latency, FPS or tokens per second, and power consumption.</p><p>The goal is to understand whether the platform can maintain the required performance over time.</p><h3>Software Can Be the Hardest Part</h3><p>Physically installing an M.2 accelerator is usually straightforward.</p><p>Deploying the model can be much more complicated.</p><p>Dedicated AI accelerators often rely on their own model converters, compilers, quantization tools, runtimes, drivers, and SDKs. An ONNX or PyTorch model cannot always be moved directly onto every accelerator without modification.</p><p>Unsupported operators, model conversion requirements, quantization changes, runtime limitations, driver compatibility, and operating-system support can all affect deployment.</p><p>This becomes especially important on ARM-based industrial computers. An accelerator may have a mature development environment on one platform but more limited support on the ARM Linux system actually used in the field.</p><p>Software compatibility should therefore be evaluated before the hardware decision is finalized.</p><p>The practical questions are whether the SDK supports the target model architecture, whether the required operators are available, what the conversion process looks like, which quantization modes are supported, and whether the runtime works reliably on the target Linux environment.</p><p>An accelerator with a mature SDK, active runtime development, and good deployment documentation may be a safer long-term choice than hardware with a stronger specification but a weak software ecosystem.</p><h3>Test the Whole System, Not Just the Accelerator</h3><p>The accelerator is only one component of an edge AI platform.</p><p>The host CPU, memory subsystem, PCIe topology, storage, cooling, software stack, and I/O architecture all affect the final result.</p><p>For a vision application, it makes more sense to evaluate the complete path from camera input through decoding, preprocessing, inference, and post-processing than to look only at NPU inference time.</p><p>For an LLM, useful measurements include time to first token, tokens per second, memory consumption, context length, and concurrency.</p><p>Industrial deployments also have another layer to consider: integration with the surrounding OT and IT systems.</p><p>The edge computer may need to communicate with PLCs, cameras, sensors, SCADA systems, MES platforms, local databases, and cloud services. It also needs to fit into the site’s network architecture, software update process, access-control policies, and recovery strategy.</p><p>For safety-critical applications, AI inference should complement rather than replace the deterministic control logic and safety mechanisms required by the system.</p><p>This is why accelerator selection eventually becomes a system architecture decision rather than a simple comparison of compute specifications.</p><p>For a more detailed breakdown of memory, PCIe architecture, thermal design, software compatibility, and industrial integration, see our <a href="https://en.iotrouter.com/m-2-ai-accelerator-guide-6-factors-beyond-tops/">M.2 AI accelerator selection guide</a>.</p><h3>The Bigger Number Is Not Always the Better Choice</h3><p>TOPS still has value.</p><p>It gives you a useful indication of theoretical compute capability and helps narrow down candidate accelerators.</p><p>But it should not make the final decision by itself.</p><p>A practical edge AI system needs enough compute, enough memory, an appropriate data path, stable thermal performance, a usable software stack, and an architecture that fits the surrounding industrial system.</p><p>The best accelerator is not necessarily the one with the highest TOPS rating.</p><p>It is the one that fits the workload and continues to perform reliably once the benchmark becomes a deployed system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e31935982c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is a Modbus Gateway? How It Connects PLCs and Industrial Devices to IoT Platforms]]></title>
            <link>https://medium.com/@iotrouter/what-is-a-modbus-gateway-how-it-connects-plcs-and-industrial-devices-to-iot-platforms-213a1451bb47?source=rss-7d28eca4b40c------2</link>
            <guid isPermaLink="false">https://medium.com/p/213a1451bb47</guid>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[modbus]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[IOTRouter]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 09:40:39 GMT</pubDate>
            <atom:updated>2026-08-13T09:40:39.190Z</atom:updated>
            <content:encoded><![CDATA[<p>Modbus gateways are widely used in Industry 4.0, providing essential functions to connect PLCs and industrial devices to IoT platforms. In this article, we will explain how Modbus works and why this protocol still plays an important role in modern industrial applications.</p><h3>1. What is Modbus?</h3><p>Back in 1979, Modicon (now Schneider Electric) needed a way for its PLCs to talk to each other and to other gear, so they released <a href="https://www.modbus.org/"><strong>Modbus</strong></a>. Fast-forward forty-odd years, and it’s still the most widely deployed communication protocol in industrial settings.</p><p>Why has it survived this long? Three reasons:</p><ul><li><strong>Open.</strong> It’s a public protocol — anyone can implement it without paying licensing fees. That helped it spread like crazy from the 1980s into meters, drives, sensors, and all sorts of field devices.</li><li><strong>Simple.</strong> The register read/write model is straightforward. Low implementation cost, low debugging barrier. Equipment makers can integrate it without headaches, and maintenance staff doesn’t need a PhD to use it.</li><li><strong>Widely compatible.</strong> Pretty much every industrial device out there supports it. PLCs, power meters, water meters, temperature/humidity sensors, and controllers — they’re all still talking Modbus on the factory floor today.</li></ul><h3>2. Modbus RTU, Modbus ASCII, and Modbus TCP</h3><p>Modbus comes in three main flavors, depending on the physical layer and transmission method.</p><p><strong>Modbus RTU</strong> — The most common mode in the field. It runs over RS-232 or RS-485 serial buses, uses binary encoding with a CRC16 checksum, and relies on silent intervals between characters (3.5 character times) to delimit frames. RTU is efficient, simple to implement, and is the go-to for meters, sensors, and drives.</p><p><strong>Modbus ASCII</strong> — Data is transmitted as ASCII characters — each byte becomes two hex characters, framed with a colon (:) at the start and CRLF at the end, with an LRC checksum. The upside: human-readable. You can stare at it on a serial terminal and figure out what’s going on — the downside: half the efficiency of RTU.</p><p>That said, Modbus ASCII is rare in modern installations. Modbus ASCII is less common in modern industrial installations, whereas most industrial gateways focus on supporting Modbus RTU and Modbus TCP.</p><p><strong>Modbus TCP</strong> — The Modbus frame is wrapped inside TCP/IP, default port 502. It replaces the RTU timing mechanism with a 7-byte MBAP header, and TCP takes care of error checking. Modbus TCP is used with Ethernet-enabled PLCs, controllers, and HMIs, and supports multiple simultaneous clients.</p><p><strong>Modbus RTU vs Modbus TCP — what matters in practice</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ONcBtssQE2s_6MUImfLc6Q.png" /></figure><p>In short: RTU lives on RS-485 field devices like meters and sensors. TCP lives on Ethernet PLCs and controllers. For a detailed comparison of Modbus RTU and Modbus TCP communication, see our guide on <a href="https://en.iotrouter.com/exploring-the-differences-between-modbus-rtu-and-modbus-tcp-protocols/"><strong>Modbus RTU vs Modbus TCP</strong></a>.</p><p>In real projects, both often coexist. A plant might have power meters on RTU and PLCs on TCP — the gateway has to handle both at the same time.</p><h3>3. Why Modbus Still Matters in Industrial IoT</h3><p>Walk into any factory, substation, or building mechanical room, and you’ll find older PLCs that have been running production-critical processes for years. Those aren’t going anywhere just because someone decides to “go digital.” Replacing them means downtime, re-commissioning, re-validation — huge cost and risk.</p><p>So the real question isn’t “should we swap them out?” but “how do we bring their data into a modern IoT system?”</p><p>That’s where industrial gateways come in. They bridge the gap between Modbus gear and cloud platforms. The gateway pulls data over Modbus from field devices, then pushes it up to the cloud via MQTT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOSs7UOAzIhdfgMYIyF8eA.png" /></figure><h3>Where does the gateway sit in the data flow?</h3><p>An industrial Modbus gateway does three things: <strong>collect, translate, and transmit</strong>.</p><ul><li><strong>Collect:</strong> The gateway reads Modbus registers based on a device mapping configuration. The engineer sets up a register table from the device manual, and the gateway polls the field devices at configured intervals.</li><li><strong>Translate:</strong> Raw register values get turned into meaningful engineering data — that means data type parsing, scaling, and unit conversion. In some cases, the gateway also does protocol translation — for example, Modbus to IEC 60870–5–104 for power SCADA integration.</li><li><strong>Transmit:</strong> The formatted data — now with real units and context — is sent out via MQTT, HTTP, or another industrial protocol. MQTT is one of the most common protocols used by industrial gateways for cloud connectivity. Learn more about <a href="https://en.iotrouter.com/mqtt-protocol-for-industrial-iot-how-gateways-connect-plcs-and-devices-to-cloud-platforms/"><strong>how MQTT connects PLCs and field devices to Industrial IoT platforms</strong></a>. The upper-layer systems consume that standardized data for monitoring, analytics, and control.</li></ul><h3>4. Main Application Scenarios for Modbus Gateways</h3><p>Modbus gateways are used in four core verticals: manufacturing, energy, power utilities, and buildings.</p><p><strong>Smart factories</strong> — Production lines usually have multiple PLCs and controllers using Modbus RTU or TCP. For example, PLCs such as <a href="https://en.iotrouter.com/how-to-connect-delta-dvp-series-plcs-to-iot-gateway-via-modbus-tcp/"><strong>Delta DVP series can be connected to IoT gateways through Modbus TCP</strong></a> for remote monitoring and data acquisition. The gateway collects operational data — runtime, production counts, fault codes — and sends it up to MES or cloud platforms. Traditional setups often needed extra software layers like SCADA or protocol servers. A gateway simplifies the data acquisition tier by cutting out unnecessary middleware.</p><p><strong>Energy monitoring</strong> — Commercial and industrial power metering is a sweet spot for Modbus RTU. A distribution room might have dozens of multifunction meters daisy-chained on one RS-485 bus, all speaking Modbus RTU. The gateway polls voltage, current, power factor, and energy data from all those meters, then forwards it to an EMS for trend analysis, efficiency optimization, and anomaly detection. This setup is widely used in commercial &amp; industrial storage, campus energy management, and data center PUE monitoring.</p><p><strong>Power automation</strong> — The power sector has its own communication standards. Substation automation systems typically require IEC 60870–5–104 (IEC104), but the protection and control devices on the ground might only speak Modbus. The gateway handles the Modbus-to-IEC104 translation, dealing with the measurement and control data that utility systems need. In these scenarios, a <a href="https://en.iotrouter.com/modbus-to-iec-104-gateway-setup-guide/"><strong>Modbus to IEC104 gateway</strong></a> can convert field device data into IEC104 messages for SCADA systems without modifying existing PLC programs.</p><p><strong>Building automation</strong> — Building management, HVAC, pump rooms — these are classic “unattended, remote monitoring” scenarios. In smart building projects, <a href="https://en.iotrouter.com/smart-building-edge-controller-em300-bms-integration/"><strong>edge controllers</strong></a> can integrate Modbus devices, HVAC systems, and BMS platforms through unified communication. Field devices connect to an edge gateway via Modbus, and the gateway pushes data to the cloud over 4G or Ethernet. Products like the <a href="https://en.iotrouter.com/product/em300-modular-industrial-edge-controller/"><strong>EM300 edge controller</strong></a> are built for this — they act as Modbus RTU/TCP masters, connect to multiple building devices, run local edge logic (like temperature control interlocks), and only send key data upstream.</p><h3>5. How to Choose a Modbus Gateway</h3><p>When you’re picking a gateway, look at these dimensions:</p><p><strong>Dual RTU/TCP support</strong> — Both protocols are common in the field, and often mixed. The gateway should work as a Modbus RTU master (for RS485 devices) and as a Modbus TCP client (for Ethernet PLCs) — ideally with transparent RTU-to-TCP routing as well.</p><p><strong>Isolated RS485 interfaces</strong> — Industrial-grade isolation protects the gear from electrical noise. Field environments are full of EMI and surges — isolation isn’t a luxury; it’s a basic reliability requirement.</p><p><strong>Multi-protocol translation</strong> — It’s not just Modbus-to-MQTT. Real projects often need Modbus-to-OPC UA, Modbus-to-IEC 104, Modbus-to-BACnet (for buildings). The more protocols a gateway supports, the more you can reuse it across projects without stocking different hardware.</p><p><strong>Cloud connectivity and edge computing</strong> — Modern gateways should support MQTT for reliable cloud ingestion. Key features include MQTT QoS, TLS encryption, offline caching, and secure communication. Edge computing capabilities let you do local filtering, alarm evaluation, and interlock logic — cutting down the amount of raw data that goes to the cloud.</p><p><strong>Reliability design</strong> — Industrial environments run 24/7/365. Pay attention to MTBF, wide temperature range, power redundancy, watchdog timers — these determine whether the gateway can survive years on a shop floor without flaking out.</p><h3>6. FAQ</h3><p><strong>1. Can Modbus devices connect to the cloud?</strong><br>Yes. An industrial gateway converts Modbus data into MQTT or HTTP messages and sends them to the cloud — no need to replace existing field devices.</p><p><strong>2. Do I have to replace my existing PLCs to do IoT?</strong><br>No. Most industrial PLCs support Modbus. A gateway can bring them into an IoT platform without hardware swaps or PLC program changes.</p><p><strong>3. What’s the difference between a Modbus gateway and a protocol converter?</strong><br>A protocol converter typically does a single, straightforward format translation (like RTU ↔ TCP). An industrial gateway is a more complete device — it handles data acquisition, edge computing, MQTT upload, store-and-forward for network outages, and more.</p><p><strong>4. How many Modbus devices can one gateway connect to?</strong><br>That depends on the gateway’s hardware, baud rate, polling cycle, and device response times. Multiple serial ports or Ethernet interfaces can expand the device count.</p><p><strong>5. Can RTU and TCP devices connect to the same gateway?</strong><br>Yes. Many industrial gateways support both Modbus RTU and TCP, allowing RS485 field devices and Ethernet PLCs to coexist in one system. It’s common in mixed environments — meters on RTU, PLCs on TCP, all feeding into the same gateway for unified cloud upload.</p><h3>7. Closing Thoughts</h3><p>Why are we still talking about Modbus today?</p><p>Because the installed base is enormous, and it’s not going away anytime soon. Those PLCs that have been running for a decade, the meters hanging off RS485 buses, the sensors inside switchgear cabinets — they speak Modbus, and they’ll keep speaking Modbus.</p><p>The real challenge in industrial IoT isn’t inventing new protocols. It’s getting the data from all that Modbus equipment to flow somewhere useful. An industrial gateway does exactly that: reads Modbus data, translates it, and ships it via modern protocols to the cloud.</p><p>Modbus handles the field-level conversation. MQTT provides a lightweight, reliable channel for cloud connectivity in many IIoT applications.</p><p>Together — Modbus, the gateway, and MQTT — form a practical, proven path to connect existing industrial assets to today’s IoT platforms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=213a1451bb47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Much Edge AI Computing Power Is Actually Enough?]]></title>
            <link>https://medium.com/@iotrouter/how-much-edge-ai-computing-power-is-actually-enough-b1a1b2752a7e?source=rss-7d28eca4b40c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a1b2752a7e</guid>
            <category><![CDATA[industrial-automation]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[IOTRouter]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 07:43:32 GMT</pubDate>
            <atom:updated>2026-07-20T07:43:32.543Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Much Edge AI Computing Power Is Actually Enough? Building a Scalable AI Platform for Industrial Applications</h3><p>In industrial projects, choosing an edge computer is rarely about buying the “most powerful hardware.” The real challenge is finding a platform that can handle today’s workloads while remaining flexible enough for future AI requirements. You don’t want to overpay for compute you’ll never use, but you also don’t want to tear out a gateway six months later when the project scope inevitably expands.</p><p>A scalable edge computing architecture provides a practical way to address this challenge. The following discussion uses a specific platform as an example.</p><h3>1. 6 TOPS Is the Starting Point — Scalable AI Computing up to 320 TOPS</h3><p>This<a href="https://en.iotrouter.com/product/ec700-arm-based-open-source-ai-edge-computing-industrial-pc/"> industrial edge platform </a>is powered by the Rockchip RK3588J octa‑core industrial processor, featuring 4× Cortex‑A76 performance cores and 4× Cortex‑A55 efficiency cores, with a standard configuration of 8 GB RAM and 128 GB eMMC storage. The built‑in NPU delivers 6 TOPS of computing power, supporting mixed‑precision operations across INT4, INT8, INT16, and FP16.</p><p>What does 6 TOPS actually mean in practice? Running YOLOv8‑based object detection on a single 1080P video stream, inference latency can be kept under 50 ms depending on model size and deployment configuration. When running 4 industrial cameras simultaneously, CPU utilisation stays below 65%.</p><p>But what if the project needs to run large models? For example, equipment predictive maintenance may require a 7B‑parameter time‑series analysis model, or production line quality inspection may need to run a 35B‑parameter multimodal large model. 6 TOPS is clearly not enough.</p><p>The device’s solution is to reserve 2× M.2 PCIe high‑speed interfaces on the chassis, supporting the addition of compute expansion modules. Optional R182X or LQ50 accelerator cards are available, with maximum heterogeneous computing power reaching 320 TOPS. Performance testing shows that dual LQ50 modules can simultaneously run inference workloads with two 35B‑parameter large models under the tested configuration, and the Qwen3.5 35B‑A3B model achieves a Decode TPS of 24.06. This means a single unit can serve simultaneously as a data acquisition gateway, an edge AI inference server, and a local large‑model inference platform.</p><p>This elastically expandable compute design essentially uses a combination of a general‑purpose main controller and dedicated AI accelerators to flexibly cover the full range of scenarios, from lightweight inference to complex industrial‑grade tasks.</p><figure><img alt="Industrial IOT platform with native integration of Node-RED + NeuronEX-Lite + FUXA" src="https://cdn-images-1.medium.com/max/1024/1*9BFZl5yikPK2s4aTL094_w.jpeg" /></figure><h3>2. Three Software Layers for Faster Industrial Application Development</h3><p>Without the right software ecosystem, even powerful hardware cannot deliver practical industrial applications. The device comes pre‑installed with the NeuronEX‑Lite industrial protocol hub, co‑developed by <a href="https://en.iotrouter.com/">IOTRouter</a> and <a href="https://www.emqx.com/en">EMQ</a>, plus the Node‑RED visual programming engine and the FUXA zero‑code configuration tool, forming a three‑layer software architecture covering protocol connectivity, visual programming, and industrial visualization.</p><p>NeuronEX‑Lite handles southbound protocol access. It is compatible with over 100 industrial protocols, including Modbus RTU/TCP, OPC UA, EtherNet/IP, Siemens S7, Omron, Allen‑Bradley, and more, enabling low‑latency industrial data acquisition and processing. Node‑RED provides drag‑and‑drop workflow orchestration, with over 50 pre‑built industrial nodes — from reading PLC data to publishing via MQTT; just connect the nodes and deploy. FUXA handles web‑based visual configuration, with a library of over 200 components supporting multi‑screen rendering, enabling zero‑code construction of data dashboards and process flow diagrams.</p><p>The practical effect of this combination is that, in many industrial scenarios, IoT application development cycles can be shortened from weeks to days. Protocol access, data processing, business logic, and visual presentation are all completed on a single EC700 device.</p><h3>3. IT and OT Convergence: Southbound Manages Heterogeneous Devices, Northbound Directly Connects to Major Clouds</h3><p>The most vexing problem on industrial sites is not technology itself — it is heterogeneity. Siemens PLCs, Mitsubishi inverters, Omron sensors — each speaks its own protocol. The upper‑layer platform might be Alibaba Cloud IoT, OneNET, or a customer’s self‑built private cloud.</p><p>This edge platform is positioned as an IT/OT integration hub. On the southbound side, it manages heterogeneous devices through NeuronEX‑Lite; on the northbound side, it directly connects to various cloud platforms via MQTT, HTTP, TCP, UDP, WebSocket, and other protocols. In a project test environment, the southbound side simultaneously connected a Modbus RTU power meter, an OPC UA machine tool, and a Siemens S7‑1200 PLC, while the northbound side connected to the Alibaba Cloud IoT Platform — the entire configuration took less than 30 minutes.</p><p>In many industrial deployments, integrating gateway, edge computing, and visualization functions into one platform can significantly reduce hardware investment and system complexity. Fewer devices mean fewer cables, fewer support calls, and fewer failure points — which translates directly to lower total cost of ownership.</p><h3>4. Industrial‑Grade Fanless Thermal Design — Reliable Operation from ‑20°C to 70°C</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsY2mdEwHuqkNvctQ4TRSg.jpeg" /></figure><p>The environmental challenges on industrial sites far exceed those faced by ordinary commercial equipment. High temperatures, dust, and electromagnetic interference are the norm. The EC700 uses an all‑metal finned chassis with dual pure‑copper heat pipes, with the SoC directly contacting the thermal base, establishing a complete thermal path from the chip to the heat pipes to the outer chassis. The fanless design prevents dust accumulation, and the operating temperature range is ‑20°C to 70°C.</p><p>In terms of electrical safety, it uses a DC 12 V power supply with reverse‑connection protection. All interfaces are isolation‑designed: RS485 features galvanic isolation, DI uses optocoupler isolation, and DO uses relay outputs with a load capacity of 5 A @ 30 VDC / 5 A @ 250 VAC. EMC testing has passed electrostatic discharge Level 3 (±8 kV air discharge, ±4 kV contact discharge), and both surge and burst tests have reached Level 2 (±1 kV), meeting relevant industrial EMC testing standards.</p><p>Hardware watchdog plus dual software watchdog mechanisms ensure automatic reset under extreme anomalies, enabling 24/7 unattended stable operation.</p><h3>5. Multi‑Network Intelligent Switching and Integrated Visual and Audio Monitoring Capability</h3><p>Network stability is the lifeline of industrial IoT. The EC700 supports 4G/5G + dual Gigabit Ethernet ports + Wi‑Fi 6 multi‑mode network access, with automatic reconnection on drop and multi‑channel hot‑standby. The 4G module uses Quectel Cat.4, supporting LTE‑FDD bands B1/B3/B5/B8 and others; the 5G module supports SA n1/n28/n41/n77/n78/n79 and NSA n41/n78/n79 bands. Wi‑Fi 6 supports dual‑band 2.4 GHz + 5 GHz with a maximum throughput of 600.4 Mbps.</p><p>For visual and audio monitoring, the device provides HDMI input and output interfaces, supporting 8K video decoding and 4K encoding, and can directly connect to large screens to display production status in real time. The 3.5 mm audio jack supports device warning audio output. This integrated visual/audio design is particularly practical in production line quality inspection scenarios: industrial camera feeds are displayed in real time on the HDMI large screen, AI inference results are overlaid with annotations, and audio alerts sound on anomalies — operators can grasp the full situation without leaving their workstations.</p><h3>6. Boundary‑Free Remote Operations and Maintenance — Debug PLCs from Thousands of Miles Away</h3><p>The more dispersed the devices, the higher the operations and maintenance costs. The EC700 comes with IOTRouter’s self‑developed free remote O&amp;M software, supporting remote configuration, remote debugging, remote diagnostics, and remote updates. Core capabilities include virtual serial ports and virtual network interfaces, allowing engineers to debug downstream devices from their computers with the same experience as plugging a cable in on‑site.</p><p>More critically, it has built‑in NAT traversal and P2P hole‑punching technology. Even if the device is deployed behind a carrier‑grade NAT or corporate firewall, no public IP address and no router port forwarding are required to enable secure remote access. The technical principle is that the EC700 actively maintains a persistent connection to the cloud handshake server; when an O&amp;M engineer initiates an access request, the cloud assists in establishing a point‑to‑point encrypted tunnel, reducing unnecessary cloud forwarding and improving latency and bandwidth efficiency.</p><h3>7. Secure and Flexible Industrial Computing Architecture</h3><p>The EC700 uses a hardware and software architecture designed for supply‑chain reliability and long‑term industrial deployment. The core processor, Rockchip RK3588J, is paired with an embedded Linux operating system, and the software stack — Node‑RED and NeuronEX‑Lite — is either open‑source or customised for industrial use. This approach provides flexibility, transparency, and the ability to adapt to specific project security requirements.</p><p>For customers with volume requirements, IOTRouter also offers OEM/ODM services, including hardware silk‑screen customisation, firmware feature customisation, and private deployment of the management platform. The product has passed CCC certification.</p><h3>Frequently Asked Questions</h3><p><strong>Q1: How is the EC700’s 320 TOPS heterogeneous computing power calculated? How many cards need to be added?</strong></p><p>The EC700’s standard RK3588J built‑in NPU provides 6 TOPS of compute power. The chassis has 2× M.2 PCIe high‑speed interfaces reserved for adding compute expansion modules. A single LQ50 module provides 160 TOPS@INT8, and dual modules stacked deliver 320 TOPS. The R182X module provides 20 TOPS@INT8 per unit, suitable for 3B to 7B parameter models; the LQ50 module provides 160 TOPS@INT8 per unit, suitable for 7B to 35B parameter models. Users can choose to install 1 or 2 modules as needed, achieving elastic compute upgrades.</p><p><strong>Q2: How many large models can the EC700 run simultaneously? What is the inference latency for a 35B‑parameter model?</strong></p><p>According to IOTRouter’s internal performance testing data, under the dual LQ50 module configuration, the EC700 can simultaneously run inference workloads with two 35B‑parameter large models. Taking the Qwen3.5 35B‑A3B model as an example, under conditions of Input: 128 tokens and Output: 128 tokens, the TTFT (time to first token) is approximately 738 ms, TPOT (time per output token) is approximately 24.06 ms, and Decode TPS is approximately 24.06. The end‑to‑end latency is within an acceptable range, meeting the real‑time inference requirements of industrial edge AI.</p><p><strong>Q3: What is the secondary development environment for the EC700? Which AI frameworks does it support?</strong></p><p>The EC700 is based on an open embedded Linux system and provides a full development kit and API documentation. For AI inference, it supports mainstream deep learning frameworks such as TensorFlow, PyTorch, Caffe, and MXNet, as well as the ONNX universal model format, with flexible deployment based on Docker containers. The compute modules integrate a dedicated NPU plus the RK3588 ISP vision processing unit, natively supporting integrated multimodal inference across text, image, and video.</p><p><strong>Q4: What industrial protocols does the EC700 support? Can it simultaneously connect to Siemens S7 and Mitsubishi FX?</strong></p><p>The device supports over 100 industrial protocols via NeuronEX‑Lite, including Modbus RTU/TCP, OPC UA, EtherNet/IP, Siemens S7, Omron, Allen‑Bradley, and more. The device provides 2× RS485 + 1× RS232 serial ports, each configurable with different baud rates and protocols. This means a single EC700 can simultaneously communicate with multiple PLCs from different brands over different interfaces and protocols, with data unified and processed internally before being sent to the cloud.</p><p><strong>Q5: Does the EC700’s remote O&amp;M require a public IP address? How is security guaranteed?</strong></p><p>No public IP address is required. The EC700 has built‑in NAT traversal and P2P hole‑punching technologies and actively maintains a persistent connection to the cloud handshake server. When the O&amp;M side initiates access, the cloud assists in establishing a point‑to‑point encrypted tunnel, reducing unnecessary cloud forwarding and improving latency and bandwidth efficiency. Together with IOTRouter’s self‑developed free remote O&amp;M software, it provides comprehensive capabilities for remote configuration, debugging, diagnostics, and updates — debugging PLCs deployed at remote sites feels much like being connected locally.</p><p>Learn More: <a href="https://en.iotrouter.com/edge-ai-for-industrial-applications-how-ec700-enables-local-ai-computing/">Edge AI for Industrial Applications</a></p><p><strong>Disclaimer:</strong> This article is based on publicly available product specifications and performance data from the manufacturer. All performance claims are sourced from the manufacturer’s published test results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a1b2752a7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Autonomous Tractors Fail in the Field: The Hidden Challenge of CAN Bus Integration]]></title>
            <link>https://medium.com/@iotrouter/why-autonomous-tractors-fail-in-the-field-the-hidden-challenge-of-can-bus-integration-1cd394fe41b7?source=rss-7d28eca4b40c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd394fe41b7</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[agriculture]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[industrial-automation]]></category>
            <dc:creator><![CDATA[IOTRouter]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 09:41:59 GMT</pubDate>
            <atom:updated>2026-07-15T09:41:59.780Z</atom:updated>
            <content:encoded><![CDATA[<p>Autonomous tractors have made significant progress in recent years. RTK-GNSS systems can now provide centimeter-level positioning accuracy, and autonomous navigation systems have already been deployed in commercial agricultural applications.</p><p>However, in real retrofit projects, engineers often see the same pattern: the system works correctly during controlled testing, but reliability problems appear after the machine enters actual field operation.</p><p>In many cases, the problem is not the positioning system or the navigation algorithm. The vehicle may know its location accurately and calculate the correct path, but the different electronic systems inside the machine still need to communicate reliably before autonomous operation can work consistently.</p><p>Unlike a purpose-built autonomous vehicle, most agricultural retrofit projects start with an existing tractor. Engineers inherit vehicle systems developed by different manufacturers, including steering controllers, engine ECUs, implement controllers, GNSS receivers, and additional sensors.</p><p>These systems often use different communication interfaces and protocols. A typical autonomous tractor may involve J1939 communication over CAN for vehicle systems, NMEA output from an RTK receiver through RS232, Modbus RTU sensors over RS485, and ISOBUS communication with agricultural implements.</p><p>Each technology works well in its own application area, but connecting them into one autonomous system is where many projects become complicated.</p><p>The challenge is not simply adding autonomous software. The real challenge is building a communication architecture that can reliably connect existing vehicle systems under real field conditions.</p><h3>Why CAN Integration Becomes the Bottleneck</h3><p>CAN bus itself is not a new technology. It has been widely used in vehicles for decades because of its reliability and ability to connect distributed electronic controllers.</p><p>The difficulty in autonomous tractors is not the CAN network itself, but understanding and integrating the information exchanged through it.</p><p>Many agricultural vehicles use J1939-based communication between electronic control units. ISOBUS (ISO 11783) is an agricultural communication standard based on CAN technology that enables interoperability between tractors and implements from different manufacturers.</p><p>However, standard protocols do not always mean simple integration.</p><p>In real projects, engineers may encounter manufacturer-specific message definitions or proprietary extensions. A steering controller may support standard communication structures while also including manufacturer-specific messages or extensions. An implement may follow ISOBUS requirements while adding additional functionality defined by the manufacturer.</p><p><strong>A gateway used in this environment cannot simply forward CAN frames.</strong></p><p>It needs to understand the message structure, process relevant parameters, and provide a flexible way to map data between different systems.</p><p>This is especially important in retrofit projects because every tractor platform may have different combinations of controllers, implements, and sensors.</p><p>Without a flexible communication layer, every new vehicle model may become a new custom integration project.</p><h3>Why Real-Time Steering Should Stay Local</h3><p>Another challenge appears when engineers try to move too much processing into the cloud.</p><p>Cloud platforms are extremely useful for agricultural applications. They provide fleet monitoring, remote diagnostics, historical data analysis, and centralized management.</p><p>However, real-time steering control has very different requirements.</p><p>The problem is not average network speed. The problem is unpredictable communication delay.</p><p>Agricultural fields rarely provide a perfectly stable network environment. Cellular coverage changes depending on location, and temporary signal interruptions are common.</p><p>A delay that is acceptable for uploading operational data may become a problem when it affects a steering correction loop.</p><p>For this reason, time-sensitive control decisions should remain on the vehicle.</p><p>A practical architecture keeps the control loop local.</p><p>The RTK receiver provides positioning information. The edge controller processes the data locally. The steering command is sent directly through the vehicle CAN network.</p><p>The cloud remains valuable, but mainly for monitoring, data synchronization, and fleet management.</p><p>This separation also improves reliability. If the cellular connection temporarily disappears, the tractor can continue operating because the essential control process does not depend on an external network.</p><h3>Choosing Between PLC, IPC, and CAN Gateway</h3><p>When designing an autonomous tractor system, engineers usually consider three types of architectures: PLC-based control, industrial PC platforms, and dedicated edge gateways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVMGewkzmPF0QIt3HwS1DQ.png" /></figure><p>PLCs remain one of the most reliable solutions in industrial automation. They provide deterministic control and long-term stability, making them suitable for fixed automation tasks.</p><p>However, autonomous tractors require more than traditional sequence control. The system needs to communicate with multiple vehicle networks, process positioning information, and integrate different protocols. Extending a PLC system to support these requirements may require additional modules and engineering effort.</p><p>Industrial PCs provide much higher computing capability and are the right choice for demanding workloads such as computer vision, AI inference, ROS-based navigation, or advanced sensor processing.</p><p>However, high computing performance also introduces practical considerations. Vehicle installations require attention to power consumption, thermal management, communication expansion, and long-term environmental reliability.</p><p>For many retrofit projects, the main challenge is not computing power.</p><p>It is communication integration.</p><p>This is where a dedicated CAN gateway provides a practical balance. Instead of replacing existing vehicle controllers, the gateway focuses on connecting them and handling communication between different systems.</p><p>For applications such as RTK-based guidance, CAN communication, and implement integration, this architecture often matches the actual requirements more closely.</p><h3>A Practical Edge Gateway Architecture</h3><p>A practical autonomous tractor system does not necessarily require replacing every existing controller.</p><p>The goal is to create a communication layer that connects existing systems.</p><p>An industrial edge gateway can connect the RTK receiver through RS232, communicate with CAN-based devices, collect sensor data through RS485, and provide remote connectivity through cellular networks.</p><p>One example implementation is the IOTROUTER EG8200, an industrial gateway designed for applications that require multiple communication interfaces in a compact fanless platform.</p><p>With CAN interfaces, RS232, RS485, wide-range DC input, and wireless connectivity, it provides a practical hardware platform for connecting different field devices and communication networks.</p><p>In agricultural retrofit projects, this type of architecture allows existing tractors and implements to be connected without redesigning the original vehicle control system.</p><p>In this architecture, the gateway handles local communication processing, while cloud connectivity is used for monitoring and management.</p><p>The key value is not simply the number of interfaces available. It is keeping communication between vehicle systems reliable while allowing existing equipment to participate in an autonomous platform.</p><h3>Field Deployment: Where Design Decisions Are Tested</h3><p>A system that works in a laboratory environment does not always survive a full agricultural season.</p><p>During field deployment, engineers need to consider factors that are often overlooked during initial development, including vibration, temperature changes, dust exposure, vehicle power fluctuations, and CAN network installation details.</p><p>Many problems that appear to be software issues may actually be caused by communication wiring, network configuration, or environmental conditions.</p><p>This is why autonomous tractor projects require both software capability and industrial engineering experience.</p><p>The most reliable systems usually follow a simple principle:</p><p>Keep critical control local. Keep communication flexible. Keep hardware suitable for the environment.</p><h3>Conclusion</h3><p>Autonomous tractors are often discussed as a problem of navigation accuracy, artificial intelligence, or positioning technology.</p><p>Those technologies are important, but reliable field operation depends on something more fundamental: communication between different vehicle systems.</p><p>The future of autonomous agriculture will not only depend on smarter algorithms. It will depend on better integration between machines, sensors, and controllers.</p><p>For autonomous tractor retrofit projects using RTK positioning, CAN communication, and agricultural equipment integration, the biggest challenge is not adding more computing power.</p><p>It is building a communication architecture that continues to work when the tractor leaves the laboratory and enters the field.</p><h3>About IOTROUTER</h3><p><strong>IOTRouter</strong> specializes in the R&amp;D and manufacturing of industrial IoT hardware, including 4G/5G edge gateways, DTUs, and RTUs. We focus on providing stable, field-proven connectivity solutions to bridge the gap between industrial field devices and cloud platforms.</p><ul><li><strong>Explore our industrial edge solutions:</strong> <a href="https://en.iotrouter.com/">https://en.iotrouter.com</a></li><li><strong>Technical Support:</strong> For data sheets or project technical consultation, contact our team at: <strong>agneswang@iotrouter.com</strong>.</li></ul><p><em>Building reliable connectivity for Industry 4.0.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd394fe41b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modbus Protocol Explained: Architecture, RTU/TCP, and Function Codes]]></title>
            <link>https://medium.com/@iotrouter/modbus-protocol-explained-architecture-rtu-tcp-and-function-codes-21f46bc29de2?source=rss-7d28eca4b40c------2</link>
            <guid isPermaLink="false">https://medium.com/p/21f46bc29de2</guid>
            <category><![CDATA[modbus]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[industrial-iot]]></category>
            <dc:creator><![CDATA[IOTRouter]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 09:03:50 GMT</pubDate>
            <atom:updated>2026-06-24T09:03:50.800Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>A plain-English primer on the industrial communication protocol that has refused to die — its architecture, transmission modes, function codes, and data model.</em></blockquote><h3>What Is Modbus?</h3><p>Modbus is a serial communication protocol developed in 1979 by Modicon (now Schneider Electric) for industrial automation. It uses a master-slave architecture to exchange data between devices over serial (RTU/ASCII) or Ethernet (TCP) connections, making it one of the most widely adopted protocols in IoT and industrial control systems.</p><p>In most modern factories, water treatment plants, and building-automation systems, the devices on the other end of the serial cable are speaking Modbus. Not OPC UA, not MQTT, not some newer industrial IoT standard — Modbus, a specification drafted in 1979 for programmable logic controllers that predate the IBM PC.</p><p>The protocol has persisted because it solved the right problem the right way. A microcontroller, a serial line, and a few dozen lines of code are enough to make two devices communicate — a design that was practical four decades ago and remains the path of least resistance for embedded developers today. When a communication standard is this lightweight to implement, it tends to stick around.</p><p>This article is a working primer on how the protocol actually works — the architecture, the three transmission modes, the function codes, and the data model. If you’re an embedded developer, IoT engineer, or automation specialist who needs to understand Modbus before building on top of it (or debugging someone else’s implementation), read on.</p><h3>How Modbus Works: The Master-Slave Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*YdFc_uKxQWlhs6zHtFJWhA.png" /></figure><p>Modbus uses a master-slave communication model with the following characteristics:</p><ol><li>Only the master initiates communication by sending a request to a specific slave address.</li><li>Slaves respond only when addressed — they cannot initiate messages on their own.</li><li>One master can address up to 247 slaves (addresses 1–247) on a single bus; address 0 is reserved for broadcast.</li><li>Communication is always request-response — the master asks, the slave answers.</li><li>Modbus TCP uses client-server terminology but follows the same pattern.</li></ol><p>This is a deliberate design choice. On a shared serial line where two devices talking at once would corrupt the entire frame, making one device the sole initiator keeps arbitration trivial and the protocol deterministic.</p><h3>Master Device vs. Slave Device</h3><ul><li>Master (Client) — the device that initiates communication. It sends a request and waits for a response.</li><li>Slave (Server) — the device that responds. It never speaks unless spoken to.</li></ul><blockquote><em>A quick note on terminology: in the codebase of lightweight implementations such as nanoMODBUS, “Client” means master and “Server” means slave. We’ll use these terms interchangeably — they describe the same role.</em></blockquote><h3>How Communication Happens (Request-Response Cycle)</h3><p>Every transaction follows a simple cycle: the master sends a request to a specific slave address, the addressed slave processes it and replies, and the master moves on. No slave ever sends unsolicited data. If a slave doesn’t respond within a timeout period, the master treats it as a communication failure and can retry or move to the next device.</p><p>This poll-response model is what makes the protocol predictable. There’s no collision detection, no backoff algorithm, no token passing — just a single talker and many listeners, taking turns.</p><h3>Modbus Transmission Modes: RTU vs ASCII vs TCP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*Xz3xxRIh0tEbSuavvD34_w.png" /></figure><p>The protocol supports three transmission modes that share the same request logic but differ in how bits hit the wire. The PDU — the actual request payload — is identical across all three. What changes is the framing, the checksum, and the physical layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*9-Z85LfNF9mQViaTqvr27A.png" /></figure><h3>Modbus RTU</h3><p>Modbus RTU (Remote Terminal Unit) is a binary serial transmission mode that uses RS-232 or RS-485 physical layers. It encodes data in compact binary format, uses CRC-16 for error checking, and relies on silent intervals (3.5 character times) to delimit frames. RTU is the most common mode for industrial serial communication due to its efficiency and reliability.</p><p>Key characteristics:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*nuhQydrPgdAh2dTMQ8fnng.png" /></figure><p>RTU frame format:</p><pre>+----------+-----------+----------+--------+<br>| Address  | Function  | Data     | CRC    |<br>| (1 byte) | (1 byte)  | (N bytes)| (2 B)  |<br>+----------+-----------+----------+--------+</pre><ul><li>Address — the target slave (1–247). The master fills in the destination when requesting; the slave echoes its own address when replying.</li><li>Function code — what the slave should do (read coils, write registers, etc.).</li><li>Data — the parameters for that function code (start address, quantity, values to write).</li><li>CRC — covers the entire message (address + function code + data), protecting against line noise.</li></ul><p>The timing rule that frames everything. RTU has no fixed header to mark the start of a message. Instead, it relies on silence: if the gap between two bytes exceeds 3.5 character times, the receiver treats whatever comes next as a new frame. This is RTU’s framing mechanism and a common source of implementation bugs.</p><p>At 9600 baud (8 data bits, 1 stop bit, no parity), one character is roughly 1.04 ms — so 3.5 characters is about 3.64 ms. Exceed that gap mid-message and your frame gets split in two.</p><h3>Modbus ASCII</h3><p>Modbus ASCII is a text-based serial transmission mode that represents each byte as two hexadecimal ASCII characters. It uses the same RS-232 or RS-485 physical layers as RTU but relies on LRC (Longitudinal Redundancy Check) for error checking and frames messages with a colon (:) start and CRLF end. ASCII mode is primarily used for debugging and legacy systems where human-readable traffic is an advantage.</p><p>ASCII frame format:</p><pre>+------+----------+----------+----------+--------+------+<br>| &#39;:&#39;  | Address  | Function | Data     | LRC    | CRLF |<br>| (1B) | (2 chars)|(2 chars) | (N chars)|(2 chars)|      |<br>+------+----------+----------+----------+--------+------+</pre><ul><li>Start — a colon : (0x3A).</li><li>End — CRLF (0x0D 0x0A).</li><li>Checksum — LRC (Longitudinal Redundancy Check), 1 byte.</li><li>Pro — human-readable in a terminal or serial monitor.</li><li>Con — half the throughput of RTU, since one byte costs two characters on the wire.</li></ul><p>ASCII is largely a debugging and legacy concern today. Some lightweight implementations (e.g., nanoMODBUS) support only RTU and TCP.</p><h3>Modbus TCP</h3><p>Modbus TCP is an Ethernet-based variant that operates over TCP/IP on port 502. It replaces serial framing with an MBAP (Modbus Application Protocol) header, eliminates the need for CRC error checking (handled by the TCP layer), and supports multiple clients on the same network. TCP is the preferred mode for modern IoT and industrial Ethernet applications.</p><p>TCP frame format:</p><pre>+-------------+-----------+--------------+<br>| MBAP Header | Function  | Data         |<br>| (7 bytes)   | (1 byte)  | (N bytes)    |<br>+-------------+-----------+--------------+</pre><p>The MBAP header replaces RTU’s address byte and CRC:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*w7K6dwlEZ9zkQ0CWmgkdGQ.png" /></figure><p>The real-world differentiator is multi-master support. RTU buses are single-master by nature — one talker per wire. TCP lets several clients hit the same server simultaneously, which is why it tends to win in modern architectures that need SCADA, gateways, and historians all talking to one device.</p><h3>Modbus Function Codes Explained</h3><p>Every request carries a function code — a single byte telling the slave what operation to perform. The table below covers the 12 function codes supported by common lightweight implementations such as nanoMODBUS:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*mSFn-lhktcIyRggyFiTuxg.png" /></figure><h3>Read Function Codes (01–04)</h3><p>The first four codes cover all read operations. Codes 01 and 02 read single-bit data (coils and discrete inputs), while codes 03 and 04 read 16-bit data (holding and input registers). The distinction isn’t just about data size — it’s about which data table the slave looks up, since each type has its own independent address space.</p><p>In practice, codes 01–04 generate the overwhelming majority of real-world traffic, since polling sensor states and register values is what most masters do, most of the time.</p><h3>Write Function Codes (05, 06, 15, 16)</h3><p>Write operations come in single and multiple variants. Codes 05 and 06 write a single coil or register, respectively, while codes 15 and 16 batch multiple writes into one request. If you need to update ten setpoints at once, code 16 (Write Multiple Registers) is far more efficient than sending ten separate code-06 requests.</p><h3>Other Common Function Codes</h3><p>Beyond reads and writes, the protocol defines several advanced operations:</p><ul><li>Code 20/21 (File Records) — read and write file-based data, useful for transferring configuration blocks or logs.</li><li>Code 23 (Read/Write Multiple Registers) — performs a read and a write in a single atomic transaction, critical when you need to read a value and update a related register without another master intervening.</li><li>Code 43/14 (Read Device Identification) — retrieves vendor name, product code, and firmware version, useful for auto-discovery and asset management.</li></ul><p>These codes are less common but appear in SCADA integration, gateway applications, and device-management workflows.</p><h3>Modbus Data Model: Four Types of Data Objects</h3><p>The data model defines four types of data objects, each with different access permissions and sizes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*NyFa5FcjJwAo_MlUqfq3Dw.png" /></figure><h3>Coils</h3><p>A coil represents a single binary output — historically, the coil of a relay. Coils are read/write, meaning the master can both query and set their state. Function codes 01, 05, and 15 operate on them. A typical use case: turning a pump on or off by writing a 1 or 0 to coil address 0x0012.</p><h3>Discrete Inputs</h3><p>Discrete inputs are read-only binary values, typically representing the state of digital sensors — a door switch, a level detector, a fault flag. Function code 02 reads them. The read-only constraint is enforced by the slave device; the master simply cannot write to this data type.</p><h3>Holding Registers</h3><p>Holding registers are 16-bit read/write values used for configuration, setpoints, and general-purpose data storage. They’re the workhorse of Modbus — most control parameters live here. Function codes 03, 06, 16, and 23 all operate on holding registers. A PLC might store a temperature setpoint in holding register 0x0064, which a SCADA system reads and updates.</p><h3>Input Registers</h3><p>Input registers are 16-bit read-only values, typically holding analog measurements — temperature, pressure, voltage, current. Function code 04 reads them. Think of an input register as the digitized output of an ADC: the sensor measures a physical quantity, the device converts it to a 16-bit integer, and the master polls it.</p><blockquote><em>Important: Each data object has its own independent address space spanning 0x0000–0xFFFF (65,536 addresses). Coil address 0 and holding-register address 0 are two completely different things — they never collide, because the function code determines which table is being addressed.</em></blockquote><h3>PDU and ADU: Understanding the Frame Structure</h3><p>Two acronyms separate the protocol logic from the transport. Understanding this split makes reading any implementation far more straightforward, because you can see exactly where the protocol ends and the transport begins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*2gyHeoonAv7Ov37AR-UOrw.png" /></figure><h3>Protocol Data Unit (PDU)</h3><p>The Protocol Data Unit (PDU) is the protocol-independent core of every Modbus message. It consists of a 1-byte function code followed by optional data fields (0–252 bytes). The PDU is identical across all variants (RTU, ASCII, TCP) — only the surrounding Application Data Unit (ADU) differs. For example, a read holding registers request has a PDU of: function code (0x03) + starting address + quantity.</p><pre>+-------------+----------------+<br>| Function    | Data           |<br>| (1 byte)    | (0–252 bytes)  |<br>+-------------+----------------+</pre><p>Whether you’re on RTU or TCP, the PDU is identical. That’s why a request means the same thing no matter how it’s delivered.</p><h3>Application Data Unit (ADU)</h3><p>The ADU wraps the PDU in whatever the transport layer needs — an address for routing and a checksum or header for integrity.</p><p>RTU’s ADU:</p><pre>+----------+----------+--------+<br>| Address  | PDU      | CRC    |<br>| (1 byte) | (above)  | (2 B)  |<br>+----------+----------+--------+</pre><p>TCP’s ADU:</p><pre>+-------------+----------+<br>| MBAP Header | PDU      |<br>| (7 bytes)   | (above)  |<br>+-------------+----------+</pre><p>In plain terms: the PDU is “what you want to do,” and the ADU is “what you want to do, packaged for the wire it’s traveling on.” RTU adds an address byte and a CRC; TCP adds an MBAP header. Once you internalize this split, reading any implementation — including the nanoMODBUS codebase we’ll dig into in a follow-up — becomes far more intuitive.</p><h3>Modbus Exception Codes</h3><p>When a slave receives a request it can’t honor, it replies with an exception response instead of a normal one. The function code is set to the original code plus 0x80, followed by a single exception-code byte that explains what went wrong:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*9LQTZyBfzfyX_sKUeJa41w.png" /></figure><p>If you’re debugging a link and the master keeps reporting errors, checking which exception code comes back is the fastest way to localize the fault. Code 02 means “you’re asking for an address that doesn’t exist.” Code 03 means “the address exists, but the value is out of bounds.” Codes 05 and 06 are transient — the master should retry after a short delay.</p><h3>Conclusion: Why Modbus Still Matters in 2026</h3><p>At this point, you have the mental model needed to work with the Modbus protocol:</p><ol><li>It’s master/slave — the master asks, the slave answers, and one bus serves up to 247 slaves.</li><li>Three modes share one protocol — RTU (binary serial, efficient), ASCII (text serial, readable but slower), and TCP (Ethernet, multi-client).</li><li>Twelve function codes operate on four data objects — coils, discrete inputs, holding registers, and input registers — each in its own address space.</li><li>PDU vs. ADU separates the request logic from the transport framing, which is why the same request works over serial or Ethernet unchanged.</li></ol><p>Modbus endures not because it’s sophisticated, but because it’s <em>just enough</em> protocol — deterministic, lightweight, and implementable on almost any hardware. When the next shiny industrial standard arrives, it’ll have to clear that bar to displace a specification that has run the factory floor for over four decades.</p><p>For the official specification, refer to the <a href="https://modbus.org/specs.php">Modbus Application Protocol Specification</a> from modbus.org.</p><p><em>Found this helpful? Give it a clap and follow for more industrial communication deep dives.</em></p><p><em>Which Modbus variant do you use most — RTU or TCP? Let me know in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21f46bc29de2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Factory Data Pipelines Are Failing (And How to Simplify Them)]]></title>
            <link>https://medium.com/@iotrouter/why-your-factory-data-pipelines-are-failing-and-how-to-simplify-them-bacfe0c2482a?source=rss-7d28eca4b40c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bacfe0c2482a</guid>
            <category><![CDATA[industrial-iot]]></category>
            <category><![CDATA[scada]]></category>
            <category><![CDATA[smart-factory]]></category>
            <category><![CDATA[plc]]></category>
            <category><![CDATA[factory-data-pipelines]]></category>
            <dc:creator><![CDATA[IOTRouter]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 10:09:53 GMT</pubDate>
            <atom:updated>2026-06-23T10:09:53.681Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Your Factory Data Pipelines Are Failing (And How to Simplify Them)</h3><p>In many IIoT projects, the initial vision is promising: high-end dashboards, real-time analytics, and seamless data visualization. But once the system goes live, reality hits: data is either lagging, intermittent, or plagued by inexplicable null values.</p><p>When this happens, the knee-jerk reaction is to troubleshoot the cloud configuration or check network bandwidth. However, as a field engineer, I suggest you take a look inside your control cabinet first. If your data pipeline is daisy-chained with separate gateways, routers, protocol converters, and a cluster of I/O modules, the problem likely lies in this “assembled” hardware stack.</p><h3>Why “Assembled Architectures” Are Sabotaging Your Data</h3><p>In industrial environments, the common “multi-device” approach often fails because it ignores three fundamental engineering realities:</p><ol><li><strong>The Longer the Pipeline, the Lower the Determinism:</strong> Every time data travels from a PLC through a converter, a gateway, and a router, it introduces unnecessary latency and jitter. When these devices lack perfect clock synchronization, the data arrives in the cloud with inconsistent timestamps. For predictive maintenance or production traceability, out-of-order data is essentially useless.</li><li><strong>The “Multi-Vendor” Maintenance Nightmare:</strong> When a link goes down, you have to log into three different consoles to identify the bottleneck. Three different manufacturers mean three different log formats, three different diagnostic tools, and — often — three times the troubleshooting time. You’ll spend more time figuring out which device hung up than actually fixing the problem.</li><li><strong>Connectivity is the Primary Failure Point:</strong> In an industrial setting, every physical connection — the loose terminal, the EMI-prone serial cable, or the unstable power supply — is a vulnerability. The more devices you have, the higher the probability of failure. The more complex your architecture, the less resilient it is to the harsh realities of the factory floor.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*6jO7LLCZT_6qhIFMMGQqOA.png" /><figcaption>EM300 All-In-One IIOT Controller</figcaption></figure><h3>The “Subtraction” Logic: Why Integrated Solutions (like the EM300) Work</h3><p>Integration isn’t about padding a spec sheet; it’s about shortening the pipeline and reducing variables. Take an integrated industrial edge controller like the <a href="https://en.iotrouter.com/product/em300-modular-industrial-edge-controller/">EM300</a> as an example; its design philosophy is strictly pragmatic:</p><ul><li><strong>Unified Clock, Unified Truth:</strong> Instead of relying on multiple devices to relay data, all protocols (Modbus, IEC104, proprietary PLC protocols) are ingested by a single core. The device assigns a unified timestamp at the source, ensuring the data remains accurate and aligned before it ever reaches the cloud.</li><li><strong>Edge Orchestration, Not Just Forwarding:</strong> Stop treating your gateway like a mere “data courier.” With an integrated <a href="https://nodered.org/">Node-RED</a> environment, you can perform data cleaning at the edge. By filtering out noisy, jittery raw data locally and only pushing meaningful state changes to the cloud, you drastically reduce bandwidth consumption and cloud storage costs.</li><li><strong>Industrial-Grade Autonomy:</strong> Network instability in a factory is a fact of life, not a failure. Integrated devices like the EM300 feature local Flash-based caching. If the network drops, data is stored locally and retransmitted automatically once connectivity is restored, ensuring your historical data remains gapless.</li></ul><h3>A Piece of Advice for Your Next Project</h3><p>The truth about industrial digitization is simple: <strong>the more complex the system, the lower your control over it.</strong></p><p>When you consolidate four separate components into a single <a href="https://en.iotrouter.com/product/em300-modular-industrial-edge-controller/">EM300</a>, you aren’t just saving DIN-rail space or reducing wiring. You are gaining <strong>link determinism</strong>.</p><p>For your next project, don’t just look at the feature list. Count the number of translation nodes in your data pipeline. Calculate how hard it would be to debug a packet loss across those nodes. If you want to avoid the “assembled” maintenance trap, choosing an integrated architecture from day one is the most rational engineering decision you can make.</p><p><strong>After all, simplifying a complex system is the ultimate hallmark of great engineering.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bacfe0c2482a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>